diff --git a/.editorconfig b/godot/.editorconfig similarity index 100% rename from .editorconfig rename to godot/.editorconfig diff --git a/icon.svg b/godot/icon.svg similarity index 100% rename from icon.svg rename to godot/icon.svg diff --git a/icon.svg.import b/godot/icon.svg.import similarity index 100% rename from icon.svg.import rename to godot/icon.svg.import diff --git a/project.godot b/godot/project.godot similarity index 79% rename from project.godot rename to godot/project.godot index 9de0eda..f7f3ba5 100644 --- a/project.godot +++ b/godot/project.godot @@ -11,5 +11,6 @@ config_version=5 [application] config/name="Space Salvage Co" +config/description="a FOSS rogue-like game about salvaging space trash made in godot with godot-rs " config/features=PackedStringArray("4.4", "Forward Plus") config/icon="res://icon.svg" diff --git a/godot/spacesalvageco.gdextension b/godot/spacesalvageco.gdextension new file mode 100644 index 0000000..1d690c3 --- /dev/null +++ b/godot/spacesalvageco.gdextension @@ -0,0 +1,14 @@ +[configuration] +entry_symbol = "gdext_rust_init" +compatibility_minimum = 4.1 +reloadable = true + +[libraries] +linux.debug.x86_64 = "res://../rust/target/debug/lib{YourCrate}.so" +linux.release.x86_64 = "res://../rust/target/release/lib{YourCrate}.so" +windows.debug.x86_64 = "res://../rust/target/debug/{YourCrate}.dll" +windows.release.x86_64 = "res://../rust/target/release/{YourCrate}.dll" +macos.debug = "res://../rust/target/debug/lib{YourCrate}.dylib" +macos.release = "res://../rust/target/release/lib{YourCrate}.dylib" +macos.debug.arm64 = "res://../rust/target/debug/lib{YourCrate}.dylib" +macos.release.arm64 = "res://../rust/target/release/lib{YourCrate}.dylib" diff --git a/rust/Cargo.lock b/rust/Cargo.lock new file mode 100644 index 0000000..cb99dd9 --- /dev/null +++ b/rust/Cargo.lock @@ -0,0 +1,385 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "aho-corasick" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" +dependencies = [ + "memchr", +] + +[[package]] +name = "bitflags" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967" + +[[package]] +name = "bumpalo" +version = "3.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" + +[[package]] +name = "cfg-if" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268" + +[[package]] +name = "gdextension-api" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ec0a03c8f9c91e3d8eb7ca56dea81c7248c03826dd3f545f33cd22ef275d4d1" + +[[package]] +name = "gensym" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "913dce4c5f06c2ea40fc178c06f777ac89fc6b1383e90c254fafb1abe4ba3c82" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "uuid", +] + +[[package]] +name = "getrandom" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "wasi", +] + +[[package]] +name = "glam" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "779ae4bf7e8421cf91c0b3b64e7e8b40b862fba4d393f59150042de7c4965a94" + +[[package]] +name = "godot" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a29a3646d4b02bf4587fedba4ac7b44a47d45c933fd85ba7e61292408818eaa4" +dependencies = [ + "godot-core", + "godot-macros", +] + +[[package]] +name = "godot-bindings" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0014540bff93ba275031bc852f1cf9a3ff3216f02cdd51dc249745dccc8c578" +dependencies = [ + "gdextension-api", +] + +[[package]] +name = "godot-cell" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88184d525d763ebc88ff6806ffee35e19c7118d5c9e4eedbc74e70e069f8a671" + +[[package]] +name = "godot-codegen" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caa72d9b8be812fef2932f2a172b80c8b3feaee030571682f8f770c3d1c348d8" +dependencies = [ + "godot-bindings", + "heck", + "nanoserde", + "proc-macro2", + "quote", + "regex", +] + +[[package]] +name = "godot-core" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ff8345372e4c990ca592d7b61490ef88ff249fc77226f5b79beca173b4a0458" +dependencies = [ + "glam", + "godot-bindings", + "godot-cell", + "godot-codegen", + "godot-ffi", +] + +[[package]] +name = "godot-ffi" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "606d08085bd590d2f9c72633d4d218fee665ab3a0760b2d9daff2d964d628def" +dependencies = [ + "gensym", + "godot-bindings", + "godot-codegen", + "libc", + "paste", +] + +[[package]] +name = "godot-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c11b3188e54ebacf88feb4c968ed19048a71a329c4cfd4a06cf374f18357a36" +dependencies = [ + "godot-bindings", + "proc-macro2", + "quote", + "venial", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "js-sys" +version = "0.3.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "libc" +version = "0.2.174" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776" + +[[package]] +name = "log" +version = "0.4.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" + +[[package]] +name = "memchr" +version = "2.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" + +[[package]] +name = "nanoserde" +version = "0.1.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5de9cf844ab1e25a0353525bd74cb889843a6215fa4a0d156fd446f4857a1b99" +dependencies = [ + "nanoserde-derive", +] + +[[package]] +name = "nanoserde-derive" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e943b2c21337b7e3ec6678500687cdc741b7639ad457f234693352075c082204" + +[[package]] +name = "once_cell" +version = "1.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "proc-macro2" +version = "1.0.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "regex" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" + +[[package]] +name = "rust" +version = "0.1.0" +dependencies = [ + "godot", + "log", +] + +[[package]] +name = "rustversion" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d" + +[[package]] +name = "syn" +version = "2.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "unicode-ident" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" + +[[package]] +name = "uuid" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d" +dependencies = [ + "getrandom", + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "venial" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a42528baceab6c7784446df2a10f4185078c39bf73dc614f154353f1a6b1229" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "wasi" +version = "0.14.2+wasi-0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" +dependencies = [ + "wit-bindgen-rt", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" +dependencies = [ + "bumpalo", + "log", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wit-bindgen-rt" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" +dependencies = [ + "bitflags", +] diff --git a/rust/Cargo.toml b/rust/Cargo.toml new file mode 100644 index 0000000..3da4f0b --- /dev/null +++ b/rust/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "rust" +version = "0.1.0" +edition = "2021" + +[lib] +crate-type = ["cdylib"] + +[dependencies] +godot = "0.2.4" +log = "0.4.27" + diff --git a/rust/src/lib.rs b/rust/src/lib.rs new file mode 100644 index 0000000..3aa7156 --- /dev/null +++ b/rust/src/lib.rs @@ -0,0 +1,6 @@ +use godot::prelude::*; + +struct MyExtension; + +#[gdextension] +unsafe impl ExtensionLibrary for MyExtension {} diff --git a/rust/target/.rustc_info.json b/rust/target/.rustc_info.json new file mode 100644 index 0000000..445d670 --- /dev/null +++ b/rust/target/.rustc_info.json @@ -0,0 +1 @@ +{"rustc_fingerprint":14932112049468881071,"outputs":{"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/nihil/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\nfmt_debug=\"full\"\noverflow_checks\npanic=\"unwind\"\nproc_macro\nrelocation_model=\"pic\"\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_has_atomic_equal_alignment=\"16\"\ntarget_has_atomic_equal_alignment=\"32\"\ntarget_has_atomic_equal_alignment=\"64\"\ntarget_has_atomic_equal_alignment=\"8\"\ntarget_has_atomic_equal_alignment=\"ptr\"\ntarget_has_atomic_load_store\ntarget_has_atomic_load_store=\"16\"\ntarget_has_atomic_load_store=\"32\"\ntarget_has_atomic_load_store=\"64\"\ntarget_has_atomic_load_store=\"8\"\ntarget_has_atomic_load_store=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_thread_local\ntarget_vendor=\"unknown\"\nub_checks\nunix\n","stderr":""},"14371922958718593042":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/nihil/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\nfmt_debug=\"full\"\noverflow_checks\npanic=\"unwind\"\nproc_macro\nrelocation_model=\"pic\"\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_has_atomic_equal_alignment=\"16\"\ntarget_has_atomic_equal_alignment=\"32\"\ntarget_has_atomic_equal_alignment=\"64\"\ntarget_has_atomic_equal_alignment=\"8\"\ntarget_has_atomic_equal_alignment=\"ptr\"\ntarget_has_atomic_load_store\ntarget_has_atomic_load_store=\"16\"\ntarget_has_atomic_load_store=\"32\"\ntarget_has_atomic_load_store=\"64\"\ntarget_has_atomic_load_store=\"8\"\ntarget_has_atomic_load_store=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_thread_local\ntarget_vendor=\"unknown\"\nub_checks\nunix\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.82.0 (f6e511eec 2024-10-15)\nbinary: rustc\ncommit-hash: f6e511eec7342f59a25f7c0534f1dbea00d01b14\ncommit-date: 2024-10-15\nhost: x86_64-unknown-linux-gnu\nrelease: 1.82.0\nLLVM version: 19.1.1\n","stderr":""}},"successes":{}} \ No newline at end of file diff --git a/rust/target/CACHEDIR.TAG b/rust/target/CACHEDIR.TAG new file mode 100644 index 0000000..20d7c31 --- /dev/null +++ b/rust/target/CACHEDIR.TAG @@ -0,0 +1,3 @@ +Signature: 8a477f597d28d172789f06886806bc55 +# This file is a cache directory tag created by cargo. +# For information about cache directory tags see https://bford.info/cachedir/ diff --git a/rust/target/debug/.cargo-lock b/rust/target/debug/.cargo-lock new file mode 100644 index 0000000..e69de29 diff --git a/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/dep-lib-gdextension_api b/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/dep-lib-gdextension_api new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/dep-lib-gdextension_api differ diff --git a/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/invoked.timestamp b/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/lib-gdextension_api b/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/lib-gdextension_api new file mode 100644 index 0000000..f943d78 --- /dev/null +++ b/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/lib-gdextension_api @@ -0,0 +1 @@ +834c8c30c60751a0 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/lib-gdextension_api.json b/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/lib-gdextension_api.json new file mode 100644 index 0000000..58845df --- /dev/null +++ b/rust/target/debug/.fingerprint/gdextension-api-6d97f213fc37c877/lib-gdextension_api.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[]","target":15728348367772186907,"profile":8861558584828204938,"path":13918362297559787598,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/gdextension-api-6d97f213fc37c877/dep-lib-gdextension_api"}}],"rustflags":[],"metadata":6712965062728249898,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/dep-lib-glam b/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/dep-lib-glam new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/dep-lib-glam differ diff --git a/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/invoked.timestamp b/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/lib-glam b/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/lib-glam new file mode 100644 index 0000000..0a56fb8 --- /dev/null +++ b/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/lib-glam @@ -0,0 +1 @@ +e01231dad3f68d3f \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/lib-glam.json b/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/lib-glam.json new file mode 100644 index 0000000..af54cec --- /dev/null +++ b/rust/target/debug/.fingerprint/glam-0ada94cae2bf25d4/lib-glam.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"debug-glam-assert\", \"default\", \"std\"]","declared_features":"[\"approx\", \"bytecheck\", \"bytemuck\", \"core-simd\", \"cuda\", \"debug-glam-assert\", \"default\", \"fast-math\", \"glam-assert\", \"libm\", \"mint\", \"rand\", \"rkyv\", \"scalar-math\", \"serde\", \"std\"]","target":14389939500673794328,"profile":1740343547499479105,"path":1488616530229085175,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/glam-0ada94cae2bf25d4/dep-lib-glam"}}],"rustflags":[],"metadata":4763942199903081431,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/glam-79ad7624226140fb/dep-lib-glam b/rust/target/debug/.fingerprint/glam-79ad7624226140fb/dep-lib-glam new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/glam-79ad7624226140fb/dep-lib-glam differ diff --git a/rust/target/debug/.fingerprint/glam-79ad7624226140fb/invoked.timestamp b/rust/target/debug/.fingerprint/glam-79ad7624226140fb/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/glam-79ad7624226140fb/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/glam-79ad7624226140fb/lib-glam b/rust/target/debug/.fingerprint/glam-79ad7624226140fb/lib-glam new file mode 100644 index 0000000..914d036 --- /dev/null +++ b/rust/target/debug/.fingerprint/glam-79ad7624226140fb/lib-glam @@ -0,0 +1 @@ +5ea8525ba69f3e1a \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/glam-79ad7624226140fb/lib-glam.json b/rust/target/debug/.fingerprint/glam-79ad7624226140fb/lib-glam.json new file mode 100644 index 0000000..de0be7f --- /dev/null +++ b/rust/target/debug/.fingerprint/glam-79ad7624226140fb/lib-glam.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"debug-glam-assert\", \"default\", \"std\"]","declared_features":"[\"approx\", \"bytecheck\", \"bytemuck\", \"core-simd\", \"cuda\", \"debug-glam-assert\", \"default\", \"fast-math\", \"glam-assert\", \"libm\", \"mint\", \"rand\", \"rkyv\", \"scalar-math\", \"serde\", \"std\"]","target":14389939500673794328,"profile":16690480377348987070,"path":1488616530229085175,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/glam-79ad7624226140fb/dep-lib-glam"}}],"rustflags":[],"metadata":4763942199903081431,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/dep-lib-godot b/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/dep-lib-godot new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/dep-lib-godot differ diff --git a/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/invoked.timestamp b/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/lib-godot b/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/lib-godot new file mode 100644 index 0000000..19d6369 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/lib-godot @@ -0,0 +1 @@ +6cd92f397d0f9a9b \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/lib-godot.json b/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/lib-godot.json new file mode 100644 index 0000000..48e7929 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-a0e511448ba84fe1/lib-godot.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"__codegen-full\", \"default\"]","declared_features":"[\"__codegen-full\", \"__debug-log\", \"__trace\", \"api-4-1\", \"api-4-1-1\", \"api-4-1-2\", \"api-4-1-3\", \"api-4-1-4\", \"api-4-2\", \"api-4-2-1\", \"api-4-2-2\", \"api-4-3\", \"api-custom\", \"codegen-rustfmt\", \"custom-godot\", \"default\", \"double-precision\", \"experimental-godot-api\", \"experimental-threads\", \"experimental-wasm\", \"experimental-wasm-nothreads\", \"lazy-function-tables\", \"register-docs\", \"serde\"]","target":11616296856724566144,"profile":16690480377348987070,"path":4354987839519378656,"deps":[[198581089347708283,"godot_macros",false,18017722855704651263],[7961375887037303541,"godot_core",false,8630479561745524687]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-a0e511448ba84fe1/dep-lib-godot"}}],"rustflags":[],"metadata":5629176293227263469,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/dep-lib-godot_bindings b/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/dep-lib-godot_bindings new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/dep-lib-godot_bindings differ diff --git a/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/invoked.timestamp b/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/lib-godot_bindings b/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/lib-godot_bindings new file mode 100644 index 0000000..5f4e04f --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/lib-godot_bindings @@ -0,0 +1 @@ +ad664b8609c07b7d \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/lib-godot_bindings.json b/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/lib-godot_bindings.json new file mode 100644 index 0000000..d53e5fc --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/lib-godot_bindings.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"default\"]","declared_features":"[\"api-4-1\", \"api-4-1-1\", \"api-4-1-2\", \"api-4-1-3\", \"api-4-1-4\", \"api-4-2\", \"api-4-2-1\", \"api-4-2-2\", \"api-4-3\", \"api-custom\", \"api-custom-extheader\", \"default\", \"experimental-wasm-nothreads\"]","target":9106819732827005763,"profile":8861558584828204938,"path":4517914003960976091,"deps":[[6711197758307512991,"build_script_build",false,2423189297194586224],[10274084422347512676,"gdextension_api",false,11552023066981452931]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-bindings-7a1cf85e521cb62a/dep-lib-godot_bindings"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/build-script-build-script-build b/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/build-script-build-script-build new file mode 100644 index 0000000..114fba0 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/build-script-build-script-build @@ -0,0 +1 @@ +800625bc5d8dd95b \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/build-script-build-script-build.json b/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/build-script-build-script-build.json new file mode 100644 index 0000000..a0c85c5 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"default\"]","declared_features":"[\"api-4-1\", \"api-4-1-1\", \"api-4-1-2\", \"api-4-1-3\", \"api-4-1-4\", \"api-4-2\", \"api-4-2-1\", \"api-4-2-2\", \"api-4-3\", \"api-custom\", \"api-custom-extheader\", \"default\", \"experimental-wasm-nothreads\"]","target":9652763411108993936,"profile":8861558584828204938,"path":8928764105373414324,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/dep-build-script-build-script-build b/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/dep-build-script-build-script-build new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/dep-build-script-build-script-build differ diff --git a/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/invoked.timestamp b/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-bindings-8a577aaf2b4a430e/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-bindings-e92445293a1ce1c9/run-build-script-build-script-build b/rust/target/debug/.fingerprint/godot-bindings-e92445293a1ce1c9/run-build-script-build-script-build new file mode 100644 index 0000000..4049679 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-bindings-e92445293a1ce1c9/run-build-script-build-script-build @@ -0,0 +1 @@ +70d0cfc2d3e5a021 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-bindings-e92445293a1ce1c9/run-build-script-build-script-build.json b/rust/target/debug/.fingerprint/godot-bindings-e92445293a1ce1c9/run-build-script-build-script-build.json new file mode 100644 index 0000000..8c84794 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-bindings-e92445293a1ce1c9/run-build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[6711197758307512991,"build_script_build",false,6618476561125672576]],"local":[{"Precalculated":"0.2.4"}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/dep-lib-godot_cell b/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/dep-lib-godot_cell new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/dep-lib-godot_cell differ diff --git a/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/invoked.timestamp b/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/lib-godot_cell b/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/lib-godot_cell new file mode 100644 index 0000000..9be8eb8 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/lib-godot_cell @@ -0,0 +1 @@ +41ff5509bc928a46 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/lib-godot_cell.json b/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/lib-godot_cell.json new file mode 100644 index 0000000..1992c26 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-cell-3a331c71be885523/lib-godot_cell.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[\"proptest\"]","target":16980799669652290044,"profile":1740343547499479105,"path":974655985332919031,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-cell-3a331c71be885523/dep-lib-godot_cell"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/dep-lib-godot_cell b/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/dep-lib-godot_cell new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/dep-lib-godot_cell differ diff --git a/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/invoked.timestamp b/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/lib-godot_cell b/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/lib-godot_cell new file mode 100644 index 0000000..ca9fdcf --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/lib-godot_cell @@ -0,0 +1 @@ +322b08f631198d12 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/lib-godot_cell.json b/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/lib-godot_cell.json new file mode 100644 index 0000000..6534b0d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/lib-godot_cell.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[\"proptest\"]","target":16980799669652290044,"profile":16690480377348987070,"path":974655985332919031,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-cell-c9da65ad3dc1d5ab/dep-lib-godot_cell"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-codegen-5da53cf4d5947ea0/run-build-script-build-script-build b/rust/target/debug/.fingerprint/godot-codegen-5da53cf4d5947ea0/run-build-script-build-script-build new file mode 100644 index 0000000..f848fca --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-codegen-5da53cf4d5947ea0/run-build-script-build-script-build @@ -0,0 +1 @@ +48a7dd8ebb31104b \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-codegen-5da53cf4d5947ea0/run-build-script-build-script-build.json b/rust/target/debug/.fingerprint/godot-codegen-5da53cf4d5947ea0/run-build-script-build-script-build.json new file mode 100644 index 0000000..aa8a893 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-codegen-5da53cf4d5947ea0/run-build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[9503678362519461980,"build_script_build",false,198415214267721107]],"local":[{"Precalculated":"0.2.4"}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/build-script-build-script-build b/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/build-script-build-script-build new file mode 100644 index 0000000..675bb82 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/build-script-build-script-build @@ -0,0 +1 @@ +93e5750c96e9c002 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/build-script-build-script-build.json b/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/build-script-build-script-build.json new file mode 100644 index 0000000..9174d14 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"codegen-full\", \"default\"]","declared_features":"[\"api-custom\", \"codegen-full\", \"codegen-lazy-fptrs\", \"codegen-rustfmt\", \"default\", \"double-precision\", \"experimental-godot-api\", \"experimental-threads\"]","target":9652763411108993936,"profile":8861558584828204938,"path":4758560970613512908,"deps":[[6711197758307512991,"godot_bindings",false,9042031824016729773]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/dep-build-script-build-script-build b/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/dep-build-script-build-script-build new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/dep-build-script-build-script-build differ diff --git a/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/invoked.timestamp b/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-codegen-69ab218c83b1b6f5/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/dep-lib-godot_codegen b/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/dep-lib-godot_codegen new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/dep-lib-godot_codegen differ diff --git a/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/invoked.timestamp b/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/lib-godot_codegen b/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/lib-godot_codegen new file mode 100644 index 0000000..64912c1 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/lib-godot_codegen @@ -0,0 +1 @@ +7d884ba26f424332 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/lib-godot_codegen.json b/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/lib-godot_codegen.json new file mode 100644 index 0000000..dbc120e --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-codegen-93d6a58f6d17b521/lib-godot_codegen.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"codegen-full\", \"default\"]","declared_features":"[\"api-custom\", \"codegen-full\", \"codegen-lazy-fptrs\", \"codegen-rustfmt\", \"default\", \"double-precision\", \"experimental-godot-api\", \"experimental-threads\"]","target":1394933086331267133,"profile":8861558584828204938,"path":7223573540221170375,"deps":[[3697356524269865483,"nanoserde",false,12040091363593673160],[6711197758307512991,"godot_bindings",false,9042031824016729773],[9503678362519461980,"build_script_build",false,5408877834097502024],[11641382387439738731,"regex",false,11720186453871079630],[17175234422038868540,"heck",false,1558237066194089951],[17525013869477438691,"quote",false,11834148687594711201],[18036439996138669183,"proc_macro2",false,10657756142504088255]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-codegen-93d6a58f6d17b521/dep-lib-godot_codegen"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/build-script-build-script-build b/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/build-script-build-script-build new file mode 100644 index 0000000..5b71594 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/build-script-build-script-build @@ -0,0 +1 @@ +8b05713b9a680482 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/build-script-build-script-build.json b/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/build-script-build-script-build.json new file mode 100644 index 0000000..a25d7e9 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"codegen-full\", \"default\"]","declared_features":"[\"api-4-1\", \"api-4-1-1\", \"api-4-1-2\", \"api-4-1-3\", \"api-4-1-4\", \"api-4-2\", \"api-4-2-1\", \"api-4-2-2\", \"api-4-3\", \"api-custom\", \"codegen-full\", \"codegen-lazy-fptrs\", \"codegen-rustfmt\", \"debug-log\", \"default\", \"double-precision\", \"experimental-godot-api\", \"experimental-threads\", \"experimental-wasm-nothreads\", \"register-docs\", \"serde\", \"trace\"]","target":9652763411108993936,"profile":8861558584828204938,"path":8853567310584147142,"deps":[[6711197758307512991,"godot_bindings",false,9042031824016729773],[9503678362519461980,"godot_codegen",false,3621811572567672957]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-core-266e8b4c54477ed9/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/dep-build-script-build-script-build b/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/dep-build-script-build-script-build new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/dep-build-script-build-script-build differ diff --git a/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/invoked.timestamp b/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-core-266e8b4c54477ed9/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-core-3092dfa1ccdfdc52/run-build-script-build-script-build b/rust/target/debug/.fingerprint/godot-core-3092dfa1ccdfdc52/run-build-script-build-script-build new file mode 100644 index 0000000..1c5403e --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-core-3092dfa1ccdfdc52/run-build-script-build-script-build @@ -0,0 +1 @@ +0a228c7108ba9630 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-core-3092dfa1ccdfdc52/run-build-script-build-script-build.json b/rust/target/debug/.fingerprint/godot-core-3092dfa1ccdfdc52/run-build-script-build-script-build.json new file mode 100644 index 0000000..8b52a15 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-core-3092dfa1ccdfdc52/run-build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[7961375887037303541,"build_script_build",false,9368728136468989323]],"local":[{"RerunIfChanged":{"output":"debug/build/godot-core-3092dfa1ccdfdc52/output","paths":["build.rs"]}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/dep-lib-godot_core b/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/dep-lib-godot_core new file mode 100644 index 0000000..2687c0c Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/dep-lib-godot_core differ diff --git a/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/invoked.timestamp b/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/lib-godot_core b/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/lib-godot_core new file mode 100644 index 0000000..dee880e --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/lib-godot_core @@ -0,0 +1 @@ +cf671c676f9fc577 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/lib-godot_core.json b/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/lib-godot_core.json new file mode 100644 index 0000000..4038e91 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/lib-godot_core.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"codegen-full\", \"default\"]","declared_features":"[\"api-4-1\", \"api-4-1-1\", \"api-4-1-2\", \"api-4-1-3\", \"api-4-1-4\", \"api-4-2\", \"api-4-2-1\", \"api-4-2-2\", \"api-4-3\", \"api-custom\", \"codegen-full\", \"codegen-lazy-fptrs\", \"codegen-rustfmt\", \"debug-log\", \"default\", \"double-precision\", \"experimental-godot-api\", \"experimental-threads\", \"experimental-wasm-nothreads\", \"register-docs\", \"serde\", \"trace\"]","target":13188520170328009108,"profile":16690480377348987070,"path":14004973714653655101,"deps":[[1427216893345610850,"glam",false,1891124430387718238],[7961375887037303541,"build_script_build",false,3501190305754653194],[8595155741976782012,"godot_cell",false,1336752366770727730],[15017043970713726718,"godot_ffi",false,7785242455882728308]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-core-4f46dd1b0f50e4c4/dep-lib-godot_core"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/dep-lib-godot_core b/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/dep-lib-godot_core new file mode 100644 index 0000000..2687c0c Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/dep-lib-godot_core differ diff --git a/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/invoked.timestamp b/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/lib-godot_core b/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/lib-godot_core new file mode 100644 index 0000000..d9bdeb2 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/lib-godot_core @@ -0,0 +1 @@ +ee6afe67578c6f6e \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/lib-godot_core.json b/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/lib-godot_core.json new file mode 100644 index 0000000..5fce1dc --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-core-9212a4a3dfa7b92a/lib-godot_core.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"codegen-full\", \"default\"]","declared_features":"[\"api-4-1\", \"api-4-1-1\", \"api-4-1-2\", \"api-4-1-3\", \"api-4-1-4\", \"api-4-2\", \"api-4-2-1\", \"api-4-2-2\", \"api-4-3\", \"api-custom\", \"codegen-full\", \"codegen-lazy-fptrs\", \"codegen-rustfmt\", \"debug-log\", \"default\", \"double-precision\", \"experimental-godot-api\", \"experimental-threads\", \"experimental-wasm-nothreads\", \"register-docs\", \"serde\", \"trace\"]","target":13188520170328009108,"profile":1740343547499479105,"path":14004973714653655101,"deps":[[1427216893345610850,"glam",false,4579587785864844000],[7961375887037303541,"build_script_build",false,3501190305754653194],[8595155741976782012,"godot_cell",false,5083036465749163841],[15017043970713726718,"godot_ffi",false,15801834272292269452]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-core-9212a4a3dfa7b92a/dep-lib-godot_core"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/dep-lib-godot b/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/dep-lib-godot new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/dep-lib-godot differ diff --git a/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/invoked.timestamp b/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/lib-godot b/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/lib-godot new file mode 100644 index 0000000..c427659 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/lib-godot @@ -0,0 +1 @@ +b02fe44e311742e4 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/lib-godot.json b/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/lib-godot.json new file mode 100644 index 0000000..45cc4ba --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-fe81bc77f1823c17/lib-godot.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"__codegen-full\", \"default\"]","declared_features":"[\"__codegen-full\", \"__debug-log\", \"__trace\", \"api-4-1\", \"api-4-1-1\", \"api-4-1-2\", \"api-4-1-3\", \"api-4-1-4\", \"api-4-2\", \"api-4-2-1\", \"api-4-2-2\", \"api-4-3\", \"api-custom\", \"codegen-rustfmt\", \"custom-godot\", \"default\", \"double-precision\", \"experimental-godot-api\", \"experimental-threads\", \"experimental-wasm\", \"experimental-wasm-nothreads\", \"lazy-function-tables\", \"register-docs\", \"serde\"]","target":11616296856724566144,"profile":1740343547499479105,"path":4354987839519378656,"deps":[[198581089347708283,"godot_macros",false,18017722855704651263],[7961375887037303541,"godot_core",false,7957733373621725934]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-fe81bc77f1823c17/dep-lib-godot"}}],"rustflags":[],"metadata":5629176293227263469,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/dep-lib-godot_ffi b/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/dep-lib-godot_ffi new file mode 100644 index 0000000..063b942 Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/dep-lib-godot_ffi differ diff --git a/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/invoked.timestamp b/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/lib-godot_ffi b/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/lib-godot_ffi new file mode 100644 index 0000000..f70b3c7 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/lib-godot_ffi @@ -0,0 +1 @@ +74032e01c4bc0a6c \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/lib-godot_ffi.json b/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/lib-godot_ffi.json new file mode 100644 index 0000000..47345a5 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-ffi-0039a2694e6fdab6/lib-godot_ffi.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[\"api-4-1\", \"api-4-1-1\", \"api-4-1-2\", \"api-4-1-3\", \"api-4-1-4\", \"api-4-2\", \"api-4-2-1\", \"api-4-2-2\", \"api-4-3\", \"api-custom\", \"codegen-lazy-fptrs\", \"codegen-rustfmt\", \"debug-log\", \"experimental-godot-api\", \"experimental-threads\", \"experimental-wasm-nothreads\"]","target":17855864511133728455,"profile":16690480377348987070,"path":5127369342376256753,"deps":[[3767752438495319636,"paste",false,15636734392423563385],[12833142538252791333,"libc",false,3777224971784433498],[15017043970713726718,"build_script_build",false,128953092745259154]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-ffi-0039a2694e6fdab6/dep-lib-godot_ffi"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/build-script-build-script-build b/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/build-script-build-script-build new file mode 100644 index 0000000..f4e89b0 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/build-script-build-script-build @@ -0,0 +1 @@ +37be912d39c5d48f \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/build-script-build-script-build.json b/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/build-script-build-script-build.json new file mode 100644 index 0000000..4d200cb --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[\"api-4-1\", \"api-4-1-1\", \"api-4-1-2\", \"api-4-1-3\", \"api-4-1-4\", \"api-4-2\", \"api-4-2-1\", \"api-4-2-2\", \"api-4-3\", \"api-custom\", \"codegen-lazy-fptrs\", \"codegen-rustfmt\", \"debug-log\", \"experimental-godot-api\", \"experimental-threads\", \"experimental-wasm-nothreads\"]","target":9652763411108993936,"profile":8861558584828204938,"path":6613953423797557929,"deps":[[6711197758307512991,"godot_bindings",false,9042031824016729773],[9503678362519461980,"godot_codegen",false,3621811572567672957]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-ffi-984abbe9fe493578/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/dep-build-script-build-script-build b/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/dep-build-script-build-script-build new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/dep-build-script-build-script-build differ diff --git a/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/invoked.timestamp b/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-ffi-984abbe9fe493578/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/dep-lib-godot_ffi b/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/dep-lib-godot_ffi new file mode 100644 index 0000000..063b942 Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/dep-lib-godot_ffi differ diff --git a/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/invoked.timestamp b/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/lib-godot_ffi b/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/lib-godot_ffi new file mode 100644 index 0000000..a147d9f --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/lib-godot_ffi @@ -0,0 +1 @@ +8ced92878c644bdb \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/lib-godot_ffi.json b/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/lib-godot_ffi.json new file mode 100644 index 0000000..94485a5 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-ffi-a278853389ba125a/lib-godot_ffi.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[\"api-4-1\", \"api-4-1-1\", \"api-4-1-2\", \"api-4-1-3\", \"api-4-1-4\", \"api-4-2\", \"api-4-2-1\", \"api-4-2-2\", \"api-4-3\", \"api-custom\", \"codegen-lazy-fptrs\", \"codegen-rustfmt\", \"debug-log\", \"experimental-godot-api\", \"experimental-threads\", \"experimental-wasm-nothreads\"]","target":17855864511133728455,"profile":1740343547499479105,"path":5127369342376256753,"deps":[[3767752438495319636,"paste",false,15636734392423563385],[12833142538252791333,"libc",false,6969998901882127031],[15017043970713726718,"build_script_build",false,128953092745259154]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-ffi-a278853389ba125a/dep-lib-godot_ffi"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-ffi-db0769e2cb0ad93f/run-build-script-build-script-build b/rust/target/debug/.fingerprint/godot-ffi-db0769e2cb0ad93f/run-build-script-build-script-build new file mode 100644 index 0000000..5bfc672 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-ffi-db0769e2cb0ad93f/run-build-script-build-script-build @@ -0,0 +1 @@ +92e8c4952722ca01 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-ffi-db0769e2cb0ad93f/run-build-script-build-script-build.json b/rust/target/debug/.fingerprint/godot-ffi-db0769e2cb0ad93f/run-build-script-build-script-build.json new file mode 100644 index 0000000..d7a8012 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-ffi-db0769e2cb0ad93f/run-build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[15017043970713726718,"build_script_build",false,10364125491854687799]],"local":[{"RerunIfChanged":{"output":"debug/build/godot-ffi-db0769e2cb0ad93f/output","paths":["build.rs"]}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-macros-1f26f26301811571/run-build-script-build-script-build b/rust/target/debug/.fingerprint/godot-macros-1f26f26301811571/run-build-script-build-script-build new file mode 100644 index 0000000..696d874 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-macros-1f26f26301811571/run-build-script-build-script-build @@ -0,0 +1 @@ +10282c8acd04d224 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-macros-1f26f26301811571/run-build-script-build-script-build.json b/rust/target/debug/.fingerprint/godot-macros-1f26f26301811571/run-build-script-build-script-build.json new file mode 100644 index 0000000..bbad312 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-macros-1f26f26301811571/run-build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[198581089347708283,"build_script_build",false,12607852980036780138]],"local":[{"Precalculated":"0.2.4"}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/build-script-build-script-build b/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/build-script-build-script-build new file mode 100644 index 0000000..671e976 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/build-script-build-script-build @@ -0,0 +1 @@ +6a40716f7c17f8ae \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/build-script-build-script-build.json b/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/build-script-build-script-build.json new file mode 100644 index 0000000..c634059 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"codegen-full\"]","declared_features":"[\"api-custom\", \"codegen-full\", \"register-docs\"]","target":9652763411108993936,"profile":8861558584828204938,"path":8793510882580266761,"deps":[[6711197758307512991,"godot_bindings",false,9042031824016729773]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-macros-81fdc89f926f6e52/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/dep-build-script-build-script-build b/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/dep-build-script-build-script-build new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/dep-build-script-build-script-build differ diff --git a/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/invoked.timestamp b/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-macros-81fdc89f926f6e52/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/dep-lib-godot_macros b/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/dep-lib-godot_macros new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/dep-lib-godot_macros differ diff --git a/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/invoked.timestamp b/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/lib-godot_macros b/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/lib-godot_macros new file mode 100644 index 0000000..451b772 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/lib-godot_macros @@ -0,0 +1 @@ +ff65b6ab79cf0bfa \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/lib-godot_macros.json b/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/lib-godot_macros.json new file mode 100644 index 0000000..7220b82 --- /dev/null +++ b/rust/target/debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/lib-godot_macros.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"codegen-full\"]","declared_features":"[\"api-custom\", \"codegen-full\", \"register-docs\"]","target":14734625520715826235,"profile":8861558584828204938,"path":17812049066069586807,"deps":[[198581089347708283,"build_script_build",false,2653188411307599888],[5363755331021344454,"venial",false,8341214709645987434],[17525013869477438691,"quote",false,11834148687594711201],[18036439996138669183,"proc_macro2",false,10657756142504088255]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/godot-macros-ba8d2ddf9b521fad/dep-lib-godot_macros"}}],"rustflags":[],"metadata":2345819365201139512,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/heck-360f348b027c90fb/dep-lib-heck b/rust/target/debug/.fingerprint/heck-360f348b027c90fb/dep-lib-heck new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/heck-360f348b027c90fb/dep-lib-heck differ diff --git a/rust/target/debug/.fingerprint/heck-360f348b027c90fb/invoked.timestamp b/rust/target/debug/.fingerprint/heck-360f348b027c90fb/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/heck-360f348b027c90fb/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/heck-360f348b027c90fb/lib-heck b/rust/target/debug/.fingerprint/heck-360f348b027c90fb/lib-heck new file mode 100644 index 0000000..12f9bc8 --- /dev/null +++ b/rust/target/debug/.fingerprint/heck-360f348b027c90fb/lib-heck @@ -0,0 +1 @@ +df7758165bf89f15 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/heck-360f348b027c90fb/lib-heck.json b/rust/target/debug/.fingerprint/heck-360f348b027c90fb/lib-heck.json new file mode 100644 index 0000000..f985f00 --- /dev/null +++ b/rust/target/debug/.fingerprint/heck-360f348b027c90fb/lib-heck.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[]","target":835452791756564323,"profile":8861558584828204938,"path":11874584866646158109,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/heck-360f348b027c90fb/dep-lib-heck"}}],"rustflags":[],"metadata":1438596273099979389,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/dep-lib-libc b/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/dep-lib-libc new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/dep-lib-libc differ diff --git a/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/invoked.timestamp b/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/lib-libc b/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/lib-libc new file mode 100644 index 0000000..c72a2e8 --- /dev/null +++ b/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/lib-libc @@ -0,0 +1 @@ +b7028c971269ba60 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/lib-libc.json b/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/lib-libc.json new file mode 100644 index 0000000..957cce4 --- /dev/null +++ b/rust/target/debug/.fingerprint/libc-3cb8cd7c460bf4d0/lib-libc.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"default\", \"std\"]","declared_features":"[\"align\", \"const-extern-fn\", \"default\", \"extra_traits\", \"rustc-dep-of-std\", \"rustc-std-workspace-core\", \"std\", \"use_std\"]","target":10680253861624505453,"profile":5209558603180918517,"path":12210579981235233529,"deps":[[12833142538252791333,"build_script_build",false,5054643230248449772]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libc-3cb8cd7c460bf4d0/dep-lib-libc"}}],"rustflags":[],"metadata":8051124289549546319,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/libc-6a0d2fa0357afec8/run-build-script-build-script-build b/rust/target/debug/.fingerprint/libc-6a0d2fa0357afec8/run-build-script-build-script-build new file mode 100644 index 0000000..9c339f9 --- /dev/null +++ b/rust/target/debug/.fingerprint/libc-6a0d2fa0357afec8/run-build-script-build-script-build @@ -0,0 +1 @@ +ecb64abd3cb32546 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/libc-6a0d2fa0357afec8/run-build-script-build-script-build.json b/rust/target/debug/.fingerprint/libc-6a0d2fa0357afec8/run-build-script-build-script-build.json new file mode 100644 index 0000000..764c46f --- /dev/null +++ b/rust/target/debug/.fingerprint/libc-6a0d2fa0357afec8/run-build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[12833142538252791333,"build_script_build",false,5385114887084474698]],"local":[{"RerunIfChanged":{"output":"debug/build/libc-6a0d2fa0357afec8/output","paths":["build.rs"]}},{"RerunIfEnvChanged":{"var":"RUST_LIBC_UNSTABLE_FREEBSD_VERSION","val":null}},{"RerunIfEnvChanged":{"var":"RUST_LIBC_UNSTABLE_MUSL_V1_2_3","val":null}},{"RerunIfEnvChanged":{"var":"RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64","val":null}},{"RerunIfEnvChanged":{"var":"RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS","val":null}},{"RerunIfEnvChanged":{"var":"RUST_LIBC_UNSTABLE_GNU_TIME_BITS","val":null}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/build-script-build-script-build b/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/build-script-build-script-build new file mode 100644 index 0000000..1303d99 --- /dev/null +++ b/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/build-script-build-script-build @@ -0,0 +1 @@ +4a81564f75c5bb4a \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/build-script-build-script-build.json b/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/build-script-build-script-build.json new file mode 100644 index 0000000..17c1e2b --- /dev/null +++ b/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"default\", \"std\"]","declared_features":"[\"align\", \"const-extern-fn\", \"default\", \"extra_traits\", \"rustc-dep-of-std\", \"rustc-std-workspace-core\", \"std\", \"use_std\"]","target":9652763411108993936,"profile":13089056440502641727,"path":6029891976281572597,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libc-81472a11ec80f9bf/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":8051124289549546319,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/dep-build-script-build-script-build b/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/dep-build-script-build-script-build new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/dep-build-script-build-script-build differ diff --git a/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/invoked.timestamp b/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/libc-81472a11ec80f9bf/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/dep-lib-libc b/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/dep-lib-libc new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/dep-lib-libc differ diff --git a/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/invoked.timestamp b/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/lib-libc b/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/lib-libc new file mode 100644 index 0000000..f3d47e2 --- /dev/null +++ b/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/lib-libc @@ -0,0 +1 @@ +5a2ff26719666b34 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/lib-libc.json b/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/lib-libc.json new file mode 100644 index 0000000..3ca5cb9 --- /dev/null +++ b/rust/target/debug/.fingerprint/libc-ad50e0119d53a6a7/lib-libc.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"default\", \"std\"]","declared_features":"[\"align\", \"const-extern-fn\", \"default\", \"extra_traits\", \"rustc-dep-of-std\", \"rustc-std-workspace-core\", \"std\", \"use_std\"]","target":10680253861624505453,"profile":9866746429332304614,"path":12210579981235233529,"deps":[[12833142538252791333,"build_script_build",false,5054643230248449772]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libc-ad50e0119d53a6a7/dep-lib-libc"}}],"rustflags":[],"metadata":8051124289549546319,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/dep-lib-log b/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/dep-lib-log new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/dep-lib-log differ diff --git a/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/invoked.timestamp b/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/lib-log b/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/lib-log new file mode 100644 index 0000000..eeccf5c --- /dev/null +++ b/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/lib-log @@ -0,0 +1 @@ +4db4aa439460da39 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/lib-log.json b/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/lib-log.json new file mode 100644 index 0000000..741e909 --- /dev/null +++ b/rust/target/debug/.fingerprint/log-d8363c283f12dfb5/lib-log.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[\"kv\", \"kv_serde\", \"kv_std\", \"kv_sval\", \"kv_unstable\", \"kv_unstable_serde\", \"kv_unstable_std\", \"kv_unstable_sval\", \"max_level_debug\", \"max_level_error\", \"max_level_info\", \"max_level_off\", \"max_level_trace\", \"max_level_warn\", \"release_max_level_debug\", \"release_max_level_error\", \"release_max_level_info\", \"release_max_level_off\", \"release_max_level_trace\", \"release_max_level_warn\", \"serde\", \"std\", \"sval\", \"sval_ref\", \"value-bag\"]","target":1712620997370137394,"profile":1740343547499479105,"path":15066492497359767161,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/log-d8363c283f12dfb5/dep-lib-log"}}],"rustflags":[],"metadata":179143468214550567,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/log-e7c62416bd076488/dep-lib-log b/rust/target/debug/.fingerprint/log-e7c62416bd076488/dep-lib-log new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/log-e7c62416bd076488/dep-lib-log differ diff --git a/rust/target/debug/.fingerprint/log-e7c62416bd076488/invoked.timestamp b/rust/target/debug/.fingerprint/log-e7c62416bd076488/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/log-e7c62416bd076488/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/log-e7c62416bd076488/lib-log b/rust/target/debug/.fingerprint/log-e7c62416bd076488/lib-log new file mode 100644 index 0000000..eb20d69 --- /dev/null +++ b/rust/target/debug/.fingerprint/log-e7c62416bd076488/lib-log @@ -0,0 +1 @@ +0bea26007ccff089 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/log-e7c62416bd076488/lib-log.json b/rust/target/debug/.fingerprint/log-e7c62416bd076488/lib-log.json new file mode 100644 index 0000000..0b2acff --- /dev/null +++ b/rust/target/debug/.fingerprint/log-e7c62416bd076488/lib-log.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[\"kv\", \"kv_serde\", \"kv_std\", \"kv_sval\", \"kv_unstable\", \"kv_unstable_serde\", \"kv_unstable_std\", \"kv_unstable_sval\", \"max_level_debug\", \"max_level_error\", \"max_level_info\", \"max_level_off\", \"max_level_trace\", \"max_level_warn\", \"release_max_level_debug\", \"release_max_level_error\", \"release_max_level_info\", \"release_max_level_off\", \"release_max_level_trace\", \"release_max_level_warn\", \"serde\", \"std\", \"sval\", \"sval_ref\", \"value-bag\"]","target":1712620997370137394,"profile":16690480377348987070,"path":15066492497359767161,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/log-e7c62416bd076488/dep-lib-log"}}],"rustflags":[],"metadata":179143468214550567,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/dep-lib-nanoserde b/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/dep-lib-nanoserde new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/dep-lib-nanoserde differ diff --git a/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/invoked.timestamp b/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/lib-nanoserde b/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/lib-nanoserde new file mode 100644 index 0000000..fa5e3fb --- /dev/null +++ b/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/lib-nanoserde @@ -0,0 +1 @@ +c8d93fd64dff16a7 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/lib-nanoserde.json b/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/lib-nanoserde.json new file mode 100644 index 0000000..f9e76f2 --- /dev/null +++ b/rust/target/debug/.fingerprint/nanoserde-0a1a653c0465b0fa/lib-nanoserde.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"default\"]","declared_features":"[\"default\", \"no_std\"]","target":12290766008008731153,"profile":8861558584828204938,"path":1918968490633723697,"deps":[[1084552378674152874,"nanoserde_derive",false,8868596034261246463]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/nanoserde-0a1a653c0465b0fa/dep-lib-nanoserde"}}],"rustflags":[],"metadata":1904647295093573644,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/dep-lib-nanoserde_derive b/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/dep-lib-nanoserde_derive new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/dep-lib-nanoserde_derive differ diff --git a/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/invoked.timestamp b/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/lib-nanoserde_derive b/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/lib-nanoserde_derive new file mode 100644 index 0000000..ed54365 --- /dev/null +++ b/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/lib-nanoserde_derive @@ -0,0 +1 @@ +ff6194f61a95137b \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/lib-nanoserde_derive.json b/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/lib-nanoserde_derive.json new file mode 100644 index 0000000..6152ff5 --- /dev/null +++ b/rust/target/debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/lib-nanoserde_derive.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"default\"]","declared_features":"[\"default\", \"no_std\"]","target":17928755059422752980,"profile":8861558584828204938,"path":10625188125986921291,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/nanoserde-derive-d08a49a3274bd025/dep-lib-nanoserde_derive"}}],"rustflags":[],"metadata":2463625420538239681,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/dep-lib-paste b/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/dep-lib-paste new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/dep-lib-paste differ diff --git a/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/invoked.timestamp b/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/lib-paste b/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/lib-paste new file mode 100644 index 0000000..01d8df3 --- /dev/null +++ b/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/lib-paste @@ -0,0 +1 @@ +79408a3b15d700d9 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/lib-paste.json b/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/lib-paste.json new file mode 100644 index 0000000..098886a --- /dev/null +++ b/rust/target/debug/.fingerprint/paste-0d1dcf698c89e22c/lib-paste.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[]","target":14034904336473667580,"profile":8861558584828204938,"path":17288607613726698588,"deps":[[3767752438495319636,"build_script_build",false,17963708001915207350]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/paste-0d1dcf698c89e22c/dep-lib-paste"}}],"rustflags":[],"metadata":13015013502493569352,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/paste-18a411df73b9de75/build-script-build-script-build b/rust/target/debug/.fingerprint/paste-18a411df73b9de75/build-script-build-script-build new file mode 100644 index 0000000..535d198 --- /dev/null +++ b/rust/target/debug/.fingerprint/paste-18a411df73b9de75/build-script-build-script-build @@ -0,0 +1 @@ +2c504a40c0fc96e5 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/paste-18a411df73b9de75/build-script-build-script-build.json b/rust/target/debug/.fingerprint/paste-18a411df73b9de75/build-script-build-script-build.json new file mode 100644 index 0000000..0e82cc6 --- /dev/null +++ b/rust/target/debug/.fingerprint/paste-18a411df73b9de75/build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[]","target":13708040221295731214,"profile":8861558584828204938,"path":10613313447199519631,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/paste-18a411df73b9de75/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":13015013502493569352,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/paste-18a411df73b9de75/dep-build-script-build-script-build b/rust/target/debug/.fingerprint/paste-18a411df73b9de75/dep-build-script-build-script-build new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/paste-18a411df73b9de75/dep-build-script-build-script-build differ diff --git a/rust/target/debug/.fingerprint/paste-18a411df73b9de75/invoked.timestamp b/rust/target/debug/.fingerprint/paste-18a411df73b9de75/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/paste-18a411df73b9de75/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/paste-c867b1924af964d4/run-build-script-build-script-build b/rust/target/debug/.fingerprint/paste-c867b1924af964d4/run-build-script-build-script-build new file mode 100644 index 0000000..590f113 --- /dev/null +++ b/rust/target/debug/.fingerprint/paste-c867b1924af964d4/run-build-script-build-script-build @@ -0,0 +1 @@ +b67eff7e40e94bf9 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/paste-c867b1924af964d4/run-build-script-build-script-build.json b/rust/target/debug/.fingerprint/paste-c867b1924af964d4/run-build-script-build-script-build.json new file mode 100644 index 0000000..669276e --- /dev/null +++ b/rust/target/debug/.fingerprint/paste-c867b1924af964d4/run-build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[3767752438495319636,"build_script_build",false,16543688183834628140]],"local":[{"RerunIfChanged":{"output":"debug/build/paste-c867b1924af964d4/output","paths":["build.rs"]}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/proc-macro2-088e3658df3bfa80/run-build-script-build-script-build b/rust/target/debug/.fingerprint/proc-macro2-088e3658df3bfa80/run-build-script-build-script-build new file mode 100644 index 0000000..428df0c --- /dev/null +++ b/rust/target/debug/.fingerprint/proc-macro2-088e3658df3bfa80/run-build-script-build-script-build @@ -0,0 +1 @@ +0c114f564076ec16 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/proc-macro2-088e3658df3bfa80/run-build-script-build-script-build.json b/rust/target/debug/.fingerprint/proc-macro2-088e3658df3bfa80/run-build-script-build-script-build.json new file mode 100644 index 0000000..5b38760 --- /dev/null +++ b/rust/target/debug/.fingerprint/proc-macro2-088e3658df3bfa80/run-build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[18036439996138669183,"build_script_build",false,3048677488204849676]],"local":[{"RerunIfChanged":{"output":"debug/build/proc-macro2-088e3658df3bfa80/output","paths":["build/probe.rs"]}},{"RerunIfEnvChanged":{"var":"RUSTC_BOOTSTRAP","val":null}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/build-script-build-script-build b/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/build-script-build-script-build new file mode 100644 index 0000000..4739294 --- /dev/null +++ b/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/build-script-build-script-build @@ -0,0 +1 @@ +0c222edf05144f2a \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/build-script-build-script-build.json b/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/build-script-build-script-build.json new file mode 100644 index 0000000..0bb4ed8 --- /dev/null +++ b/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/build-script-build-script-build.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"default\", \"proc-macro\"]","declared_features":"[\"default\", \"nightly\", \"proc-macro\", \"span-locations\"]","target":9652763411108993936,"profile":8861558584828204938,"path":1773354680542295123,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/proc-macro2-56b738f29d907136/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":7635439851376710101,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/dep-build-script-build-script-build b/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/dep-build-script-build-script-build new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/dep-build-script-build-script-build differ diff --git a/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/invoked.timestamp b/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/proc-macro2-56b738f29d907136/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/dep-lib-proc_macro2 b/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/dep-lib-proc_macro2 new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/dep-lib-proc_macro2 differ diff --git a/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/invoked.timestamp b/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/lib-proc_macro2 b/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/lib-proc_macro2 new file mode 100644 index 0000000..3bf0d1b --- /dev/null +++ b/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/lib-proc_macro2 @@ -0,0 +1 @@ +bf92b190bef4e793 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/lib-proc_macro2.json b/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/lib-proc_macro2.json new file mode 100644 index 0000000..8ee05e4 --- /dev/null +++ b/rust/target/debug/.fingerprint/proc-macro2-864a640ffc352dc4/lib-proc_macro2.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"default\", \"proc-macro\"]","declared_features":"[\"default\", \"nightly\", \"proc-macro\", \"span-locations\"]","target":12038871347215806054,"profile":8861558584828204938,"path":16206613195010160739,"deps":[[7006636483571730090,"unicode_ident",false,12297167044707062457],[18036439996138669183,"build_script_build",false,1651825182036136204]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/proc-macro2-864a640ffc352dc4/dep-lib-proc_macro2"}}],"rustflags":[],"metadata":7635439851376710101,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/dep-lib-quote b/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/dep-lib-quote new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/dep-lib-quote differ diff --git a/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/invoked.timestamp b/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/lib-quote b/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/lib-quote new file mode 100644 index 0000000..403d55f --- /dev/null +++ b/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/lib-quote @@ -0,0 +1 @@ +a1e83c0788573ba4 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/lib-quote.json b/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/lib-quote.json new file mode 100644 index 0000000..59c8020 --- /dev/null +++ b/rust/target/debug/.fingerprint/quote-37bb756b6b63edfd/lib-quote.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"default\", \"proc-macro\"]","declared_features":"[\"default\", \"proc-macro\"]","target":15344545649967381986,"profile":8861558584828204938,"path":7343558043338216024,"deps":[[18036439996138669183,"proc_macro2",false,10657756142504088255]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/quote-37bb756b6b63edfd/dep-lib-quote"}}],"rustflags":[],"metadata":2717943770976187624,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/dep-lib-regex b/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/dep-lib-regex new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/dep-lib-regex differ diff --git a/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/invoked.timestamp b/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/lib-regex b/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/lib-regex new file mode 100644 index 0000000..73829a0 --- /dev/null +++ b/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/lib-regex @@ -0,0 +1 @@ +ceb054cc7b77a6a2 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/lib-regex.json b/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/lib-regex.json new file mode 100644 index 0000000..32f2482 --- /dev/null +++ b/rust/target/debug/.fingerprint/regex-4254ccb95afa396c/lib-regex.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"std\", \"unicode-bool\", \"unicode-gencat\"]","declared_features":"[\"default\", \"logging\", \"pattern\", \"perf\", \"perf-backtrack\", \"perf-cache\", \"perf-dfa\", \"perf-dfa-full\", \"perf-inline\", \"perf-literal\", \"perf-onepass\", \"std\", \"unicode\", \"unicode-age\", \"unicode-bool\", \"unicode-case\", \"unicode-gencat\", \"unicode-perl\", \"unicode-script\", \"unicode-segment\", \"unstable\", \"use_std\"]","target":9315256552433306347,"profile":8861558584828204938,"path":3109833303519751077,"deps":[[6314779025451150414,"regex_automata",false,13302132176690628150],[9111760993595911334,"regex_syntax",false,8872427934833995610]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/regex-4254ccb95afa396c/dep-lib-regex"}}],"rustflags":[],"metadata":3256615787768725874,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/dep-lib-regex_automata b/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/dep-lib-regex_automata new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/dep-lib-regex_automata differ diff --git a/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/invoked.timestamp b/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/lib-regex_automata b/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/lib-regex_automata new file mode 100644 index 0000000..33e4a3a --- /dev/null +++ b/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/lib-regex_automata @@ -0,0 +1 @@ +3646f0aabcaa9ab8 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/lib-regex_automata.json b/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/lib-regex_automata.json new file mode 100644 index 0000000..038cb31 --- /dev/null +++ b/rust/target/debug/.fingerprint/regex-automata-c83aafb19dc177a2/lib-regex_automata.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"alloc\", \"meta\", \"nfa-pikevm\", \"nfa-thompson\", \"std\", \"syntax\", \"unicode-bool\", \"unicode-gencat\"]","declared_features":"[\"alloc\", \"default\", \"dfa\", \"dfa-build\", \"dfa-onepass\", \"dfa-search\", \"hybrid\", \"internal-instrument\", \"internal-instrument-pikevm\", \"logging\", \"meta\", \"nfa\", \"nfa-backtrack\", \"nfa-pikevm\", \"nfa-thompson\", \"perf\", \"perf-inline\", \"perf-literal\", \"perf-literal-multisubstring\", \"perf-literal-substring\", \"std\", \"syntax\", \"unicode\", \"unicode-age\", \"unicode-bool\", \"unicode-case\", \"unicode-gencat\", \"unicode-perl\", \"unicode-script\", \"unicode-segment\", \"unicode-word-boundary\"]","target":15630646695703972922,"profile":8861558584828204938,"path":17512484357496380965,"deps":[[9111760993595911334,"regex_syntax",false,8872427934833995610]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/regex-automata-c83aafb19dc177a2/dep-lib-regex_automata"}}],"rustflags":[],"metadata":8878122455581797878,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/dep-lib-regex_syntax b/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/dep-lib-regex_syntax new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/dep-lib-regex_syntax differ diff --git a/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/invoked.timestamp b/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/lib-regex_syntax b/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/lib-regex_syntax new file mode 100644 index 0000000..1e6e244 --- /dev/null +++ b/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/lib-regex_syntax @@ -0,0 +1 @@ +5a6f08d73232217b \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/lib-regex_syntax.json b/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/lib-regex_syntax.json new file mode 100644 index 0000000..cfa2d54 --- /dev/null +++ b/rust/target/debug/.fingerprint/regex-syntax-99082beda95db5b8/lib-regex_syntax.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[\"std\", \"unicode-bool\", \"unicode-gencat\"]","declared_features":"[\"arbitrary\", \"default\", \"std\", \"unicode\", \"unicode-age\", \"unicode-bool\", \"unicode-case\", \"unicode-gencat\", \"unicode-perl\", \"unicode-script\", \"unicode-segment\"]","target":4336297695352704405,"profile":8861558584828204938,"path":9460082616045343893,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/regex-syntax-99082beda95db5b8/dep-lib-regex_syntax"}}],"rustflags":[],"metadata":17586400164587752172,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/dep-lib-rust b/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/dep-lib-rust new file mode 100644 index 0000000..fb1fbec Binary files /dev/null and b/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/dep-lib-rust differ diff --git a/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/invoked.timestamp b/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/lib-rust b/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/lib-rust new file mode 100644 index 0000000..d325bfc --- /dev/null +++ b/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/lib-rust @@ -0,0 +1 @@ +3a0379e9a7965893 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/lib-rust.json b/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/lib-rust.json new file mode 100644 index 0000000..72ed6fd --- /dev/null +++ b/rust/target/debug/.fingerprint/rust-a65a2e8241518b79/lib-rust.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[]","target":6758724602745519097,"profile":6929766844333714335,"path":17777289886553719987,"deps":[[3779782577513941982,"godot",false,11212291252797036908],[15399619262696441677,"log",false,9939672509092129291]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/rust-a65a2e8241518b79/dep-lib-rust"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/rust-d19e581f310882e6/dep-test-lib-rust b/rust/target/debug/.fingerprint/rust-d19e581f310882e6/dep-test-lib-rust new file mode 100644 index 0000000..fb1fbec Binary files /dev/null and b/rust/target/debug/.fingerprint/rust-d19e581f310882e6/dep-test-lib-rust differ diff --git a/rust/target/debug/.fingerprint/rust-d19e581f310882e6/invoked.timestamp b/rust/target/debug/.fingerprint/rust-d19e581f310882e6/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/rust-d19e581f310882e6/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/rust-d19e581f310882e6/test-lib-rust b/rust/target/debug/.fingerprint/rust-d19e581f310882e6/test-lib-rust new file mode 100644 index 0000000..7c67128 --- /dev/null +++ b/rust/target/debug/.fingerprint/rust-d19e581f310882e6/test-lib-rust @@ -0,0 +1 @@ +47d6332252081545 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/rust-d19e581f310882e6/test-lib-rust.json b/rust/target/debug/.fingerprint/rust-d19e581f310882e6/test-lib-rust.json new file mode 100644 index 0000000..dfe5b9b --- /dev/null +++ b/rust/target/debug/.fingerprint/rust-d19e581f310882e6/test-lib-rust.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[]","target":6758724602745519097,"profile":6088034271181479411,"path":17777289886553719987,"deps":[[3779782577513941982,"godot",false,16447734289654886320],[15399619262696441677,"log",false,4168750594991502413]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/rust-d19e581f310882e6/dep-test-lib-rust"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/dep-lib-rust b/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/dep-lib-rust new file mode 100644 index 0000000..fb1fbec Binary files /dev/null and b/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/dep-lib-rust differ diff --git a/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/invoked.timestamp b/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/lib-rust b/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/lib-rust new file mode 100644 index 0000000..ca00c49 --- /dev/null +++ b/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/lib-rust @@ -0,0 +1 @@ +111c034a3431b33b \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/lib-rust.json b/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/lib-rust.json new file mode 100644 index 0000000..6d0d5c9 --- /dev/null +++ b/rust/target/debug/.fingerprint/rust-dd7951fd24837acd/lib-rust.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[]","target":6758724602745519097,"profile":3626660381633431854,"path":17777289886553719987,"deps":[[3779782577513941982,"godot",false,16447734289654886320],[15399619262696441677,"log",false,4168750594991502413]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/rust-dd7951fd24837acd/dep-lib-rust"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/dep-lib-unicode_ident b/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/dep-lib-unicode_ident new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/dep-lib-unicode_ident differ diff --git a/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/invoked.timestamp b/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/lib-unicode_ident b/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/lib-unicode_ident new file mode 100644 index 0000000..728f4fc --- /dev/null +++ b/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/lib-unicode_ident @@ -0,0 +1 @@ +b99267234650a8aa \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/lib-unicode_ident.json b/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/lib-unicode_ident.json new file mode 100644 index 0000000..30cb645 --- /dev/null +++ b/rust/target/debug/.fingerprint/unicode-ident-72515b00c2ad622b/lib-unicode_ident.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[]","target":5348417507100068673,"profile":8861558584828204938,"path":4812391113618851477,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/unicode-ident-72515b00c2ad622b/dep-lib-unicode_ident"}}],"rustflags":[],"metadata":1159190378059262574,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/dep-lib-venial b/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/dep-lib-venial new file mode 100644 index 0000000..1b1cb4d Binary files /dev/null and b/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/dep-lib-venial differ diff --git a/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/invoked.timestamp b/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/lib-venial b/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/lib-venial new file mode 100644 index 0000000..9128b0a --- /dev/null +++ b/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/lib-venial @@ -0,0 +1 @@ +6a4eb6b395f2c173 \ No newline at end of file diff --git a/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/lib-venial.json b/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/lib-venial.json new file mode 100644 index 0000000..903f317 --- /dev/null +++ b/rust/target/debug/.fingerprint/venial-cdbb82e1cc1b8131/lib-venial.json @@ -0,0 +1 @@ +{"rustc":2484451964687019519,"features":"[]","declared_features":"[]","target":15289239229131920569,"profile":8861558584828204938,"path":17824495577101824333,"deps":[[17525013869477438691,"quote",false,11834148687594711201],[18036439996138669183,"proc_macro2",false,10657756142504088255]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/venial-cdbb82e1cc1b8131/dep-lib-venial"}}],"rustflags":[],"metadata":18004188985488886746,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/rust/target/debug/build/godot-bindings-8a577aaf2b4a430e/build-script-build b/rust/target/debug/build/godot-bindings-8a577aaf2b4a430e/build-script-build new file mode 100755 index 0000000..f4a0d36 Binary files /dev/null and b/rust/target/debug/build/godot-bindings-8a577aaf2b4a430e/build-script-build differ diff --git a/rust/target/debug/build/godot-bindings-8a577aaf2b4a430e/build_script_build-8a577aaf2b4a430e b/rust/target/debug/build/godot-bindings-8a577aaf2b4a430e/build_script_build-8a577aaf2b4a430e new file mode 100755 index 0000000..f4a0d36 Binary files /dev/null and b/rust/target/debug/build/godot-bindings-8a577aaf2b4a430e/build_script_build-8a577aaf2b4a430e differ diff --git a/rust/target/debug/build/godot-bindings-8a577aaf2b4a430e/build_script_build-8a577aaf2b4a430e.d b/rust/target/debug/build/godot-bindings-8a577aaf2b4a430e/build_script_build-8a577aaf2b4a430e.d new file mode 100644 index 0000000..3a8c348 --- /dev/null +++ b/rust/target/debug/build/godot-bindings-8a577aaf2b4a430e/build_script_build-8a577aaf2b4a430e.d @@ -0,0 +1,5 @@ +/home/nihil/Coding/Godot/Space Salvage Co/rust/target/debug/build/godot-bindings-8a577aaf2b4a430e/build_script_build-8a577aaf2b4a430e: /home/nihil/.cargo/registry/src/index.crates.io-6f17d22bba15001f/godot-bindings-0.2.4/build.rs + +/home/nihil/Coding/Godot/Space Salvage Co/rust/target/debug/build/godot-bindings-8a577aaf2b4a430e/build_script_build-8a577aaf2b4a430e.d: /home/nihil/.cargo/registry/src/index.crates.io-6f17d22bba15001f/godot-bindings-0.2.4/build.rs + +/home/nihil/.cargo/registry/src/index.crates.io-6f17d22bba15001f/godot-bindings-0.2.4/build.rs: diff --git a/rust/target/debug/build/godot-bindings-e92445293a1ce1c9/invoked.timestamp b/rust/target/debug/build/godot-bindings-e92445293a1ce1c9/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/build/godot-bindings-e92445293a1ce1c9/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/build/godot-bindings-e92445293a1ce1c9/output b/rust/target/debug/build/godot-bindings-e92445293a1ce1c9/output new file mode 100644 index 0000000..e69de29 diff --git a/rust/target/debug/build/godot-bindings-e92445293a1ce1c9/root-output b/rust/target/debug/build/godot-bindings-e92445293a1ce1c9/root-output new file mode 100644 index 0000000..b1b21a0 --- /dev/null +++ b/rust/target/debug/build/godot-bindings-e92445293a1ce1c9/root-output @@ -0,0 +1 @@ +/home/nihil/Coding/Godot/Space Salvage Co/rust/target/debug/build/godot-bindings-e92445293a1ce1c9/out \ No newline at end of file diff --git a/rust/target/debug/build/godot-bindings-e92445293a1ce1c9/stderr b/rust/target/debug/build/godot-bindings-e92445293a1ce1c9/stderr new file mode 100644 index 0000000..e69de29 diff --git a/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/invoked.timestamp b/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/output b/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/output new file mode 100644 index 0000000..f89ef72 --- /dev/null +++ b/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/output @@ -0,0 +1,23 @@ +cargo:rustc-check-cfg=cfg(published_docs, values(none())) +cargo:rustc-check-cfg=cfg(since_api, values("4.1")) +cargo:rustc-check-cfg=cfg(before_api, values("4.1")) +cargo:rustc-check-cfg=cfg(since_api, values("4.2")) +cargo:rustc-check-cfg=cfg(before_api, values("4.2")) +cargo:rustc-check-cfg=cfg(since_api, values("4.3")) +cargo:rustc-check-cfg=cfg(before_api, values("4.3")) +cargo:rustc-check-cfg=cfg(since_api, values("4.4")) +cargo:rustc-check-cfg=cfg(before_api, values("4.4")) +cargo:rustc-cfg=since_api="4.1" +cargo:rustc-cfg=since_api="4.2" +cargo:rustc-cfg=since_api="4.3" +cargo:rustc-cfg=before_api="4.4" +cargo:rustc-cfg=before_patch_api="4.1.0" +cargo:rustc-cfg=before_patch_api="4.1.1" +cargo:rustc-cfg=before_patch_api="4.1.2" +cargo:rustc-cfg=before_patch_api="4.1.3" +cargo:rustc-cfg=before_patch_api="4.1.4" +cargo:rustc-cfg=before_patch_api="4.2.0" +cargo:rustc-cfg=before_patch_api="4.2.1" +cargo:rustc-cfg=before_patch_api="4.2.2" +cargo:rustc-cfg=since_patch_api="4.3.0" +cargo:rustc-cfg=since_patch_api="4.4.0" diff --git a/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/root-output b/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/root-output new file mode 100644 index 0000000..fc22ee2 --- /dev/null +++ b/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/root-output @@ -0,0 +1 @@ +/home/nihil/Coding/Godot/Space Salvage Co/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/out \ No newline at end of file diff --git a/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/stderr b/rust/target/debug/build/godot-codegen-5da53cf4d5947ea0/stderr new file mode 100644 index 0000000..e69de29 diff --git a/rust/target/debug/build/godot-codegen-69ab218c83b1b6f5/build-script-build b/rust/target/debug/build/godot-codegen-69ab218c83b1b6f5/build-script-build new file mode 100755 index 0000000..1ad3963 Binary files /dev/null and b/rust/target/debug/build/godot-codegen-69ab218c83b1b6f5/build-script-build differ diff --git a/rust/target/debug/build/godot-codegen-69ab218c83b1b6f5/build_script_build-69ab218c83b1b6f5 b/rust/target/debug/build/godot-codegen-69ab218c83b1b6f5/build_script_build-69ab218c83b1b6f5 new file mode 100755 index 0000000..1ad3963 Binary files /dev/null and b/rust/target/debug/build/godot-codegen-69ab218c83b1b6f5/build_script_build-69ab218c83b1b6f5 differ diff --git a/rust/target/debug/build/godot-codegen-69ab218c83b1b6f5/build_script_build-69ab218c83b1b6f5.d b/rust/target/debug/build/godot-codegen-69ab218c83b1b6f5/build_script_build-69ab218c83b1b6f5.d new file mode 100644 index 0000000..d603d77 --- /dev/null +++ b/rust/target/debug/build/godot-codegen-69ab218c83b1b6f5/build_script_build-69ab218c83b1b6f5.d @@ -0,0 +1,5 @@ +/home/nihil/Coding/Godot/Space Salvage Co/rust/target/debug/build/godot-codegen-69ab218c83b1b6f5/build_script_build-69ab218c83b1b6f5: /home/nihil/.cargo/registry/src/index.crates.io-6f17d22bba15001f/godot-codegen-0.2.4/build.rs + +/home/nihil/Coding/Godot/Space Salvage Co/rust/target/debug/build/godot-codegen-69ab218c83b1b6f5/build_script_build-69ab218c83b1b6f5.d: /home/nihil/.cargo/registry/src/index.crates.io-6f17d22bba15001f/godot-codegen-0.2.4/build.rs + +/home/nihil/.cargo/registry/src/index.crates.io-6f17d22bba15001f/godot-codegen-0.2.4/build.rs: diff --git a/rust/target/debug/build/godot-core-266e8b4c54477ed9/build-script-build b/rust/target/debug/build/godot-core-266e8b4c54477ed9/build-script-build new file mode 100755 index 0000000..9baf25a Binary files /dev/null and b/rust/target/debug/build/godot-core-266e8b4c54477ed9/build-script-build differ diff --git a/rust/target/debug/build/godot-core-266e8b4c54477ed9/build_script_build-266e8b4c54477ed9 b/rust/target/debug/build/godot-core-266e8b4c54477ed9/build_script_build-266e8b4c54477ed9 new file mode 100755 index 0000000..9baf25a Binary files /dev/null and b/rust/target/debug/build/godot-core-266e8b4c54477ed9/build_script_build-266e8b4c54477ed9 differ diff --git a/rust/target/debug/build/godot-core-266e8b4c54477ed9/build_script_build-266e8b4c54477ed9.d b/rust/target/debug/build/godot-core-266e8b4c54477ed9/build_script_build-266e8b4c54477ed9.d new file mode 100644 index 0000000..1ebaa1d --- /dev/null +++ b/rust/target/debug/build/godot-core-266e8b4c54477ed9/build_script_build-266e8b4c54477ed9.d @@ -0,0 +1,5 @@ +/home/nihil/Coding/Godot/Space Salvage Co/rust/target/debug/build/godot-core-266e8b4c54477ed9/build_script_build-266e8b4c54477ed9: /home/nihil/.cargo/registry/src/index.crates.io-6f17d22bba15001f/godot-core-0.2.4/build.rs + +/home/nihil/Coding/Godot/Space Salvage Co/rust/target/debug/build/godot-core-266e8b4c54477ed9/build_script_build-266e8b4c54477ed9.d: /home/nihil/.cargo/registry/src/index.crates.io-6f17d22bba15001f/godot-core-0.2.4/build.rs + +/home/nihil/.cargo/registry/src/index.crates.io-6f17d22bba15001f/godot-core-0.2.4/build.rs: diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/invoked.timestamp b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/aabb.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/aabb.rs new file mode 100644 index 0000000..7bdf04b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/aabb.rs @@ -0,0 +1,223 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerAabb < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerAabb < 'a > { + pub fn from_outer(outer: &Aabb) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn abs(&self,) -> Aabb { + type CallSig = (Aabb,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(363usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "abs", self.sys_ptr, args) + } + } + pub fn get_center(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(364usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "get_center", self.sys_ptr, args) + } + } + pub fn get_volume(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(365usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "get_volume", self.sys_ptr, args) + } + } + pub fn has_volume(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(366usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "has_volume", self.sys_ptr, args) + } + } + pub fn has_surface(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(367usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "has_surface", self.sys_ptr, args) + } + } + pub fn has_point(&self, point: Vector3,) -> bool { + type CallSig = (bool, Vector3); + let args = (point,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(368usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "has_point", self.sys_ptr, args) + } + } + pub fn is_equal_approx(&self, aabb: Aabb,) -> bool { + type CallSig = (bool, Aabb); + let args = (aabb,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(369usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "is_equal_approx", self.sys_ptr, args) + } + } + pub fn is_finite(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(370usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "is_finite", self.sys_ptr, args) + } + } + pub fn intersects(&self, with: Aabb,) -> bool { + type CallSig = (bool, Aabb); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(371usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "intersects", self.sys_ptr, args) + } + } + pub fn encloses(&self, with: Aabb,) -> bool { + type CallSig = (bool, Aabb); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(372usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "encloses", self.sys_ptr, args) + } + } + pub fn intersects_plane(&self, plane: Plane,) -> bool { + type CallSig = (bool, Plane); + let args = (plane,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(373usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "intersects_plane", self.sys_ptr, args) + } + } + pub fn intersection(&self, with: Aabb,) -> Aabb { + type CallSig = (Aabb, Aabb); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(374usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "intersection", self.sys_ptr, args) + } + } + pub fn merge(&self, with: Aabb,) -> Aabb { + type CallSig = (Aabb, Aabb); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(375usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "merge", self.sys_ptr, args) + } + } + pub fn expand(&self, to_point: Vector3,) -> Aabb { + type CallSig = (Aabb, Vector3); + let args = (to_point,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(376usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "expand", self.sys_ptr, args) + } + } + pub fn grow(&self, by: f64,) -> Aabb { + type CallSig = (Aabb, f64); + let args = (by,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(377usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "grow", self.sys_ptr, args) + } + } + pub fn get_support(&self, dir: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (dir,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(378usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "get_support", self.sys_ptr, args) + } + } + pub fn get_longest_axis(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(379usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "get_longest_axis", self.sys_ptr, args) + } + } + pub fn get_longest_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(380usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "get_longest_axis_index", self.sys_ptr, args) + } + } + pub fn get_longest_axis_size(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(381usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "get_longest_axis_size", self.sys_ptr, args) + } + } + pub fn get_shortest_axis(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(382usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "get_shortest_axis", self.sys_ptr, args) + } + } + pub fn get_shortest_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(383usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "get_shortest_axis_index", self.sys_ptr, args) + } + } + pub fn get_shortest_axis_size(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(384usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "get_shortest_axis_size", self.sys_ptr, args) + } + } + pub fn get_endpoint(&self, idx: i64,) -> Vector3 { + type CallSig = (Vector3, i64); + let args = (idx,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(385usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "get_endpoint", self.sys_ptr, args) + } + } + pub fn intersects_segment(&self, from: Vector3, to: Vector3,) -> Variant { + type CallSig = (Variant, Vector3, Vector3); + let args = (from, to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(386usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "intersects_segment", self.sys_ptr, args) + } + } + pub fn intersects_ray(&self, from: Vector3, dir: Vector3,) -> Variant { + type CallSig = (Variant, Vector3, Vector3); + let args = (from, dir,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(387usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Aabb", "intersects_ray", self.sys_ptr, args) + } + } +} +impl Aabb { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/array.rs new file mode 100644 index 0000000..05e2113 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/array.rs @@ -0,0 +1,408 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerArray < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerArray < 'a > { + pub fn from_outer(outer: &VariantArray) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn from_outer_typed < T > (outer: &Array < T >) -> Self where T: crate::meta::ArrayElement { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(632usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(633usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "is_empty", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(634usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "clear", self.sys_ptr, args) + } + } + pub fn hash(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(635usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "hash", self.sys_ptr, args) + } + } + pub fn assign(&mut self, array: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(636usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "assign", self.sys_ptr, args) + } + } + pub fn push_back(&mut self, value: &Variant,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >); + let args = (RefArg::new(value),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(637usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "push_back", self.sys_ptr, args) + } + } + pub fn push_front(&mut self, value: &Variant,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >); + let args = (RefArg::new(value),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(638usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "push_front", self.sys_ptr, args) + } + } + pub fn append(&mut self, value: &Variant,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >); + let args = (RefArg::new(value),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(639usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "append", self.sys_ptr, args) + } + } + pub fn append_array(&mut self, array: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(640usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "append_array", self.sys_ptr, args) + } + } + pub fn resize(&mut self, size: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(641usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "resize", self.sys_ptr, args) + } + } + pub fn insert(&mut self, position: i64, value: &Variant,) -> i64 { + type CallSig < 'a0, > = (i64, i64, RefArg < 'a0, Variant >); + let args = (position, RefArg::new(value),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(642usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "insert", self.sys_ptr, args) + } + } + pub fn remove_at(&mut self, position: i64,) { + type CallSig = ((), i64); + let args = (position,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(643usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "remove_at", self.sys_ptr, args) + } + } + pub fn fill(&mut self, value: &Variant,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >); + let args = (RefArg::new(value),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(644usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "fill", self.sys_ptr, args) + } + } + pub fn erase(&mut self, value: &Variant,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >); + let args = (RefArg::new(value),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(645usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "erase", self.sys_ptr, args) + } + } + pub fn front(&self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(646usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "front", self.sys_ptr, args) + } + } + pub fn back(&self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(647usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "back", self.sys_ptr, args) + } + } + pub fn pick_random(&self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(648usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "pick_random", self.sys_ptr, args) + } + } + pub fn find(&self, what: &Variant, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, RefArg < 'a0, Variant >, i64); + let args = (RefArg::new(what), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(649usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "find", self.sys_ptr, args) + } + } + pub fn rfind(&self, what: &Variant, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, RefArg < 'a0, Variant >, i64); + let args = (RefArg::new(what), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(650usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "rfind", self.sys_ptr, args) + } + } + pub fn count(&self, value: &Variant,) -> i64 { + type CallSig < 'a0, > = (i64, RefArg < 'a0, Variant >); + let args = (RefArg::new(value),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(651usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "count", self.sys_ptr, args) + } + } + pub fn has(&self, value: &Variant,) -> bool { + type CallSig < 'a0, > = (bool, RefArg < 'a0, Variant >); + let args = (RefArg::new(value),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(652usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "has", self.sys_ptr, args) + } + } + pub fn pop_back(&mut self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(653usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "pop_back", self.sys_ptr, args) + } + } + pub fn pop_front(&mut self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(654usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "pop_front", self.sys_ptr, args) + } + } + pub fn pop_at(&mut self, position: i64,) -> Variant { + type CallSig = (Variant, i64); + let args = (position,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(655usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "pop_at", self.sys_ptr, args) + } + } + pub fn sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(656usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "sort", self.sys_ptr, args) + } + } + pub fn sort_custom(&mut self, func: &Callable,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >); + let args = (RefArg::new(func),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(657usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "sort_custom", self.sys_ptr, args) + } + } + pub fn shuffle(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(658usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "shuffle", self.sys_ptr, args) + } + } + pub fn bsearch(&self, value: &Variant, before: bool,) -> i64 { + type CallSig < 'a0, > = (i64, RefArg < 'a0, Variant >, bool); + let args = (RefArg::new(value), before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(659usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "bsearch", self.sys_ptr, args) + } + } + pub fn bsearch_custom(&self, value: &Variant, func: &Callable, before: bool,) -> i64 { + type CallSig < 'a0, 'a1, > = (i64, RefArg < 'a0, Variant >, RefArg < 'a1, Callable >, bool); + let args = (RefArg::new(value), RefArg::new(func), before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(660usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "bsearch_custom", self.sys_ptr, args) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(661usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "reverse", self.sys_ptr, args) + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" You must ensure that the returned array fulfils the safety invariants of [`Array`](crate::builtin::Array)."] + pub unsafe fn duplicate(&self, deep: bool,) -> VariantArray { + type CallSig = (VariantArray, bool); + let args = (deep,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(662usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "duplicate", self.sys_ptr, args) + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" You must ensure that the returned array fulfils the safety invariants of [`Array`](crate::builtin::Array)."] + pub unsafe fn slice(&self, begin: i64, end: i64, step: i64, deep: bool,) -> VariantArray { + type CallSig = (VariantArray, i64, i64, i64, bool); + let args = (begin, end, step, deep,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(663usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "slice", self.sys_ptr, args) + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" You must ensure that the returned array fulfils the safety invariants of [`Array`](crate::builtin::Array)."] + pub unsafe fn filter(&self, method: &Callable,) -> VariantArray { + type CallSig < 'a0, > = (VariantArray, RefArg < 'a0, Callable >); + let args = (RefArg::new(method),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(664usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "filter", self.sys_ptr, args) + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" You must ensure that the returned array fulfils the safety invariants of [`Array`](crate::builtin::Array)."] + pub unsafe fn map(&self, method: &Callable,) -> VariantArray { + type CallSig < 'a0, > = (VariantArray, RefArg < 'a0, Callable >); + let args = (RefArg::new(method),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(665usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "map", self.sys_ptr, args) + } + } + pub fn reduce(&self, method: &Callable, accum: &Variant,) -> Variant { + type CallSig < 'a0, 'a1, > = (Variant, RefArg < 'a0, Callable >, RefArg < 'a1, Variant >); + let args = (RefArg::new(method), RefArg::new(accum),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(666usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "reduce", self.sys_ptr, args) + } + } + pub fn any(&self, method: &Callable,) -> bool { + type CallSig < 'a0, > = (bool, RefArg < 'a0, Callable >); + let args = (RefArg::new(method),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(667usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "any", self.sys_ptr, args) + } + } + pub fn all(&self, method: &Callable,) -> bool { + type CallSig < 'a0, > = (bool, RefArg < 'a0, Callable >); + let args = (RefArg::new(method),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(668usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "all", self.sys_ptr, args) + } + } + pub fn max(&self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(669usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "max", self.sys_ptr, args) + } + } + pub fn min(&self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(670usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "min", self.sys_ptr, args) + } + } + pub fn is_typed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(671usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "is_typed", self.sys_ptr, args) + } + } + pub fn is_same_typed(&self, array: &VariantArray,) -> bool { + type CallSig < 'a0, > = (bool, RefArg < 'a0, VariantArray >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(672usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "is_same_typed", self.sys_ptr, args) + } + } + pub fn get_typed_builtin(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(673usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "get_typed_builtin", self.sys_ptr, args) + } + } + pub fn get_typed_class_name(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(674usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "get_typed_class_name", self.sys_ptr, args) + } + } + pub fn get_typed_script(&self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(675usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "get_typed_script", self.sys_ptr, args) + } + } + pub fn make_read_only(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(676usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "make_read_only", self.sys_ptr, args) + } + } + pub fn is_read_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(677usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Array", "is_read_only", self.sys_ptr, args) + } + } +} +impl VariantArray { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/basis.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/basis.rs new file mode 100644 index 0000000..42d158f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/basis.rs @@ -0,0 +1,175 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerBasis < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerBasis < 'a > { + pub fn from_outer(outer: &Basis) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn inverse(&self,) -> Basis { + type CallSig = (Basis,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(388usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "inverse", self.sys_ptr, args) + } + } + pub fn transposed(&self,) -> Basis { + type CallSig = (Basis,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(389usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "transposed", self.sys_ptr, args) + } + } + pub fn orthonormalized(&self,) -> Basis { + type CallSig = (Basis,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(390usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "orthonormalized", self.sys_ptr, args) + } + } + pub fn determinant(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(391usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "determinant", self.sys_ptr, args) + } + } + pub fn rotated(&self, axis: Vector3, angle: f64,) -> Basis { + type CallSig = (Basis, Vector3, f64); + let args = (axis, angle,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(392usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "rotated", self.sys_ptr, args) + } + } + pub fn scaled(&self, scale: Vector3,) -> Basis { + type CallSig = (Basis, Vector3); + let args = (scale,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(393usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "scaled", self.sys_ptr, args) + } + } + pub fn get_scale(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(394usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "get_scale", self.sys_ptr, args) + } + } + pub fn get_euler(&self, order: i64,) -> Vector3 { + type CallSig = (Vector3, i64); + let args = (order,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(395usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "get_euler", self.sys_ptr, args) + } + } + pub fn tdotx(&self, with: Vector3,) -> f64 { + type CallSig = (f64, Vector3); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(396usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "tdotx", self.sys_ptr, args) + } + } + pub fn tdoty(&self, with: Vector3,) -> f64 { + type CallSig = (f64, Vector3); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(397usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "tdoty", self.sys_ptr, args) + } + } + pub fn tdotz(&self, with: Vector3,) -> f64 { + type CallSig = (f64, Vector3); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(398usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "tdotz", self.sys_ptr, args) + } + } + pub fn slerp(&self, to: Basis, weight: f64,) -> Basis { + type CallSig = (Basis, Basis, f64); + let args = (to, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(399usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "slerp", self.sys_ptr, args) + } + } + pub fn is_conformal(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(400usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "is_conformal", self.sys_ptr, args) + } + } + pub fn is_equal_approx(&self, b: Basis,) -> bool { + type CallSig = (bool, Basis); + let args = (b,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(401usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "is_equal_approx", self.sys_ptr, args) + } + } + pub fn is_finite(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(402usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "is_finite", self.sys_ptr, args) + } + } + pub fn get_rotation_quaternion(&self,) -> Quaternion { + type CallSig = (Quaternion,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(403usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "get_rotation_quaternion", self.sys_ptr, args) + } + } + pub fn looking_at(target: Vector3, up: Vector3, use_model_front: bool,) -> Basis { + type CallSig = (Basis, Vector3, Vector3, bool); + let args = (target, up, use_model_front,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(404usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "looking_at", std::ptr::null_mut(), args) + } + } + pub fn from_scale(scale: Vector3,) -> Basis { + type CallSig = (Basis, Vector3); + let args = (scale,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(405usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "from_scale", std::ptr::null_mut(), args) + } + } + pub fn from_euler(euler: Vector3, order: i64,) -> Basis { + type CallSig = (Basis, Vector3, i64); + let args = (euler, order,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(406usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Basis", "from_euler", std::ptr::null_mut(), args) + } + } +} +impl Basis { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/callable.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/callable.rs new file mode 100644 index 0000000..8f958ce --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/callable.rs @@ -0,0 +1,182 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerCallable < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerCallable < 'a > { + pub fn from_outer(outer: &Callable) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn create(variant: &Variant, method: impl AsArg < StringName >,) -> Callable { + type CallSig < 'a0, 'a1, > = (Callable, RefArg < 'a0, Variant >, CowArg < 'a1, StringName >); + let args = (RefArg::new(variant), method.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(585usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "create", std::ptr::null_mut(), args) + } + } + pub fn callv(&self, arguments: &VariantArray,) -> Variant { + type CallSig < 'a0, > = (Variant, RefArg < 'a0, VariantArray >); + let args = (RefArg::new(arguments),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(586usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "callv", self.sys_ptr, args) + } + } + pub fn is_null(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(587usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "is_null", self.sys_ptr, args) + } + } + pub fn is_custom(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(588usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "is_custom", self.sys_ptr, args) + } + } + pub fn is_standard(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(589usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "is_standard", self.sys_ptr, args) + } + } + pub fn is_valid(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(590usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "is_valid", self.sys_ptr, args) + } + } + pub fn get_object(&self,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(591usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "get_object", self.sys_ptr, args) + } + } + pub fn get_object_id(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(592usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "get_object_id", self.sys_ptr, args) + } + } + pub fn get_method(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(593usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "get_method", self.sys_ptr, args) + } + } + pub fn get_argument_count(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(594usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "get_argument_count", self.sys_ptr, args) + } + } + pub fn get_bound_arguments_count(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(595usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "get_bound_arguments_count", self.sys_ptr, args) + } + } + pub fn hash(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(597usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "hash", self.sys_ptr, args) + } + } + pub fn bindv(&mut self, arguments: &VariantArray,) -> Callable { + type CallSig < 'a0, > = (Callable, RefArg < 'a0, VariantArray >); + let args = (RefArg::new(arguments),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(598usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "bindv", self.sys_ptr, args) + } + } + pub fn unbind(&self, argcount: i64,) -> Callable { + type CallSig = (Callable, i64); + let args = (argcount,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(599usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "unbind", self.sys_ptr, args) + } + } +} +impl Callable { + pub fn get_bound_arguments(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(596usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Callable", "get_bound_arguments", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn call(&self, varargs: &[Variant]) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(600usize); + < CallSig as VarcallSignatureTuple > ::out_builtin_ptrcall_varargs(method_bind, "Callable", "call", sys::SysPtr::force_mut(self.sys()), args, varargs) + } + } + pub fn call_deferred(&self, varargs: &[Variant]) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(601usize); + < CallSig as VarcallSignatureTuple > ::out_builtin_ptrcall_varargs(method_bind, "Callable", "call_deferred", sys::SysPtr::force_mut(self.sys()), args, varargs) + } + } + pub fn rpc(&self, varargs: &[Variant]) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(602usize); + < CallSig as VarcallSignatureTuple > ::out_builtin_ptrcall_varargs(method_bind, "Callable", "rpc", sys::SysPtr::force_mut(self.sys()), args, varargs) + } + } + pub fn rpc_id(&self, peer_id: i64, varargs: &[Variant]) { + type CallSig = ((), i64); + let args = (peer_id,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(603usize); + < CallSig as VarcallSignatureTuple > ::out_builtin_ptrcall_varargs(method_bind, "Callable", "rpc_id", sys::SysPtr::force_mut(self.sys()), args, varargs) + } + } + pub fn bind(&self, varargs: &[Variant]) -> Callable { + type CallSig = (Callable,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(604usize); + < CallSig as VarcallSignatureTuple > ::out_builtin_ptrcall_varargs(method_bind, "Callable", "bind", sys::SysPtr::force_mut(self.sys()), args, varargs) + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/color.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/color.rs new file mode 100644 index 0000000..2df4d4a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/color.rs @@ -0,0 +1,223 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerColor < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerColor < 'a > { + pub fn from_outer(outer: &Color) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn to_argb32(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(446usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "to_argb32", self.sys_ptr, args) + } + } + pub fn to_abgr32(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(447usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "to_abgr32", self.sys_ptr, args) + } + } + pub fn to_rgba32(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(448usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "to_rgba32", self.sys_ptr, args) + } + } + pub fn to_argb64(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(449usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "to_argb64", self.sys_ptr, args) + } + } + pub fn to_abgr64(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(450usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "to_abgr64", self.sys_ptr, args) + } + } + pub fn to_rgba64(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(451usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "to_rgba64", self.sys_ptr, args) + } + } + pub fn to_html(&self, with_alpha: bool,) -> GString { + type CallSig = (GString, bool); + let args = (with_alpha,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(452usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "to_html", self.sys_ptr, args) + } + } + pub fn clamp(&self, min: Color, max: Color,) -> Color { + type CallSig = (Color, Color, Color); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(453usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "clamp", self.sys_ptr, args) + } + } + pub fn inverted(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(454usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "inverted", self.sys_ptr, args) + } + } + pub fn lerp(&self, to: Color, weight: f64,) -> Color { + type CallSig = (Color, Color, f64); + let args = (to, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(455usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "lerp", self.sys_ptr, args) + } + } + pub fn lightened(&self, amount: f64,) -> Color { + type CallSig = (Color, f64); + let args = (amount,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(456usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "lightened", self.sys_ptr, args) + } + } + pub fn darkened(&self, amount: f64,) -> Color { + type CallSig = (Color, f64); + let args = (amount,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(457usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "darkened", self.sys_ptr, args) + } + } + pub fn blend(&self, over: Color,) -> Color { + type CallSig = (Color, Color); + let args = (over,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(458usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "blend", self.sys_ptr, args) + } + } + pub fn get_luminance(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(459usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "get_luminance", self.sys_ptr, args) + } + } + pub fn srgb_to_linear(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(460usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "srgb_to_linear", self.sys_ptr, args) + } + } + pub fn linear_to_srgb(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(461usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "linear_to_srgb", self.sys_ptr, args) + } + } + pub fn is_equal_approx(&self, to: Color,) -> bool { + type CallSig = (bool, Color); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(462usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "is_equal_approx", self.sys_ptr, args) + } + } + pub fn hex(hex: i64,) -> Color { + type CallSig = (Color, i64); + let args = (hex,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(463usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "hex", std::ptr::null_mut(), args) + } + } + pub fn hex64(hex: i64,) -> Color { + type CallSig = (Color, i64); + let args = (hex,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(464usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "hex64", std::ptr::null_mut(), args) + } + } + pub fn html(rgba: impl AsArg < GString >,) -> Color { + type CallSig < 'a0, > = (Color, CowArg < 'a0, GString >); + let args = (rgba.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(465usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "html", std::ptr::null_mut(), args) + } + } + pub fn html_is_valid(color: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (color.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(466usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "html_is_valid", std::ptr::null_mut(), args) + } + } + pub fn from_string(str: impl AsArg < GString >, default: Color,) -> Color { + type CallSig < 'a0, > = (Color, CowArg < 'a0, GString >, Color); + let args = (str.into_arg(), default,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(467usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "from_string", std::ptr::null_mut(), args) + } + } + pub fn from_hsv(h: f64, s: f64, v: f64, alpha: f64,) -> Color { + type CallSig = (Color, f64, f64, f64, f64); + let args = (h, s, v, alpha,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(468usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "from_hsv", std::ptr::null_mut(), args) + } + } + pub fn from_ok_hsl(h: f64, s: f64, l: f64, alpha: f64,) -> Color { + type CallSig = (Color, f64, f64, f64, f64); + let args = (h, s, l, alpha,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(469usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "from_ok_hsl", std::ptr::null_mut(), args) + } + } + pub fn from_rgbe9995(rgbe: i64,) -> Color { + type CallSig = (Color, i64); + let args = (rgbe,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(470usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Color", "from_rgbe9995", std::ptr::null_mut(), args) + } + } +} +impl Color { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/dictionary.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/dictionary.rs new file mode 100644 index 0000000..dca3c53 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/dictionary.rs @@ -0,0 +1,167 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerDictionary < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerDictionary < 'a > { + pub fn from_outer(outer: &Dictionary) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(614usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(615usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "is_empty", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(616usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "clear", self.sys_ptr, args) + } + } + pub fn merge(&mut self, dictionary: &Dictionary, overwrite: bool,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >, bool); + let args = (RefArg::new(dictionary), overwrite,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(617usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "merge", self.sys_ptr, args) + } + } + pub fn merged(&self, dictionary: &Dictionary, overwrite: bool,) -> Dictionary { + type CallSig < 'a0, > = (Dictionary, RefArg < 'a0, Dictionary >, bool); + let args = (RefArg::new(dictionary), overwrite,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(618usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "merged", self.sys_ptr, args) + } + } + pub fn has(&self, key: &Variant,) -> bool { + type CallSig < 'a0, > = (bool, RefArg < 'a0, Variant >); + let args = (RefArg::new(key),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(619usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "has", self.sys_ptr, args) + } + } + pub fn has_all(&self, keys: &VariantArray,) -> bool { + type CallSig < 'a0, > = (bool, RefArg < 'a0, VariantArray >); + let args = (RefArg::new(keys),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(620usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "has_all", self.sys_ptr, args) + } + } + pub fn find_key(&self, value: &Variant,) -> Variant { + type CallSig < 'a0, > = (Variant, RefArg < 'a0, Variant >); + let args = (RefArg::new(value),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(621usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "find_key", self.sys_ptr, args) + } + } + pub fn erase(&mut self, key: &Variant,) -> bool { + type CallSig < 'a0, > = (bool, RefArg < 'a0, Variant >); + let args = (RefArg::new(key),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(622usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "erase", self.sys_ptr, args) + } + } + pub fn hash(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(623usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "hash", self.sys_ptr, args) + } + } + pub fn keys(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(624usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "keys", self.sys_ptr, args) + } + } + pub fn values(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(625usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "values", self.sys_ptr, args) + } + } + pub fn duplicate(&self, deep: bool,) -> Dictionary { + type CallSig = (Dictionary, bool); + let args = (deep,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(626usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "duplicate", self.sys_ptr, args) + } + } + pub fn get(&self, key: &Variant, default: &Variant,) -> Variant { + type CallSig < 'a0, 'a1, > = (Variant, RefArg < 'a0, Variant >, RefArg < 'a1, Variant >); + let args = (RefArg::new(key), RefArg::new(default),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(627usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "get", self.sys_ptr, args) + } + } + pub fn get_or_add(&mut self, key: &Variant, default: &Variant,) -> Variant { + type CallSig < 'a0, 'a1, > = (Variant, RefArg < 'a0, Variant >, RefArg < 'a1, Variant >); + let args = (RefArg::new(key), RefArg::new(default),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(628usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "get_or_add", self.sys_ptr, args) + } + } + pub fn make_read_only(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(629usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "make_read_only", self.sys_ptr, args) + } + } + pub fn is_read_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(630usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "is_read_only", self.sys_ptr, args) + } + } + pub fn recursive_equal(&self, dictionary: &Dictionary, recursion_count: i64,) -> bool { + type CallSig < 'a0, > = (bool, RefArg < 'a0, Dictionary >, i64); + let args = (RefArg::new(dictionary), recursion_count,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(631usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Dictionary", "recursive_equal", self.sys_ptr, args) + } + } +} +impl Dictionary { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/mod.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/mod.rs new file mode 100644 index 0000000..4891069 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/mod.rs @@ -0,0 +1,68 @@ +mod string; +pub use string::InnerString; +mod vector2; +pub use vector2::InnerVector2; +mod vector2i; +pub use vector2i::InnerVector2i; +mod rect2; +pub use rect2::InnerRect2; +mod rect2i; +pub use rect2i::InnerRect2i; +mod vector3; +pub use vector3::InnerVector3; +mod vector3i; +pub use vector3i::InnerVector3i; +mod transform_2d; +pub use transform_2d::InnerTransform2D; +mod vector4; +pub use vector4::InnerVector4; +mod vector4i; +pub use vector4i::InnerVector4i; +mod plane; +pub use plane::InnerPlane; +mod quaternion; +pub use quaternion::InnerQuaternion; +mod aabb; +pub use aabb::InnerAabb; +mod basis; +pub use basis::InnerBasis; +mod transform_3d; +pub use transform_3d::InnerTransform3D; +mod projection; +pub use projection::InnerProjection; +mod color; +pub use color::InnerColor; +mod string_name; +pub use string_name::InnerStringName; +mod node_path; +pub use node_path::InnerNodePath; +mod rid; +pub use rid::InnerRid; +mod callable; +pub use callable::InnerCallable; +mod signal; +pub use signal::InnerSignal; +mod dictionary; +pub use dictionary::InnerDictionary; +mod array; +pub use array::InnerArray; +mod packed_byte_array; +pub use packed_byte_array::InnerPackedByteArray; +mod packed_int32_array; +pub use packed_int32_array::InnerPackedInt32Array; +mod packed_int64_array; +pub use packed_int64_array::InnerPackedInt64Array; +mod packed_float32_array; +pub use packed_float32_array::InnerPackedFloat32Array; +mod packed_float64_array; +pub use packed_float64_array::InnerPackedFloat64Array; +mod packed_string_array; +pub use packed_string_array::InnerPackedStringArray; +mod packed_vector2_array; +pub use packed_vector2_array::InnerPackedVector2Array; +mod packed_vector3_array; +pub use packed_vector3_array::InnerPackedVector3Array; +mod packed_color_array; +pub use packed_color_array::InnerPackedColorArray; +mod packed_vector4_array; +pub use packed_vector4_array::InnerPackedVector4Array; diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/node_path.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/node_path.rs new file mode 100644 index 0000000..e57810a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/node_path.rs @@ -0,0 +1,110 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerNodePath < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerNodePath < 'a > { + pub fn from_outer(outer: &NodePath) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn get_name_count(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(573usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "NodePath", "get_name_count", self.sys_ptr, args) + } + } + pub fn get_name(&self, idx: i64,) -> StringName { + type CallSig = (StringName, i64); + let args = (idx,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(574usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "NodePath", "get_name", self.sys_ptr, args) + } + } + pub fn get_subname_count(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(575usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "NodePath", "get_subname_count", self.sys_ptr, args) + } + } + pub fn hash(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(576usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "NodePath", "hash", self.sys_ptr, args) + } + } + pub fn get_subname(&self, idx: i64,) -> StringName { + type CallSig = (StringName, i64); + let args = (idx,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(577usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "NodePath", "get_subname", self.sys_ptr, args) + } + } + pub fn slice(&self, begin: i64, end: i64,) -> NodePath { + type CallSig = (NodePath, i64, i64); + let args = (begin, end,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(580usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "NodePath", "slice", self.sys_ptr, args) + } + } +} +impl NodePath { + pub fn is_absolute(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(572usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "NodePath", "is_absolute", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_concatenated_names(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(578usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "NodePath", "get_concatenated_names", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_concatenated_subnames(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(579usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "NodePath", "get_concatenated_subnames", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_as_property_path(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(581usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "NodePath", "get_as_property_path", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(582usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "NodePath", "is_empty", sys::SysPtr::force_mut(self.sys()), args) + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_byte_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_byte_array.rs new file mode 100644 index 0000000..ed79369 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_byte_array.rs @@ -0,0 +1,494 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerPackedByteArray < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerPackedByteArray < 'a > { + pub fn from_outer(outer: &PackedByteArray) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(678usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(679usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "is_empty", self.sys_ptr, args) + } + } + pub fn set(&mut self, index: i64, value: i64,) { + type CallSig = ((), i64, i64); + let args = (index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(680usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "set", self.sys_ptr, args) + } + } + pub fn push_back(&mut self, value: i64,) -> bool { + type CallSig = (bool, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(681usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "push_back", self.sys_ptr, args) + } + } + pub fn append(&mut self, value: i64,) -> bool { + type CallSig = (bool, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(682usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "append", self.sys_ptr, args) + } + } + pub fn append_array(&mut self, array: &PackedByteArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(683usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "append_array", self.sys_ptr, args) + } + } + pub fn remove_at(&mut self, index: i64,) { + type CallSig = ((), i64); + let args = (index,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(684usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "remove_at", self.sys_ptr, args) + } + } + pub fn insert(&mut self, at_index: i64, value: i64,) -> i64 { + type CallSig = (i64, i64, i64); + let args = (at_index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(685usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "insert", self.sys_ptr, args) + } + } + pub fn fill(&mut self, value: i64,) { + type CallSig = ((), i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(686usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "fill", self.sys_ptr, args) + } + } + pub fn resize(&mut self, new_size: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (new_size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(687usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "resize", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(688usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "clear", self.sys_ptr, args) + } + } + pub fn has(&self, value: i64,) -> bool { + type CallSig = (bool, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(689usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "has", self.sys_ptr, args) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(690usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "reverse", self.sys_ptr, args) + } + } + pub fn slice(&self, begin: i64, end: i64,) -> PackedByteArray { + type CallSig = (PackedByteArray, i64, i64); + let args = (begin, end,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(691usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "slice", self.sys_ptr, args) + } + } + pub fn sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(692usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "sort", self.sys_ptr, args) + } + } + pub fn bsearch(&mut self, value: i64, before: bool,) -> i64 { + type CallSig = (i64, i64, bool); + let args = (value, before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(693usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "bsearch", self.sys_ptr, args) + } + } + pub fn duplicate(&mut self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(694usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "duplicate", self.sys_ptr, args) + } + } + pub fn find(&self, value: i64, from: i64,) -> i64 { + type CallSig = (i64, i64, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(695usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "find", self.sys_ptr, args) + } + } + pub fn rfind(&self, value: i64, from: i64,) -> i64 { + type CallSig = (i64, i64, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(696usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "rfind", self.sys_ptr, args) + } + } + pub fn count(&self, value: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(697usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "count", self.sys_ptr, args) + } + } + pub fn compress(&self, compression_mode: i64,) -> PackedByteArray { + type CallSig = (PackedByteArray, i64); + let args = (compression_mode,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(704usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "compress", self.sys_ptr, args) + } + } + pub fn decompress(&self, buffer_size: i64, compression_mode: i64,) -> PackedByteArray { + type CallSig = (PackedByteArray, i64, i64); + let args = (buffer_size, compression_mode,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(705usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decompress", self.sys_ptr, args) + } + } + pub fn decompress_dynamic(&self, max_output_size: i64, compression_mode: i64,) -> PackedByteArray { + type CallSig = (PackedByteArray, i64, i64); + let args = (max_output_size, compression_mode,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(706usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decompress_dynamic", self.sys_ptr, args) + } + } + pub fn decode_u8(&self, byte_offset: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (byte_offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(707usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_u8", self.sys_ptr, args) + } + } + pub fn decode_s8(&self, byte_offset: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (byte_offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(708usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_s8", self.sys_ptr, args) + } + } + pub fn decode_u16(&self, byte_offset: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (byte_offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(709usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_u16", self.sys_ptr, args) + } + } + pub fn decode_s16(&self, byte_offset: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (byte_offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(710usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_s16", self.sys_ptr, args) + } + } + pub fn decode_u32(&self, byte_offset: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (byte_offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(711usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_u32", self.sys_ptr, args) + } + } + pub fn decode_s32(&self, byte_offset: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (byte_offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(712usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_s32", self.sys_ptr, args) + } + } + pub fn decode_u64(&self, byte_offset: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (byte_offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(713usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_u64", self.sys_ptr, args) + } + } + pub fn decode_s64(&self, byte_offset: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (byte_offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(714usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_s64", self.sys_ptr, args) + } + } + pub fn decode_half(&self, byte_offset: i64,) -> f64 { + type CallSig = (f64, i64); + let args = (byte_offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(715usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_half", self.sys_ptr, args) + } + } + pub fn decode_float(&self, byte_offset: i64,) -> f64 { + type CallSig = (f64, i64); + let args = (byte_offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(716usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_float", self.sys_ptr, args) + } + } + pub fn decode_double(&self, byte_offset: i64,) -> f64 { + type CallSig = (f64, i64); + let args = (byte_offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(717usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_double", self.sys_ptr, args) + } + } + pub fn has_encoded_var(&self, byte_offset: i64, allow_objects: bool,) -> bool { + type CallSig = (bool, i64, bool); + let args = (byte_offset, allow_objects,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(718usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "has_encoded_var", self.sys_ptr, args) + } + } + pub fn decode_var(&self, byte_offset: i64, allow_objects: bool,) -> Variant { + type CallSig = (Variant, i64, bool); + let args = (byte_offset, allow_objects,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(719usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_var", self.sys_ptr, args) + } + } + pub fn decode_var_size(&self, byte_offset: i64, allow_objects: bool,) -> i64 { + type CallSig = (i64, i64, bool); + let args = (byte_offset, allow_objects,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(720usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "decode_var_size", self.sys_ptr, args) + } + } + pub fn to_int32_array(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(721usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "to_int32_array", self.sys_ptr, args) + } + } + pub fn to_int64_array(&self,) -> PackedInt64Array { + type CallSig = (PackedInt64Array,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(722usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "to_int64_array", self.sys_ptr, args) + } + } + pub fn to_float32_array(&self,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(723usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "to_float32_array", self.sys_ptr, args) + } + } + pub fn to_float64_array(&self,) -> PackedFloat64Array { + type CallSig = (PackedFloat64Array,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(724usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "to_float64_array", self.sys_ptr, args) + } + } + pub fn encode_u8(&mut self, byte_offset: i64, value: i64,) { + type CallSig = ((), i64, i64); + let args = (byte_offset, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(725usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_u8", self.sys_ptr, args) + } + } + pub fn encode_s8(&mut self, byte_offset: i64, value: i64,) { + type CallSig = ((), i64, i64); + let args = (byte_offset, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(726usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_s8", self.sys_ptr, args) + } + } + pub fn encode_u16(&mut self, byte_offset: i64, value: i64,) { + type CallSig = ((), i64, i64); + let args = (byte_offset, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(727usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_u16", self.sys_ptr, args) + } + } + pub fn encode_s16(&mut self, byte_offset: i64, value: i64,) { + type CallSig = ((), i64, i64); + let args = (byte_offset, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(728usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_s16", self.sys_ptr, args) + } + } + pub fn encode_u32(&mut self, byte_offset: i64, value: i64,) { + type CallSig = ((), i64, i64); + let args = (byte_offset, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(729usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_u32", self.sys_ptr, args) + } + } + pub fn encode_s32(&mut self, byte_offset: i64, value: i64,) { + type CallSig = ((), i64, i64); + let args = (byte_offset, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(730usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_s32", self.sys_ptr, args) + } + } + pub fn encode_u64(&mut self, byte_offset: i64, value: i64,) { + type CallSig = ((), i64, i64); + let args = (byte_offset, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(731usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_u64", self.sys_ptr, args) + } + } + pub fn encode_s64(&mut self, byte_offset: i64, value: i64,) { + type CallSig = ((), i64, i64); + let args = (byte_offset, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(732usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_s64", self.sys_ptr, args) + } + } + pub fn encode_half(&mut self, byte_offset: i64, value: f64,) { + type CallSig = ((), i64, f64); + let args = (byte_offset, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(733usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_half", self.sys_ptr, args) + } + } + pub fn encode_float(&mut self, byte_offset: i64, value: f64,) { + type CallSig = ((), i64, f64); + let args = (byte_offset, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(734usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_float", self.sys_ptr, args) + } + } + pub fn encode_double(&mut self, byte_offset: i64, value: f64,) { + type CallSig = ((), i64, f64); + let args = (byte_offset, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(735usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_double", self.sys_ptr, args) + } + } + pub fn encode_var(&mut self, byte_offset: i64, value: &Variant, allow_objects: bool,) -> i64 { + type CallSig < 'a0, > = (i64, i64, RefArg < 'a0, Variant >, bool); + let args = (byte_offset, RefArg::new(value), allow_objects,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(736usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "encode_var", self.sys_ptr, args) + } + } +} +impl PackedByteArray { + pub fn get_string_from_ascii(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(698usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "get_string_from_ascii", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_string_from_utf8(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(699usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "get_string_from_utf8", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_string_from_utf16(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(700usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "get_string_from_utf16", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_string_from_utf32(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(701usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "get_string_from_utf32", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_string_from_wchar(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(702usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "get_string_from_wchar", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn hex_encode(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(703usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedByteArray", "hex_encode", sys::SysPtr::force_mut(self.sys()), args) + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_color_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_color_array.rs new file mode 100644 index 0000000..8891e6e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_color_array.rs @@ -0,0 +1,191 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerPackedColorArray < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerPackedColorArray < 'a > { + pub fn from_outer(outer: &PackedColorArray) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(884usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(885usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "is_empty", self.sys_ptr, args) + } + } + pub fn set(&mut self, index: i64, value: Color,) { + type CallSig = ((), i64, Color); + let args = (index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(886usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "set", self.sys_ptr, args) + } + } + pub fn push_back(&mut self, value: Color,) -> bool { + type CallSig = (bool, Color); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(887usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "push_back", self.sys_ptr, args) + } + } + pub fn append(&mut self, value: Color,) -> bool { + type CallSig = (bool, Color); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(888usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "append", self.sys_ptr, args) + } + } + pub fn append_array(&mut self, array: &PackedColorArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedColorArray >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(889usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "append_array", self.sys_ptr, args) + } + } + pub fn remove_at(&mut self, index: i64,) { + type CallSig = ((), i64); + let args = (index,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(890usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "remove_at", self.sys_ptr, args) + } + } + pub fn insert(&mut self, at_index: i64, value: Color,) -> i64 { + type CallSig = (i64, i64, Color); + let args = (at_index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(891usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "insert", self.sys_ptr, args) + } + } + pub fn fill(&mut self, value: Color,) { + type CallSig = ((), Color); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(892usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "fill", self.sys_ptr, args) + } + } + pub fn resize(&mut self, new_size: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (new_size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(893usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "resize", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(894usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "clear", self.sys_ptr, args) + } + } + pub fn has(&self, value: Color,) -> bool { + type CallSig = (bool, Color); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(895usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "has", self.sys_ptr, args) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(896usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "reverse", self.sys_ptr, args) + } + } + pub fn slice(&self, begin: i64, end: i64,) -> PackedColorArray { + type CallSig = (PackedColorArray, i64, i64); + let args = (begin, end,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(897usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "slice", self.sys_ptr, args) + } + } + pub fn to_byte_array(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(898usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "to_byte_array", self.sys_ptr, args) + } + } + pub fn sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(899usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "sort", self.sys_ptr, args) + } + } + pub fn bsearch(&mut self, value: Color, before: bool,) -> i64 { + type CallSig = (i64, Color, bool); + let args = (value, before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(900usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "bsearch", self.sys_ptr, args) + } + } + pub fn duplicate(&mut self,) -> PackedColorArray { + type CallSig = (PackedColorArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(901usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "duplicate", self.sys_ptr, args) + } + } + pub fn find(&self, value: Color, from: i64,) -> i64 { + type CallSig = (i64, Color, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(902usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "find", self.sys_ptr, args) + } + } + pub fn rfind(&self, value: Color, from: i64,) -> i64 { + type CallSig = (i64, Color, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(903usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "rfind", self.sys_ptr, args) + } + } + pub fn count(&self, value: Color,) -> i64 { + type CallSig = (i64, Color); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(904usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedColorArray", "count", self.sys_ptr, args) + } + } +} +impl PackedColorArray { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_float32_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_float32_array.rs new file mode 100644 index 0000000..2adc878 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_float32_array.rs @@ -0,0 +1,191 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerPackedFloat32Array < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerPackedFloat32Array < 'a > { + pub fn from_outer(outer: &PackedFloat32Array) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(779usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(780usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "is_empty", self.sys_ptr, args) + } + } + pub fn set(&mut self, index: i64, value: f64,) { + type CallSig = ((), i64, f64); + let args = (index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(781usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "set", self.sys_ptr, args) + } + } + pub fn push_back(&mut self, value: f64,) -> bool { + type CallSig = (bool, f64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(782usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "push_back", self.sys_ptr, args) + } + } + pub fn append(&mut self, value: f64,) -> bool { + type CallSig = (bool, f64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(783usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "append", self.sys_ptr, args) + } + } + pub fn append_array(&mut self, array: &PackedFloat32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedFloat32Array >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(784usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "append_array", self.sys_ptr, args) + } + } + pub fn remove_at(&mut self, index: i64,) { + type CallSig = ((), i64); + let args = (index,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(785usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "remove_at", self.sys_ptr, args) + } + } + pub fn insert(&mut self, at_index: i64, value: f64,) -> i64 { + type CallSig = (i64, i64, f64); + let args = (at_index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(786usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "insert", self.sys_ptr, args) + } + } + pub fn fill(&mut self, value: f64,) { + type CallSig = ((), f64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(787usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "fill", self.sys_ptr, args) + } + } + pub fn resize(&mut self, new_size: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (new_size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(788usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "resize", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(789usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "clear", self.sys_ptr, args) + } + } + pub fn has(&self, value: f64,) -> bool { + type CallSig = (bool, f64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(790usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "has", self.sys_ptr, args) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(791usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "reverse", self.sys_ptr, args) + } + } + pub fn slice(&self, begin: i64, end: i64,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array, i64, i64); + let args = (begin, end,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(792usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "slice", self.sys_ptr, args) + } + } + pub fn to_byte_array(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(793usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "to_byte_array", self.sys_ptr, args) + } + } + pub fn sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(794usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "sort", self.sys_ptr, args) + } + } + pub fn bsearch(&mut self, value: f64, before: bool,) -> i64 { + type CallSig = (i64, f64, bool); + let args = (value, before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(795usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "bsearch", self.sys_ptr, args) + } + } + pub fn duplicate(&mut self,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(796usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "duplicate", self.sys_ptr, args) + } + } + pub fn find(&self, value: f64, from: i64,) -> i64 { + type CallSig = (i64, f64, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(797usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "find", self.sys_ptr, args) + } + } + pub fn rfind(&self, value: f64, from: i64,) -> i64 { + type CallSig = (i64, f64, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(798usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "rfind", self.sys_ptr, args) + } + } + pub fn count(&self, value: f64,) -> i64 { + type CallSig = (i64, f64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(799usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat32Array", "count", self.sys_ptr, args) + } + } +} +impl PackedFloat32Array { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_float64_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_float64_array.rs new file mode 100644 index 0000000..7191c82 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_float64_array.rs @@ -0,0 +1,191 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerPackedFloat64Array < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerPackedFloat64Array < 'a > { + pub fn from_outer(outer: &PackedFloat64Array) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(800usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(801usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "is_empty", self.sys_ptr, args) + } + } + pub fn set(&mut self, index: i64, value: f64,) { + type CallSig = ((), i64, f64); + let args = (index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(802usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "set", self.sys_ptr, args) + } + } + pub fn push_back(&mut self, value: f64,) -> bool { + type CallSig = (bool, f64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(803usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "push_back", self.sys_ptr, args) + } + } + pub fn append(&mut self, value: f64,) -> bool { + type CallSig = (bool, f64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(804usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "append", self.sys_ptr, args) + } + } + pub fn append_array(&mut self, array: &PackedFloat64Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedFloat64Array >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(805usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "append_array", self.sys_ptr, args) + } + } + pub fn remove_at(&mut self, index: i64,) { + type CallSig = ((), i64); + let args = (index,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(806usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "remove_at", self.sys_ptr, args) + } + } + pub fn insert(&mut self, at_index: i64, value: f64,) -> i64 { + type CallSig = (i64, i64, f64); + let args = (at_index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(807usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "insert", self.sys_ptr, args) + } + } + pub fn fill(&mut self, value: f64,) { + type CallSig = ((), f64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(808usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "fill", self.sys_ptr, args) + } + } + pub fn resize(&mut self, new_size: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (new_size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(809usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "resize", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(810usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "clear", self.sys_ptr, args) + } + } + pub fn has(&self, value: f64,) -> bool { + type CallSig = (bool, f64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(811usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "has", self.sys_ptr, args) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(812usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "reverse", self.sys_ptr, args) + } + } + pub fn slice(&self, begin: i64, end: i64,) -> PackedFloat64Array { + type CallSig = (PackedFloat64Array, i64, i64); + let args = (begin, end,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(813usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "slice", self.sys_ptr, args) + } + } + pub fn to_byte_array(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(814usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "to_byte_array", self.sys_ptr, args) + } + } + pub fn sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(815usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "sort", self.sys_ptr, args) + } + } + pub fn bsearch(&mut self, value: f64, before: bool,) -> i64 { + type CallSig = (i64, f64, bool); + let args = (value, before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(816usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "bsearch", self.sys_ptr, args) + } + } + pub fn duplicate(&mut self,) -> PackedFloat64Array { + type CallSig = (PackedFloat64Array,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(817usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "duplicate", self.sys_ptr, args) + } + } + pub fn find(&self, value: f64, from: i64,) -> i64 { + type CallSig = (i64, f64, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(818usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "find", self.sys_ptr, args) + } + } + pub fn rfind(&self, value: f64, from: i64,) -> i64 { + type CallSig = (i64, f64, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(819usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "rfind", self.sys_ptr, args) + } + } + pub fn count(&self, value: f64,) -> i64 { + type CallSig = (i64, f64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(820usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedFloat64Array", "count", self.sys_ptr, args) + } + } +} +impl PackedFloat64Array { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_int32_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_int32_array.rs new file mode 100644 index 0000000..a7c0dbe --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_int32_array.rs @@ -0,0 +1,191 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerPackedInt32Array < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerPackedInt32Array < 'a > { + pub fn from_outer(outer: &PackedInt32Array) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(737usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(738usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "is_empty", self.sys_ptr, args) + } + } + pub fn set(&mut self, index: i64, value: i64,) { + type CallSig = ((), i64, i64); + let args = (index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(739usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "set", self.sys_ptr, args) + } + } + pub fn push_back(&mut self, value: i64,) -> bool { + type CallSig = (bool, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(740usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "push_back", self.sys_ptr, args) + } + } + pub fn append(&mut self, value: i64,) -> bool { + type CallSig = (bool, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(741usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "append", self.sys_ptr, args) + } + } + pub fn append_array(&mut self, array: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(742usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "append_array", self.sys_ptr, args) + } + } + pub fn remove_at(&mut self, index: i64,) { + type CallSig = ((), i64); + let args = (index,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(743usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "remove_at", self.sys_ptr, args) + } + } + pub fn insert(&mut self, at_index: i64, value: i64,) -> i64 { + type CallSig = (i64, i64, i64); + let args = (at_index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(744usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "insert", self.sys_ptr, args) + } + } + pub fn fill(&mut self, value: i64,) { + type CallSig = ((), i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(745usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "fill", self.sys_ptr, args) + } + } + pub fn resize(&mut self, new_size: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (new_size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(746usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "resize", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(747usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "clear", self.sys_ptr, args) + } + } + pub fn has(&self, value: i64,) -> bool { + type CallSig = (bool, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(748usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "has", self.sys_ptr, args) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(749usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "reverse", self.sys_ptr, args) + } + } + pub fn slice(&self, begin: i64, end: i64,) -> PackedInt32Array { + type CallSig = (PackedInt32Array, i64, i64); + let args = (begin, end,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(750usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "slice", self.sys_ptr, args) + } + } + pub fn to_byte_array(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(751usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "to_byte_array", self.sys_ptr, args) + } + } + pub fn sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(752usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "sort", self.sys_ptr, args) + } + } + pub fn bsearch(&mut self, value: i64, before: bool,) -> i64 { + type CallSig = (i64, i64, bool); + let args = (value, before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(753usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "bsearch", self.sys_ptr, args) + } + } + pub fn duplicate(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(754usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "duplicate", self.sys_ptr, args) + } + } + pub fn find(&self, value: i64, from: i64,) -> i64 { + type CallSig = (i64, i64, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(755usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "find", self.sys_ptr, args) + } + } + pub fn rfind(&self, value: i64, from: i64,) -> i64 { + type CallSig = (i64, i64, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(756usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "rfind", self.sys_ptr, args) + } + } + pub fn count(&self, value: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(757usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt32Array", "count", self.sys_ptr, args) + } + } +} +impl PackedInt32Array { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_int64_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_int64_array.rs new file mode 100644 index 0000000..833814a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_int64_array.rs @@ -0,0 +1,191 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerPackedInt64Array < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerPackedInt64Array < 'a > { + pub fn from_outer(outer: &PackedInt64Array) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(758usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(759usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "is_empty", self.sys_ptr, args) + } + } + pub fn set(&mut self, index: i64, value: i64,) { + type CallSig = ((), i64, i64); + let args = (index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(760usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "set", self.sys_ptr, args) + } + } + pub fn push_back(&mut self, value: i64,) -> bool { + type CallSig = (bool, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(761usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "push_back", self.sys_ptr, args) + } + } + pub fn append(&mut self, value: i64,) -> bool { + type CallSig = (bool, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(762usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "append", self.sys_ptr, args) + } + } + pub fn append_array(&mut self, array: &PackedInt64Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt64Array >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(763usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "append_array", self.sys_ptr, args) + } + } + pub fn remove_at(&mut self, index: i64,) { + type CallSig = ((), i64); + let args = (index,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(764usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "remove_at", self.sys_ptr, args) + } + } + pub fn insert(&mut self, at_index: i64, value: i64,) -> i64 { + type CallSig = (i64, i64, i64); + let args = (at_index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(765usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "insert", self.sys_ptr, args) + } + } + pub fn fill(&mut self, value: i64,) { + type CallSig = ((), i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(766usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "fill", self.sys_ptr, args) + } + } + pub fn resize(&mut self, new_size: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (new_size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(767usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "resize", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(768usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "clear", self.sys_ptr, args) + } + } + pub fn has(&self, value: i64,) -> bool { + type CallSig = (bool, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(769usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "has", self.sys_ptr, args) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(770usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "reverse", self.sys_ptr, args) + } + } + pub fn slice(&self, begin: i64, end: i64,) -> PackedInt64Array { + type CallSig = (PackedInt64Array, i64, i64); + let args = (begin, end,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(771usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "slice", self.sys_ptr, args) + } + } + pub fn to_byte_array(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(772usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "to_byte_array", self.sys_ptr, args) + } + } + pub fn sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(773usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "sort", self.sys_ptr, args) + } + } + pub fn bsearch(&mut self, value: i64, before: bool,) -> i64 { + type CallSig = (i64, i64, bool); + let args = (value, before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(774usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "bsearch", self.sys_ptr, args) + } + } + pub fn duplicate(&mut self,) -> PackedInt64Array { + type CallSig = (PackedInt64Array,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(775usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "duplicate", self.sys_ptr, args) + } + } + pub fn find(&self, value: i64, from: i64,) -> i64 { + type CallSig = (i64, i64, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(776usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "find", self.sys_ptr, args) + } + } + pub fn rfind(&self, value: i64, from: i64,) -> i64 { + type CallSig = (i64, i64, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(777usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "rfind", self.sys_ptr, args) + } + } + pub fn count(&self, value: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(778usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedInt64Array", "count", self.sys_ptr, args) + } + } +} +impl PackedInt64Array { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_string_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_string_array.rs new file mode 100644 index 0000000..9f9ae18 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_string_array.rs @@ -0,0 +1,191 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerPackedStringArray < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerPackedStringArray < 'a > { + pub fn from_outer(outer: &PackedStringArray) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(821usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(822usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "is_empty", self.sys_ptr, args) + } + } + pub fn set(&mut self, index: i64, value: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i64, CowArg < 'a0, GString >); + let args = (index, value.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(823usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "set", self.sys_ptr, args) + } + } + pub fn push_back(&mut self, value: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (value.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(824usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "push_back", self.sys_ptr, args) + } + } + pub fn append(&mut self, value: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (value.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(825usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "append", self.sys_ptr, args) + } + } + pub fn append_array(&mut self, array: &PackedStringArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(826usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "append_array", self.sys_ptr, args) + } + } + pub fn remove_at(&mut self, index: i64,) { + type CallSig = ((), i64); + let args = (index,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(827usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "remove_at", self.sys_ptr, args) + } + } + pub fn insert(&mut self, at_index: i64, value: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, i64, CowArg < 'a0, GString >); + let args = (at_index, value.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(828usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "insert", self.sys_ptr, args) + } + } + pub fn fill(&mut self, value: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (value.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(829usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "fill", self.sys_ptr, args) + } + } + pub fn resize(&mut self, new_size: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (new_size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(830usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "resize", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(831usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "clear", self.sys_ptr, args) + } + } + pub fn has(&self, value: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (value.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(832usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "has", self.sys_ptr, args) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(833usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "reverse", self.sys_ptr, args) + } + } + pub fn slice(&self, begin: i64, end: i64,) -> PackedStringArray { + type CallSig = (PackedStringArray, i64, i64); + let args = (begin, end,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(834usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "slice", self.sys_ptr, args) + } + } + pub fn to_byte_array(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(835usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "to_byte_array", self.sys_ptr, args) + } + } + pub fn sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(836usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "sort", self.sys_ptr, args) + } + } + pub fn bsearch(&mut self, value: impl AsArg < GString >, before: bool,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, bool); + let args = (value.into_arg(), before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(837usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "bsearch", self.sys_ptr, args) + } + } + pub fn duplicate(&mut self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(838usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "duplicate", self.sys_ptr, args) + } + } + pub fn find(&self, value: impl AsArg < GString >, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64); + let args = (value.into_arg(), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(839usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "find", self.sys_ptr, args) + } + } + pub fn rfind(&self, value: impl AsArg < GString >, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64); + let args = (value.into_arg(), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(840usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "rfind", self.sys_ptr, args) + } + } + pub fn count(&self, value: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (value.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(841usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedStringArray", "count", self.sys_ptr, args) + } + } +} +impl PackedStringArray { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_vector2_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_vector2_array.rs new file mode 100644 index 0000000..94e90d3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_vector2_array.rs @@ -0,0 +1,191 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerPackedVector2Array < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerPackedVector2Array < 'a > { + pub fn from_outer(outer: &PackedVector2Array) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(842usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(843usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "is_empty", self.sys_ptr, args) + } + } + pub fn set(&mut self, index: i64, value: Vector2,) { + type CallSig = ((), i64, Vector2); + let args = (index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(844usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "set", self.sys_ptr, args) + } + } + pub fn push_back(&mut self, value: Vector2,) -> bool { + type CallSig = (bool, Vector2); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(845usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "push_back", self.sys_ptr, args) + } + } + pub fn append(&mut self, value: Vector2,) -> bool { + type CallSig = (bool, Vector2); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(846usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "append", self.sys_ptr, args) + } + } + pub fn append_array(&mut self, array: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(847usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "append_array", self.sys_ptr, args) + } + } + pub fn remove_at(&mut self, index: i64,) { + type CallSig = ((), i64); + let args = (index,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(848usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "remove_at", self.sys_ptr, args) + } + } + pub fn insert(&mut self, at_index: i64, value: Vector2,) -> i64 { + type CallSig = (i64, i64, Vector2); + let args = (at_index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(849usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "insert", self.sys_ptr, args) + } + } + pub fn fill(&mut self, value: Vector2,) { + type CallSig = ((), Vector2); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(850usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "fill", self.sys_ptr, args) + } + } + pub fn resize(&mut self, new_size: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (new_size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(851usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "resize", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(852usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "clear", self.sys_ptr, args) + } + } + pub fn has(&self, value: Vector2,) -> bool { + type CallSig = (bool, Vector2); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(853usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "has", self.sys_ptr, args) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(854usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "reverse", self.sys_ptr, args) + } + } + pub fn slice(&self, begin: i64, end: i64,) -> PackedVector2Array { + type CallSig = (PackedVector2Array, i64, i64); + let args = (begin, end,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(855usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "slice", self.sys_ptr, args) + } + } + pub fn to_byte_array(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(856usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "to_byte_array", self.sys_ptr, args) + } + } + pub fn sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(857usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "sort", self.sys_ptr, args) + } + } + pub fn bsearch(&mut self, value: Vector2, before: bool,) -> i64 { + type CallSig = (i64, Vector2, bool); + let args = (value, before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(858usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "bsearch", self.sys_ptr, args) + } + } + pub fn duplicate(&mut self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(859usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "duplicate", self.sys_ptr, args) + } + } + pub fn find(&self, value: Vector2, from: i64,) -> i64 { + type CallSig = (i64, Vector2, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(860usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "find", self.sys_ptr, args) + } + } + pub fn rfind(&self, value: Vector2, from: i64,) -> i64 { + type CallSig = (i64, Vector2, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(861usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "rfind", self.sys_ptr, args) + } + } + pub fn count(&self, value: Vector2,) -> i64 { + type CallSig = (i64, Vector2); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(862usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector2Array", "count", self.sys_ptr, args) + } + } +} +impl PackedVector2Array { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_vector3_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_vector3_array.rs new file mode 100644 index 0000000..cad1b34 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_vector3_array.rs @@ -0,0 +1,191 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerPackedVector3Array < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerPackedVector3Array < 'a > { + pub fn from_outer(outer: &PackedVector3Array) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(863usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(864usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "is_empty", self.sys_ptr, args) + } + } + pub fn set(&mut self, index: i64, value: Vector3,) { + type CallSig = ((), i64, Vector3); + let args = (index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(865usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "set", self.sys_ptr, args) + } + } + pub fn push_back(&mut self, value: Vector3,) -> bool { + type CallSig = (bool, Vector3); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(866usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "push_back", self.sys_ptr, args) + } + } + pub fn append(&mut self, value: Vector3,) -> bool { + type CallSig = (bool, Vector3); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(867usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "append", self.sys_ptr, args) + } + } + pub fn append_array(&mut self, array: &PackedVector3Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector3Array >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(868usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "append_array", self.sys_ptr, args) + } + } + pub fn remove_at(&mut self, index: i64,) { + type CallSig = ((), i64); + let args = (index,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(869usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "remove_at", self.sys_ptr, args) + } + } + pub fn insert(&mut self, at_index: i64, value: Vector3,) -> i64 { + type CallSig = (i64, i64, Vector3); + let args = (at_index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(870usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "insert", self.sys_ptr, args) + } + } + pub fn fill(&mut self, value: Vector3,) { + type CallSig = ((), Vector3); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(871usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "fill", self.sys_ptr, args) + } + } + pub fn resize(&mut self, new_size: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (new_size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(872usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "resize", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(873usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "clear", self.sys_ptr, args) + } + } + pub fn has(&self, value: Vector3,) -> bool { + type CallSig = (bool, Vector3); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(874usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "has", self.sys_ptr, args) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(875usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "reverse", self.sys_ptr, args) + } + } + pub fn slice(&self, begin: i64, end: i64,) -> PackedVector3Array { + type CallSig = (PackedVector3Array, i64, i64); + let args = (begin, end,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(876usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "slice", self.sys_ptr, args) + } + } + pub fn to_byte_array(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(877usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "to_byte_array", self.sys_ptr, args) + } + } + pub fn sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(878usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "sort", self.sys_ptr, args) + } + } + pub fn bsearch(&mut self, value: Vector3, before: bool,) -> i64 { + type CallSig = (i64, Vector3, bool); + let args = (value, before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(879usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "bsearch", self.sys_ptr, args) + } + } + pub fn duplicate(&mut self,) -> PackedVector3Array { + type CallSig = (PackedVector3Array,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(880usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "duplicate", self.sys_ptr, args) + } + } + pub fn find(&self, value: Vector3, from: i64,) -> i64 { + type CallSig = (i64, Vector3, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(881usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "find", self.sys_ptr, args) + } + } + pub fn rfind(&self, value: Vector3, from: i64,) -> i64 { + type CallSig = (i64, Vector3, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(882usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "rfind", self.sys_ptr, args) + } + } + pub fn count(&self, value: Vector3,) -> i64 { + type CallSig = (i64, Vector3); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(883usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector3Array", "count", self.sys_ptr, args) + } + } +} +impl PackedVector3Array { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_vector4_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_vector4_array.rs new file mode 100644 index 0000000..a7dca59 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/packed_vector4_array.rs @@ -0,0 +1,191 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerPackedVector4Array < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerPackedVector4Array < 'a > { + pub fn from_outer(outer: &PackedVector4Array) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(905usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "size", self.sys_ptr, args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(906usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "is_empty", self.sys_ptr, args) + } + } + pub fn set(&mut self, index: i64, value: Vector4,) { + type CallSig = ((), i64, Vector4); + let args = (index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(907usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "set", self.sys_ptr, args) + } + } + pub fn push_back(&mut self, value: Vector4,) -> bool { + type CallSig = (bool, Vector4); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(908usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "push_back", self.sys_ptr, args) + } + } + pub fn append(&mut self, value: Vector4,) -> bool { + type CallSig = (bool, Vector4); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(909usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "append", self.sys_ptr, args) + } + } + pub fn append_array(&mut self, array: &PackedVector4Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector4Array >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(910usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "append_array", self.sys_ptr, args) + } + } + pub fn remove_at(&mut self, index: i64,) { + type CallSig = ((), i64); + let args = (index,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(911usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "remove_at", self.sys_ptr, args) + } + } + pub fn insert(&mut self, at_index: i64, value: Vector4,) -> i64 { + type CallSig = (i64, i64, Vector4); + let args = (at_index, value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(912usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "insert", self.sys_ptr, args) + } + } + pub fn fill(&mut self, value: Vector4,) { + type CallSig = ((), Vector4); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(913usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "fill", self.sys_ptr, args) + } + } + pub fn resize(&mut self, new_size: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (new_size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(914usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "resize", self.sys_ptr, args) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(915usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "clear", self.sys_ptr, args) + } + } + pub fn has(&self, value: Vector4,) -> bool { + type CallSig = (bool, Vector4); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(916usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "has", self.sys_ptr, args) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(917usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "reverse", self.sys_ptr, args) + } + } + pub fn slice(&self, begin: i64, end: i64,) -> PackedVector4Array { + type CallSig = (PackedVector4Array, i64, i64); + let args = (begin, end,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(918usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "slice", self.sys_ptr, args) + } + } + pub fn to_byte_array(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(919usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "to_byte_array", self.sys_ptr, args) + } + } + pub fn sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(920usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "sort", self.sys_ptr, args) + } + } + pub fn bsearch(&mut self, value: Vector4, before: bool,) -> i64 { + type CallSig = (i64, Vector4, bool); + let args = (value, before,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(921usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "bsearch", self.sys_ptr, args) + } + } + pub fn duplicate(&mut self,) -> PackedVector4Array { + type CallSig = (PackedVector4Array,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(922usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "duplicate", self.sys_ptr, args) + } + } + pub fn find(&self, value: Vector4, from: i64,) -> i64 { + type CallSig = (i64, Vector4, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(923usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "find", self.sys_ptr, args) + } + } + pub fn rfind(&self, value: Vector4, from: i64,) -> i64 { + type CallSig = (i64, Vector4, i64); + let args = (value, from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(924usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "rfind", self.sys_ptr, args) + } + } + pub fn count(&self, value: Vector4,) -> i64 { + type CallSig = (i64, Vector4); + let args = (value,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(925usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "PackedVector4Array", "count", self.sys_ptr, args) + } + } +} +impl PackedVector4Array { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/plane.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/plane.rs new file mode 100644 index 0000000..0fce5d0 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/plane.rs @@ -0,0 +1,111 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerPlane < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerPlane < 'a > { + pub fn from_outer(outer: &Plane) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn normalized(&self,) -> Plane { + type CallSig = (Plane,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(333usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Plane", "normalized", self.sys_ptr, args) + } + } + pub fn get_center(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(334usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Plane", "get_center", self.sys_ptr, args) + } + } + pub fn is_equal_approx(&self, to_plane: Plane,) -> bool { + type CallSig = (bool, Plane); + let args = (to_plane,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(335usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Plane", "is_equal_approx", self.sys_ptr, args) + } + } + pub fn is_finite(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(336usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Plane", "is_finite", self.sys_ptr, args) + } + } + pub fn is_point_over(&self, point: Vector3,) -> bool { + type CallSig = (bool, Vector3); + let args = (point,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(337usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Plane", "is_point_over", self.sys_ptr, args) + } + } + pub fn distance_to(&self, point: Vector3,) -> f64 { + type CallSig = (f64, Vector3); + let args = (point,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(338usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Plane", "distance_to", self.sys_ptr, args) + } + } + pub fn has_point(&self, point: Vector3, tolerance: f64,) -> bool { + type CallSig = (bool, Vector3, f64); + let args = (point, tolerance,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(339usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Plane", "has_point", self.sys_ptr, args) + } + } + pub fn project(&self, point: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (point,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(340usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Plane", "project", self.sys_ptr, args) + } + } + pub fn intersect_3(&self, b: Plane, c: Plane,) -> Variant { + type CallSig = (Variant, Plane, Plane); + let args = (b, c,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(341usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Plane", "intersect_3", self.sys_ptr, args) + } + } + pub fn intersects_ray(&self, from: Vector3, dir: Vector3,) -> Variant { + type CallSig = (Variant, Vector3, Vector3); + let args = (from, dir,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(342usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Plane", "intersects_ray", self.sys_ptr, args) + } + } + pub fn intersects_segment(&self, from: Vector3, to: Vector3,) -> Variant { + type CallSig = (Variant, Vector3, Vector3); + let args = (from, to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(343usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Plane", "intersects_segment", self.sys_ptr, args) + } + } +} +impl Plane { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/projection.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/projection.rs new file mode 100644 index 0000000..d4a7629 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/projection.rs @@ -0,0 +1,321 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerProjection < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerProjection < 'a > { + pub fn from_outer(outer: &Projection) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn create_depth_correction(flip_y: bool,) -> Projection { + type CallSig = (Projection, bool); + let args = (flip_y,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(420usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "create_depth_correction", std::ptr::null_mut(), args) + } + } + pub fn create_light_atlas_rect(rect: Rect2,) -> Projection { + type CallSig = (Projection, Rect2); + let args = (rect,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(421usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "create_light_atlas_rect", std::ptr::null_mut(), args) + } + } + pub fn create_perspective(fovy: f64, aspect: f64, z_near: f64, z_far: f64, flip_fov: bool,) -> Projection { + type CallSig = (Projection, f64, f64, f64, f64, bool); + let args = (fovy, aspect, z_near, z_far, flip_fov,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(422usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "create_perspective", std::ptr::null_mut(), args) + } + } + pub fn create_perspective_hmd(fovy: f64, aspect: f64, z_near: f64, z_far: f64, flip_fov: bool, eye: i64, intraocular_dist: f64, convergence_dist: f64,) -> Projection { + type CallSig = (Projection, f64, f64, f64, f64, bool, i64, f64, f64); + let args = (fovy, aspect, z_near, z_far, flip_fov, eye, intraocular_dist, convergence_dist,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(423usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "create_perspective_hmd", std::ptr::null_mut(), args) + } + } + pub fn create_for_hmd(eye: i64, aspect: f64, intraocular_dist: f64, display_width: f64, display_to_lens: f64, oversample: f64, z_near: f64, z_far: f64,) -> Projection { + type CallSig = (Projection, i64, f64, f64, f64, f64, f64, f64, f64); + let args = (eye, aspect, intraocular_dist, display_width, display_to_lens, oversample, z_near, z_far,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(424usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "create_for_hmd", std::ptr::null_mut(), args) + } + } + pub fn create_orthogonal(left: f64, right: f64, bottom: f64, top: f64, z_near: f64, z_far: f64,) -> Projection { + type CallSig = (Projection, f64, f64, f64, f64, f64, f64); + let args = (left, right, bottom, top, z_near, z_far,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(425usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "create_orthogonal", std::ptr::null_mut(), args) + } + } + pub fn create_orthogonal_aspect(size: f64, aspect: f64, z_near: f64, z_far: f64, flip_fov: bool,) -> Projection { + type CallSig = (Projection, f64, f64, f64, f64, bool); + let args = (size, aspect, z_near, z_far, flip_fov,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(426usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "create_orthogonal_aspect", std::ptr::null_mut(), args) + } + } + pub fn create_frustum(left: f64, right: f64, bottom: f64, top: f64, z_near: f64, z_far: f64,) -> Projection { + type CallSig = (Projection, f64, f64, f64, f64, f64, f64); + let args = (left, right, bottom, top, z_near, z_far,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(427usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "create_frustum", std::ptr::null_mut(), args) + } + } + pub fn create_frustum_aspect(size: f64, aspect: f64, offset: Vector2, z_near: f64, z_far: f64, flip_fov: bool,) -> Projection { + type CallSig = (Projection, f64, f64, Vector2, f64, f64, bool); + let args = (size, aspect, offset, z_near, z_far, flip_fov,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(428usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "create_frustum_aspect", std::ptr::null_mut(), args) + } + } + pub fn create_fit_aabb(aabb: Aabb,) -> Projection { + type CallSig = (Projection, Aabb); + let args = (aabb,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(429usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "create_fit_aabb", std::ptr::null_mut(), args) + } + } + pub fn determinant(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(430usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "determinant", self.sys_ptr, args) + } + } + pub fn perspective_znear_adjusted(&self, new_znear: f64,) -> Projection { + type CallSig = (Projection, f64); + let args = (new_znear,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(431usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "perspective_znear_adjusted", self.sys_ptr, args) + } + } + pub fn get_projection_plane(&self, plane: i64,) -> Plane { + type CallSig = (Plane, i64); + let args = (plane,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(432usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "get_projection_plane", self.sys_ptr, args) + } + } + pub fn flipped_y(&self,) -> Projection { + type CallSig = (Projection,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(433usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "flipped_y", self.sys_ptr, args) + } + } + pub fn jitter_offseted(&self, offset: Vector2,) -> Projection { + type CallSig = (Projection, Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(434usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "jitter_offseted", self.sys_ptr, args) + } + } + pub fn get_fovy(fovx: f64, aspect: f64,) -> f64 { + type CallSig = (f64, f64, f64); + let args = (fovx, aspect,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(435usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "get_fovy", std::ptr::null_mut(), args) + } + } + pub fn get_z_far(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(436usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "get_z_far", self.sys_ptr, args) + } + } + pub fn get_z_near(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(437usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "get_z_near", self.sys_ptr, args) + } + } + pub fn get_aspect(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(438usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "get_aspect", self.sys_ptr, args) + } + } + pub fn get_fov(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(439usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "get_fov", self.sys_ptr, args) + } + } + pub fn is_orthogonal(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(440usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "is_orthogonal", self.sys_ptr, args) + } + } + pub fn get_viewport_half_extents(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(441usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "get_viewport_half_extents", self.sys_ptr, args) + } + } + pub fn get_far_plane_half_extents(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(442usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "get_far_plane_half_extents", self.sys_ptr, args) + } + } + pub fn inverse(&self,) -> Projection { + type CallSig = (Projection,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(443usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "inverse", self.sys_ptr, args) + } + } + pub fn get_pixels_per_meter(&self, for_pixel_width: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (for_pixel_width,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(444usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "get_pixels_per_meter", self.sys_ptr, args) + } + } + pub fn get_lod_multiplier(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(445usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Projection", "get_lod_multiplier", self.sys_ptr, args) + } + } +} +impl Projection { + +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Planes { + ord: i32 +} +impl Planes { + #[doc(alias = "PLANE_NEAR")] + #[doc = "Godot enumerator name: `PLANE_NEAR`"] + pub const NEAR: Planes = Planes { + ord: 0i32 + }; + #[doc(alias = "PLANE_FAR")] + #[doc = "Godot enumerator name: `PLANE_FAR`"] + pub const FAR: Planes = Planes { + ord: 1i32 + }; + #[doc(alias = "PLANE_LEFT")] + #[doc = "Godot enumerator name: `PLANE_LEFT`"] + pub const LEFT: Planes = Planes { + ord: 2i32 + }; + #[doc(alias = "PLANE_TOP")] + #[doc = "Godot enumerator name: `PLANE_TOP`"] + pub const TOP: Planes = Planes { + ord: 3i32 + }; + #[doc(alias = "PLANE_RIGHT")] + #[doc = "Godot enumerator name: `PLANE_RIGHT`"] + pub const RIGHT: Planes = Planes { + ord: 4i32 + }; + #[doc(alias = "PLANE_BOTTOM")] + #[doc = "Godot enumerator name: `PLANE_BOTTOM`"] + pub const BOTTOM: Planes = Planes { + ord: 5i32 + }; + +} +impl std::fmt::Debug for Planes { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Planes") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Planes { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAR => "NEAR", Self::FAR => "FAR", Self::LEFT => "LEFT", Self::TOP => "TOP", Self::RIGHT => "RIGHT", Self::BOTTOM => "BOTTOM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAR => "PLANE_NEAR", Self::FAR => "PLANE_FAR", Self::LEFT => "PLANE_LEFT", Self::TOP => "PLANE_TOP", Self::RIGHT => "PLANE_RIGHT", Self::BOTTOM => "PLANE_BOTTOM", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Planes { + type Via = i32; + +} +impl crate::meta::ToGodot for Planes { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Planes { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/quaternion.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/quaternion.rs new file mode 100644 index 0000000..d95cd7d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/quaternion.rs @@ -0,0 +1,175 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerQuaternion < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerQuaternion < 'a > { + pub fn from_outer(outer: &Quaternion) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn length(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(344usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "length", self.sys_ptr, args) + } + } + pub fn length_squared(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(345usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "length_squared", self.sys_ptr, args) + } + } + pub fn normalized(&self,) -> Quaternion { + type CallSig = (Quaternion,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(346usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "normalized", self.sys_ptr, args) + } + } + pub fn is_normalized(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(347usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "is_normalized", self.sys_ptr, args) + } + } + pub fn is_equal_approx(&self, to: Quaternion,) -> bool { + type CallSig = (bool, Quaternion); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(348usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "is_equal_approx", self.sys_ptr, args) + } + } + pub fn is_finite(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(349usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "is_finite", self.sys_ptr, args) + } + } + pub fn inverse(&self,) -> Quaternion { + type CallSig = (Quaternion,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(350usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "inverse", self.sys_ptr, args) + } + } + pub fn log(&self,) -> Quaternion { + type CallSig = (Quaternion,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(351usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "log", self.sys_ptr, args) + } + } + pub fn exp(&self,) -> Quaternion { + type CallSig = (Quaternion,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(352usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "exp", self.sys_ptr, args) + } + } + pub fn angle_to(&self, to: Quaternion,) -> f64 { + type CallSig = (f64, Quaternion); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(353usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "angle_to", self.sys_ptr, args) + } + } + pub fn dot(&self, with: Quaternion,) -> f64 { + type CallSig = (f64, Quaternion); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(354usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "dot", self.sys_ptr, args) + } + } + pub fn slerp(&self, to: Quaternion, weight: f64,) -> Quaternion { + type CallSig = (Quaternion, Quaternion, f64); + let args = (to, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(355usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "slerp", self.sys_ptr, args) + } + } + pub fn slerpni(&self, to: Quaternion, weight: f64,) -> Quaternion { + type CallSig = (Quaternion, Quaternion, f64); + let args = (to, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(356usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "slerpni", self.sys_ptr, args) + } + } + pub fn spherical_cubic_interpolate(&self, b: Quaternion, pre_a: Quaternion, post_b: Quaternion, weight: f64,) -> Quaternion { + type CallSig = (Quaternion, Quaternion, Quaternion, Quaternion, f64); + let args = (b, pre_a, post_b, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(357usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "spherical_cubic_interpolate", self.sys_ptr, args) + } + } + pub fn spherical_cubic_interpolate_in_time(&self, b: Quaternion, pre_a: Quaternion, post_b: Quaternion, weight: f64, b_t: f64, pre_a_t: f64, post_b_t: f64,) -> Quaternion { + type CallSig = (Quaternion, Quaternion, Quaternion, Quaternion, f64, f64, f64, f64); + let args = (b, pre_a, post_b, weight, b_t, pre_a_t, post_b_t,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(358usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "spherical_cubic_interpolate_in_time", self.sys_ptr, args) + } + } + pub fn get_euler(&self, order: i64,) -> Vector3 { + type CallSig = (Vector3, i64); + let args = (order,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(359usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "get_euler", self.sys_ptr, args) + } + } + pub fn from_euler(euler: Vector3,) -> Quaternion { + type CallSig = (Quaternion, Vector3); + let args = (euler,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(360usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "from_euler", std::ptr::null_mut(), args) + } + } + pub fn get_axis(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(361usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "get_axis", self.sys_ptr, args) + } + } + pub fn get_angle(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(362usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Quaternion", "get_angle", self.sys_ptr, args) + } + } +} +impl Quaternion { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/rect2.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/rect2.rs new file mode 100644 index 0000000..ee866be --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/rect2.rs @@ -0,0 +1,143 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerRect2 < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerRect2 < 'a > { + pub fn from_outer(outer: &Rect2) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn get_center(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(172usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "get_center", self.sys_ptr, args) + } + } + pub fn get_area(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(173usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "get_area", self.sys_ptr, args) + } + } + pub fn has_area(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(174usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "has_area", self.sys_ptr, args) + } + } + pub fn has_point(&self, point: Vector2,) -> bool { + type CallSig = (bool, Vector2); + let args = (point,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(175usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "has_point", self.sys_ptr, args) + } + } + pub fn is_equal_approx(&self, rect: Rect2,) -> bool { + type CallSig = (bool, Rect2); + let args = (rect,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(176usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "is_equal_approx", self.sys_ptr, args) + } + } + pub fn is_finite(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(177usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "is_finite", self.sys_ptr, args) + } + } + pub fn intersects(&self, b: Rect2, include_borders: bool,) -> bool { + type CallSig = (bool, Rect2, bool); + let args = (b, include_borders,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(178usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "intersects", self.sys_ptr, args) + } + } + pub fn encloses(&self, b: Rect2,) -> bool { + type CallSig = (bool, Rect2); + let args = (b,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(179usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "encloses", self.sys_ptr, args) + } + } + pub fn intersection(&self, b: Rect2,) -> Rect2 { + type CallSig = (Rect2, Rect2); + let args = (b,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(180usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "intersection", self.sys_ptr, args) + } + } + pub fn merge(&self, b: Rect2,) -> Rect2 { + type CallSig = (Rect2, Rect2); + let args = (b,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(181usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "merge", self.sys_ptr, args) + } + } + pub fn expand(&self, to: Vector2,) -> Rect2 { + type CallSig = (Rect2, Vector2); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(182usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "expand", self.sys_ptr, args) + } + } + pub fn grow(&self, amount: f64,) -> Rect2 { + type CallSig = (Rect2, f64); + let args = (amount,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(183usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "grow", self.sys_ptr, args) + } + } + pub fn grow_side(&self, side: i64, amount: f64,) -> Rect2 { + type CallSig = (Rect2, i64, f64); + let args = (side, amount,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(184usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "grow_side", self.sys_ptr, args) + } + } + pub fn grow_individual(&self, left: f64, top: f64, right: f64, bottom: f64,) -> Rect2 { + type CallSig = (Rect2, f64, f64, f64, f64); + let args = (left, top, right, bottom,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(185usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "grow_individual", self.sys_ptr, args) + } + } + pub fn abs(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(186usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2", "abs", self.sys_ptr, args) + } + } +} +impl Rect2 { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/rect2i.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/rect2i.rs new file mode 100644 index 0000000..330ae34 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/rect2i.rs @@ -0,0 +1,127 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerRect2i < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerRect2i < 'a > { + pub fn from_outer(outer: &Rect2i) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn get_center(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(187usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "get_center", self.sys_ptr, args) + } + } + pub fn get_area(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(188usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "get_area", self.sys_ptr, args) + } + } + pub fn has_area(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(189usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "has_area", self.sys_ptr, args) + } + } + pub fn has_point(&self, point: Vector2i,) -> bool { + type CallSig = (bool, Vector2i); + let args = (point,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(190usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "has_point", self.sys_ptr, args) + } + } + pub fn intersects(&self, b: Rect2i,) -> bool { + type CallSig = (bool, Rect2i); + let args = (b,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(191usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "intersects", self.sys_ptr, args) + } + } + pub fn encloses(&self, b: Rect2i,) -> bool { + type CallSig = (bool, Rect2i); + let args = (b,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(192usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "encloses", self.sys_ptr, args) + } + } + pub fn intersection(&self, b: Rect2i,) -> Rect2i { + type CallSig = (Rect2i, Rect2i); + let args = (b,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(193usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "intersection", self.sys_ptr, args) + } + } + pub fn merge(&self, b: Rect2i,) -> Rect2i { + type CallSig = (Rect2i, Rect2i); + let args = (b,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(194usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "merge", self.sys_ptr, args) + } + } + pub fn expand(&self, to: Vector2i,) -> Rect2i { + type CallSig = (Rect2i, Vector2i); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(195usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "expand", self.sys_ptr, args) + } + } + pub fn grow(&self, amount: i64,) -> Rect2i { + type CallSig = (Rect2i, i64); + let args = (amount,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(196usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "grow", self.sys_ptr, args) + } + } + pub fn grow_side(&self, side: i64, amount: i64,) -> Rect2i { + type CallSig = (Rect2i, i64, i64); + let args = (side, amount,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(197usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "grow_side", self.sys_ptr, args) + } + } + pub fn grow_individual(&self, left: i64, top: i64, right: i64, bottom: i64,) -> Rect2i { + type CallSig = (Rect2i, i64, i64, i64, i64); + let args = (left, top, right, bottom,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(198usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "grow_individual", self.sys_ptr, args) + } + } + pub fn abs(&self,) -> Rect2i { + type CallSig = (Rect2i,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(199usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rect2i", "abs", self.sys_ptr, args) + } + } +} +impl Rect2i { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/rid.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/rid.rs new file mode 100644 index 0000000..a7b2f9f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/rid.rs @@ -0,0 +1,39 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerRid < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerRid < 'a > { + pub fn from_outer(outer: &Rid) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn is_valid(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(583usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rid", "is_valid", self.sys_ptr, args) + } + } + pub fn get_id(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(584usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Rid", "get_id", self.sys_ptr, args) + } + } +} +impl Rid { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/signal.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/signal.rs new file mode 100644 index 0000000..67ea85d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/signal.rs @@ -0,0 +1,95 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerSignal < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerSignal < 'a > { + pub fn from_outer(outer: &Signal) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn is_null(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(605usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Signal", "is_null", self.sys_ptr, args) + } + } + pub fn get_object(&self,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(606usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Signal", "get_object", self.sys_ptr, args) + } + } + pub fn get_object_id(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(607usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Signal", "get_object_id", self.sys_ptr, args) + } + } + pub fn get_name(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(608usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Signal", "get_name", self.sys_ptr, args) + } + } + pub fn connect(&mut self, callable: &Callable, flags: i64,) -> i64 { + type CallSig < 'a0, > = (i64, RefArg < 'a0, Callable >, i64); + let args = (RefArg::new(callable), flags,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(609usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Signal", "connect", self.sys_ptr, args) + } + } + pub fn disconnect(&mut self, callable: &Callable,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >); + let args = (RefArg::new(callable),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(610usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Signal", "disconnect", self.sys_ptr, args) + } + } + pub fn is_connected(&self, callable: &Callable,) -> bool { + type CallSig < 'a0, > = (bool, RefArg < 'a0, Callable >); + let args = (RefArg::new(callable),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(611usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Signal", "is_connected", self.sys_ptr, args) + } + } + pub fn get_connections(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(612usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Signal", "get_connections", self.sys_ptr, args) + } + } + pub fn emit(&self, varargs: &[Variant]) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(613usize); + < CallSig as VarcallSignatureTuple > ::out_builtin_ptrcall_varargs(method_bind, "Signal", "emit", self.sys_ptr, args, varargs) + } + } +} +impl Signal { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/string.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/string.rs new file mode 100644 index 0000000..78bd6b2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/string.rs @@ -0,0 +1,878 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerString < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerString < 'a > { + pub fn from_outer(outer: &GString) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn casecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(0usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "casecmp_to", self.sys_ptr, args) + } + } + pub fn nocasecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(1usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "nocasecmp_to", self.sys_ptr, args) + } + } + pub fn naturalcasecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(2usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "naturalcasecmp_to", self.sys_ptr, args) + } + } + pub fn naturalnocasecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(3usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "naturalnocasecmp_to", self.sys_ptr, args) + } + } + pub fn filecasecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(4usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "filecasecmp_to", self.sys_ptr, args) + } + } + pub fn filenocasecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(5usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "filenocasecmp_to", self.sys_ptr, args) + } + } + pub fn length(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(6usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "length", self.sys_ptr, args) + } + } + pub fn substr(&self, from: i64, len: i64,) -> GString { + type CallSig = (GString, i64, i64); + let args = (from, len,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(7usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "substr", self.sys_ptr, args) + } + } + pub fn get_slice(&self, delimiter: impl AsArg < GString >, slice: i64,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >, i64); + let args = (delimiter.into_arg(), slice,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(8usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "get_slice", self.sys_ptr, args) + } + } + pub fn get_slicec(&self, delimiter: i64, slice: i64,) -> GString { + type CallSig = (GString, i64, i64); + let args = (delimiter, slice,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(9usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "get_slicec", self.sys_ptr, args) + } + } + pub fn get_slice_count(&self, delimiter: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (delimiter.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(10usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "get_slice_count", self.sys_ptr, args) + } + } + pub fn find(&self, what: impl AsArg < GString >, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64); + let args = (what.into_arg(), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(11usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "find", self.sys_ptr, args) + } + } + pub fn findn(&self, what: impl AsArg < GString >, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64); + let args = (what.into_arg(), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(12usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "findn", self.sys_ptr, args) + } + } + pub fn count(&self, what: impl AsArg < GString >, from: i64, to: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64, i64); + let args = (what.into_arg(), from, to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(13usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "count", self.sys_ptr, args) + } + } + pub fn countn(&self, what: impl AsArg < GString >, from: i64, to: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64, i64); + let args = (what.into_arg(), from, to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(14usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "countn", self.sys_ptr, args) + } + } + pub fn rfind(&self, what: impl AsArg < GString >, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64); + let args = (what.into_arg(), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(15usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "rfind", self.sys_ptr, args) + } + } + pub fn rfindn(&self, what: impl AsArg < GString >, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64); + let args = (what.into_arg(), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(16usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "rfindn", self.sys_ptr, args) + } + } + pub fn match_(&self, expr: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (expr.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(17usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "match", self.sys_ptr, args) + } + } + pub fn matchn(&self, expr: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (expr.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(18usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "matchn", self.sys_ptr, args) + } + } + pub fn format(&self, values: &Variant, placeholder: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, 'a1, > = (GString, RefArg < 'a0, Variant >, CowArg < 'a1, GString >); + let args = (RefArg::new(values), placeholder.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(25usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "format", self.sys_ptr, args) + } + } + pub fn insert(&self, position: i64, what: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, i64, CowArg < 'a0, GString >); + let args = (position, what.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(30usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "insert", self.sys_ptr, args) + } + } + pub fn erase(&self, position: i64, chars: i64,) -> GString { + type CallSig = (GString, i64, i64); + let args = (position, chars,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(31usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "erase", self.sys_ptr, args) + } + } + pub fn split(&self, delimiter: impl AsArg < GString >, allow_empty: bool, maxsplit: i64,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >, bool, i64); + let args = (delimiter.into_arg(), allow_empty, maxsplit,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(36usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "split", self.sys_ptr, args) + } + } + pub fn rsplit(&self, delimiter: impl AsArg < GString >, allow_empty: bool, maxsplit: i64,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >, bool, i64); + let args = (delimiter.into_arg(), allow_empty, maxsplit,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(37usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "rsplit", self.sys_ptr, args) + } + } + pub fn unicode_at(&self, at: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (at,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(51usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "unicode_at", self.sys_ptr, args) + } + } + pub fn hash(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(54usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "hash", self.sys_ptr, args) + } + } + pub fn lpad(&self, min_length: i64, character: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, i64, CowArg < 'a0, GString >); + let args = (min_length, character.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(89usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "lpad", self.sys_ptr, args) + } + } + pub fn rpad(&self, min_length: i64, character: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, i64, CowArg < 'a0, GString >); + let args = (min_length, character.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(90usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "rpad", self.sys_ptr, args) + } + } + pub fn pad_decimals(&self, digits: i64,) -> GString { + type CallSig = (GString, i64); + let args = (digits,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(91usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "pad_decimals", self.sys_ptr, args) + } + } + pub fn pad_zeros(&self, digits: i64,) -> GString { + type CallSig = (GString, i64); + let args = (digits,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(92usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "pad_zeros", self.sys_ptr, args) + } + } +} +impl GString { + pub fn begins_with(&self, text: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(19usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "begins_with", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn ends_with(&self, text: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(20usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "ends_with", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_subsequence_of(&self, text: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(21usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_subsequence_of", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_subsequence_ofn(&self, text: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(22usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_subsequence_ofn", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn bigrams(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(23usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "bigrams", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn similarity(&self, text: impl AsArg < GString >,) -> f64 { + type CallSig < 'a0, > = (f64, CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(24usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "similarity", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn replace(&self, what: impl AsArg < GString >, forwhat: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, 'a1, > = (GString, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (what.into_arg(), forwhat.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(26usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "replace", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn replacen(&self, what: impl AsArg < GString >, forwhat: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, 'a1, > = (GString, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (what.into_arg(), forwhat.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(27usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "replacen", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn repeat(&self, count: i64,) -> GString { + type CallSig = (GString, i64); + let args = (count,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(28usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "repeat", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn reverse(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(29usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "reverse", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn capitalize(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(32usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "capitalize", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_camel_case(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(33usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_camel_case", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_pascal_case(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(34usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_pascal_case", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_snake_case(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(35usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_snake_case", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn split_floats(&self, delimiter: impl AsArg < GString >, allow_empty: bool,) -> PackedFloat64Array { + type CallSig < 'a0, > = (PackedFloat64Array, CowArg < 'a0, GString >, bool); + let args = (delimiter.into_arg(), allow_empty,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(38usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "split_floats", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn join(&self, parts: &PackedStringArray,) -> GString { + type CallSig < 'a0, > = (GString, RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(parts),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(39usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "join", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_upper(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(40usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_upper", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_lower(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(41usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_lower", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn left(&self, length: i64,) -> GString { + type CallSig = (GString, i64); + let args = (length,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(42usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "left", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn right(&self, length: i64,) -> GString { + type CallSig = (GString, i64); + let args = (length,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(43usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "right", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn strip_edges(&self, left: bool, right: bool,) -> GString { + type CallSig = (GString, bool, bool); + let args = (left, right,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(44usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "strip_edges", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn strip_escapes(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(45usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "strip_escapes", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn lstrip(&self, chars: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (chars.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(46usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "lstrip", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn rstrip(&self, chars: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (chars.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(47usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "rstrip", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_extension(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(48usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "get_extension", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_basename(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(49usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "get_basename", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn path_join(&self, file: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (file.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(50usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "path_join", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn indent(&self, prefix: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (prefix.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(52usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "indent", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn dedent(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(53usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "dedent", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn md5_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(55usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "md5_text", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn sha1_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(56usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "sha1_text", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn sha256_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(57usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "sha256_text", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn md5_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(58usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "md5_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn sha1_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(59usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "sha1_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn sha256_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(60usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "sha256_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(61usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_empty", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn contains(&self, what: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (what.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(62usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "contains", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn containsn(&self, what: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (what.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(63usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "containsn", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_absolute_path(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(64usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_absolute_path", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_relative_path(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(65usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_relative_path", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn simplify_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(66usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "simplify_path", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_base_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(67usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "get_base_dir", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_file(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(68usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "get_file", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn xml_escape(&self, escape_quotes: bool,) -> GString { + type CallSig = (GString, bool); + let args = (escape_quotes,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(69usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "xml_escape", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn xml_unescape(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(70usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "xml_unescape", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn uri_encode(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(71usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "uri_encode", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn uri_decode(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(72usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "uri_decode", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn c_escape(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(73usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "c_escape", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn c_unescape(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(74usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "c_unescape", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn json_escape(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(75usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "json_escape", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn validate_node_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(76usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "validate_node_name", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn validate_filename(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(77usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "validate_filename", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_identifier(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(78usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_valid_identifier", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_int(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(79usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_valid_int", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_float(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(80usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_valid_float", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_hex_number(&self, with_prefix: bool,) -> bool { + type CallSig = (bool, bool); + let args = (with_prefix,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(81usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_valid_hex_number", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_html_color(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(82usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_valid_html_color", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_ip_address(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(83usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_valid_ip_address", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_filename(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(84usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "is_valid_filename", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_int(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(85usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_int", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_float(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(86usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_float", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn hex_to_int(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(87usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "hex_to_int", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn bin_to_int(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(88usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "bin_to_int", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn trim_prefix(&self, prefix: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (prefix.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(93usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "trim_prefix", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn trim_suffix(&self, suffix: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (suffix.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(94usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "trim_suffix", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_ascii_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(95usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_ascii_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_utf8_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(96usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_utf8_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_utf16_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(97usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_utf16_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_utf32_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(98usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_utf32_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn hex_decode(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(99usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "hex_decode", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_wchar_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(100usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "to_wchar_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn num_scientific(number: f64,) -> GString { + type CallSig = (GString, f64); + let args = (number,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(101usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "num_scientific", std::ptr::null_mut(), args) + } + } + pub fn num(number: f64, decimals: i64,) -> GString { + type CallSig = (GString, f64, i64); + let args = (number, decimals,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(102usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "num", std::ptr::null_mut(), args) + } + } + pub fn num_int64(number: i64, base: i64, capitalize_hex: bool,) -> GString { + type CallSig = (GString, i64, i64, bool); + let args = (number, base, capitalize_hex,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(103usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "num_int64", std::ptr::null_mut(), args) + } + } + pub fn num_uint64(number: i64, base: i64, capitalize_hex: bool,) -> GString { + type CallSig = (GString, i64, i64, bool); + let args = (number, base, capitalize_hex,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(104usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "num_uint64", std::ptr::null_mut(), args) + } + } + pub fn chr(char: i64,) -> GString { + type CallSig = (GString, i64); + let args = (char,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(105usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "chr", std::ptr::null_mut(), args) + } + } + pub fn humanize_size(size: i64,) -> GString { + type CallSig = (GString, i64); + let args = (size,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(106usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "String", "humanize_size", std::ptr::null_mut(), args) + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/string_name.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/string_name.rs new file mode 100644 index 0000000..8fe2efe --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/string_name.rs @@ -0,0 +1,830 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerStringName < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerStringName < 'a > { + pub fn from_outer(outer: &StringName) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn casecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(471usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "casecmp_to", self.sys_ptr, args) + } + } + pub fn nocasecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(472usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "nocasecmp_to", self.sys_ptr, args) + } + } + pub fn naturalcasecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(473usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "naturalcasecmp_to", self.sys_ptr, args) + } + } + pub fn naturalnocasecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(474usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "naturalnocasecmp_to", self.sys_ptr, args) + } + } + pub fn filecasecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(475usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "filecasecmp_to", self.sys_ptr, args) + } + } + pub fn filenocasecmp_to(&self, to: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (to.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(476usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "filenocasecmp_to", self.sys_ptr, args) + } + } + pub fn length(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(477usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "length", self.sys_ptr, args) + } + } + pub fn substr(&self, from: i64, len: i64,) -> GString { + type CallSig = (GString, i64, i64); + let args = (from, len,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(478usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "substr", self.sys_ptr, args) + } + } + pub fn get_slice(&self, delimiter: impl AsArg < GString >, slice: i64,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >, i64); + let args = (delimiter.into_arg(), slice,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(479usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "get_slice", self.sys_ptr, args) + } + } + pub fn get_slicec(&self, delimiter: i64, slice: i64,) -> GString { + type CallSig = (GString, i64, i64); + let args = (delimiter, slice,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(480usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "get_slicec", self.sys_ptr, args) + } + } + pub fn get_slice_count(&self, delimiter: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (delimiter.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(481usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "get_slice_count", self.sys_ptr, args) + } + } + pub fn find(&self, what: impl AsArg < GString >, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64); + let args = (what.into_arg(), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(482usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "find", self.sys_ptr, args) + } + } + pub fn findn(&self, what: impl AsArg < GString >, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64); + let args = (what.into_arg(), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(483usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "findn", self.sys_ptr, args) + } + } + pub fn count(&self, what: impl AsArg < GString >, from: i64, to: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64, i64); + let args = (what.into_arg(), from, to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(484usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "count", self.sys_ptr, args) + } + } + pub fn countn(&self, what: impl AsArg < GString >, from: i64, to: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64, i64); + let args = (what.into_arg(), from, to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(485usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "countn", self.sys_ptr, args) + } + } + pub fn rfind(&self, what: impl AsArg < GString >, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64); + let args = (what.into_arg(), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(486usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "rfind", self.sys_ptr, args) + } + } + pub fn rfindn(&self, what: impl AsArg < GString >, from: i64,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >, i64); + let args = (what.into_arg(), from,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(487usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "rfindn", self.sys_ptr, args) + } + } + pub fn match_(&self, expr: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (expr.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(488usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "match", self.sys_ptr, args) + } + } + pub fn matchn(&self, expr: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (expr.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(489usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "matchn", self.sys_ptr, args) + } + } + pub fn format(&self, values: &Variant, placeholder: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, 'a1, > = (GString, RefArg < 'a0, Variant >, CowArg < 'a1, GString >); + let args = (RefArg::new(values), placeholder.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(496usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "format", self.sys_ptr, args) + } + } + pub fn insert(&self, position: i64, what: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, i64, CowArg < 'a0, GString >); + let args = (position, what.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(501usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "insert", self.sys_ptr, args) + } + } + pub fn erase(&self, position: i64, chars: i64,) -> GString { + type CallSig = (GString, i64, i64); + let args = (position, chars,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(502usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "erase", self.sys_ptr, args) + } + } + pub fn split(&self, delimiter: impl AsArg < GString >, allow_empty: bool, maxsplit: i64,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >, bool, i64); + let args = (delimiter.into_arg(), allow_empty, maxsplit,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(507usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "split", self.sys_ptr, args) + } + } + pub fn rsplit(&self, delimiter: impl AsArg < GString >, allow_empty: bool, maxsplit: i64,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >, bool, i64); + let args = (delimiter.into_arg(), allow_empty, maxsplit,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(508usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "rsplit", self.sys_ptr, args) + } + } + pub fn unicode_at(&self, at: i64,) -> i64 { + type CallSig = (i64, i64); + let args = (at,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(522usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "unicode_at", self.sys_ptr, args) + } + } + pub fn lpad(&self, min_length: i64, character: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, i64, CowArg < 'a0, GString >); + let args = (min_length, character.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(559usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "lpad", self.sys_ptr, args) + } + } + pub fn rpad(&self, min_length: i64, character: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, i64, CowArg < 'a0, GString >); + let args = (min_length, character.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(560usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "rpad", self.sys_ptr, args) + } + } + pub fn pad_decimals(&self, digits: i64,) -> GString { + type CallSig = (GString, i64); + let args = (digits,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(561usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "pad_decimals", self.sys_ptr, args) + } + } + pub fn pad_zeros(&self, digits: i64,) -> GString { + type CallSig = (GString, i64); + let args = (digits,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(562usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "pad_zeros", self.sys_ptr, args) + } + } + pub fn hash(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(571usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "hash", self.sys_ptr, args) + } + } +} +impl StringName { + pub fn begins_with(&self, text: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(490usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "begins_with", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn ends_with(&self, text: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(491usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "ends_with", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_subsequence_of(&self, text: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(492usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_subsequence_of", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_subsequence_ofn(&self, text: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(493usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_subsequence_ofn", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn bigrams(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(494usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "bigrams", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn similarity(&self, text: impl AsArg < GString >,) -> f64 { + type CallSig < 'a0, > = (f64, CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(495usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "similarity", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn replace(&self, what: impl AsArg < GString >, forwhat: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, 'a1, > = (GString, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (what.into_arg(), forwhat.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(497usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "replace", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn replacen(&self, what: impl AsArg < GString >, forwhat: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, 'a1, > = (GString, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (what.into_arg(), forwhat.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(498usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "replacen", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn repeat(&self, count: i64,) -> GString { + type CallSig = (GString, i64); + let args = (count,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(499usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "repeat", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn reverse(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(500usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "reverse", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn capitalize(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(503usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "capitalize", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_camel_case(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(504usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_camel_case", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_pascal_case(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(505usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_pascal_case", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_snake_case(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(506usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_snake_case", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn split_floats(&self, delimiter: impl AsArg < GString >, allow_empty: bool,) -> PackedFloat64Array { + type CallSig < 'a0, > = (PackedFloat64Array, CowArg < 'a0, GString >, bool); + let args = (delimiter.into_arg(), allow_empty,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(509usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "split_floats", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn join(&self, parts: &PackedStringArray,) -> GString { + type CallSig < 'a0, > = (GString, RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(parts),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(510usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "join", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_upper(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(511usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_upper", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_lower(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(512usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_lower", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn left(&self, length: i64,) -> GString { + type CallSig = (GString, i64); + let args = (length,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(513usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "left", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn right(&self, length: i64,) -> GString { + type CallSig = (GString, i64); + let args = (length,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(514usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "right", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn strip_edges(&self, left: bool, right: bool,) -> GString { + type CallSig = (GString, bool, bool); + let args = (left, right,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(515usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "strip_edges", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn strip_escapes(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(516usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "strip_escapes", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn lstrip(&self, chars: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (chars.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(517usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "lstrip", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn rstrip(&self, chars: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (chars.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(518usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "rstrip", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_extension(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(519usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "get_extension", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_basename(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(520usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "get_basename", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn path_join(&self, file: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (file.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(521usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "path_join", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn indent(&self, prefix: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (prefix.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(523usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "indent", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn dedent(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(524usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "dedent", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn md5_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(525usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "md5_text", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn sha1_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(526usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "sha1_text", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn sha256_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(527usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "sha256_text", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn md5_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(528usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "md5_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn sha1_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(529usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "sha1_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn sha256_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(530usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "sha256_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(531usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_empty", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn contains(&self, what: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (what.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(532usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "contains", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn containsn(&self, what: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (what.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(533usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "containsn", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_absolute_path(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(534usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_absolute_path", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_relative_path(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(535usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_relative_path", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn simplify_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(536usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "simplify_path", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_base_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(537usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "get_base_dir", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn get_file(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(538usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "get_file", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn xml_escape(&self, escape_quotes: bool,) -> GString { + type CallSig = (GString, bool); + let args = (escape_quotes,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(539usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "xml_escape", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn xml_unescape(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(540usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "xml_unescape", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn uri_encode(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(541usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "uri_encode", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn uri_decode(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(542usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "uri_decode", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn c_escape(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(543usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "c_escape", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn c_unescape(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(544usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "c_unescape", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn json_escape(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(545usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "json_escape", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn validate_node_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(546usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "validate_node_name", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn validate_filename(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(547usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "validate_filename", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_identifier(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(548usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_valid_identifier", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_int(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(549usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_valid_int", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_float(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(550usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_valid_float", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_hex_number(&self, with_prefix: bool,) -> bool { + type CallSig = (bool, bool); + let args = (with_prefix,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(551usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_valid_hex_number", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_html_color(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(552usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_valid_html_color", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_ip_address(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(553usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_valid_ip_address", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn is_valid_filename(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(554usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "is_valid_filename", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_int(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(555usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_int", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_float(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(556usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_float", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn hex_to_int(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(557usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "hex_to_int", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn bin_to_int(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(558usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "bin_to_int", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn trim_prefix(&self, prefix: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (prefix.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(563usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "trim_prefix", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn trim_suffix(&self, suffix: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (suffix.into_arg(),); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(564usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "trim_suffix", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_ascii_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(565usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_ascii_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_utf8_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(566usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_utf8_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_utf16_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(567usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_utf16_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_utf32_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(568usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_utf32_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn hex_decode(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(569usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "hex_decode", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn to_wchar_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(570usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "StringName", "to_wchar_buffer", sys::SysPtr::force_mut(self.sys()), args) + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/transform_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/transform_2d.rs new file mode 100644 index 0000000..780d28d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/transform_2d.rs @@ -0,0 +1,191 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerTransform2D < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerTransform2D < 'a > { + pub fn from_outer(outer: &Transform2D) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn inverse(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(264usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "inverse", self.sys_ptr, args) + } + } + pub fn affine_inverse(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(265usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "affine_inverse", self.sys_ptr, args) + } + } + pub fn get_rotation(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(266usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "get_rotation", self.sys_ptr, args) + } + } + pub fn get_origin(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(267usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "get_origin", self.sys_ptr, args) + } + } + pub fn get_scale(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(268usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "get_scale", self.sys_ptr, args) + } + } + pub fn get_skew(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(269usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "get_skew", self.sys_ptr, args) + } + } + pub fn orthonormalized(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(270usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "orthonormalized", self.sys_ptr, args) + } + } + pub fn rotated(&self, angle: f64,) -> Transform2D { + type CallSig = (Transform2D, f64); + let args = (angle,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(271usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "rotated", self.sys_ptr, args) + } + } + pub fn rotated_local(&self, angle: f64,) -> Transform2D { + type CallSig = (Transform2D, f64); + let args = (angle,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(272usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "rotated_local", self.sys_ptr, args) + } + } + pub fn scaled(&self, scale: Vector2,) -> Transform2D { + type CallSig = (Transform2D, Vector2); + let args = (scale,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(273usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "scaled", self.sys_ptr, args) + } + } + pub fn scaled_local(&self, scale: Vector2,) -> Transform2D { + type CallSig = (Transform2D, Vector2); + let args = (scale,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(274usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "scaled_local", self.sys_ptr, args) + } + } + pub fn translated(&self, offset: Vector2,) -> Transform2D { + type CallSig = (Transform2D, Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(275usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "translated", self.sys_ptr, args) + } + } + pub fn translated_local(&self, offset: Vector2,) -> Transform2D { + type CallSig = (Transform2D, Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(276usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "translated_local", self.sys_ptr, args) + } + } + pub fn determinant(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(277usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "determinant", self.sys_ptr, args) + } + } + pub fn basis_xform(&self, v: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (v,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(278usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "basis_xform", self.sys_ptr, args) + } + } + pub fn basis_xform_inv(&self, v: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (v,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(279usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "basis_xform_inv", self.sys_ptr, args) + } + } + pub fn interpolate_with(&self, xform: Transform2D, weight: f64,) -> Transform2D { + type CallSig = (Transform2D, Transform2D, f64); + let args = (xform, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(280usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "interpolate_with", self.sys_ptr, args) + } + } + pub fn is_conformal(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(281usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "is_conformal", self.sys_ptr, args) + } + } + pub fn is_equal_approx(&self, xform: Transform2D,) -> bool { + type CallSig = (bool, Transform2D); + let args = (xform,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(282usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "is_equal_approx", self.sys_ptr, args) + } + } + pub fn is_finite(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(283usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "is_finite", self.sys_ptr, args) + } + } + pub fn looking_at(&self, target: Vector2,) -> Transform2D { + type CallSig = (Transform2D, Vector2); + let args = (target,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(284usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform2D", "looking_at", self.sys_ptr, args) + } + } +} +impl Transform2D { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/transform_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/transform_3d.rs new file mode 100644 index 0000000..dc866a8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/transform_3d.rs @@ -0,0 +1,127 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerTransform3D < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerTransform3D < 'a > { + pub fn from_outer(outer: &Transform3D) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn inverse(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(407usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "inverse", self.sys_ptr, args) + } + } + pub fn affine_inverse(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(408usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "affine_inverse", self.sys_ptr, args) + } + } + pub fn orthonormalized(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(409usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "orthonormalized", self.sys_ptr, args) + } + } + pub fn rotated(&self, axis: Vector3, angle: f64,) -> Transform3D { + type CallSig = (Transform3D, Vector3, f64); + let args = (axis, angle,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(410usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "rotated", self.sys_ptr, args) + } + } + pub fn rotated_local(&self, axis: Vector3, angle: f64,) -> Transform3D { + type CallSig = (Transform3D, Vector3, f64); + let args = (axis, angle,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(411usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "rotated_local", self.sys_ptr, args) + } + } + pub fn scaled(&self, scale: Vector3,) -> Transform3D { + type CallSig = (Transform3D, Vector3); + let args = (scale,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(412usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "scaled", self.sys_ptr, args) + } + } + pub fn scaled_local(&self, scale: Vector3,) -> Transform3D { + type CallSig = (Transform3D, Vector3); + let args = (scale,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(413usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "scaled_local", self.sys_ptr, args) + } + } + pub fn translated(&self, offset: Vector3,) -> Transform3D { + type CallSig = (Transform3D, Vector3); + let args = (offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(414usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "translated", self.sys_ptr, args) + } + } + pub fn translated_local(&self, offset: Vector3,) -> Transform3D { + type CallSig = (Transform3D, Vector3); + let args = (offset,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(415usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "translated_local", self.sys_ptr, args) + } + } + pub fn looking_at(&self, target: Vector3, up: Vector3, use_model_front: bool,) -> Transform3D { + type CallSig = (Transform3D, Vector3, Vector3, bool); + let args = (target, up, use_model_front,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(416usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "looking_at", self.sys_ptr, args) + } + } + pub fn interpolate_with(&self, xform: Transform3D, weight: f64,) -> Transform3D { + type CallSig = (Transform3D, Transform3D, f64); + let args = (xform, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(417usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "interpolate_with", self.sys_ptr, args) + } + } + pub fn is_equal_approx(&self, xform: Transform3D,) -> bool { + type CallSig = (bool, Transform3D); + let args = (xform,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(418usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "is_equal_approx", self.sys_ptr, args) + } + } + pub fn is_finite(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(419usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Transform3D", "is_finite", self.sys_ptr, args) + } + } +} +impl Transform3D { + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector2.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector2.rs new file mode 100644 index 0000000..1f805b4 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector2.rs @@ -0,0 +1,477 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerVector2 < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerVector2 < 'a > { + pub fn from_outer(outer: &Vector2) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn angle(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(107usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "angle", self.sys_ptr, args) + } + } + pub fn angle_to(&self, to: Vector2,) -> f64 { + type CallSig = (f64, Vector2); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(108usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "angle_to", self.sys_ptr, args) + } + } + pub fn angle_to_point(&self, to: Vector2,) -> f64 { + type CallSig = (f64, Vector2); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(109usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "angle_to_point", self.sys_ptr, args) + } + } + pub fn direction_to(&self, to: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(110usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "direction_to", self.sys_ptr, args) + } + } + pub fn distance_to(&self, to: Vector2,) -> f64 { + type CallSig = (f64, Vector2); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(111usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "distance_to", self.sys_ptr, args) + } + } + pub fn distance_squared_to(&self, to: Vector2,) -> f64 { + type CallSig = (f64, Vector2); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(112usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "distance_squared_to", self.sys_ptr, args) + } + } + pub fn length(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(113usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "length", self.sys_ptr, args) + } + } + pub fn length_squared(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(114usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "length_squared", self.sys_ptr, args) + } + } + pub fn limit_length(&self, length: f64,) -> Vector2 { + type CallSig = (Vector2, f64); + let args = (length,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(115usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "limit_length", self.sys_ptr, args) + } + } + pub fn normalized(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(116usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "normalized", self.sys_ptr, args) + } + } + pub fn is_normalized(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(117usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "is_normalized", self.sys_ptr, args) + } + } + pub fn is_equal_approx(&self, to: Vector2,) -> bool { + type CallSig = (bool, Vector2); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(118usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "is_equal_approx", self.sys_ptr, args) + } + } + pub fn is_zero_approx(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(119usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "is_zero_approx", self.sys_ptr, args) + } + } + pub fn is_finite(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(120usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "is_finite", self.sys_ptr, args) + } + } + pub fn posmod(&self, mod_: f64,) -> Vector2 { + type CallSig = (Vector2, f64); + let args = (mod_,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(121usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "posmod", self.sys_ptr, args) + } + } + pub fn posmodv(&self, modv: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (modv,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(122usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "posmodv", self.sys_ptr, args) + } + } + pub fn project(&self, b: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (b,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(123usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "project", self.sys_ptr, args) + } + } + pub fn lerp(&self, to: Vector2, weight: f64,) -> Vector2 { + type CallSig = (Vector2, Vector2, f64); + let args = (to, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(124usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "lerp", self.sys_ptr, args) + } + } + pub fn slerp(&self, to: Vector2, weight: f64,) -> Vector2 { + type CallSig = (Vector2, Vector2, f64); + let args = (to, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(125usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "slerp", self.sys_ptr, args) + } + } + pub fn cubic_interpolate(&self, b: Vector2, pre_a: Vector2, post_b: Vector2, weight: f64,) -> Vector2 { + type CallSig = (Vector2, Vector2, Vector2, Vector2, f64); + let args = (b, pre_a, post_b, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(126usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "cubic_interpolate", self.sys_ptr, args) + } + } + pub fn cubic_interpolate_in_time(&self, b: Vector2, pre_a: Vector2, post_b: Vector2, weight: f64, b_t: f64, pre_a_t: f64, post_b_t: f64,) -> Vector2 { + type CallSig = (Vector2, Vector2, Vector2, Vector2, f64, f64, f64, f64); + let args = (b, pre_a, post_b, weight, b_t, pre_a_t, post_b_t,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(127usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "cubic_interpolate_in_time", self.sys_ptr, args) + } + } + pub fn bezier_interpolate(&self, control_1: Vector2, control_2: Vector2, end: Vector2, t: f64,) -> Vector2 { + type CallSig = (Vector2, Vector2, Vector2, Vector2, f64); + let args = (control_1, control_2, end, t,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(128usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "bezier_interpolate", self.sys_ptr, args) + } + } + pub fn bezier_derivative(&self, control_1: Vector2, control_2: Vector2, end: Vector2, t: f64,) -> Vector2 { + type CallSig = (Vector2, Vector2, Vector2, Vector2, f64); + let args = (control_1, control_2, end, t,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(129usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "bezier_derivative", self.sys_ptr, args) + } + } + pub fn max_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(130usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "max_axis_index", self.sys_ptr, args) + } + } + pub fn min_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(131usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "min_axis_index", self.sys_ptr, args) + } + } + pub fn move_toward(&self, to: Vector2, delta: f64,) -> Vector2 { + type CallSig = (Vector2, Vector2, f64); + let args = (to, delta,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(132usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "move_toward", self.sys_ptr, args) + } + } + pub fn rotated(&self, angle: f64,) -> Vector2 { + type CallSig = (Vector2, f64); + let args = (angle,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(133usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "rotated", self.sys_ptr, args) + } + } + pub fn orthogonal(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(134usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "orthogonal", self.sys_ptr, args) + } + } + pub fn floor(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(135usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "floor", self.sys_ptr, args) + } + } + pub fn ceil(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(136usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "ceil", self.sys_ptr, args) + } + } + pub fn round(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(137usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "round", self.sys_ptr, args) + } + } + pub fn aspect(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(138usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "aspect", self.sys_ptr, args) + } + } + pub fn dot(&self, with: Vector2,) -> f64 { + type CallSig = (f64, Vector2); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(139usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "dot", self.sys_ptr, args) + } + } + pub fn slide(&self, n: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (n,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(140usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "slide", self.sys_ptr, args) + } + } + pub fn bounce(&self, n: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (n,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(141usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "bounce", self.sys_ptr, args) + } + } + pub fn reflect(&self, line: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (line,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(142usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "reflect", self.sys_ptr, args) + } + } + pub fn cross(&self, with: Vector2,) -> f64 { + type CallSig = (f64, Vector2); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(143usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "cross", self.sys_ptr, args) + } + } + pub fn abs(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(144usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "abs", self.sys_ptr, args) + } + } + pub fn sign(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(145usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "sign", self.sys_ptr, args) + } + } + pub fn clamp(&self, min: Vector2, max: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2, Vector2); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(146usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "clamp", self.sys_ptr, args) + } + } + pub fn clampf(&self, min: f64, max: f64,) -> Vector2 { + type CallSig = (Vector2, f64, f64); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(147usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "clampf", self.sys_ptr, args) + } + } + pub fn snapped(&self, step: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(148usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "snapped", self.sys_ptr, args) + } + } + pub fn snappedf(&self, step: f64,) -> Vector2 { + type CallSig = (Vector2, f64); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(149usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "snappedf", self.sys_ptr, args) + } + } + pub fn min(&self, with: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(150usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "min", self.sys_ptr, args) + } + } + pub fn minf(&self, with: f64,) -> Vector2 { + type CallSig = (Vector2, f64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(151usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "minf", self.sys_ptr, args) + } + } + pub fn max(&self, with: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(152usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "max", self.sys_ptr, args) + } + } + pub fn maxf(&self, with: f64,) -> Vector2 { + type CallSig = (Vector2, f64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(153usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "maxf", self.sys_ptr, args) + } + } + pub fn from_angle(angle: f64,) -> Vector2 { + type CallSig = (Vector2, f64); + let args = (angle,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(154usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2", "from_angle", std::ptr::null_mut(), args) + } + } +} +impl Vector2 { + +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Axis { + ord: i32 +} +impl Axis { + #[doc(alias = "AXIS_X")] + #[doc = "Godot enumerator name: `AXIS_X`"] + pub const X: Axis = Axis { + ord: 0i32 + }; + #[doc(alias = "AXIS_Y")] + #[doc = "Godot enumerator name: `AXIS_Y`"] + pub const Y: Axis = Axis { + ord: 1i32 + }; + +} +impl std::fmt::Debug for Axis { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Axis") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Axis { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "X", Self::Y => "Y", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "AXIS_X", Self::Y => "AXIS_Y", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Axis { + type Via = i32; + +} +impl crate::meta::ToGodot for Axis { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Axis { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector2i.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector2i.rs new file mode 100644 index 0000000..eea0f6a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector2i.rs @@ -0,0 +1,228 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerVector2i < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerVector2i < 'a > { + pub fn from_outer(outer: &Vector2i) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn aspect(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(155usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "aspect", self.sys_ptr, args) + } + } + pub fn max_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(156usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "max_axis_index", self.sys_ptr, args) + } + } + pub fn min_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(157usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "min_axis_index", self.sys_ptr, args) + } + } + pub fn length(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(160usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "length", self.sys_ptr, args) + } + } + pub fn length_squared(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(161usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "length_squared", self.sys_ptr, args) + } + } + pub fn sign(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(162usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "sign", self.sys_ptr, args) + } + } + pub fn abs(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(163usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "abs", self.sys_ptr, args) + } + } + pub fn clamp(&self, min: Vector2i, max: Vector2i,) -> Vector2i { + type CallSig = (Vector2i, Vector2i, Vector2i); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(164usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "clamp", self.sys_ptr, args) + } + } + pub fn snapped(&self, step: Vector2i,) -> Vector2i { + type CallSig = (Vector2i, Vector2i); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(166usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "snapped", self.sys_ptr, args) + } + } + pub fn min(&self, with: Vector2i,) -> Vector2i { + type CallSig = (Vector2i, Vector2i); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(168usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "min", self.sys_ptr, args) + } + } + pub fn max(&self, with: Vector2i,) -> Vector2i { + type CallSig = (Vector2i, Vector2i); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(170usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "max", self.sys_ptr, args) + } + } +} +impl Vector2i { + pub fn distance_to(&self, to: Vector2i,) -> f64 { + type CallSig = (f64, Vector2i); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(158usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "distance_to", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn distance_squared_to(&self, to: Vector2i,) -> i64 { + type CallSig = (i64, Vector2i); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(159usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "distance_squared_to", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn clampi(&self, min: i64, max: i64,) -> Vector2i { + type CallSig = (Vector2i, i64, i64); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(165usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "clampi", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn snappedi(&self, step: i64,) -> Vector2i { + type CallSig = (Vector2i, i64); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(167usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "snappedi", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn mini(&self, with: i64,) -> Vector2i { + type CallSig = (Vector2i, i64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(169usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "mini", sys::SysPtr::force_mut(self.sys()), args) + } + } + pub fn maxi(&self, with: i64,) -> Vector2i { + type CallSig = (Vector2i, i64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(171usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector2i", "maxi", sys::SysPtr::force_mut(self.sys()), args) + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Axis { + ord: i32 +} +impl Axis { + #[doc(alias = "AXIS_X")] + #[doc = "Godot enumerator name: `AXIS_X`"] + pub const X: Axis = Axis { + ord: 0i32 + }; + #[doc(alias = "AXIS_Y")] + #[doc = "Godot enumerator name: `AXIS_Y`"] + pub const Y: Axis = Axis { + ord: 1i32 + }; + +} +impl std::fmt::Debug for Axis { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Axis") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Axis { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "X", Self::Y => "Y", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "AXIS_X", Self::Y => "AXIS_Y", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Axis { + type Via = i32; + +} +impl crate::meta::ToGodot for Axis { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Axis { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector3.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector3.rs new file mode 100644 index 0000000..888d333 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector3.rs @@ -0,0 +1,482 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerVector3 < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerVector3 < 'a > { + pub fn from_outer(outer: &Vector3) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn min_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(200usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "min_axis_index", self.sys_ptr, args) + } + } + pub fn max_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(201usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "max_axis_index", self.sys_ptr, args) + } + } + pub fn angle_to(&self, to: Vector3,) -> f64 { + type CallSig = (f64, Vector3); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(202usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "angle_to", self.sys_ptr, args) + } + } + pub fn signed_angle_to(&self, to: Vector3, axis: Vector3,) -> f64 { + type CallSig = (f64, Vector3, Vector3); + let args = (to, axis,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(203usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "signed_angle_to", self.sys_ptr, args) + } + } + pub fn direction_to(&self, to: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(204usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "direction_to", self.sys_ptr, args) + } + } + pub fn distance_to(&self, to: Vector3,) -> f64 { + type CallSig = (f64, Vector3); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(205usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "distance_to", self.sys_ptr, args) + } + } + pub fn distance_squared_to(&self, to: Vector3,) -> f64 { + type CallSig = (f64, Vector3); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(206usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "distance_squared_to", self.sys_ptr, args) + } + } + pub fn length(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(207usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "length", self.sys_ptr, args) + } + } + pub fn length_squared(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(208usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "length_squared", self.sys_ptr, args) + } + } + pub fn limit_length(&self, length: f64,) -> Vector3 { + type CallSig = (Vector3, f64); + let args = (length,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(209usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "limit_length", self.sys_ptr, args) + } + } + pub fn normalized(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(210usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "normalized", self.sys_ptr, args) + } + } + pub fn is_normalized(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(211usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "is_normalized", self.sys_ptr, args) + } + } + pub fn is_equal_approx(&self, to: Vector3,) -> bool { + type CallSig = (bool, Vector3); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(212usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "is_equal_approx", self.sys_ptr, args) + } + } + pub fn is_zero_approx(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(213usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "is_zero_approx", self.sys_ptr, args) + } + } + pub fn is_finite(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(214usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "is_finite", self.sys_ptr, args) + } + } + pub fn inverse(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(215usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "inverse", self.sys_ptr, args) + } + } + pub fn clamp(&self, min: Vector3, max: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3, Vector3); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(216usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "clamp", self.sys_ptr, args) + } + } + pub fn clampf(&self, min: f64, max: f64,) -> Vector3 { + type CallSig = (Vector3, f64, f64); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(217usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "clampf", self.sys_ptr, args) + } + } + pub fn snapped(&self, step: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(218usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "snapped", self.sys_ptr, args) + } + } + pub fn snappedf(&self, step: f64,) -> Vector3 { + type CallSig = (Vector3, f64); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(219usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "snappedf", self.sys_ptr, args) + } + } + pub fn rotated(&self, axis: Vector3, angle: f64,) -> Vector3 { + type CallSig = (Vector3, Vector3, f64); + let args = (axis, angle,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(220usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "rotated", self.sys_ptr, args) + } + } + pub fn lerp(&self, to: Vector3, weight: f64,) -> Vector3 { + type CallSig = (Vector3, Vector3, f64); + let args = (to, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(221usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "lerp", self.sys_ptr, args) + } + } + pub fn slerp(&self, to: Vector3, weight: f64,) -> Vector3 { + type CallSig = (Vector3, Vector3, f64); + let args = (to, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(222usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "slerp", self.sys_ptr, args) + } + } + pub fn cubic_interpolate(&self, b: Vector3, pre_a: Vector3, post_b: Vector3, weight: f64,) -> Vector3 { + type CallSig = (Vector3, Vector3, Vector3, Vector3, f64); + let args = (b, pre_a, post_b, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(223usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "cubic_interpolate", self.sys_ptr, args) + } + } + pub fn cubic_interpolate_in_time(&self, b: Vector3, pre_a: Vector3, post_b: Vector3, weight: f64, b_t: f64, pre_a_t: f64, post_b_t: f64,) -> Vector3 { + type CallSig = (Vector3, Vector3, Vector3, Vector3, f64, f64, f64, f64); + let args = (b, pre_a, post_b, weight, b_t, pre_a_t, post_b_t,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(224usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "cubic_interpolate_in_time", self.sys_ptr, args) + } + } + pub fn bezier_interpolate(&self, control_1: Vector3, control_2: Vector3, end: Vector3, t: f64,) -> Vector3 { + type CallSig = (Vector3, Vector3, Vector3, Vector3, f64); + let args = (control_1, control_2, end, t,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(225usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "bezier_interpolate", self.sys_ptr, args) + } + } + pub fn bezier_derivative(&self, control_1: Vector3, control_2: Vector3, end: Vector3, t: f64,) -> Vector3 { + type CallSig = (Vector3, Vector3, Vector3, Vector3, f64); + let args = (control_1, control_2, end, t,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(226usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "bezier_derivative", self.sys_ptr, args) + } + } + pub fn move_toward(&self, to: Vector3, delta: f64,) -> Vector3 { + type CallSig = (Vector3, Vector3, f64); + let args = (to, delta,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(227usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "move_toward", self.sys_ptr, args) + } + } + pub fn dot(&self, with: Vector3,) -> f64 { + type CallSig = (f64, Vector3); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(228usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "dot", self.sys_ptr, args) + } + } + pub fn cross(&self, with: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(229usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "cross", self.sys_ptr, args) + } + } + pub fn outer(&self, with: Vector3,) -> Basis { + type CallSig = (Basis, Vector3); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(230usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "outer", self.sys_ptr, args) + } + } + pub fn abs(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(231usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "abs", self.sys_ptr, args) + } + } + pub fn floor(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(232usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "floor", self.sys_ptr, args) + } + } + pub fn ceil(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(233usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "ceil", self.sys_ptr, args) + } + } + pub fn round(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(234usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "round", self.sys_ptr, args) + } + } + pub fn posmod(&self, mod_: f64,) -> Vector3 { + type CallSig = (Vector3, f64); + let args = (mod_,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(235usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "posmod", self.sys_ptr, args) + } + } + pub fn posmodv(&self, modv: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (modv,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(236usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "posmodv", self.sys_ptr, args) + } + } + pub fn project(&self, b: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (b,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(237usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "project", self.sys_ptr, args) + } + } + pub fn slide(&self, n: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (n,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(238usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "slide", self.sys_ptr, args) + } + } + pub fn bounce(&self, n: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (n,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(239usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "bounce", self.sys_ptr, args) + } + } + pub fn reflect(&self, n: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (n,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(240usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "reflect", self.sys_ptr, args) + } + } + pub fn sign(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(241usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "sign", self.sys_ptr, args) + } + } + pub fn octahedron_encode(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(242usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "octahedron_encode", self.sys_ptr, args) + } + } + pub fn min(&self, with: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(243usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "min", self.sys_ptr, args) + } + } + pub fn minf(&self, with: f64,) -> Vector3 { + type CallSig = (Vector3, f64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(244usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "minf", self.sys_ptr, args) + } + } + pub fn max(&self, with: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(245usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "max", self.sys_ptr, args) + } + } + pub fn maxf(&self, with: f64,) -> Vector3 { + type CallSig = (Vector3, f64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(246usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "maxf", self.sys_ptr, args) + } + } + pub fn octahedron_decode(uv: Vector2,) -> Vector3 { + type CallSig = (Vector3, Vector2); + let args = (uv,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(247usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3", "octahedron_decode", std::ptr::null_mut(), args) + } + } +} +impl Vector3 { + +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Axis { + ord: i32 +} +impl Axis { + #[doc(alias = "AXIS_X")] + #[doc = "Godot enumerator name: `AXIS_X`"] + pub const X: Axis = Axis { + ord: 0i32 + }; + #[doc(alias = "AXIS_Y")] + #[doc = "Godot enumerator name: `AXIS_Y`"] + pub const Y: Axis = Axis { + ord: 1i32 + }; + #[doc(alias = "AXIS_Z")] + #[doc = "Godot enumerator name: `AXIS_Z`"] + pub const Z: Axis = Axis { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Axis { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Axis") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Axis { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "X", Self::Y => "Y", Self::Z => "Z", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "AXIS_X", Self::Y => "AXIS_Y", Self::Z => "AXIS_Z", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Axis { + type Via = i32; + +} +impl crate::meta::ToGodot for Axis { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Axis { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector3i.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector3i.rs new file mode 100644 index 0000000..8ed4a6e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector3i.rs @@ -0,0 +1,226 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerVector3i < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerVector3i < 'a > { + pub fn from_outer(outer: &Vector3i) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn min_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(248usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "min_axis_index", self.sys_ptr, args) + } + } + pub fn max_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(249usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "max_axis_index", self.sys_ptr, args) + } + } + pub fn distance_to(&self, to: Vector3i,) -> f64 { + type CallSig = (f64, Vector3i); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(250usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "distance_to", self.sys_ptr, args) + } + } + pub fn distance_squared_to(&self, to: Vector3i,) -> i64 { + type CallSig = (i64, Vector3i); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(251usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "distance_squared_to", self.sys_ptr, args) + } + } + pub fn length(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(252usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "length", self.sys_ptr, args) + } + } + pub fn length_squared(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(253usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "length_squared", self.sys_ptr, args) + } + } + pub fn sign(&self,) -> Vector3i { + type CallSig = (Vector3i,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(254usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "sign", self.sys_ptr, args) + } + } + pub fn abs(&self,) -> Vector3i { + type CallSig = (Vector3i,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(255usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "abs", self.sys_ptr, args) + } + } + pub fn clamp(&self, min: Vector3i, max: Vector3i,) -> Vector3i { + type CallSig = (Vector3i, Vector3i, Vector3i); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(256usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "clamp", self.sys_ptr, args) + } + } + pub fn clampi(&self, min: i64, max: i64,) -> Vector3i { + type CallSig = (Vector3i, i64, i64); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(257usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "clampi", self.sys_ptr, args) + } + } + pub fn snapped(&self, step: Vector3i,) -> Vector3i { + type CallSig = (Vector3i, Vector3i); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(258usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "snapped", self.sys_ptr, args) + } + } + pub fn snappedi(&self, step: i64,) -> Vector3i { + type CallSig = (Vector3i, i64); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(259usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "snappedi", self.sys_ptr, args) + } + } + pub fn min(&self, with: Vector3i,) -> Vector3i { + type CallSig = (Vector3i, Vector3i); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(260usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "min", self.sys_ptr, args) + } + } + pub fn mini(&self, with: i64,) -> Vector3i { + type CallSig = (Vector3i, i64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(261usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "mini", self.sys_ptr, args) + } + } + pub fn max(&self, with: Vector3i,) -> Vector3i { + type CallSig = (Vector3i, Vector3i); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(262usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "max", self.sys_ptr, args) + } + } + pub fn maxi(&self, with: i64,) -> Vector3i { + type CallSig = (Vector3i, i64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(263usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector3i", "maxi", self.sys_ptr, args) + } + } +} +impl Vector3i { + +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Axis { + ord: i32 +} +impl Axis { + #[doc(alias = "AXIS_X")] + #[doc = "Godot enumerator name: `AXIS_X`"] + pub const X: Axis = Axis { + ord: 0i32 + }; + #[doc(alias = "AXIS_Y")] + #[doc = "Godot enumerator name: `AXIS_Y`"] + pub const Y: Axis = Axis { + ord: 1i32 + }; + #[doc(alias = "AXIS_Z")] + #[doc = "Godot enumerator name: `AXIS_Z`"] + pub const Z: Axis = Axis { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Axis { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Axis") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Axis { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "X", Self::Y => "Y", Self::Z => "Z", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "AXIS_X", Self::Y => "AXIS_Y", Self::Z => "AXIS_Z", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Axis { + type Via = i32; + +} +impl crate::meta::ToGodot for Axis { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Axis { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector4.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector4.rs new file mode 100644 index 0000000..12fbbda --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector4.rs @@ -0,0 +1,359 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerVector4 < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerVector4 < 'a > { + pub fn from_outer(outer: &Vector4) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn min_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(285usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "min_axis_index", self.sys_ptr, args) + } + } + pub fn max_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(286usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "max_axis_index", self.sys_ptr, args) + } + } + pub fn length(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(287usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "length", self.sys_ptr, args) + } + } + pub fn length_squared(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(288usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "length_squared", self.sys_ptr, args) + } + } + pub fn abs(&self,) -> Vector4 { + type CallSig = (Vector4,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(289usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "abs", self.sys_ptr, args) + } + } + pub fn sign(&self,) -> Vector4 { + type CallSig = (Vector4,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(290usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "sign", self.sys_ptr, args) + } + } + pub fn floor(&self,) -> Vector4 { + type CallSig = (Vector4,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(291usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "floor", self.sys_ptr, args) + } + } + pub fn ceil(&self,) -> Vector4 { + type CallSig = (Vector4,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(292usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "ceil", self.sys_ptr, args) + } + } + pub fn round(&self,) -> Vector4 { + type CallSig = (Vector4,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(293usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "round", self.sys_ptr, args) + } + } + pub fn lerp(&self, to: Vector4, weight: f64,) -> Vector4 { + type CallSig = (Vector4, Vector4, f64); + let args = (to, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(294usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "lerp", self.sys_ptr, args) + } + } + pub fn cubic_interpolate(&self, b: Vector4, pre_a: Vector4, post_b: Vector4, weight: f64,) -> Vector4 { + type CallSig = (Vector4, Vector4, Vector4, Vector4, f64); + let args = (b, pre_a, post_b, weight,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(295usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "cubic_interpolate", self.sys_ptr, args) + } + } + pub fn cubic_interpolate_in_time(&self, b: Vector4, pre_a: Vector4, post_b: Vector4, weight: f64, b_t: f64, pre_a_t: f64, post_b_t: f64,) -> Vector4 { + type CallSig = (Vector4, Vector4, Vector4, Vector4, f64, f64, f64, f64); + let args = (b, pre_a, post_b, weight, b_t, pre_a_t, post_b_t,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(296usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "cubic_interpolate_in_time", self.sys_ptr, args) + } + } + pub fn posmod(&self, mod_: f64,) -> Vector4 { + type CallSig = (Vector4, f64); + let args = (mod_,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(297usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "posmod", self.sys_ptr, args) + } + } + pub fn posmodv(&self, modv: Vector4,) -> Vector4 { + type CallSig = (Vector4, Vector4); + let args = (modv,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(298usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "posmodv", self.sys_ptr, args) + } + } + pub fn snapped(&self, step: Vector4,) -> Vector4 { + type CallSig = (Vector4, Vector4); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(299usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "snapped", self.sys_ptr, args) + } + } + pub fn snappedf(&self, step: f64,) -> Vector4 { + type CallSig = (Vector4, f64); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(300usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "snappedf", self.sys_ptr, args) + } + } + pub fn clamp(&self, min: Vector4, max: Vector4,) -> Vector4 { + type CallSig = (Vector4, Vector4, Vector4); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(301usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "clamp", self.sys_ptr, args) + } + } + pub fn clampf(&self, min: f64, max: f64,) -> Vector4 { + type CallSig = (Vector4, f64, f64); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(302usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "clampf", self.sys_ptr, args) + } + } + pub fn normalized(&self,) -> Vector4 { + type CallSig = (Vector4,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(303usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "normalized", self.sys_ptr, args) + } + } + pub fn is_normalized(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(304usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "is_normalized", self.sys_ptr, args) + } + } + pub fn direction_to(&self, to: Vector4,) -> Vector4 { + type CallSig = (Vector4, Vector4); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(305usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "direction_to", self.sys_ptr, args) + } + } + pub fn distance_to(&self, to: Vector4,) -> f64 { + type CallSig = (f64, Vector4); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(306usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "distance_to", self.sys_ptr, args) + } + } + pub fn distance_squared_to(&self, to: Vector4,) -> f64 { + type CallSig = (f64, Vector4); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(307usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "distance_squared_to", self.sys_ptr, args) + } + } + pub fn dot(&self, with: Vector4,) -> f64 { + type CallSig = (f64, Vector4); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(308usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "dot", self.sys_ptr, args) + } + } + pub fn inverse(&self,) -> Vector4 { + type CallSig = (Vector4,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(309usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "inverse", self.sys_ptr, args) + } + } + pub fn is_equal_approx(&self, to: Vector4,) -> bool { + type CallSig = (bool, Vector4); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(310usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "is_equal_approx", self.sys_ptr, args) + } + } + pub fn is_zero_approx(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(311usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "is_zero_approx", self.sys_ptr, args) + } + } + pub fn is_finite(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(312usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "is_finite", self.sys_ptr, args) + } + } + pub fn min(&self, with: Vector4,) -> Vector4 { + type CallSig = (Vector4, Vector4); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(313usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "min", self.sys_ptr, args) + } + } + pub fn minf(&self, with: f64,) -> Vector4 { + type CallSig = (Vector4, f64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(314usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "minf", self.sys_ptr, args) + } + } + pub fn max(&self, with: Vector4,) -> Vector4 { + type CallSig = (Vector4, Vector4); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(315usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "max", self.sys_ptr, args) + } + } + pub fn maxf(&self, with: f64,) -> Vector4 { + type CallSig = (Vector4, f64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(316usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4", "maxf", self.sys_ptr, args) + } + } +} +impl Vector4 { + +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Axis { + ord: i32 +} +impl Axis { + #[doc(alias = "AXIS_X")] + #[doc = "Godot enumerator name: `AXIS_X`"] + pub const X: Axis = Axis { + ord: 0i32 + }; + #[doc(alias = "AXIS_Y")] + #[doc = "Godot enumerator name: `AXIS_Y`"] + pub const Y: Axis = Axis { + ord: 1i32 + }; + #[doc(alias = "AXIS_Z")] + #[doc = "Godot enumerator name: `AXIS_Z`"] + pub const Z: Axis = Axis { + ord: 2i32 + }; + #[doc(alias = "AXIS_W")] + #[doc = "Godot enumerator name: `AXIS_W`"] + pub const W: Axis = Axis { + ord: 3i32 + }; + +} +impl std::fmt::Debug for Axis { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Axis") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Axis { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "X", Self::Y => "Y", Self::Z => "Z", Self::W => "W", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "AXIS_X", Self::Y => "AXIS_Y", Self::Z => "AXIS_Z", Self::W => "AXIS_W", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Axis { + type Via = i32; + +} +impl crate::meta::ToGodot for Axis { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Axis { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector4i.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector4i.rs new file mode 100644 index 0000000..2be0c27 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/builtin_classes/vector4i.rs @@ -0,0 +1,231 @@ +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +#[repr(transparent)] +pub struct InnerVector4i < 'a > { + _outer_lifetime: std::marker::PhantomData < &'a() >, sys_ptr: sys::GDExtensionTypePtr, +} +impl < 'a > InnerVector4i < 'a > { + pub fn from_outer(outer: &Vector4i) -> Self { + Self { + _outer_lifetime: std::marker::PhantomData, sys_ptr: sys::SysPtr::force_mut(outer.sys()), + } + } + pub fn min_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(317usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "min_axis_index", self.sys_ptr, args) + } + } + pub fn max_axis_index(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(318usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "max_axis_index", self.sys_ptr, args) + } + } + pub fn length(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(319usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "length", self.sys_ptr, args) + } + } + pub fn length_squared(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(320usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "length_squared", self.sys_ptr, args) + } + } + pub fn sign(&self,) -> Vector4i { + type CallSig = (Vector4i,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(321usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "sign", self.sys_ptr, args) + } + } + pub fn abs(&self,) -> Vector4i { + type CallSig = (Vector4i,); + let args = (); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(322usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "abs", self.sys_ptr, args) + } + } + pub fn clamp(&self, min: Vector4i, max: Vector4i,) -> Vector4i { + type CallSig = (Vector4i, Vector4i, Vector4i); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(323usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "clamp", self.sys_ptr, args) + } + } + pub fn clampi(&self, min: i64, max: i64,) -> Vector4i { + type CallSig = (Vector4i, i64, i64); + let args = (min, max,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(324usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "clampi", self.sys_ptr, args) + } + } + pub fn snapped(&self, step: Vector4i,) -> Vector4i { + type CallSig = (Vector4i, Vector4i); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(325usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "snapped", self.sys_ptr, args) + } + } + pub fn snappedi(&self, step: i64,) -> Vector4i { + type CallSig = (Vector4i, i64); + let args = (step,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(326usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "snappedi", self.sys_ptr, args) + } + } + pub fn min(&self, with: Vector4i,) -> Vector4i { + type CallSig = (Vector4i, Vector4i); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(327usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "min", self.sys_ptr, args) + } + } + pub fn mini(&self, with: i64,) -> Vector4i { + type CallSig = (Vector4i, i64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(328usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "mini", self.sys_ptr, args) + } + } + pub fn max(&self, with: Vector4i,) -> Vector4i { + type CallSig = (Vector4i, Vector4i); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(329usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "max", self.sys_ptr, args) + } + } + pub fn maxi(&self, with: i64,) -> Vector4i { + type CallSig = (Vector4i, i64); + let args = (with,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(330usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "maxi", self.sys_ptr, args) + } + } + pub fn distance_to(&self, to: Vector4i,) -> f64 { + type CallSig = (f64, Vector4i); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(331usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "distance_to", self.sys_ptr, args) + } + } + pub fn distance_squared_to(&self, to: Vector4i,) -> i64 { + type CallSig = (i64, Vector4i); + let args = (to,); + unsafe { + let method_bind = sys::builtin_method_table() . fptr_by_index(332usize); + < CallSig as PtrcallSignatureTuple > ::out_builtin_ptrcall(method_bind, "Vector4i", "distance_squared_to", self.sys_ptr, args) + } + } +} +impl Vector4i { + +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Axis { + ord: i32 +} +impl Axis { + #[doc(alias = "AXIS_X")] + #[doc = "Godot enumerator name: `AXIS_X`"] + pub const X: Axis = Axis { + ord: 0i32 + }; + #[doc(alias = "AXIS_Y")] + #[doc = "Godot enumerator name: `AXIS_Y`"] + pub const Y: Axis = Axis { + ord: 1i32 + }; + #[doc(alias = "AXIS_Z")] + #[doc = "Godot enumerator name: `AXIS_Z`"] + pub const Z: Axis = Axis { + ord: 2i32 + }; + #[doc(alias = "AXIS_W")] + #[doc = "Godot enumerator name: `AXIS_W`"] + pub const W: Axis = Axis { + ord: 3i32 + }; + +} +impl std::fmt::Debug for Axis { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Axis") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Axis { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "X", Self::Y => "Y", Self::Z => "Z", Self::W => "W", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "AXIS_X", Self::Y => "AXIS_Y", Self::Z => "AXIS_Z", Self::W => "AXIS_W", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Axis { + type Via = i32; + +} +impl crate::meta::ToGodot for Axis { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Axis { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/central.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/central.rs new file mode 100644 index 0000000..b18af12 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/central.rs @@ -0,0 +1,3435 @@ +use crate::builtin::*; +use crate::classes::Object; +use crate::obj::Gd; +impl crate::obj::EngineEnum for VariantType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 | ord @ 26i32 | ord @ 27i32 | ord @ 28i32 | ord @ 29i32 | ord @ 30i32 | ord @ 31i32 | ord @ 32i32 | ord @ 33i32 | ord @ 34i32 | ord @ 35i32 | ord @ 36i32 | ord @ 37i32 | ord @ 38i32 | ord @ 39i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NIL => "NIL", Self::BOOL => "BOOL", Self::INT => "INT", Self::FLOAT => "FLOAT", Self::STRING => "STRING", Self::VECTOR2 => "VECTOR2", Self::VECTOR2I => "VECTOR2I", Self::RECT2 => "RECT2", Self::RECT2I => "RECT2I", Self::VECTOR3 => "VECTOR3", Self::VECTOR3I => "VECTOR3I", Self::TRANSFORM2D => "TRANSFORM2D", Self::VECTOR4 => "VECTOR4", Self::VECTOR4I => "VECTOR4I", Self::PLANE => "PLANE", Self::QUATERNION => "QUATERNION", Self::AABB => "AABB", Self::BASIS => "BASIS", Self::TRANSFORM3D => "TRANSFORM3D", Self::PROJECTION => "PROJECTION", Self::COLOR => "COLOR", Self::STRING_NAME => "STRING_NAME", Self::NODE_PATH => "NODE_PATH", Self::RID => "RID", Self::OBJECT => "OBJECT", Self::CALLABLE => "CALLABLE", Self::SIGNAL => "SIGNAL", Self::DICTIONARY => "DICTIONARY", Self::ARRAY => "ARRAY", Self::PACKED_BYTE_ARRAY => "PACKED_BYTE_ARRAY", Self::PACKED_INT32_ARRAY => "PACKED_INT32_ARRAY", Self::PACKED_INT64_ARRAY => "PACKED_INT64_ARRAY", Self::PACKED_FLOAT32_ARRAY => "PACKED_FLOAT32_ARRAY", Self::PACKED_FLOAT64_ARRAY => "PACKED_FLOAT64_ARRAY", Self::PACKED_STRING_ARRAY => "PACKED_STRING_ARRAY", Self::PACKED_VECTOR2_ARRAY => "PACKED_VECTOR2_ARRAY", Self::PACKED_VECTOR3_ARRAY => "PACKED_VECTOR3_ARRAY", Self::PACKED_COLOR_ARRAY => "PACKED_COLOR_ARRAY", Self::PACKED_VECTOR4_ARRAY => "PACKED_VECTOR4_ARRAY", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NIL => "TYPE_NIL", Self::BOOL => "TYPE_BOOL", Self::INT => "TYPE_INT", Self::FLOAT => "TYPE_FLOAT", Self::STRING => "TYPE_STRING", Self::VECTOR2 => "TYPE_VECTOR2", Self::VECTOR2I => "TYPE_VECTOR2I", Self::RECT2 => "TYPE_RECT2", Self::RECT2I => "TYPE_RECT2I", Self::VECTOR3 => "TYPE_VECTOR3", Self::VECTOR3I => "TYPE_VECTOR3I", Self::TRANSFORM2D => "TYPE_TRANSFORM2D", Self::VECTOR4 => "TYPE_VECTOR4", Self::VECTOR4I => "TYPE_VECTOR4I", Self::PLANE => "TYPE_PLANE", Self::QUATERNION => "TYPE_QUATERNION", Self::AABB => "TYPE_AABB", Self::BASIS => "TYPE_BASIS", Self::TRANSFORM3D => "TYPE_TRANSFORM3D", Self::PROJECTION => "TYPE_PROJECTION", Self::COLOR => "TYPE_COLOR", Self::STRING_NAME => "TYPE_STRING_NAME", Self::NODE_PATH => "TYPE_NODE_PATH", Self::RID => "TYPE_RID", Self::OBJECT => "TYPE_OBJECT", Self::CALLABLE => "TYPE_CALLABLE", Self::SIGNAL => "TYPE_SIGNAL", Self::DICTIONARY => "TYPE_DICTIONARY", Self::ARRAY => "TYPE_ARRAY", Self::PACKED_BYTE_ARRAY => "TYPE_PACKED_BYTE_ARRAY", Self::PACKED_INT32_ARRAY => "TYPE_PACKED_INT32_ARRAY", Self::PACKED_INT64_ARRAY => "TYPE_PACKED_INT64_ARRAY", Self::PACKED_FLOAT32_ARRAY => "TYPE_PACKED_FLOAT32_ARRAY", Self::PACKED_FLOAT64_ARRAY => "TYPE_PACKED_FLOAT64_ARRAY", Self::PACKED_STRING_ARRAY => "TYPE_PACKED_STRING_ARRAY", Self::PACKED_VECTOR2_ARRAY => "TYPE_PACKED_VECTOR2_ARRAY", Self::PACKED_VECTOR3_ARRAY => "TYPE_PACKED_VECTOR3_ARRAY", Self::PACKED_COLOR_ARRAY => "TYPE_PACKED_COLOR_ARRAY", Self::PACKED_VECTOR4_ARRAY => "TYPE_PACKED_VECTOR4_ARRAY", Self::MAX => "TYPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for VariantType { + const ENUMERATOR_COUNT: usize = 39usize; + +} +impl crate::meta::GodotConvert for VariantType { + type Via = i32; + +} +impl crate::meta::ToGodot for VariantType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for VariantType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[allow(dead_code)] +pub enum VariantDispatch { + Nil, Bool(bool), Int(i64), Float(f64), String(GString), Vector2(Vector2), Vector2i(Vector2i), Rect2(Rect2), Rect2i(Rect2i), Vector3(Vector3), Vector3i(Vector3i), Transform2D(Transform2D), Vector4(Vector4), Vector4i(Vector4i), Plane(Plane), Quaternion(Quaternion), Aabb(Aabb), Basis(Basis), Transform3D(Transform3D), Projection(Projection), Color(Color), StringName(StringName), NodePath(NodePath), Rid(Rid), Object(Gd < crate::classes::Object >), Callable(Callable), Signal(Signal), Dictionary(Dictionary), Array(VariantArray), PackedByteArray(PackedByteArray), PackedInt32Array(PackedInt32Array), PackedInt64Array(PackedInt64Array), PackedFloat32Array(PackedFloat32Array), PackedFloat64Array(PackedFloat64Array), PackedStringArray(PackedStringArray), PackedVector2Array(PackedVector2Array), PackedVector3Array(PackedVector3Array), PackedColorArray(PackedColorArray), PackedVector4Array(PackedVector4Array), #[doc = r" Special case of a `Variant` holding an object that has been destroyed."] + FreedObject, +} +impl VariantDispatch { + pub fn from_variant(variant: &Variant) -> Self { + match variant.get_type() { + VariantType::NIL => Self::Nil, VariantType::OBJECT if !variant.is_object_alive() => Self::FreedObject, VariantType::BOOL => Self::Bool(variant.to::< bool > ()), VariantType::INT => Self::Int(variant.to::< i64 > ()), VariantType::FLOAT => Self::Float(variant.to::< f64 > ()), VariantType::STRING => Self::String(variant.to::< GString > ()), VariantType::VECTOR2 => Self::Vector2(variant.to::< Vector2 > ()), VariantType::VECTOR2I => Self::Vector2i(variant.to::< Vector2i > ()), VariantType::RECT2 => Self::Rect2(variant.to::< Rect2 > ()), VariantType::RECT2I => Self::Rect2i(variant.to::< Rect2i > ()), VariantType::VECTOR3 => Self::Vector3(variant.to::< Vector3 > ()), VariantType::VECTOR3I => Self::Vector3i(variant.to::< Vector3i > ()), VariantType::TRANSFORM2D => Self::Transform2D(variant.to::< Transform2D > ()), VariantType::VECTOR4 => Self::Vector4(variant.to::< Vector4 > ()), VariantType::VECTOR4I => Self::Vector4i(variant.to::< Vector4i > ()), VariantType::PLANE => Self::Plane(variant.to::< Plane > ()), VariantType::QUATERNION => Self::Quaternion(variant.to::< Quaternion > ()), VariantType::AABB => Self::Aabb(variant.to::< Aabb > ()), VariantType::BASIS => Self::Basis(variant.to::< Basis > ()), VariantType::TRANSFORM3D => Self::Transform3D(variant.to::< Transform3D > ()), VariantType::PROJECTION => Self::Projection(variant.to::< Projection > ()), VariantType::COLOR => Self::Color(variant.to::< Color > ()), VariantType::STRING_NAME => Self::StringName(variant.to::< StringName > ()), VariantType::NODE_PATH => Self::NodePath(variant.to::< NodePath > ()), VariantType::RID => Self::Rid(variant.to::< Rid > ()), VariantType::OBJECT => Self::Object(variant.to::< Gd < crate::classes::Object > > ()), VariantType::CALLABLE => Self::Callable(variant.to::< Callable > ()), VariantType::SIGNAL => Self::Signal(variant.to::< Signal > ()), VariantType::DICTIONARY => Self::Dictionary(variant.to::< Dictionary > ()), VariantType::ARRAY => Self::Array(variant.to::< VariantArray > ()), VariantType::PACKED_BYTE_ARRAY => Self::PackedByteArray(variant.to::< PackedByteArray > ()), VariantType::PACKED_INT32_ARRAY => Self::PackedInt32Array(variant.to::< PackedInt32Array > ()), VariantType::PACKED_INT64_ARRAY => Self::PackedInt64Array(variant.to::< PackedInt64Array > ()), VariantType::PACKED_FLOAT32_ARRAY => Self::PackedFloat32Array(variant.to::< PackedFloat32Array > ()), VariantType::PACKED_FLOAT64_ARRAY => Self::PackedFloat64Array(variant.to::< PackedFloat64Array > ()), VariantType::PACKED_STRING_ARRAY => Self::PackedStringArray(variant.to::< PackedStringArray > ()), VariantType::PACKED_VECTOR2_ARRAY => Self::PackedVector2Array(variant.to::< PackedVector2Array > ()), VariantType::PACKED_VECTOR3_ARRAY => Self::PackedVector3Array(variant.to::< PackedVector3Array > ()), VariantType::PACKED_COLOR_ARRAY => Self::PackedColorArray(variant.to::< PackedColorArray > ()), VariantType::PACKED_VECTOR4_ARRAY => Self::PackedVector4Array(variant.to::< PackedVector4Array > ()), _ => panic !("Variant type not supported: {:?}", variant.get_type()), + } + } +} +impl std::fmt::Debug for VariantDispatch { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + match self { + Self::Nil => write !(f, "null"), Self::Bool(v) => write !(f, "{v:?}"), Self::Int(v) => write !(f, "{v:?}"), Self::Float(v) => write !(f, "{v:?}"), Self::String(v) => write !(f, "{v:?}"), Self::Vector2(v) => write !(f, "{v:?}"), Self::Vector2i(v) => write !(f, "{v:?}"), Self::Rect2(v) => write !(f, "{v:?}"), Self::Rect2i(v) => write !(f, "{v:?}"), Self::Vector3(v) => write !(f, "{v:?}"), Self::Vector3i(v) => write !(f, "{v:?}"), Self::Transform2D(v) => write !(f, "{v:?}"), Self::Vector4(v) => write !(f, "{v:?}"), Self::Vector4i(v) => write !(f, "{v:?}"), Self::Plane(v) => write !(f, "{v:?}"), Self::Quaternion(v) => write !(f, "{v:?}"), Self::Aabb(v) => write !(f, "{v:?}"), Self::Basis(v) => write !(f, "{v:?}"), Self::Transform3D(v) => write !(f, "{v:?}"), Self::Projection(v) => write !(f, "{v:?}"), Self::Color(v) => write !(f, "{v:?}"), Self::StringName(v) => write !(f, "{v:?}"), Self::NodePath(v) => write !(f, "{v:?}"), Self::Rid(v) => write !(f, "{v:?}"), Self::Object(v) => write !(f, "{v:?}"), Self::Callable(v) => write !(f, "{v:?}"), Self::Signal(v) => write !(f, "{v:?}"), Self::Dictionary(v) => write !(f, "{v:?}"), Self::Array(v) => write !(f, "{v:?}"), Self::PackedByteArray(v) => write !(f, "{v:?}"), Self::PackedInt32Array(v) => write !(f, "{v:?}"), Self::PackedInt64Array(v) => write !(f, "{v:?}"), Self::PackedFloat32Array(v) => write !(f, "{v:?}"), Self::PackedFloat64Array(v) => write !(f, "{v:?}"), Self::PackedStringArray(v) => write !(f, "{v:?}"), Self::PackedVector2Array(v) => write !(f, "{v:?}"), Self::PackedVector3Array(v) => write !(f, "{v:?}"), Self::PackedColorArray(v) => write !(f, "{v:?}"), Self::PackedVector4Array(v) => write !(f, "{v:?}"), Self::FreedObject => write !(f, ""), + } + } +} +#[doc = r" Global enums and constants, generated by Godot."] +pub mod global_enums { + use crate::sys; + #[repr(i32)] + #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] + #[doc = r""] + #[doc = r" This enum is exhaustive; you should not expect future Godot versions to add new enumerators."] + #[allow(non_camel_case_types)] + pub enum Orientation { + VERTICAL = 1i32, HORIZONTAL = 0i32, + } + impl crate::obj::EngineEnum for Orientation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + 1i32 => Some(Self::VERTICAL), 0i32 => Some(Self::HORIZONTAL), _ => None, + } + } + fn ord(self) -> i32 { + self as i32 + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERTICAL => "VERTICAL", Self::HORIZONTAL => "HORIZONTAL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + self.as_str() + } + } + impl crate::meta::GodotConvert for Orientation { + type Via = i32; + + } + impl crate::meta::ToGodot for Orientation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for Orientation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(i32)] + #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] + #[doc = r""] + #[doc = r" This enum is exhaustive; you should not expect future Godot versions to add new enumerators."] + #[allow(non_camel_case_types)] + pub enum ClockDirection { + CLOCKWISE = 0i32, COUNTERCLOCKWISE = 1i32, + } + impl crate::obj::EngineEnum for ClockDirection { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + 0i32 => Some(Self::CLOCKWISE), 1i32 => Some(Self::COUNTERCLOCKWISE), _ => None, + } + } + fn ord(self) -> i32 { + self as i32 + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLOCKWISE => "CLOCKWISE", Self::COUNTERCLOCKWISE => "COUNTERCLOCKWISE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + self.as_str() + } + } + impl crate::meta::GodotConvert for ClockDirection { + type Via = i32; + + } + impl crate::meta::ToGodot for ClockDirection { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for ClockDirection { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + pub struct HorizontalAlignment { + ord: i32 + } + impl HorizontalAlignment { + #[doc(alias = "HORIZONTAL_ALIGNMENT_LEFT")] + #[doc = "Godot enumerator name: `HORIZONTAL_ALIGNMENT_LEFT`"] + pub const LEFT: HorizontalAlignment = HorizontalAlignment { + ord: 0i32 + }; + #[doc(alias = "HORIZONTAL_ALIGNMENT_CENTER")] + #[doc = "Godot enumerator name: `HORIZONTAL_ALIGNMENT_CENTER`"] + pub const CENTER: HorizontalAlignment = HorizontalAlignment { + ord: 1i32 + }; + #[doc(alias = "HORIZONTAL_ALIGNMENT_RIGHT")] + #[doc = "Godot enumerator name: `HORIZONTAL_ALIGNMENT_RIGHT`"] + pub const RIGHT: HorizontalAlignment = HorizontalAlignment { + ord: 2i32 + }; + #[doc(alias = "HORIZONTAL_ALIGNMENT_FILL")] + #[doc = "Godot enumerator name: `HORIZONTAL_ALIGNMENT_FILL`"] + pub const FILL: HorizontalAlignment = HorizontalAlignment { + ord: 3i32 + }; + + } + impl std::fmt::Debug for HorizontalAlignment { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("HorizontalAlignment") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for HorizontalAlignment { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT => "LEFT", Self::CENTER => "CENTER", Self::RIGHT => "RIGHT", Self::FILL => "FILL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT => "HORIZONTAL_ALIGNMENT_LEFT", Self::CENTER => "HORIZONTAL_ALIGNMENT_CENTER", Self::RIGHT => "HORIZONTAL_ALIGNMENT_RIGHT", Self::FILL => "HORIZONTAL_ALIGNMENT_FILL", _ => self.as_str(), + } + } + } + impl crate::meta::GodotConvert for HorizontalAlignment { + type Via = i32; + + } + impl crate::meta::ToGodot for HorizontalAlignment { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for HorizontalAlignment { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + pub struct VerticalAlignment { + ord: i32 + } + impl VerticalAlignment { + #[doc(alias = "VERTICAL_ALIGNMENT_TOP")] + #[doc = "Godot enumerator name: `VERTICAL_ALIGNMENT_TOP`"] + pub const TOP: VerticalAlignment = VerticalAlignment { + ord: 0i32 + }; + #[doc(alias = "VERTICAL_ALIGNMENT_CENTER")] + #[doc = "Godot enumerator name: `VERTICAL_ALIGNMENT_CENTER`"] + pub const CENTER: VerticalAlignment = VerticalAlignment { + ord: 1i32 + }; + #[doc(alias = "VERTICAL_ALIGNMENT_BOTTOM")] + #[doc = "Godot enumerator name: `VERTICAL_ALIGNMENT_BOTTOM`"] + pub const BOTTOM: VerticalAlignment = VerticalAlignment { + ord: 2i32 + }; + #[doc(alias = "VERTICAL_ALIGNMENT_FILL")] + #[doc = "Godot enumerator name: `VERTICAL_ALIGNMENT_FILL`"] + pub const FILL: VerticalAlignment = VerticalAlignment { + ord: 3i32 + }; + + } + impl std::fmt::Debug for VerticalAlignment { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("VerticalAlignment") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for VerticalAlignment { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOP => "TOP", Self::CENTER => "CENTER", Self::BOTTOM => "BOTTOM", Self::FILL => "FILL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOP => "VERTICAL_ALIGNMENT_TOP", Self::CENTER => "VERTICAL_ALIGNMENT_CENTER", Self::BOTTOM => "VERTICAL_ALIGNMENT_BOTTOM", Self::FILL => "VERTICAL_ALIGNMENT_FILL", _ => self.as_str(), + } + } + } + impl crate::meta::GodotConvert for VerticalAlignment { + type Via = i32; + + } + impl crate::meta::ToGodot for VerticalAlignment { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for VerticalAlignment { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + pub struct InlineAlignment { + ord: i32 + } + impl InlineAlignment { + #[doc(alias = "INLINE_ALIGNMENT_TOP_TO")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_TOP_TO`"] + pub const TOP_TO: InlineAlignment = InlineAlignment { + ord: 0i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_CENTER_TO")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_CENTER_TO`"] + pub const CENTER_TO: InlineAlignment = InlineAlignment { + ord: 1i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_BASELINE_TO")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_BASELINE_TO`"] + pub const BASELINE_TO: InlineAlignment = InlineAlignment { + ord: 3i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_BOTTOM_TO")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_BOTTOM_TO`"] + pub const BOTTOM_TO: InlineAlignment = InlineAlignment { + ord: 2i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_TO_TOP")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_TO_TOP`"] + pub const TO_TOP: InlineAlignment = InlineAlignment { + ord: 0i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_TO_CENTER")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_TO_CENTER`"] + pub const TO_CENTER: InlineAlignment = InlineAlignment { + ord: 4i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_TO_BASELINE")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_TO_BASELINE`"] + pub const TO_BASELINE: InlineAlignment = InlineAlignment { + ord: 8i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_TO_BOTTOM")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_TO_BOTTOM`"] + pub const TO_BOTTOM: InlineAlignment = InlineAlignment { + ord: 12i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_TOP")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_TOP`"] + pub const TOP: InlineAlignment = InlineAlignment { + ord: 0i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_CENTER")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_CENTER`"] + pub const CENTER: InlineAlignment = InlineAlignment { + ord: 5i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_BOTTOM")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_BOTTOM`"] + pub const BOTTOM: InlineAlignment = InlineAlignment { + ord: 14i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_IMAGE_MASK")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_IMAGE_MASK`"] + pub const IMAGE_MASK: InlineAlignment = InlineAlignment { + ord: 3i32 + }; + #[doc(alias = "INLINE_ALIGNMENT_TEXT_MASK")] + #[doc = "Godot enumerator name: `INLINE_ALIGNMENT_TEXT_MASK`"] + pub const TEXT_MASK: InlineAlignment = InlineAlignment { + ord: 12i32 + }; + + } + impl std::fmt::Debug for InlineAlignment { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("InlineAlignment") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for InlineAlignment { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 8i32 | ord @ 12i32 | ord @ 14i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOP_TO => "TOP_TO", Self::CENTER_TO => "CENTER_TO", Self::BASELINE_TO => "BASELINE_TO", Self::BOTTOM_TO => "BOTTOM_TO", Self::TO_TOP => "TO_TOP", Self::TO_CENTER => "TO_CENTER", Self::TO_BASELINE => "TO_BASELINE", Self::TO_BOTTOM => "TO_BOTTOM", Self::TOP => "TOP", Self::CENTER => "CENTER", Self::BOTTOM => "BOTTOM", Self::IMAGE_MASK => "IMAGE_MASK", Self::TEXT_MASK => "TEXT_MASK", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOP_TO => "INLINE_ALIGNMENT_TOP_TO", Self::CENTER_TO => "INLINE_ALIGNMENT_CENTER_TO", Self::BASELINE_TO => "INLINE_ALIGNMENT_BASELINE_TO", Self::BOTTOM_TO => "INLINE_ALIGNMENT_BOTTOM_TO", Self::TO_TOP => "INLINE_ALIGNMENT_TO_TOP", Self::TO_CENTER => "INLINE_ALIGNMENT_TO_CENTER", Self::TO_BASELINE => "INLINE_ALIGNMENT_TO_BASELINE", Self::TO_BOTTOM => "INLINE_ALIGNMENT_TO_BOTTOM", Self::TOP => "INLINE_ALIGNMENT_TOP", Self::CENTER => "INLINE_ALIGNMENT_CENTER", Self::BOTTOM => "INLINE_ALIGNMENT_BOTTOM", Self::IMAGE_MASK => "INLINE_ALIGNMENT_IMAGE_MASK", Self::TEXT_MASK => "INLINE_ALIGNMENT_TEXT_MASK", _ => self.as_str(), + } + } + } + impl crate::meta::GodotConvert for InlineAlignment { + type Via = i32; + + } + impl crate::meta::ToGodot for InlineAlignment { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for InlineAlignment { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + pub struct Key { + ord: i32 + } + impl Key { + #[doc(alias = "KEY_NONE")] + #[doc = "Godot enumerator name: `KEY_NONE`"] + pub const NONE: Key = Key { + ord: 0i32 + }; + #[doc(alias = "KEY_SPECIAL")] + #[doc = "Godot enumerator name: `KEY_SPECIAL`"] + pub const SPECIAL: Key = Key { + ord: 4194304i32 + }; + #[doc(alias = "KEY_ESCAPE")] + #[doc = "Godot enumerator name: `KEY_ESCAPE`"] + pub const ESCAPE: Key = Key { + ord: 4194305i32 + }; + #[doc(alias = "KEY_TAB")] + #[doc = "Godot enumerator name: `KEY_TAB`"] + pub const TAB: Key = Key { + ord: 4194306i32 + }; + #[doc(alias = "KEY_BACKTAB")] + #[doc = "Godot enumerator name: `KEY_BACKTAB`"] + pub const BACKTAB: Key = Key { + ord: 4194307i32 + }; + #[doc(alias = "KEY_BACKSPACE")] + #[doc = "Godot enumerator name: `KEY_BACKSPACE`"] + pub const BACKSPACE: Key = Key { + ord: 4194308i32 + }; + #[doc(alias = "KEY_ENTER")] + #[doc = "Godot enumerator name: `KEY_ENTER`"] + pub const ENTER: Key = Key { + ord: 4194309i32 + }; + #[doc(alias = "KEY_KP_ENTER")] + #[doc = "Godot enumerator name: `KEY_KP_ENTER`"] + pub const KP_ENTER: Key = Key { + ord: 4194310i32 + }; + #[doc(alias = "KEY_INSERT")] + #[doc = "Godot enumerator name: `KEY_INSERT`"] + pub const INSERT: Key = Key { + ord: 4194311i32 + }; + #[doc(alias = "KEY_DELETE")] + #[doc = "Godot enumerator name: `KEY_DELETE`"] + pub const DELETE: Key = Key { + ord: 4194312i32 + }; + #[doc(alias = "KEY_PAUSE")] + #[doc = "Godot enumerator name: `KEY_PAUSE`"] + pub const PAUSE: Key = Key { + ord: 4194313i32 + }; + #[doc(alias = "KEY_PRINT")] + #[doc = "Godot enumerator name: `KEY_PRINT`"] + pub const PRINT: Key = Key { + ord: 4194314i32 + }; + #[doc(alias = "KEY_SYSREQ")] + #[doc = "Godot enumerator name: `KEY_SYSREQ`"] + pub const SYSREQ: Key = Key { + ord: 4194315i32 + }; + #[doc(alias = "KEY_CLEAR")] + #[doc = "Godot enumerator name: `KEY_CLEAR`"] + pub const CLEAR: Key = Key { + ord: 4194316i32 + }; + #[doc(alias = "KEY_HOME")] + #[doc = "Godot enumerator name: `KEY_HOME`"] + pub const HOME: Key = Key { + ord: 4194317i32 + }; + #[doc(alias = "KEY_END")] + #[doc = "Godot enumerator name: `KEY_END`"] + pub const END: Key = Key { + ord: 4194318i32 + }; + #[doc(alias = "KEY_LEFT")] + #[doc = "Godot enumerator name: `KEY_LEFT`"] + pub const LEFT: Key = Key { + ord: 4194319i32 + }; + #[doc(alias = "KEY_UP")] + #[doc = "Godot enumerator name: `KEY_UP`"] + pub const UP: Key = Key { + ord: 4194320i32 + }; + #[doc(alias = "KEY_RIGHT")] + #[doc = "Godot enumerator name: `KEY_RIGHT`"] + pub const RIGHT: Key = Key { + ord: 4194321i32 + }; + #[doc(alias = "KEY_DOWN")] + #[doc = "Godot enumerator name: `KEY_DOWN`"] + pub const DOWN: Key = Key { + ord: 4194322i32 + }; + #[doc(alias = "KEY_PAGEUP")] + #[doc = "Godot enumerator name: `KEY_PAGEUP`"] + pub const PAGEUP: Key = Key { + ord: 4194323i32 + }; + #[doc(alias = "KEY_PAGEDOWN")] + #[doc = "Godot enumerator name: `KEY_PAGEDOWN`"] + pub const PAGEDOWN: Key = Key { + ord: 4194324i32 + }; + #[doc(alias = "KEY_SHIFT")] + #[doc = "Godot enumerator name: `KEY_SHIFT`"] + pub const SHIFT: Key = Key { + ord: 4194325i32 + }; + #[doc(alias = "KEY_CTRL")] + #[doc = "Godot enumerator name: `KEY_CTRL`"] + pub const CTRL: Key = Key { + ord: 4194326i32 + }; + #[doc(alias = "KEY_META")] + #[doc = "Godot enumerator name: `KEY_META`"] + pub const META: Key = Key { + ord: 4194327i32 + }; + #[doc(alias = "KEY_ALT")] + #[doc = "Godot enumerator name: `KEY_ALT`"] + pub const ALT: Key = Key { + ord: 4194328i32 + }; + #[doc(alias = "KEY_CAPSLOCK")] + #[doc = "Godot enumerator name: `KEY_CAPSLOCK`"] + pub const CAPSLOCK: Key = Key { + ord: 4194329i32 + }; + #[doc(alias = "KEY_NUMLOCK")] + #[doc = "Godot enumerator name: `KEY_NUMLOCK`"] + pub const NUMLOCK: Key = Key { + ord: 4194330i32 + }; + #[doc(alias = "KEY_SCROLLLOCK")] + #[doc = "Godot enumerator name: `KEY_SCROLLLOCK`"] + pub const SCROLLLOCK: Key = Key { + ord: 4194331i32 + }; + #[doc(alias = "KEY_F1")] + #[doc = "Godot enumerator name: `KEY_F1`"] + pub const F1: Key = Key { + ord: 4194332i32 + }; + #[doc(alias = "KEY_F2")] + #[doc = "Godot enumerator name: `KEY_F2`"] + pub const F2: Key = Key { + ord: 4194333i32 + }; + #[doc(alias = "KEY_F3")] + #[doc = "Godot enumerator name: `KEY_F3`"] + pub const F3: Key = Key { + ord: 4194334i32 + }; + #[doc(alias = "KEY_F4")] + #[doc = "Godot enumerator name: `KEY_F4`"] + pub const F4: Key = Key { + ord: 4194335i32 + }; + #[doc(alias = "KEY_F5")] + #[doc = "Godot enumerator name: `KEY_F5`"] + pub const F5: Key = Key { + ord: 4194336i32 + }; + #[doc(alias = "KEY_F6")] + #[doc = "Godot enumerator name: `KEY_F6`"] + pub const F6: Key = Key { + ord: 4194337i32 + }; + #[doc(alias = "KEY_F7")] + #[doc = "Godot enumerator name: `KEY_F7`"] + pub const F7: Key = Key { + ord: 4194338i32 + }; + #[doc(alias = "KEY_F8")] + #[doc = "Godot enumerator name: `KEY_F8`"] + pub const F8: Key = Key { + ord: 4194339i32 + }; + #[doc(alias = "KEY_F9")] + #[doc = "Godot enumerator name: `KEY_F9`"] + pub const F9: Key = Key { + ord: 4194340i32 + }; + #[doc(alias = "KEY_F10")] + #[doc = "Godot enumerator name: `KEY_F10`"] + pub const F10: Key = Key { + ord: 4194341i32 + }; + #[doc(alias = "KEY_F11")] + #[doc = "Godot enumerator name: `KEY_F11`"] + pub const F11: Key = Key { + ord: 4194342i32 + }; + #[doc(alias = "KEY_F12")] + #[doc = "Godot enumerator name: `KEY_F12`"] + pub const F12: Key = Key { + ord: 4194343i32 + }; + #[doc(alias = "KEY_F13")] + #[doc = "Godot enumerator name: `KEY_F13`"] + pub const F13: Key = Key { + ord: 4194344i32 + }; + #[doc(alias = "KEY_F14")] + #[doc = "Godot enumerator name: `KEY_F14`"] + pub const F14: Key = Key { + ord: 4194345i32 + }; + #[doc(alias = "KEY_F15")] + #[doc = "Godot enumerator name: `KEY_F15`"] + pub const F15: Key = Key { + ord: 4194346i32 + }; + #[doc(alias = "KEY_F16")] + #[doc = "Godot enumerator name: `KEY_F16`"] + pub const F16: Key = Key { + ord: 4194347i32 + }; + #[doc(alias = "KEY_F17")] + #[doc = "Godot enumerator name: `KEY_F17`"] + pub const F17: Key = Key { + ord: 4194348i32 + }; + #[doc(alias = "KEY_F18")] + #[doc = "Godot enumerator name: `KEY_F18`"] + pub const F18: Key = Key { + ord: 4194349i32 + }; + #[doc(alias = "KEY_F19")] + #[doc = "Godot enumerator name: `KEY_F19`"] + pub const F19: Key = Key { + ord: 4194350i32 + }; + #[doc(alias = "KEY_F20")] + #[doc = "Godot enumerator name: `KEY_F20`"] + pub const F20: Key = Key { + ord: 4194351i32 + }; + #[doc(alias = "KEY_F21")] + #[doc = "Godot enumerator name: `KEY_F21`"] + pub const F21: Key = Key { + ord: 4194352i32 + }; + #[doc(alias = "KEY_F22")] + #[doc = "Godot enumerator name: `KEY_F22`"] + pub const F22: Key = Key { + ord: 4194353i32 + }; + #[doc(alias = "KEY_F23")] + #[doc = "Godot enumerator name: `KEY_F23`"] + pub const F23: Key = Key { + ord: 4194354i32 + }; + #[doc(alias = "KEY_F24")] + #[doc = "Godot enumerator name: `KEY_F24`"] + pub const F24: Key = Key { + ord: 4194355i32 + }; + #[doc(alias = "KEY_F25")] + #[doc = "Godot enumerator name: `KEY_F25`"] + pub const F25: Key = Key { + ord: 4194356i32 + }; + #[doc(alias = "KEY_F26")] + #[doc = "Godot enumerator name: `KEY_F26`"] + pub const F26: Key = Key { + ord: 4194357i32 + }; + #[doc(alias = "KEY_F27")] + #[doc = "Godot enumerator name: `KEY_F27`"] + pub const F27: Key = Key { + ord: 4194358i32 + }; + #[doc(alias = "KEY_F28")] + #[doc = "Godot enumerator name: `KEY_F28`"] + pub const F28: Key = Key { + ord: 4194359i32 + }; + #[doc(alias = "KEY_F29")] + #[doc = "Godot enumerator name: `KEY_F29`"] + pub const F29: Key = Key { + ord: 4194360i32 + }; + #[doc(alias = "KEY_F30")] + #[doc = "Godot enumerator name: `KEY_F30`"] + pub const F30: Key = Key { + ord: 4194361i32 + }; + #[doc(alias = "KEY_F31")] + #[doc = "Godot enumerator name: `KEY_F31`"] + pub const F31: Key = Key { + ord: 4194362i32 + }; + #[doc(alias = "KEY_F32")] + #[doc = "Godot enumerator name: `KEY_F32`"] + pub const F32: Key = Key { + ord: 4194363i32 + }; + #[doc(alias = "KEY_F33")] + #[doc = "Godot enumerator name: `KEY_F33`"] + pub const F33: Key = Key { + ord: 4194364i32 + }; + #[doc(alias = "KEY_F34")] + #[doc = "Godot enumerator name: `KEY_F34`"] + pub const F34: Key = Key { + ord: 4194365i32 + }; + #[doc(alias = "KEY_F35")] + #[doc = "Godot enumerator name: `KEY_F35`"] + pub const F35: Key = Key { + ord: 4194366i32 + }; + #[doc(alias = "KEY_KP_MULTIPLY")] + #[doc = "Godot enumerator name: `KEY_KP_MULTIPLY`"] + pub const KP_MULTIPLY: Key = Key { + ord: 4194433i32 + }; + #[doc(alias = "KEY_KP_DIVIDE")] + #[doc = "Godot enumerator name: `KEY_KP_DIVIDE`"] + pub const KP_DIVIDE: Key = Key { + ord: 4194434i32 + }; + #[doc(alias = "KEY_KP_SUBTRACT")] + #[doc = "Godot enumerator name: `KEY_KP_SUBTRACT`"] + pub const KP_SUBTRACT: Key = Key { + ord: 4194435i32 + }; + #[doc(alias = "KEY_KP_PERIOD")] + #[doc = "Godot enumerator name: `KEY_KP_PERIOD`"] + pub const KP_PERIOD: Key = Key { + ord: 4194436i32 + }; + #[doc(alias = "KEY_KP_ADD")] + #[doc = "Godot enumerator name: `KEY_KP_ADD`"] + pub const KP_ADD: Key = Key { + ord: 4194437i32 + }; + #[doc(alias = "KEY_KP_0")] + #[doc = "Godot enumerator name: `KEY_KP_0`"] + pub const KP_0: Key = Key { + ord: 4194438i32 + }; + #[doc(alias = "KEY_KP_1")] + #[doc = "Godot enumerator name: `KEY_KP_1`"] + pub const KP_1: Key = Key { + ord: 4194439i32 + }; + #[doc(alias = "KEY_KP_2")] + #[doc = "Godot enumerator name: `KEY_KP_2`"] + pub const KP_2: Key = Key { + ord: 4194440i32 + }; + #[doc(alias = "KEY_KP_3")] + #[doc = "Godot enumerator name: `KEY_KP_3`"] + pub const KP_3: Key = Key { + ord: 4194441i32 + }; + #[doc(alias = "KEY_KP_4")] + #[doc = "Godot enumerator name: `KEY_KP_4`"] + pub const KP_4: Key = Key { + ord: 4194442i32 + }; + #[doc(alias = "KEY_KP_5")] + #[doc = "Godot enumerator name: `KEY_KP_5`"] + pub const KP_5: Key = Key { + ord: 4194443i32 + }; + #[doc(alias = "KEY_KP_6")] + #[doc = "Godot enumerator name: `KEY_KP_6`"] + pub const KP_6: Key = Key { + ord: 4194444i32 + }; + #[doc(alias = "KEY_KP_7")] + #[doc = "Godot enumerator name: `KEY_KP_7`"] + pub const KP_7: Key = Key { + ord: 4194445i32 + }; + #[doc(alias = "KEY_KP_8")] + #[doc = "Godot enumerator name: `KEY_KP_8`"] + pub const KP_8: Key = Key { + ord: 4194446i32 + }; + #[doc(alias = "KEY_KP_9")] + #[doc = "Godot enumerator name: `KEY_KP_9`"] + pub const KP_9: Key = Key { + ord: 4194447i32 + }; + #[doc(alias = "KEY_MENU")] + #[doc = "Godot enumerator name: `KEY_MENU`"] + pub const MENU: Key = Key { + ord: 4194370i32 + }; + #[doc(alias = "KEY_HYPER")] + #[doc = "Godot enumerator name: `KEY_HYPER`"] + pub const HYPER: Key = Key { + ord: 4194371i32 + }; + #[doc(alias = "KEY_HELP")] + #[doc = "Godot enumerator name: `KEY_HELP`"] + pub const HELP: Key = Key { + ord: 4194373i32 + }; + #[doc(alias = "KEY_BACK")] + #[doc = "Godot enumerator name: `KEY_BACK`"] + pub const BACK: Key = Key { + ord: 4194376i32 + }; + #[doc(alias = "KEY_FORWARD")] + #[doc = "Godot enumerator name: `KEY_FORWARD`"] + pub const FORWARD: Key = Key { + ord: 4194377i32 + }; + #[doc(alias = "KEY_STOP")] + #[doc = "Godot enumerator name: `KEY_STOP`"] + pub const STOP: Key = Key { + ord: 4194378i32 + }; + #[doc(alias = "KEY_REFRESH")] + #[doc = "Godot enumerator name: `KEY_REFRESH`"] + pub const REFRESH: Key = Key { + ord: 4194379i32 + }; + #[doc(alias = "KEY_VOLUMEDOWN")] + #[doc = "Godot enumerator name: `KEY_VOLUMEDOWN`"] + pub const VOLUMEDOWN: Key = Key { + ord: 4194380i32 + }; + #[doc(alias = "KEY_VOLUMEMUTE")] + #[doc = "Godot enumerator name: `KEY_VOLUMEMUTE`"] + pub const VOLUMEMUTE: Key = Key { + ord: 4194381i32 + }; + #[doc(alias = "KEY_VOLUMEUP")] + #[doc = "Godot enumerator name: `KEY_VOLUMEUP`"] + pub const VOLUMEUP: Key = Key { + ord: 4194382i32 + }; + #[doc(alias = "KEY_MEDIAPLAY")] + #[doc = "Godot enumerator name: `KEY_MEDIAPLAY`"] + pub const MEDIAPLAY: Key = Key { + ord: 4194388i32 + }; + #[doc(alias = "KEY_MEDIASTOP")] + #[doc = "Godot enumerator name: `KEY_MEDIASTOP`"] + pub const MEDIASTOP: Key = Key { + ord: 4194389i32 + }; + #[doc(alias = "KEY_MEDIAPREVIOUS")] + #[doc = "Godot enumerator name: `KEY_MEDIAPREVIOUS`"] + pub const MEDIAPREVIOUS: Key = Key { + ord: 4194390i32 + }; + #[doc(alias = "KEY_MEDIANEXT")] + #[doc = "Godot enumerator name: `KEY_MEDIANEXT`"] + pub const MEDIANEXT: Key = Key { + ord: 4194391i32 + }; + #[doc(alias = "KEY_MEDIARECORD")] + #[doc = "Godot enumerator name: `KEY_MEDIARECORD`"] + pub const MEDIARECORD: Key = Key { + ord: 4194392i32 + }; + #[doc(alias = "KEY_HOMEPAGE")] + #[doc = "Godot enumerator name: `KEY_HOMEPAGE`"] + pub const HOMEPAGE: Key = Key { + ord: 4194393i32 + }; + #[doc(alias = "KEY_FAVORITES")] + #[doc = "Godot enumerator name: `KEY_FAVORITES`"] + pub const FAVORITES: Key = Key { + ord: 4194394i32 + }; + #[doc(alias = "KEY_SEARCH")] + #[doc = "Godot enumerator name: `KEY_SEARCH`"] + pub const SEARCH: Key = Key { + ord: 4194395i32 + }; + #[doc(alias = "KEY_STANDBY")] + #[doc = "Godot enumerator name: `KEY_STANDBY`"] + pub const STANDBY: Key = Key { + ord: 4194396i32 + }; + #[doc(alias = "KEY_OPENURL")] + #[doc = "Godot enumerator name: `KEY_OPENURL`"] + pub const OPENURL: Key = Key { + ord: 4194397i32 + }; + #[doc(alias = "KEY_LAUNCHMAIL")] + #[doc = "Godot enumerator name: `KEY_LAUNCHMAIL`"] + pub const LAUNCHMAIL: Key = Key { + ord: 4194398i32 + }; + #[doc(alias = "KEY_LAUNCHMEDIA")] + #[doc = "Godot enumerator name: `KEY_LAUNCHMEDIA`"] + pub const LAUNCHMEDIA: Key = Key { + ord: 4194399i32 + }; + #[doc(alias = "KEY_LAUNCH0")] + #[doc = "Godot enumerator name: `KEY_LAUNCH0`"] + pub const LAUNCH0: Key = Key { + ord: 4194400i32 + }; + #[doc(alias = "KEY_LAUNCH1")] + #[doc = "Godot enumerator name: `KEY_LAUNCH1`"] + pub const LAUNCH1: Key = Key { + ord: 4194401i32 + }; + #[doc(alias = "KEY_LAUNCH2")] + #[doc = "Godot enumerator name: `KEY_LAUNCH2`"] + pub const LAUNCH2: Key = Key { + ord: 4194402i32 + }; + #[doc(alias = "KEY_LAUNCH3")] + #[doc = "Godot enumerator name: `KEY_LAUNCH3`"] + pub const LAUNCH3: Key = Key { + ord: 4194403i32 + }; + #[doc(alias = "KEY_LAUNCH4")] + #[doc = "Godot enumerator name: `KEY_LAUNCH4`"] + pub const LAUNCH4: Key = Key { + ord: 4194404i32 + }; + #[doc(alias = "KEY_LAUNCH5")] + #[doc = "Godot enumerator name: `KEY_LAUNCH5`"] + pub const LAUNCH5: Key = Key { + ord: 4194405i32 + }; + #[doc(alias = "KEY_LAUNCH6")] + #[doc = "Godot enumerator name: `KEY_LAUNCH6`"] + pub const LAUNCH6: Key = Key { + ord: 4194406i32 + }; + #[doc(alias = "KEY_LAUNCH7")] + #[doc = "Godot enumerator name: `KEY_LAUNCH7`"] + pub const LAUNCH7: Key = Key { + ord: 4194407i32 + }; + #[doc(alias = "KEY_LAUNCH8")] + #[doc = "Godot enumerator name: `KEY_LAUNCH8`"] + pub const LAUNCH8: Key = Key { + ord: 4194408i32 + }; + #[doc(alias = "KEY_LAUNCH9")] + #[doc = "Godot enumerator name: `KEY_LAUNCH9`"] + pub const LAUNCH9: Key = Key { + ord: 4194409i32 + }; + #[doc(alias = "KEY_LAUNCHA")] + #[doc = "Godot enumerator name: `KEY_LAUNCHA`"] + pub const LAUNCHA: Key = Key { + ord: 4194410i32 + }; + #[doc(alias = "KEY_LAUNCHB")] + #[doc = "Godot enumerator name: `KEY_LAUNCHB`"] + pub const LAUNCHB: Key = Key { + ord: 4194411i32 + }; + #[doc(alias = "KEY_LAUNCHC")] + #[doc = "Godot enumerator name: `KEY_LAUNCHC`"] + pub const LAUNCHC: Key = Key { + ord: 4194412i32 + }; + #[doc(alias = "KEY_LAUNCHD")] + #[doc = "Godot enumerator name: `KEY_LAUNCHD`"] + pub const LAUNCHD: Key = Key { + ord: 4194413i32 + }; + #[doc(alias = "KEY_LAUNCHE")] + #[doc = "Godot enumerator name: `KEY_LAUNCHE`"] + pub const LAUNCHE: Key = Key { + ord: 4194414i32 + }; + #[doc(alias = "KEY_LAUNCHF")] + #[doc = "Godot enumerator name: `KEY_LAUNCHF`"] + pub const LAUNCHF: Key = Key { + ord: 4194415i32 + }; + #[doc(alias = "KEY_GLOBE")] + #[doc = "Godot enumerator name: `KEY_GLOBE`"] + pub const GLOBE: Key = Key { + ord: 4194416i32 + }; + #[doc(alias = "KEY_KEYBOARD")] + #[doc = "Godot enumerator name: `KEY_KEYBOARD`"] + pub const KEYBOARD: Key = Key { + ord: 4194417i32 + }; + #[doc(alias = "KEY_JIS_EISU")] + #[doc = "Godot enumerator name: `KEY_JIS_EISU`"] + pub const JIS_EISU: Key = Key { + ord: 4194418i32 + }; + #[doc(alias = "KEY_JIS_KANA")] + #[doc = "Godot enumerator name: `KEY_JIS_KANA`"] + pub const JIS_KANA: Key = Key { + ord: 4194419i32 + }; + #[doc(alias = "KEY_UNKNOWN")] + #[doc = "Godot enumerator name: `KEY_UNKNOWN`"] + pub const UNKNOWN: Key = Key { + ord: 8388607i32 + }; + #[doc(alias = "KEY_SPACE")] + #[doc = "Godot enumerator name: `KEY_SPACE`"] + pub const SPACE: Key = Key { + ord: 32i32 + }; + #[doc(alias = "KEY_EXCLAM")] + #[doc = "Godot enumerator name: `KEY_EXCLAM`"] + pub const EXCLAM: Key = Key { + ord: 33i32 + }; + #[doc(alias = "KEY_QUOTEDBL")] + #[doc = "Godot enumerator name: `KEY_QUOTEDBL`"] + pub const QUOTEDBL: Key = Key { + ord: 34i32 + }; + #[doc(alias = "KEY_NUMBERSIGN")] + #[doc = "Godot enumerator name: `KEY_NUMBERSIGN`"] + pub const NUMBERSIGN: Key = Key { + ord: 35i32 + }; + #[doc(alias = "KEY_DOLLAR")] + #[doc = "Godot enumerator name: `KEY_DOLLAR`"] + pub const DOLLAR: Key = Key { + ord: 36i32 + }; + #[doc(alias = "KEY_PERCENT")] + #[doc = "Godot enumerator name: `KEY_PERCENT`"] + pub const PERCENT: Key = Key { + ord: 37i32 + }; + #[doc(alias = "KEY_AMPERSAND")] + #[doc = "Godot enumerator name: `KEY_AMPERSAND`"] + pub const AMPERSAND: Key = Key { + ord: 38i32 + }; + #[doc(alias = "KEY_APOSTROPHE")] + #[doc = "Godot enumerator name: `KEY_APOSTROPHE`"] + pub const APOSTROPHE: Key = Key { + ord: 39i32 + }; + #[doc(alias = "KEY_PARENLEFT")] + #[doc = "Godot enumerator name: `KEY_PARENLEFT`"] + pub const PARENLEFT: Key = Key { + ord: 40i32 + }; + #[doc(alias = "KEY_PARENRIGHT")] + #[doc = "Godot enumerator name: `KEY_PARENRIGHT`"] + pub const PARENRIGHT: Key = Key { + ord: 41i32 + }; + #[doc(alias = "KEY_ASTERISK")] + #[doc = "Godot enumerator name: `KEY_ASTERISK`"] + pub const ASTERISK: Key = Key { + ord: 42i32 + }; + #[doc(alias = "KEY_PLUS")] + #[doc = "Godot enumerator name: `KEY_PLUS`"] + pub const PLUS: Key = Key { + ord: 43i32 + }; + #[doc(alias = "KEY_COMMA")] + #[doc = "Godot enumerator name: `KEY_COMMA`"] + pub const COMMA: Key = Key { + ord: 44i32 + }; + #[doc(alias = "KEY_MINUS")] + #[doc = "Godot enumerator name: `KEY_MINUS`"] + pub const MINUS: Key = Key { + ord: 45i32 + }; + #[doc(alias = "KEY_PERIOD")] + #[doc = "Godot enumerator name: `KEY_PERIOD`"] + pub const PERIOD: Key = Key { + ord: 46i32 + }; + #[doc(alias = "KEY_SLASH")] + #[doc = "Godot enumerator name: `KEY_SLASH`"] + pub const SLASH: Key = Key { + ord: 47i32 + }; + pub const KEY_0: Key = Key { + ord: 48i32 + }; + pub const KEY_1: Key = Key { + ord: 49i32 + }; + pub const KEY_2: Key = Key { + ord: 50i32 + }; + pub const KEY_3: Key = Key { + ord: 51i32 + }; + pub const KEY_4: Key = Key { + ord: 52i32 + }; + pub const KEY_5: Key = Key { + ord: 53i32 + }; + pub const KEY_6: Key = Key { + ord: 54i32 + }; + pub const KEY_7: Key = Key { + ord: 55i32 + }; + pub const KEY_8: Key = Key { + ord: 56i32 + }; + pub const KEY_9: Key = Key { + ord: 57i32 + }; + #[doc(alias = "KEY_COLON")] + #[doc = "Godot enumerator name: `KEY_COLON`"] + pub const COLON: Key = Key { + ord: 58i32 + }; + #[doc(alias = "KEY_SEMICOLON")] + #[doc = "Godot enumerator name: `KEY_SEMICOLON`"] + pub const SEMICOLON: Key = Key { + ord: 59i32 + }; + #[doc(alias = "KEY_LESS")] + #[doc = "Godot enumerator name: `KEY_LESS`"] + pub const LESS: Key = Key { + ord: 60i32 + }; + #[doc(alias = "KEY_EQUAL")] + #[doc = "Godot enumerator name: `KEY_EQUAL`"] + pub const EQUAL: Key = Key { + ord: 61i32 + }; + #[doc(alias = "KEY_GREATER")] + #[doc = "Godot enumerator name: `KEY_GREATER`"] + pub const GREATER: Key = Key { + ord: 62i32 + }; + #[doc(alias = "KEY_QUESTION")] + #[doc = "Godot enumerator name: `KEY_QUESTION`"] + pub const QUESTION: Key = Key { + ord: 63i32 + }; + #[doc(alias = "KEY_AT")] + #[doc = "Godot enumerator name: `KEY_AT`"] + pub const AT: Key = Key { + ord: 64i32 + }; + #[doc(alias = "KEY_A")] + #[doc = "Godot enumerator name: `KEY_A`"] + pub const A: Key = Key { + ord: 65i32 + }; + #[doc(alias = "KEY_B")] + #[doc = "Godot enumerator name: `KEY_B`"] + pub const B: Key = Key { + ord: 66i32 + }; + #[doc(alias = "KEY_C")] + #[doc = "Godot enumerator name: `KEY_C`"] + pub const C: Key = Key { + ord: 67i32 + }; + #[doc(alias = "KEY_D")] + #[doc = "Godot enumerator name: `KEY_D`"] + pub const D: Key = Key { + ord: 68i32 + }; + #[doc(alias = "KEY_E")] + #[doc = "Godot enumerator name: `KEY_E`"] + pub const E: Key = Key { + ord: 69i32 + }; + #[doc(alias = "KEY_F")] + #[doc = "Godot enumerator name: `KEY_F`"] + pub const F: Key = Key { + ord: 70i32 + }; + #[doc(alias = "KEY_G")] + #[doc = "Godot enumerator name: `KEY_G`"] + pub const G: Key = Key { + ord: 71i32 + }; + #[doc(alias = "KEY_H")] + #[doc = "Godot enumerator name: `KEY_H`"] + pub const H: Key = Key { + ord: 72i32 + }; + #[doc(alias = "KEY_I")] + #[doc = "Godot enumerator name: `KEY_I`"] + pub const I: Key = Key { + ord: 73i32 + }; + #[doc(alias = "KEY_J")] + #[doc = "Godot enumerator name: `KEY_J`"] + pub const J: Key = Key { + ord: 74i32 + }; + #[doc(alias = "KEY_K")] + #[doc = "Godot enumerator name: `KEY_K`"] + pub const K: Key = Key { + ord: 75i32 + }; + #[doc(alias = "KEY_L")] + #[doc = "Godot enumerator name: `KEY_L`"] + pub const L: Key = Key { + ord: 76i32 + }; + #[doc(alias = "KEY_M")] + #[doc = "Godot enumerator name: `KEY_M`"] + pub const M: Key = Key { + ord: 77i32 + }; + #[doc(alias = "KEY_N")] + #[doc = "Godot enumerator name: `KEY_N`"] + pub const N: Key = Key { + ord: 78i32 + }; + #[doc(alias = "KEY_O")] + #[doc = "Godot enumerator name: `KEY_O`"] + pub const O: Key = Key { + ord: 79i32 + }; + #[doc(alias = "KEY_P")] + #[doc = "Godot enumerator name: `KEY_P`"] + pub const P: Key = Key { + ord: 80i32 + }; + #[doc(alias = "KEY_Q")] + #[doc = "Godot enumerator name: `KEY_Q`"] + pub const Q: Key = Key { + ord: 81i32 + }; + #[doc(alias = "KEY_R")] + #[doc = "Godot enumerator name: `KEY_R`"] + pub const R: Key = Key { + ord: 82i32 + }; + #[doc(alias = "KEY_S")] + #[doc = "Godot enumerator name: `KEY_S`"] + pub const S: Key = Key { + ord: 83i32 + }; + #[doc(alias = "KEY_T")] + #[doc = "Godot enumerator name: `KEY_T`"] + pub const T: Key = Key { + ord: 84i32 + }; + #[doc(alias = "KEY_U")] + #[doc = "Godot enumerator name: `KEY_U`"] + pub const U: Key = Key { + ord: 85i32 + }; + #[doc(alias = "KEY_V")] + #[doc = "Godot enumerator name: `KEY_V`"] + pub const V: Key = Key { + ord: 86i32 + }; + #[doc(alias = "KEY_W")] + #[doc = "Godot enumerator name: `KEY_W`"] + pub const W: Key = Key { + ord: 87i32 + }; + #[doc(alias = "KEY_X")] + #[doc = "Godot enumerator name: `KEY_X`"] + pub const X: Key = Key { + ord: 88i32 + }; + #[doc(alias = "KEY_Y")] + #[doc = "Godot enumerator name: `KEY_Y`"] + pub const Y: Key = Key { + ord: 89i32 + }; + #[doc(alias = "KEY_Z")] + #[doc = "Godot enumerator name: `KEY_Z`"] + pub const Z: Key = Key { + ord: 90i32 + }; + #[doc(alias = "KEY_BRACKETLEFT")] + #[doc = "Godot enumerator name: `KEY_BRACKETLEFT`"] + pub const BRACKETLEFT: Key = Key { + ord: 91i32 + }; + #[doc(alias = "KEY_BACKSLASH")] + #[doc = "Godot enumerator name: `KEY_BACKSLASH`"] + pub const BACKSLASH: Key = Key { + ord: 92i32 + }; + #[doc(alias = "KEY_BRACKETRIGHT")] + #[doc = "Godot enumerator name: `KEY_BRACKETRIGHT`"] + pub const BRACKETRIGHT: Key = Key { + ord: 93i32 + }; + #[doc(alias = "KEY_ASCIICIRCUM")] + #[doc = "Godot enumerator name: `KEY_ASCIICIRCUM`"] + pub const ASCIICIRCUM: Key = Key { + ord: 94i32 + }; + #[doc(alias = "KEY_UNDERSCORE")] + #[doc = "Godot enumerator name: `KEY_UNDERSCORE`"] + pub const UNDERSCORE: Key = Key { + ord: 95i32 + }; + #[doc(alias = "KEY_QUOTELEFT")] + #[doc = "Godot enumerator name: `KEY_QUOTELEFT`"] + pub const QUOTELEFT: Key = Key { + ord: 96i32 + }; + #[doc(alias = "KEY_BRACELEFT")] + #[doc = "Godot enumerator name: `KEY_BRACELEFT`"] + pub const BRACELEFT: Key = Key { + ord: 123i32 + }; + #[doc(alias = "KEY_BAR")] + #[doc = "Godot enumerator name: `KEY_BAR`"] + pub const BAR: Key = Key { + ord: 124i32 + }; + #[doc(alias = "KEY_BRACERIGHT")] + #[doc = "Godot enumerator name: `KEY_BRACERIGHT`"] + pub const BRACERIGHT: Key = Key { + ord: 125i32 + }; + #[doc(alias = "KEY_ASCIITILDE")] + #[doc = "Godot enumerator name: `KEY_ASCIITILDE`"] + pub const ASCIITILDE: Key = Key { + ord: 126i32 + }; + #[doc(alias = "KEY_YEN")] + #[doc = "Godot enumerator name: `KEY_YEN`"] + pub const YEN: Key = Key { + ord: 165i32 + }; + #[doc(alias = "KEY_SECTION")] + #[doc = "Godot enumerator name: `KEY_SECTION`"] + pub const SECTION: Key = Key { + ord: 167i32 + }; + + } + impl std::fmt::Debug for Key { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Key") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for Key { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 32i32 | ord @ 33i32 | ord @ 34i32 | ord @ 35i32 | ord @ 36i32 | ord @ 37i32 | ord @ 38i32 | ord @ 39i32 | ord @ 40i32 | ord @ 41i32 | ord @ 42i32 | ord @ 43i32 | ord @ 44i32 | ord @ 45i32 | ord @ 46i32 | ord @ 47i32 | ord @ 48i32 | ord @ 49i32 | ord @ 50i32 | ord @ 51i32 | ord @ 52i32 | ord @ 53i32 | ord @ 54i32 | ord @ 55i32 | ord @ 56i32 | ord @ 57i32 | ord @ 58i32 | ord @ 59i32 | ord @ 60i32 | ord @ 61i32 | ord @ 62i32 | ord @ 63i32 | ord @ 64i32 | ord @ 65i32 | ord @ 66i32 | ord @ 67i32 | ord @ 68i32 | ord @ 69i32 | ord @ 70i32 | ord @ 71i32 | ord @ 72i32 | ord @ 73i32 | ord @ 74i32 | ord @ 75i32 | ord @ 76i32 | ord @ 77i32 | ord @ 78i32 | ord @ 79i32 | ord @ 80i32 | ord @ 81i32 | ord @ 82i32 | ord @ 83i32 | ord @ 84i32 | ord @ 85i32 | ord @ 86i32 | ord @ 87i32 | ord @ 88i32 | ord @ 89i32 | ord @ 90i32 | ord @ 91i32 | ord @ 92i32 | ord @ 93i32 | ord @ 94i32 | ord @ 95i32 | ord @ 96i32 | ord @ 123i32 | ord @ 124i32 | ord @ 125i32 | ord @ 126i32 | ord @ 165i32 | ord @ 167i32 | ord @ 4194304i32 | ord @ 4194305i32 | ord @ 4194306i32 | ord @ 4194307i32 | ord @ 4194308i32 | ord @ 4194309i32 | ord @ 4194310i32 | ord @ 4194311i32 | ord @ 4194312i32 | ord @ 4194313i32 | ord @ 4194314i32 | ord @ 4194315i32 | ord @ 4194316i32 | ord @ 4194317i32 | ord @ 4194318i32 | ord @ 4194319i32 | ord @ 4194320i32 | ord @ 4194321i32 | ord @ 4194322i32 | ord @ 4194323i32 | ord @ 4194324i32 | ord @ 4194325i32 | ord @ 4194326i32 | ord @ 4194327i32 | ord @ 4194328i32 | ord @ 4194329i32 | ord @ 4194330i32 | ord @ 4194331i32 | ord @ 4194332i32 | ord @ 4194333i32 | ord @ 4194334i32 | ord @ 4194335i32 | ord @ 4194336i32 | ord @ 4194337i32 | ord @ 4194338i32 | ord @ 4194339i32 | ord @ 4194340i32 | ord @ 4194341i32 | ord @ 4194342i32 | ord @ 4194343i32 | ord @ 4194344i32 | ord @ 4194345i32 | ord @ 4194346i32 | ord @ 4194347i32 | ord @ 4194348i32 | ord @ 4194349i32 | ord @ 4194350i32 | ord @ 4194351i32 | ord @ 4194352i32 | ord @ 4194353i32 | ord @ 4194354i32 | ord @ 4194355i32 | ord @ 4194356i32 | ord @ 4194357i32 | ord @ 4194358i32 | ord @ 4194359i32 | ord @ 4194360i32 | ord @ 4194361i32 | ord @ 4194362i32 | ord @ 4194363i32 | ord @ 4194364i32 | ord @ 4194365i32 | ord @ 4194366i32 | ord @ 4194370i32 | ord @ 4194371i32 | ord @ 4194373i32 | ord @ 4194376i32 | ord @ 4194377i32 | ord @ 4194378i32 | ord @ 4194379i32 | ord @ 4194380i32 | ord @ 4194381i32 | ord @ 4194382i32 | ord @ 4194388i32 | ord @ 4194389i32 | ord @ 4194390i32 | ord @ 4194391i32 | ord @ 4194392i32 | ord @ 4194393i32 | ord @ 4194394i32 | ord @ 4194395i32 | ord @ 4194396i32 | ord @ 4194397i32 | ord @ 4194398i32 | ord @ 4194399i32 | ord @ 4194400i32 | ord @ 4194401i32 | ord @ 4194402i32 | ord @ 4194403i32 | ord @ 4194404i32 | ord @ 4194405i32 | ord @ 4194406i32 | ord @ 4194407i32 | ord @ 4194408i32 | ord @ 4194409i32 | ord @ 4194410i32 | ord @ 4194411i32 | ord @ 4194412i32 | ord @ 4194413i32 | ord @ 4194414i32 | ord @ 4194415i32 | ord @ 4194416i32 | ord @ 4194417i32 | ord @ 4194418i32 | ord @ 4194419i32 | ord @ 4194433i32 | ord @ 4194434i32 | ord @ 4194435i32 | ord @ 4194436i32 | ord @ 4194437i32 | ord @ 4194438i32 | ord @ 4194439i32 | ord @ 4194440i32 | ord @ 4194441i32 | ord @ 4194442i32 | ord @ 4194443i32 | ord @ 4194444i32 | ord @ 4194445i32 | ord @ 4194446i32 | ord @ 4194447i32 | ord @ 8388607i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::SPECIAL => "SPECIAL", Self::ESCAPE => "ESCAPE", Self::TAB => "TAB", Self::BACKTAB => "BACKTAB", Self::BACKSPACE => "BACKSPACE", Self::ENTER => "ENTER", Self::KP_ENTER => "KP_ENTER", Self::INSERT => "INSERT", Self::DELETE => "DELETE", Self::PAUSE => "PAUSE", Self::PRINT => "PRINT", Self::SYSREQ => "SYSREQ", Self::CLEAR => "CLEAR", Self::HOME => "HOME", Self::END => "END", Self::LEFT => "LEFT", Self::UP => "UP", Self::RIGHT => "RIGHT", Self::DOWN => "DOWN", Self::PAGEUP => "PAGEUP", Self::PAGEDOWN => "PAGEDOWN", Self::SHIFT => "SHIFT", Self::CTRL => "CTRL", Self::META => "META", Self::ALT => "ALT", Self::CAPSLOCK => "CAPSLOCK", Self::NUMLOCK => "NUMLOCK", Self::SCROLLLOCK => "SCROLLLOCK", Self::F1 => "F1", Self::F2 => "F2", Self::F3 => "F3", Self::F4 => "F4", Self::F5 => "F5", Self::F6 => "F6", Self::F7 => "F7", Self::F8 => "F8", Self::F9 => "F9", Self::F10 => "F10", Self::F11 => "F11", Self::F12 => "F12", Self::F13 => "F13", Self::F14 => "F14", Self::F15 => "F15", Self::F16 => "F16", Self::F17 => "F17", Self::F18 => "F18", Self::F19 => "F19", Self::F20 => "F20", Self::F21 => "F21", Self::F22 => "F22", Self::F23 => "F23", Self::F24 => "F24", Self::F25 => "F25", Self::F26 => "F26", Self::F27 => "F27", Self::F28 => "F28", Self::F29 => "F29", Self::F30 => "F30", Self::F31 => "F31", Self::F32 => "F32", Self::F33 => "F33", Self::F34 => "F34", Self::F35 => "F35", Self::KP_MULTIPLY => "KP_MULTIPLY", Self::KP_DIVIDE => "KP_DIVIDE", Self::KP_SUBTRACT => "KP_SUBTRACT", Self::KP_PERIOD => "KP_PERIOD", Self::KP_ADD => "KP_ADD", Self::KP_0 => "KP_0", Self::KP_1 => "KP_1", Self::KP_2 => "KP_2", Self::KP_3 => "KP_3", Self::KP_4 => "KP_4", Self::KP_5 => "KP_5", Self::KP_6 => "KP_6", Self::KP_7 => "KP_7", Self::KP_8 => "KP_8", Self::KP_9 => "KP_9", Self::MENU => "MENU", Self::HYPER => "HYPER", Self::HELP => "HELP", Self::BACK => "BACK", Self::FORWARD => "FORWARD", Self::STOP => "STOP", Self::REFRESH => "REFRESH", Self::VOLUMEDOWN => "VOLUMEDOWN", Self::VOLUMEMUTE => "VOLUMEMUTE", Self::VOLUMEUP => "VOLUMEUP", Self::MEDIAPLAY => "MEDIAPLAY", Self::MEDIASTOP => "MEDIASTOP", Self::MEDIAPREVIOUS => "MEDIAPREVIOUS", Self::MEDIANEXT => "MEDIANEXT", Self::MEDIARECORD => "MEDIARECORD", Self::HOMEPAGE => "HOMEPAGE", Self::FAVORITES => "FAVORITES", Self::SEARCH => "SEARCH", Self::STANDBY => "STANDBY", Self::OPENURL => "OPENURL", Self::LAUNCHMAIL => "LAUNCHMAIL", Self::LAUNCHMEDIA => "LAUNCHMEDIA", Self::LAUNCH0 => "LAUNCH0", Self::LAUNCH1 => "LAUNCH1", Self::LAUNCH2 => "LAUNCH2", Self::LAUNCH3 => "LAUNCH3", Self::LAUNCH4 => "LAUNCH4", Self::LAUNCH5 => "LAUNCH5", Self::LAUNCH6 => "LAUNCH6", Self::LAUNCH7 => "LAUNCH7", Self::LAUNCH8 => "LAUNCH8", Self::LAUNCH9 => "LAUNCH9", Self::LAUNCHA => "LAUNCHA", Self::LAUNCHB => "LAUNCHB", Self::LAUNCHC => "LAUNCHC", Self::LAUNCHD => "LAUNCHD", Self::LAUNCHE => "LAUNCHE", Self::LAUNCHF => "LAUNCHF", Self::GLOBE => "GLOBE", Self::KEYBOARD => "KEYBOARD", Self::JIS_EISU => "JIS_EISU", Self::JIS_KANA => "JIS_KANA", Self::UNKNOWN => "UNKNOWN", Self::SPACE => "SPACE", Self::EXCLAM => "EXCLAM", Self::QUOTEDBL => "QUOTEDBL", Self::NUMBERSIGN => "NUMBERSIGN", Self::DOLLAR => "DOLLAR", Self::PERCENT => "PERCENT", Self::AMPERSAND => "AMPERSAND", Self::APOSTROPHE => "APOSTROPHE", Self::PARENLEFT => "PARENLEFT", Self::PARENRIGHT => "PARENRIGHT", Self::ASTERISK => "ASTERISK", Self::PLUS => "PLUS", Self::COMMA => "COMMA", Self::MINUS => "MINUS", Self::PERIOD => "PERIOD", Self::SLASH => "SLASH", Self::KEY_0 => "KEY_0", Self::KEY_1 => "KEY_1", Self::KEY_2 => "KEY_2", Self::KEY_3 => "KEY_3", Self::KEY_4 => "KEY_4", Self::KEY_5 => "KEY_5", Self::KEY_6 => "KEY_6", Self::KEY_7 => "KEY_7", Self::KEY_8 => "KEY_8", Self::KEY_9 => "KEY_9", Self::COLON => "COLON", Self::SEMICOLON => "SEMICOLON", Self::LESS => "LESS", Self::EQUAL => "EQUAL", Self::GREATER => "GREATER", Self::QUESTION => "QUESTION", Self::AT => "AT", Self::A => "A", Self::B => "B", Self::C => "C", Self::D => "D", Self::E => "E", Self::F => "F", Self::G => "G", Self::H => "H", Self::I => "I", Self::J => "J", Self::K => "K", Self::L => "L", Self::M => "M", Self::N => "N", Self::O => "O", Self::P => "P", Self::Q => "Q", Self::R => "R", Self::S => "S", Self::T => "T", Self::U => "U", Self::V => "V", Self::W => "W", Self::X => "X", Self::Y => "Y", Self::Z => "Z", Self::BRACKETLEFT => "BRACKETLEFT", Self::BACKSLASH => "BACKSLASH", Self::BRACKETRIGHT => "BRACKETRIGHT", Self::ASCIICIRCUM => "ASCIICIRCUM", Self::UNDERSCORE => "UNDERSCORE", Self::QUOTELEFT => "QUOTELEFT", Self::BRACELEFT => "BRACELEFT", Self::BAR => "BAR", Self::BRACERIGHT => "BRACERIGHT", Self::ASCIITILDE => "ASCIITILDE", Self::YEN => "YEN", Self::SECTION => "SECTION", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "KEY_NONE", Self::SPECIAL => "KEY_SPECIAL", Self::ESCAPE => "KEY_ESCAPE", Self::TAB => "KEY_TAB", Self::BACKTAB => "KEY_BACKTAB", Self::BACKSPACE => "KEY_BACKSPACE", Self::ENTER => "KEY_ENTER", Self::KP_ENTER => "KEY_KP_ENTER", Self::INSERT => "KEY_INSERT", Self::DELETE => "KEY_DELETE", Self::PAUSE => "KEY_PAUSE", Self::PRINT => "KEY_PRINT", Self::SYSREQ => "KEY_SYSREQ", Self::CLEAR => "KEY_CLEAR", Self::HOME => "KEY_HOME", Self::END => "KEY_END", Self::LEFT => "KEY_LEFT", Self::UP => "KEY_UP", Self::RIGHT => "KEY_RIGHT", Self::DOWN => "KEY_DOWN", Self::PAGEUP => "KEY_PAGEUP", Self::PAGEDOWN => "KEY_PAGEDOWN", Self::SHIFT => "KEY_SHIFT", Self::CTRL => "KEY_CTRL", Self::META => "KEY_META", Self::ALT => "KEY_ALT", Self::CAPSLOCK => "KEY_CAPSLOCK", Self::NUMLOCK => "KEY_NUMLOCK", Self::SCROLLLOCK => "KEY_SCROLLLOCK", Self::F1 => "KEY_F1", Self::F2 => "KEY_F2", Self::F3 => "KEY_F3", Self::F4 => "KEY_F4", Self::F5 => "KEY_F5", Self::F6 => "KEY_F6", Self::F7 => "KEY_F7", Self::F8 => "KEY_F8", Self::F9 => "KEY_F9", Self::F10 => "KEY_F10", Self::F11 => "KEY_F11", Self::F12 => "KEY_F12", Self::F13 => "KEY_F13", Self::F14 => "KEY_F14", Self::F15 => "KEY_F15", Self::F16 => "KEY_F16", Self::F17 => "KEY_F17", Self::F18 => "KEY_F18", Self::F19 => "KEY_F19", Self::F20 => "KEY_F20", Self::F21 => "KEY_F21", Self::F22 => "KEY_F22", Self::F23 => "KEY_F23", Self::F24 => "KEY_F24", Self::F25 => "KEY_F25", Self::F26 => "KEY_F26", Self::F27 => "KEY_F27", Self::F28 => "KEY_F28", Self::F29 => "KEY_F29", Self::F30 => "KEY_F30", Self::F31 => "KEY_F31", Self::F32 => "KEY_F32", Self::F33 => "KEY_F33", Self::F34 => "KEY_F34", Self::F35 => "KEY_F35", Self::KP_MULTIPLY => "KEY_KP_MULTIPLY", Self::KP_DIVIDE => "KEY_KP_DIVIDE", Self::KP_SUBTRACT => "KEY_KP_SUBTRACT", Self::KP_PERIOD => "KEY_KP_PERIOD", Self::KP_ADD => "KEY_KP_ADD", Self::KP_0 => "KEY_KP_0", Self::KP_1 => "KEY_KP_1", Self::KP_2 => "KEY_KP_2", Self::KP_3 => "KEY_KP_3", Self::KP_4 => "KEY_KP_4", Self::KP_5 => "KEY_KP_5", Self::KP_6 => "KEY_KP_6", Self::KP_7 => "KEY_KP_7", Self::KP_8 => "KEY_KP_8", Self::KP_9 => "KEY_KP_9", Self::MENU => "KEY_MENU", Self::HYPER => "KEY_HYPER", Self::HELP => "KEY_HELP", Self::BACK => "KEY_BACK", Self::FORWARD => "KEY_FORWARD", Self::STOP => "KEY_STOP", Self::REFRESH => "KEY_REFRESH", Self::VOLUMEDOWN => "KEY_VOLUMEDOWN", Self::VOLUMEMUTE => "KEY_VOLUMEMUTE", Self::VOLUMEUP => "KEY_VOLUMEUP", Self::MEDIAPLAY => "KEY_MEDIAPLAY", Self::MEDIASTOP => "KEY_MEDIASTOP", Self::MEDIAPREVIOUS => "KEY_MEDIAPREVIOUS", Self::MEDIANEXT => "KEY_MEDIANEXT", Self::MEDIARECORD => "KEY_MEDIARECORD", Self::HOMEPAGE => "KEY_HOMEPAGE", Self::FAVORITES => "KEY_FAVORITES", Self::SEARCH => "KEY_SEARCH", Self::STANDBY => "KEY_STANDBY", Self::OPENURL => "KEY_OPENURL", Self::LAUNCHMAIL => "KEY_LAUNCHMAIL", Self::LAUNCHMEDIA => "KEY_LAUNCHMEDIA", Self::LAUNCH0 => "KEY_LAUNCH0", Self::LAUNCH1 => "KEY_LAUNCH1", Self::LAUNCH2 => "KEY_LAUNCH2", Self::LAUNCH3 => "KEY_LAUNCH3", Self::LAUNCH4 => "KEY_LAUNCH4", Self::LAUNCH5 => "KEY_LAUNCH5", Self::LAUNCH6 => "KEY_LAUNCH6", Self::LAUNCH7 => "KEY_LAUNCH7", Self::LAUNCH8 => "KEY_LAUNCH8", Self::LAUNCH9 => "KEY_LAUNCH9", Self::LAUNCHA => "KEY_LAUNCHA", Self::LAUNCHB => "KEY_LAUNCHB", Self::LAUNCHC => "KEY_LAUNCHC", Self::LAUNCHD => "KEY_LAUNCHD", Self::LAUNCHE => "KEY_LAUNCHE", Self::LAUNCHF => "KEY_LAUNCHF", Self::GLOBE => "KEY_GLOBE", Self::KEYBOARD => "KEY_KEYBOARD", Self::JIS_EISU => "KEY_JIS_EISU", Self::JIS_KANA => "KEY_JIS_KANA", Self::UNKNOWN => "KEY_UNKNOWN", Self::SPACE => "KEY_SPACE", Self::EXCLAM => "KEY_EXCLAM", Self::QUOTEDBL => "KEY_QUOTEDBL", Self::NUMBERSIGN => "KEY_NUMBERSIGN", Self::DOLLAR => "KEY_DOLLAR", Self::PERCENT => "KEY_PERCENT", Self::AMPERSAND => "KEY_AMPERSAND", Self::APOSTROPHE => "KEY_APOSTROPHE", Self::PARENLEFT => "KEY_PARENLEFT", Self::PARENRIGHT => "KEY_PARENRIGHT", Self::ASTERISK => "KEY_ASTERISK", Self::PLUS => "KEY_PLUS", Self::COMMA => "KEY_COMMA", Self::MINUS => "KEY_MINUS", Self::PERIOD => "KEY_PERIOD", Self::SLASH => "KEY_SLASH", Self::COLON => "KEY_COLON", Self::SEMICOLON => "KEY_SEMICOLON", Self::LESS => "KEY_LESS", Self::EQUAL => "KEY_EQUAL", Self::GREATER => "KEY_GREATER", Self::QUESTION => "KEY_QUESTION", Self::AT => "KEY_AT", Self::A => "KEY_A", Self::B => "KEY_B", Self::C => "KEY_C", Self::D => "KEY_D", Self::E => "KEY_E", Self::F => "KEY_F", Self::G => "KEY_G", Self::H => "KEY_H", Self::I => "KEY_I", Self::J => "KEY_J", Self::K => "KEY_K", Self::L => "KEY_L", Self::M => "KEY_M", Self::N => "KEY_N", Self::O => "KEY_O", Self::P => "KEY_P", Self::Q => "KEY_Q", Self::R => "KEY_R", Self::S => "KEY_S", Self::T => "KEY_T", Self::U => "KEY_U", Self::V => "KEY_V", Self::W => "KEY_W", Self::X => "KEY_X", Self::Y => "KEY_Y", Self::Z => "KEY_Z", Self::BRACKETLEFT => "KEY_BRACKETLEFT", Self::BACKSLASH => "KEY_BACKSLASH", Self::BRACKETRIGHT => "KEY_BRACKETRIGHT", Self::ASCIICIRCUM => "KEY_ASCIICIRCUM", Self::UNDERSCORE => "KEY_UNDERSCORE", Self::QUOTELEFT => "KEY_QUOTELEFT", Self::BRACELEFT => "KEY_BRACELEFT", Self::BAR => "KEY_BAR", Self::BRACERIGHT => "KEY_BRACERIGHT", Self::ASCIITILDE => "KEY_ASCIITILDE", Self::YEN => "KEY_YEN", Self::SECTION => "KEY_SECTION", _ => self.as_str(), + } + } + } + impl std::ops::BitOr < crate::global::KeyModifierMask > for Key { + type Output = Self; + #[inline] + fn bitor(self, rhs: crate::global::KeyModifierMask) -> Self::Output { + Self { + ord: self.ord | i32::try_from(rhs.ord) . expect("masking bitfield outside integer range") + } + } + } + impl std::ops::BitOr < Key > for crate::global::KeyModifierMask { + type Output = Key; + #[inline] + fn bitor(self, rhs: Key) -> Self::Output { + rhs | self + } + } + impl std::ops::BitOrAssign < crate::global::KeyModifierMask > for Key { + #[inline] + fn bitor_assign(&mut self, rhs: crate::global::KeyModifierMask) { + * self = * self | rhs; + + } + } + impl crate::meta::GodotConvert for Key { + type Via = i32; + + } + impl crate::meta::ToGodot for Key { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for Key { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] + pub struct KeyModifierMask { + ord: u64 + } + impl KeyModifierMask { + #[doc(alias = "KEY_CODE_MASK")] + #[doc = "Godot enumerator name: `KEY_CODE_MASK`"] + pub const CODE_MASK: KeyModifierMask = KeyModifierMask { + ord: 8388607u64 + }; + #[doc(alias = "KEY_MODIFIER_MASK")] + #[doc = "Godot enumerator name: `KEY_MODIFIER_MASK`"] + pub const MODIFIER_MASK: KeyModifierMask = KeyModifierMask { + ord: 532676608u64 + }; + #[doc(alias = "KEY_MASK_CMD_OR_CTRL")] + #[doc = "Godot enumerator name: `KEY_MASK_CMD_OR_CTRL`"] + pub const CMD_OR_CTRL: KeyModifierMask = KeyModifierMask { + ord: 16777216u64 + }; + #[doc(alias = "KEY_MASK_SHIFT")] + #[doc = "Godot enumerator name: `KEY_MASK_SHIFT`"] + pub const SHIFT: KeyModifierMask = KeyModifierMask { + ord: 33554432u64 + }; + #[doc(alias = "KEY_MASK_ALT")] + #[doc = "Godot enumerator name: `KEY_MASK_ALT`"] + pub const ALT: KeyModifierMask = KeyModifierMask { + ord: 67108864u64 + }; + #[doc(alias = "KEY_MASK_META")] + #[doc = "Godot enumerator name: `KEY_MASK_META`"] + pub const META: KeyModifierMask = KeyModifierMask { + ord: 134217728u64 + }; + #[doc(alias = "KEY_MASK_CTRL")] + #[doc = "Godot enumerator name: `KEY_MASK_CTRL`"] + pub const CTRL: KeyModifierMask = KeyModifierMask { + ord: 268435456u64 + }; + #[doc(alias = "KEY_MASK_KPAD")] + #[doc = "Godot enumerator name: `KEY_MASK_KPAD`"] + pub const KPAD: KeyModifierMask = KeyModifierMask { + ord: 536870912u64 + }; + #[doc(alias = "KEY_MASK_GROUP_SWITCH")] + #[doc = "Godot enumerator name: `KEY_MASK_GROUP_SWITCH`"] + pub const GROUP_SWITCH: KeyModifierMask = KeyModifierMask { + ord: 1073741824u64 + }; + + } + impl std::fmt::Debug for KeyModifierMask { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::CODE_MASK => "CODE_MASK", Self::MODIFIER_MASK => "MODIFIER_MASK", Self::CMD_OR_CTRL => "CMD_OR_CTRL", Self::SHIFT => "SHIFT", Self::ALT => "ALT", Self::META => "META", Self::CTRL => "CTRL", Self::KPAD => "KPAD", Self::GROUP_SWITCH => "GROUP_SWITCH", _ => { + f.debug_struct("KeyModifierMask") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } + } + impl crate::obj::EngineBitfield for KeyModifierMask { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } + } + impl std::ops::BitOr for KeyModifierMask { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } + } + impl crate::meta::GodotConvert for KeyModifierMask { + type Via = u64; + + } + impl crate::meta::ToGodot for KeyModifierMask { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } + } + impl crate::meta::FromGodot for KeyModifierMask { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + pub struct KeyLocation { + ord: i32 + } + impl KeyLocation { + #[doc(alias = "KEY_LOCATION_UNSPECIFIED")] + #[doc = "Godot enumerator name: `KEY_LOCATION_UNSPECIFIED`"] + pub const UNSPECIFIED: KeyLocation = KeyLocation { + ord: 0i32 + }; + #[doc(alias = "KEY_LOCATION_LEFT")] + #[doc = "Godot enumerator name: `KEY_LOCATION_LEFT`"] + pub const LEFT: KeyLocation = KeyLocation { + ord: 1i32 + }; + #[doc(alias = "KEY_LOCATION_RIGHT")] + #[doc = "Godot enumerator name: `KEY_LOCATION_RIGHT`"] + pub const RIGHT: KeyLocation = KeyLocation { + ord: 2i32 + }; + + } + impl std::fmt::Debug for KeyLocation { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("KeyLocation") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for KeyLocation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNSPECIFIED => "UNSPECIFIED", Self::LEFT => "LEFT", Self::RIGHT => "RIGHT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNSPECIFIED => "KEY_LOCATION_UNSPECIFIED", Self::LEFT => "KEY_LOCATION_LEFT", Self::RIGHT => "KEY_LOCATION_RIGHT", _ => self.as_str(), + } + } + } + impl crate::meta::GodotConvert for KeyLocation { + type Via = i32; + + } + impl crate::meta::ToGodot for KeyLocation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for KeyLocation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + pub struct MouseButton { + ord: i32 + } + impl MouseButton { + #[doc(alias = "MOUSE_BUTTON_NONE")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_NONE`"] + pub const NONE: MouseButton = MouseButton { + ord: 0i32 + }; + #[doc(alias = "MOUSE_BUTTON_LEFT")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_LEFT`"] + pub const LEFT: MouseButton = MouseButton { + ord: 1i32 + }; + #[doc(alias = "MOUSE_BUTTON_RIGHT")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_RIGHT`"] + pub const RIGHT: MouseButton = MouseButton { + ord: 2i32 + }; + #[doc(alias = "MOUSE_BUTTON_MIDDLE")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_MIDDLE`"] + pub const MIDDLE: MouseButton = MouseButton { + ord: 3i32 + }; + #[doc(alias = "MOUSE_BUTTON_WHEEL_UP")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_WHEEL_UP`"] + pub const WHEEL_UP: MouseButton = MouseButton { + ord: 4i32 + }; + #[doc(alias = "MOUSE_BUTTON_WHEEL_DOWN")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_WHEEL_DOWN`"] + pub const WHEEL_DOWN: MouseButton = MouseButton { + ord: 5i32 + }; + #[doc(alias = "MOUSE_BUTTON_WHEEL_LEFT")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_WHEEL_LEFT`"] + pub const WHEEL_LEFT: MouseButton = MouseButton { + ord: 6i32 + }; + #[doc(alias = "MOUSE_BUTTON_WHEEL_RIGHT")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_WHEEL_RIGHT`"] + pub const WHEEL_RIGHT: MouseButton = MouseButton { + ord: 7i32 + }; + #[doc(alias = "MOUSE_BUTTON_XBUTTON1")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_XBUTTON1`"] + pub const XBUTTON1: MouseButton = MouseButton { + ord: 8i32 + }; + #[doc(alias = "MOUSE_BUTTON_XBUTTON2")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_XBUTTON2`"] + pub const XBUTTON2: MouseButton = MouseButton { + ord: 9i32 + }; + + } + impl std::fmt::Debug for MouseButton { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MouseButton") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for MouseButton { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::LEFT => "LEFT", Self::RIGHT => "RIGHT", Self::MIDDLE => "MIDDLE", Self::WHEEL_UP => "WHEEL_UP", Self::WHEEL_DOWN => "WHEEL_DOWN", Self::WHEEL_LEFT => "WHEEL_LEFT", Self::WHEEL_RIGHT => "WHEEL_RIGHT", Self::XBUTTON1 => "XBUTTON1", Self::XBUTTON2 => "XBUTTON2", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "MOUSE_BUTTON_NONE", Self::LEFT => "MOUSE_BUTTON_LEFT", Self::RIGHT => "MOUSE_BUTTON_RIGHT", Self::MIDDLE => "MOUSE_BUTTON_MIDDLE", Self::WHEEL_UP => "MOUSE_BUTTON_WHEEL_UP", Self::WHEEL_DOWN => "MOUSE_BUTTON_WHEEL_DOWN", Self::WHEEL_LEFT => "MOUSE_BUTTON_WHEEL_LEFT", Self::WHEEL_RIGHT => "MOUSE_BUTTON_WHEEL_RIGHT", Self::XBUTTON1 => "MOUSE_BUTTON_XBUTTON1", Self::XBUTTON2 => "MOUSE_BUTTON_XBUTTON2", _ => self.as_str(), + } + } + } + impl std::ops::BitOr < crate::global::MouseButtonMask > for MouseButton { + type Output = Self; + #[inline] + fn bitor(self, rhs: crate::global::MouseButtonMask) -> Self::Output { + Self { + ord: self.ord | i32::try_from(rhs.ord) . expect("masking bitfield outside integer range") + } + } + } + impl std::ops::BitOr < MouseButton > for crate::global::MouseButtonMask { + type Output = MouseButton; + #[inline] + fn bitor(self, rhs: MouseButton) -> Self::Output { + rhs | self + } + } + impl std::ops::BitOrAssign < crate::global::MouseButtonMask > for MouseButton { + #[inline] + fn bitor_assign(&mut self, rhs: crate::global::MouseButtonMask) { + * self = * self | rhs; + + } + } + impl crate::meta::GodotConvert for MouseButton { + type Via = i32; + + } + impl crate::meta::ToGodot for MouseButton { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for MouseButton { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] + pub struct MouseButtonMask { + ord: u64 + } + impl MouseButtonMask { + #[doc(alias = "MOUSE_BUTTON_MASK_LEFT")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_MASK_LEFT`"] + pub const LEFT: MouseButtonMask = MouseButtonMask { + ord: 1u64 + }; + #[doc(alias = "MOUSE_BUTTON_MASK_RIGHT")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_MASK_RIGHT`"] + pub const RIGHT: MouseButtonMask = MouseButtonMask { + ord: 2u64 + }; + #[doc(alias = "MOUSE_BUTTON_MASK_MIDDLE")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_MASK_MIDDLE`"] + pub const MIDDLE: MouseButtonMask = MouseButtonMask { + ord: 4u64 + }; + #[doc(alias = "MOUSE_BUTTON_MASK_MB_XBUTTON1")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_MASK_MB_XBUTTON1`"] + pub const MB_XBUTTON1: MouseButtonMask = MouseButtonMask { + ord: 128u64 + }; + #[doc(alias = "MOUSE_BUTTON_MASK_MB_XBUTTON2")] + #[doc = "Godot enumerator name: `MOUSE_BUTTON_MASK_MB_XBUTTON2`"] + pub const MB_XBUTTON2: MouseButtonMask = MouseButtonMask { + ord: 256u64 + }; + + } + impl std::fmt::Debug for MouseButtonMask { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::LEFT => "LEFT", Self::RIGHT => "RIGHT", Self::MIDDLE => "MIDDLE", Self::MB_XBUTTON1 => "MB_XBUTTON1", Self::MB_XBUTTON2 => "MB_XBUTTON2", _ => { + f.debug_struct("MouseButtonMask") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } + } + impl crate::obj::EngineBitfield for MouseButtonMask { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } + } + impl std::ops::BitOr for MouseButtonMask { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } + } + impl crate::meta::GodotConvert for MouseButtonMask { + type Via = u64; + + } + impl crate::meta::ToGodot for MouseButtonMask { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } + } + impl crate::meta::FromGodot for MouseButtonMask { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + pub struct JoyButton { + ord: i32 + } + impl JoyButton { + #[doc(alias = "JOY_BUTTON_INVALID")] + #[doc = "Godot enumerator name: `JOY_BUTTON_INVALID`"] + pub const INVALID: JoyButton = JoyButton { + ord: - 1i32 + }; + #[doc(alias = "JOY_BUTTON_A")] + #[doc = "Godot enumerator name: `JOY_BUTTON_A`"] + pub const A: JoyButton = JoyButton { + ord: 0i32 + }; + #[doc(alias = "JOY_BUTTON_B")] + #[doc = "Godot enumerator name: `JOY_BUTTON_B`"] + pub const B: JoyButton = JoyButton { + ord: 1i32 + }; + #[doc(alias = "JOY_BUTTON_X")] + #[doc = "Godot enumerator name: `JOY_BUTTON_X`"] + pub const X: JoyButton = JoyButton { + ord: 2i32 + }; + #[doc(alias = "JOY_BUTTON_Y")] + #[doc = "Godot enumerator name: `JOY_BUTTON_Y`"] + pub const Y: JoyButton = JoyButton { + ord: 3i32 + }; + #[doc(alias = "JOY_BUTTON_BACK")] + #[doc = "Godot enumerator name: `JOY_BUTTON_BACK`"] + pub const BACK: JoyButton = JoyButton { + ord: 4i32 + }; + #[doc(alias = "JOY_BUTTON_GUIDE")] + #[doc = "Godot enumerator name: `JOY_BUTTON_GUIDE`"] + pub const GUIDE: JoyButton = JoyButton { + ord: 5i32 + }; + #[doc(alias = "JOY_BUTTON_START")] + #[doc = "Godot enumerator name: `JOY_BUTTON_START`"] + pub const START: JoyButton = JoyButton { + ord: 6i32 + }; + #[doc(alias = "JOY_BUTTON_LEFT_STICK")] + #[doc = "Godot enumerator name: `JOY_BUTTON_LEFT_STICK`"] + pub const LEFT_STICK: JoyButton = JoyButton { + ord: 7i32 + }; + #[doc(alias = "JOY_BUTTON_RIGHT_STICK")] + #[doc = "Godot enumerator name: `JOY_BUTTON_RIGHT_STICK`"] + pub const RIGHT_STICK: JoyButton = JoyButton { + ord: 8i32 + }; + #[doc(alias = "JOY_BUTTON_LEFT_SHOULDER")] + #[doc = "Godot enumerator name: `JOY_BUTTON_LEFT_SHOULDER`"] + pub const LEFT_SHOULDER: JoyButton = JoyButton { + ord: 9i32 + }; + #[doc(alias = "JOY_BUTTON_RIGHT_SHOULDER")] + #[doc = "Godot enumerator name: `JOY_BUTTON_RIGHT_SHOULDER`"] + pub const RIGHT_SHOULDER: JoyButton = JoyButton { + ord: 10i32 + }; + #[doc(alias = "JOY_BUTTON_DPAD_UP")] + #[doc = "Godot enumerator name: `JOY_BUTTON_DPAD_UP`"] + pub const DPAD_UP: JoyButton = JoyButton { + ord: 11i32 + }; + #[doc(alias = "JOY_BUTTON_DPAD_DOWN")] + #[doc = "Godot enumerator name: `JOY_BUTTON_DPAD_DOWN`"] + pub const DPAD_DOWN: JoyButton = JoyButton { + ord: 12i32 + }; + #[doc(alias = "JOY_BUTTON_DPAD_LEFT")] + #[doc = "Godot enumerator name: `JOY_BUTTON_DPAD_LEFT`"] + pub const DPAD_LEFT: JoyButton = JoyButton { + ord: 13i32 + }; + #[doc(alias = "JOY_BUTTON_DPAD_RIGHT")] + #[doc = "Godot enumerator name: `JOY_BUTTON_DPAD_RIGHT`"] + pub const DPAD_RIGHT: JoyButton = JoyButton { + ord: 14i32 + }; + #[doc(alias = "JOY_BUTTON_MISC1")] + #[doc = "Godot enumerator name: `JOY_BUTTON_MISC1`"] + pub const MISC1: JoyButton = JoyButton { + ord: 15i32 + }; + #[doc(alias = "JOY_BUTTON_PADDLE1")] + #[doc = "Godot enumerator name: `JOY_BUTTON_PADDLE1`"] + pub const PADDLE1: JoyButton = JoyButton { + ord: 16i32 + }; + #[doc(alias = "JOY_BUTTON_PADDLE2")] + #[doc = "Godot enumerator name: `JOY_BUTTON_PADDLE2`"] + pub const PADDLE2: JoyButton = JoyButton { + ord: 17i32 + }; + #[doc(alias = "JOY_BUTTON_PADDLE3")] + #[doc = "Godot enumerator name: `JOY_BUTTON_PADDLE3`"] + pub const PADDLE3: JoyButton = JoyButton { + ord: 18i32 + }; + #[doc(alias = "JOY_BUTTON_PADDLE4")] + #[doc = "Godot enumerator name: `JOY_BUTTON_PADDLE4`"] + pub const PADDLE4: JoyButton = JoyButton { + ord: 19i32 + }; + #[doc(alias = "JOY_BUTTON_TOUCHPAD")] + #[doc = "Godot enumerator name: `JOY_BUTTON_TOUCHPAD`"] + pub const TOUCHPAD: JoyButton = JoyButton { + ord: 20i32 + }; + #[doc(alias = "JOY_BUTTON_SDL_MAX")] + #[doc = "Godot enumerator name: `JOY_BUTTON_SDL_MAX`"] + pub const SDL_MAX: JoyButton = JoyButton { + ord: 21i32 + }; + #[doc(alias = "JOY_BUTTON_MAX")] + #[doc = "Godot enumerator name: `JOY_BUTTON_MAX`"] + pub const MAX: JoyButton = JoyButton { + ord: 128i32 + }; + + } + impl std::fmt::Debug for JoyButton { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("JoyButton") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for JoyButton { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ - 1i32 | ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 128i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INVALID => "INVALID", Self::A => "A", Self::B => "B", Self::X => "X", Self::Y => "Y", Self::BACK => "BACK", Self::GUIDE => "GUIDE", Self::START => "START", Self::LEFT_STICK => "LEFT_STICK", Self::RIGHT_STICK => "RIGHT_STICK", Self::LEFT_SHOULDER => "LEFT_SHOULDER", Self::RIGHT_SHOULDER => "RIGHT_SHOULDER", Self::DPAD_UP => "DPAD_UP", Self::DPAD_DOWN => "DPAD_DOWN", Self::DPAD_LEFT => "DPAD_LEFT", Self::DPAD_RIGHT => "DPAD_RIGHT", Self::MISC1 => "MISC1", Self::PADDLE1 => "PADDLE1", Self::PADDLE2 => "PADDLE2", Self::PADDLE3 => "PADDLE3", Self::PADDLE4 => "PADDLE4", Self::TOUCHPAD => "TOUCHPAD", Self::SDL_MAX => "SDL_MAX", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INVALID => "JOY_BUTTON_INVALID", Self::A => "JOY_BUTTON_A", Self::B => "JOY_BUTTON_B", Self::X => "JOY_BUTTON_X", Self::Y => "JOY_BUTTON_Y", Self::BACK => "JOY_BUTTON_BACK", Self::GUIDE => "JOY_BUTTON_GUIDE", Self::START => "JOY_BUTTON_START", Self::LEFT_STICK => "JOY_BUTTON_LEFT_STICK", Self::RIGHT_STICK => "JOY_BUTTON_RIGHT_STICK", Self::LEFT_SHOULDER => "JOY_BUTTON_LEFT_SHOULDER", Self::RIGHT_SHOULDER => "JOY_BUTTON_RIGHT_SHOULDER", Self::DPAD_UP => "JOY_BUTTON_DPAD_UP", Self::DPAD_DOWN => "JOY_BUTTON_DPAD_DOWN", Self::DPAD_LEFT => "JOY_BUTTON_DPAD_LEFT", Self::DPAD_RIGHT => "JOY_BUTTON_DPAD_RIGHT", Self::MISC1 => "JOY_BUTTON_MISC1", Self::PADDLE1 => "JOY_BUTTON_PADDLE1", Self::PADDLE2 => "JOY_BUTTON_PADDLE2", Self::PADDLE3 => "JOY_BUTTON_PADDLE3", Self::PADDLE4 => "JOY_BUTTON_PADDLE4", Self::TOUCHPAD => "JOY_BUTTON_TOUCHPAD", Self::SDL_MAX => "JOY_BUTTON_SDL_MAX", Self::MAX => "JOY_BUTTON_MAX", _ => self.as_str(), + } + } + } + impl crate::meta::GodotConvert for JoyButton { + type Via = i32; + + } + impl crate::meta::ToGodot for JoyButton { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for JoyButton { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + pub struct JoyAxis { + ord: i32 + } + impl JoyAxis { + #[doc(alias = "JOY_AXIS_INVALID")] + #[doc = "Godot enumerator name: `JOY_AXIS_INVALID`"] + pub const INVALID: JoyAxis = JoyAxis { + ord: - 1i32 + }; + #[doc(alias = "JOY_AXIS_LEFT_X")] + #[doc = "Godot enumerator name: `JOY_AXIS_LEFT_X`"] + pub const LEFT_X: JoyAxis = JoyAxis { + ord: 0i32 + }; + #[doc(alias = "JOY_AXIS_LEFT_Y")] + #[doc = "Godot enumerator name: `JOY_AXIS_LEFT_Y`"] + pub const LEFT_Y: JoyAxis = JoyAxis { + ord: 1i32 + }; + #[doc(alias = "JOY_AXIS_RIGHT_X")] + #[doc = "Godot enumerator name: `JOY_AXIS_RIGHT_X`"] + pub const RIGHT_X: JoyAxis = JoyAxis { + ord: 2i32 + }; + #[doc(alias = "JOY_AXIS_RIGHT_Y")] + #[doc = "Godot enumerator name: `JOY_AXIS_RIGHT_Y`"] + pub const RIGHT_Y: JoyAxis = JoyAxis { + ord: 3i32 + }; + #[doc(alias = "JOY_AXIS_TRIGGER_LEFT")] + #[doc = "Godot enumerator name: `JOY_AXIS_TRIGGER_LEFT`"] + pub const TRIGGER_LEFT: JoyAxis = JoyAxis { + ord: 4i32 + }; + #[doc(alias = "JOY_AXIS_TRIGGER_RIGHT")] + #[doc = "Godot enumerator name: `JOY_AXIS_TRIGGER_RIGHT`"] + pub const TRIGGER_RIGHT: JoyAxis = JoyAxis { + ord: 5i32 + }; + #[doc(alias = "JOY_AXIS_SDL_MAX")] + #[doc = "Godot enumerator name: `JOY_AXIS_SDL_MAX`"] + pub const SDL_MAX: JoyAxis = JoyAxis { + ord: 6i32 + }; + #[doc(alias = "JOY_AXIS_MAX")] + #[doc = "Godot enumerator name: `JOY_AXIS_MAX`"] + pub const MAX: JoyAxis = JoyAxis { + ord: 10i32 + }; + + } + impl std::fmt::Debug for JoyAxis { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("JoyAxis") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for JoyAxis { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ - 1i32 | ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 10i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INVALID => "INVALID", Self::LEFT_X => "LEFT_X", Self::LEFT_Y => "LEFT_Y", Self::RIGHT_X => "RIGHT_X", Self::RIGHT_Y => "RIGHT_Y", Self::TRIGGER_LEFT => "TRIGGER_LEFT", Self::TRIGGER_RIGHT => "TRIGGER_RIGHT", Self::SDL_MAX => "SDL_MAX", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INVALID => "JOY_AXIS_INVALID", Self::LEFT_X => "JOY_AXIS_LEFT_X", Self::LEFT_Y => "JOY_AXIS_LEFT_Y", Self::RIGHT_X => "JOY_AXIS_RIGHT_X", Self::RIGHT_Y => "JOY_AXIS_RIGHT_Y", Self::TRIGGER_LEFT => "JOY_AXIS_TRIGGER_LEFT", Self::TRIGGER_RIGHT => "JOY_AXIS_TRIGGER_RIGHT", Self::SDL_MAX => "JOY_AXIS_SDL_MAX", Self::MAX => "JOY_AXIS_MAX", _ => self.as_str(), + } + } + } + impl crate::meta::GodotConvert for JoyAxis { + type Via = i32; + + } + impl crate::meta::ToGodot for JoyAxis { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for JoyAxis { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + #[doc = "Godot enum name: `MIDIMessage`."] + pub struct MidiMessage { + ord: i32 + } + impl MidiMessage { + #[doc(alias = "MIDI_MESSAGE_NONE")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_NONE`"] + pub const NONE: MidiMessage = MidiMessage { + ord: 0i32 + }; + #[doc(alias = "MIDI_MESSAGE_NOTE_OFF")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_NOTE_OFF`"] + pub const NOTE_OFF: MidiMessage = MidiMessage { + ord: 8i32 + }; + #[doc(alias = "MIDI_MESSAGE_NOTE_ON")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_NOTE_ON`"] + pub const NOTE_ON: MidiMessage = MidiMessage { + ord: 9i32 + }; + #[doc(alias = "MIDI_MESSAGE_AFTERTOUCH")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_AFTERTOUCH`"] + pub const AFTERTOUCH: MidiMessage = MidiMessage { + ord: 10i32 + }; + #[doc(alias = "MIDI_MESSAGE_CONTROL_CHANGE")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_CONTROL_CHANGE`"] + pub const CONTROL_CHANGE: MidiMessage = MidiMessage { + ord: 11i32 + }; + #[doc(alias = "MIDI_MESSAGE_PROGRAM_CHANGE")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_PROGRAM_CHANGE`"] + pub const PROGRAM_CHANGE: MidiMessage = MidiMessage { + ord: 12i32 + }; + #[doc(alias = "MIDI_MESSAGE_CHANNEL_PRESSURE")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_CHANNEL_PRESSURE`"] + pub const CHANNEL_PRESSURE: MidiMessage = MidiMessage { + ord: 13i32 + }; + #[doc(alias = "MIDI_MESSAGE_PITCH_BEND")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_PITCH_BEND`"] + pub const PITCH_BEND: MidiMessage = MidiMessage { + ord: 14i32 + }; + #[doc(alias = "MIDI_MESSAGE_SYSTEM_EXCLUSIVE")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_SYSTEM_EXCLUSIVE`"] + pub const SYSTEM_EXCLUSIVE: MidiMessage = MidiMessage { + ord: 240i32 + }; + #[doc(alias = "MIDI_MESSAGE_QUARTER_FRAME")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_QUARTER_FRAME`"] + pub const QUARTER_FRAME: MidiMessage = MidiMessage { + ord: 241i32 + }; + #[doc(alias = "MIDI_MESSAGE_SONG_POSITION_POINTER")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_SONG_POSITION_POINTER`"] + pub const SONG_POSITION_POINTER: MidiMessage = MidiMessage { + ord: 242i32 + }; + #[doc(alias = "MIDI_MESSAGE_SONG_SELECT")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_SONG_SELECT`"] + pub const SONG_SELECT: MidiMessage = MidiMessage { + ord: 243i32 + }; + #[doc(alias = "MIDI_MESSAGE_TUNE_REQUEST")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_TUNE_REQUEST`"] + pub const TUNE_REQUEST: MidiMessage = MidiMessage { + ord: 246i32 + }; + #[doc(alias = "MIDI_MESSAGE_TIMING_CLOCK")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_TIMING_CLOCK`"] + pub const TIMING_CLOCK: MidiMessage = MidiMessage { + ord: 248i32 + }; + #[doc(alias = "MIDI_MESSAGE_START")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_START`"] + pub const START: MidiMessage = MidiMessage { + ord: 250i32 + }; + #[doc(alias = "MIDI_MESSAGE_CONTINUE")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_CONTINUE`"] + pub const CONTINUE: MidiMessage = MidiMessage { + ord: 251i32 + }; + #[doc(alias = "MIDI_MESSAGE_STOP")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_STOP`"] + pub const STOP: MidiMessage = MidiMessage { + ord: 252i32 + }; + #[doc(alias = "MIDI_MESSAGE_ACTIVE_SENSING")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_ACTIVE_SENSING`"] + pub const ACTIVE_SENSING: MidiMessage = MidiMessage { + ord: 254i32 + }; + #[doc(alias = "MIDI_MESSAGE_SYSTEM_RESET")] + #[doc = "Godot enumerator name: `MIDI_MESSAGE_SYSTEM_RESET`"] + pub const SYSTEM_RESET: MidiMessage = MidiMessage { + ord: 255i32 + }; + + } + impl std::fmt::Debug for MidiMessage { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MidiMessage") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for MidiMessage { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 240i32 | ord @ 241i32 | ord @ 242i32 | ord @ 243i32 | ord @ 246i32 | ord @ 248i32 | ord @ 250i32 | ord @ 251i32 | ord @ 252i32 | ord @ 254i32 | ord @ 255i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::NOTE_OFF => "NOTE_OFF", Self::NOTE_ON => "NOTE_ON", Self::AFTERTOUCH => "AFTERTOUCH", Self::CONTROL_CHANGE => "CONTROL_CHANGE", Self::PROGRAM_CHANGE => "PROGRAM_CHANGE", Self::CHANNEL_PRESSURE => "CHANNEL_PRESSURE", Self::PITCH_BEND => "PITCH_BEND", Self::SYSTEM_EXCLUSIVE => "SYSTEM_EXCLUSIVE", Self::QUARTER_FRAME => "QUARTER_FRAME", Self::SONG_POSITION_POINTER => "SONG_POSITION_POINTER", Self::SONG_SELECT => "SONG_SELECT", Self::TUNE_REQUEST => "TUNE_REQUEST", Self::TIMING_CLOCK => "TIMING_CLOCK", Self::START => "START", Self::CONTINUE => "CONTINUE", Self::STOP => "STOP", Self::ACTIVE_SENSING => "ACTIVE_SENSING", Self::SYSTEM_RESET => "SYSTEM_RESET", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "MIDI_MESSAGE_NONE", Self::NOTE_OFF => "MIDI_MESSAGE_NOTE_OFF", Self::NOTE_ON => "MIDI_MESSAGE_NOTE_ON", Self::AFTERTOUCH => "MIDI_MESSAGE_AFTERTOUCH", Self::CONTROL_CHANGE => "MIDI_MESSAGE_CONTROL_CHANGE", Self::PROGRAM_CHANGE => "MIDI_MESSAGE_PROGRAM_CHANGE", Self::CHANNEL_PRESSURE => "MIDI_MESSAGE_CHANNEL_PRESSURE", Self::PITCH_BEND => "MIDI_MESSAGE_PITCH_BEND", Self::SYSTEM_EXCLUSIVE => "MIDI_MESSAGE_SYSTEM_EXCLUSIVE", Self::QUARTER_FRAME => "MIDI_MESSAGE_QUARTER_FRAME", Self::SONG_POSITION_POINTER => "MIDI_MESSAGE_SONG_POSITION_POINTER", Self::SONG_SELECT => "MIDI_MESSAGE_SONG_SELECT", Self::TUNE_REQUEST => "MIDI_MESSAGE_TUNE_REQUEST", Self::TIMING_CLOCK => "MIDI_MESSAGE_TIMING_CLOCK", Self::START => "MIDI_MESSAGE_START", Self::CONTINUE => "MIDI_MESSAGE_CONTINUE", Self::STOP => "MIDI_MESSAGE_STOP", Self::ACTIVE_SENSING => "MIDI_MESSAGE_ACTIVE_SENSING", Self::SYSTEM_RESET => "MIDI_MESSAGE_SYSTEM_RESET", _ => self.as_str(), + } + } + } + impl crate::meta::GodotConvert for MidiMessage { + type Via = i32; + + } + impl crate::meta::ToGodot for MidiMessage { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for MidiMessage { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + pub struct Error { + ord: i32 + } + impl Error { + pub const OK: Error = Error { + ord: 0i32 + }; + pub const FAILED: Error = Error { + ord: 1i32 + }; + pub const ERR_UNAVAILABLE: Error = Error { + ord: 2i32 + }; + pub const ERR_UNCONFIGURED: Error = Error { + ord: 3i32 + }; + pub const ERR_UNAUTHORIZED: Error = Error { + ord: 4i32 + }; + pub const ERR_PARAMETER_RANGE_ERROR: Error = Error { + ord: 5i32 + }; + pub const ERR_OUT_OF_MEMORY: Error = Error { + ord: 6i32 + }; + pub const ERR_FILE_NOT_FOUND: Error = Error { + ord: 7i32 + }; + pub const ERR_FILE_BAD_DRIVE: Error = Error { + ord: 8i32 + }; + pub const ERR_FILE_BAD_PATH: Error = Error { + ord: 9i32 + }; + pub const ERR_FILE_NO_PERMISSION: Error = Error { + ord: 10i32 + }; + pub const ERR_FILE_ALREADY_IN_USE: Error = Error { + ord: 11i32 + }; + pub const ERR_FILE_CANT_OPEN: Error = Error { + ord: 12i32 + }; + pub const ERR_FILE_CANT_WRITE: Error = Error { + ord: 13i32 + }; + pub const ERR_FILE_CANT_READ: Error = Error { + ord: 14i32 + }; + pub const ERR_FILE_UNRECOGNIZED: Error = Error { + ord: 15i32 + }; + pub const ERR_FILE_CORRUPT: Error = Error { + ord: 16i32 + }; + pub const ERR_FILE_MISSING_DEPENDENCIES: Error = Error { + ord: 17i32 + }; + pub const ERR_FILE_EOF: Error = Error { + ord: 18i32 + }; + pub const ERR_CANT_OPEN: Error = Error { + ord: 19i32 + }; + pub const ERR_CANT_CREATE: Error = Error { + ord: 20i32 + }; + pub const ERR_QUERY_FAILED: Error = Error { + ord: 21i32 + }; + pub const ERR_ALREADY_IN_USE: Error = Error { + ord: 22i32 + }; + pub const ERR_LOCKED: Error = Error { + ord: 23i32 + }; + pub const ERR_TIMEOUT: Error = Error { + ord: 24i32 + }; + pub const ERR_CANT_CONNECT: Error = Error { + ord: 25i32 + }; + pub const ERR_CANT_RESOLVE: Error = Error { + ord: 26i32 + }; + pub const ERR_CONNECTION_ERROR: Error = Error { + ord: 27i32 + }; + pub const ERR_CANT_ACQUIRE_RESOURCE: Error = Error { + ord: 28i32 + }; + pub const ERR_CANT_FORK: Error = Error { + ord: 29i32 + }; + pub const ERR_INVALID_DATA: Error = Error { + ord: 30i32 + }; + pub const ERR_INVALID_PARAMETER: Error = Error { + ord: 31i32 + }; + pub const ERR_ALREADY_EXISTS: Error = Error { + ord: 32i32 + }; + pub const ERR_DOES_NOT_EXIST: Error = Error { + ord: 33i32 + }; + pub const ERR_DATABASE_CANT_READ: Error = Error { + ord: 34i32 + }; + pub const ERR_DATABASE_CANT_WRITE: Error = Error { + ord: 35i32 + }; + pub const ERR_COMPILATION_FAILED: Error = Error { + ord: 36i32 + }; + pub const ERR_METHOD_NOT_FOUND: Error = Error { + ord: 37i32 + }; + pub const ERR_LINK_FAILED: Error = Error { + ord: 38i32 + }; + pub const ERR_SCRIPT_FAILED: Error = Error { + ord: 39i32 + }; + pub const ERR_CYCLIC_LINK: Error = Error { + ord: 40i32 + }; + pub const ERR_INVALID_DECLARATION: Error = Error { + ord: 41i32 + }; + pub const ERR_DUPLICATE_SYMBOL: Error = Error { + ord: 42i32 + }; + pub const ERR_PARSE_ERROR: Error = Error { + ord: 43i32 + }; + pub const ERR_BUSY: Error = Error { + ord: 44i32 + }; + pub const ERR_SKIP: Error = Error { + ord: 45i32 + }; + pub const ERR_HELP: Error = Error { + ord: 46i32 + }; + pub const ERR_BUG: Error = Error { + ord: 47i32 + }; + pub const ERR_PRINTER_ON_FIRE: Error = Error { + ord: 48i32 + }; + + } + impl std::fmt::Debug for Error { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Error") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for Error { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 | ord @ 26i32 | ord @ 27i32 | ord @ 28i32 | ord @ 29i32 | ord @ 30i32 | ord @ 31i32 | ord @ 32i32 | ord @ 33i32 | ord @ 34i32 | ord @ 35i32 | ord @ 36i32 | ord @ 37i32 | ord @ 38i32 | ord @ 39i32 | ord @ 40i32 | ord @ 41i32 | ord @ 42i32 | ord @ 43i32 | ord @ 44i32 | ord @ 45i32 | ord @ 46i32 | ord @ 47i32 | ord @ 48i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OK => "OK", Self::FAILED => "FAILED", Self::ERR_UNAVAILABLE => "ERR_UNAVAILABLE", Self::ERR_UNCONFIGURED => "ERR_UNCONFIGURED", Self::ERR_UNAUTHORIZED => "ERR_UNAUTHORIZED", Self::ERR_PARAMETER_RANGE_ERROR => "ERR_PARAMETER_RANGE_ERROR", Self::ERR_OUT_OF_MEMORY => "ERR_OUT_OF_MEMORY", Self::ERR_FILE_NOT_FOUND => "ERR_FILE_NOT_FOUND", Self::ERR_FILE_BAD_DRIVE => "ERR_FILE_BAD_DRIVE", Self::ERR_FILE_BAD_PATH => "ERR_FILE_BAD_PATH", Self::ERR_FILE_NO_PERMISSION => "ERR_FILE_NO_PERMISSION", Self::ERR_FILE_ALREADY_IN_USE => "ERR_FILE_ALREADY_IN_USE", Self::ERR_FILE_CANT_OPEN => "ERR_FILE_CANT_OPEN", Self::ERR_FILE_CANT_WRITE => "ERR_FILE_CANT_WRITE", Self::ERR_FILE_CANT_READ => "ERR_FILE_CANT_READ", Self::ERR_FILE_UNRECOGNIZED => "ERR_FILE_UNRECOGNIZED", Self::ERR_FILE_CORRUPT => "ERR_FILE_CORRUPT", Self::ERR_FILE_MISSING_DEPENDENCIES => "ERR_FILE_MISSING_DEPENDENCIES", Self::ERR_FILE_EOF => "ERR_FILE_EOF", Self::ERR_CANT_OPEN => "ERR_CANT_OPEN", Self::ERR_CANT_CREATE => "ERR_CANT_CREATE", Self::ERR_QUERY_FAILED => "ERR_QUERY_FAILED", Self::ERR_ALREADY_IN_USE => "ERR_ALREADY_IN_USE", Self::ERR_LOCKED => "ERR_LOCKED", Self::ERR_TIMEOUT => "ERR_TIMEOUT", Self::ERR_CANT_CONNECT => "ERR_CANT_CONNECT", Self::ERR_CANT_RESOLVE => "ERR_CANT_RESOLVE", Self::ERR_CONNECTION_ERROR => "ERR_CONNECTION_ERROR", Self::ERR_CANT_ACQUIRE_RESOURCE => "ERR_CANT_ACQUIRE_RESOURCE", Self::ERR_CANT_FORK => "ERR_CANT_FORK", Self::ERR_INVALID_DATA => "ERR_INVALID_DATA", Self::ERR_INVALID_PARAMETER => "ERR_INVALID_PARAMETER", Self::ERR_ALREADY_EXISTS => "ERR_ALREADY_EXISTS", Self::ERR_DOES_NOT_EXIST => "ERR_DOES_NOT_EXIST", Self::ERR_DATABASE_CANT_READ => "ERR_DATABASE_CANT_READ", Self::ERR_DATABASE_CANT_WRITE => "ERR_DATABASE_CANT_WRITE", Self::ERR_COMPILATION_FAILED => "ERR_COMPILATION_FAILED", Self::ERR_METHOD_NOT_FOUND => "ERR_METHOD_NOT_FOUND", Self::ERR_LINK_FAILED => "ERR_LINK_FAILED", Self::ERR_SCRIPT_FAILED => "ERR_SCRIPT_FAILED", Self::ERR_CYCLIC_LINK => "ERR_CYCLIC_LINK", Self::ERR_INVALID_DECLARATION => "ERR_INVALID_DECLARATION", Self::ERR_DUPLICATE_SYMBOL => "ERR_DUPLICATE_SYMBOL", Self::ERR_PARSE_ERROR => "ERR_PARSE_ERROR", Self::ERR_BUSY => "ERR_BUSY", Self::ERR_SKIP => "ERR_SKIP", Self::ERR_HELP => "ERR_HELP", Self::ERR_BUG => "ERR_BUG", Self::ERR_PRINTER_ON_FIRE => "ERR_PRINTER_ON_FIRE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + self.as_str() + } + } + impl crate::meta::GodotConvert for Error { + type Via = i32; + + } + impl crate::meta::ToGodot for Error { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for Error { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + pub struct PropertyHint { + ord: i32 + } + impl PropertyHint { + #[doc(alias = "PROPERTY_HINT_NONE")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_NONE`"] + pub const NONE: PropertyHint = PropertyHint { + ord: 0i32 + }; + #[doc(alias = "PROPERTY_HINT_RANGE")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_RANGE`"] + pub const RANGE: PropertyHint = PropertyHint { + ord: 1i32 + }; + #[doc(alias = "PROPERTY_HINT_ENUM")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_ENUM`"] + pub const ENUM: PropertyHint = PropertyHint { + ord: 2i32 + }; + #[doc(alias = "PROPERTY_HINT_ENUM_SUGGESTION")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_ENUM_SUGGESTION`"] + pub const ENUM_SUGGESTION: PropertyHint = PropertyHint { + ord: 3i32 + }; + #[doc(alias = "PROPERTY_HINT_EXP_EASING")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_EXP_EASING`"] + pub const EXP_EASING: PropertyHint = PropertyHint { + ord: 4i32 + }; + #[doc(alias = "PROPERTY_HINT_LINK")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_LINK`"] + pub const LINK: PropertyHint = PropertyHint { + ord: 5i32 + }; + #[doc(alias = "PROPERTY_HINT_FLAGS")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_FLAGS`"] + pub const FLAGS: PropertyHint = PropertyHint { + ord: 6i32 + }; + #[doc(alias = "PROPERTY_HINT_LAYERS_2D_RENDER")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_LAYERS_2D_RENDER`"] + pub const LAYERS_2D_RENDER: PropertyHint = PropertyHint { + ord: 7i32 + }; + #[doc(alias = "PROPERTY_HINT_LAYERS_2D_PHYSICS")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_LAYERS_2D_PHYSICS`"] + pub const LAYERS_2D_PHYSICS: PropertyHint = PropertyHint { + ord: 8i32 + }; + #[doc(alias = "PROPERTY_HINT_LAYERS_2D_NAVIGATION")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_LAYERS_2D_NAVIGATION`"] + pub const LAYERS_2D_NAVIGATION: PropertyHint = PropertyHint { + ord: 9i32 + }; + #[doc(alias = "PROPERTY_HINT_LAYERS_3D_RENDER")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_LAYERS_3D_RENDER`"] + pub const LAYERS_3D_RENDER: PropertyHint = PropertyHint { + ord: 10i32 + }; + #[doc(alias = "PROPERTY_HINT_LAYERS_3D_PHYSICS")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_LAYERS_3D_PHYSICS`"] + pub const LAYERS_3D_PHYSICS: PropertyHint = PropertyHint { + ord: 11i32 + }; + #[doc(alias = "PROPERTY_HINT_LAYERS_3D_NAVIGATION")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_LAYERS_3D_NAVIGATION`"] + pub const LAYERS_3D_NAVIGATION: PropertyHint = PropertyHint { + ord: 12i32 + }; + #[doc(alias = "PROPERTY_HINT_LAYERS_AVOIDANCE")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_LAYERS_AVOIDANCE`"] + pub const LAYERS_AVOIDANCE: PropertyHint = PropertyHint { + ord: 37i32 + }; + #[doc(alias = "PROPERTY_HINT_FILE")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_FILE`"] + pub const FILE: PropertyHint = PropertyHint { + ord: 13i32 + }; + #[doc(alias = "PROPERTY_HINT_DIR")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_DIR`"] + pub const DIR: PropertyHint = PropertyHint { + ord: 14i32 + }; + #[doc(alias = "PROPERTY_HINT_GLOBAL_FILE")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_GLOBAL_FILE`"] + pub const GLOBAL_FILE: PropertyHint = PropertyHint { + ord: 15i32 + }; + #[doc(alias = "PROPERTY_HINT_GLOBAL_DIR")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_GLOBAL_DIR`"] + pub const GLOBAL_DIR: PropertyHint = PropertyHint { + ord: 16i32 + }; + #[doc(alias = "PROPERTY_HINT_RESOURCE_TYPE")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_RESOURCE_TYPE`"] + pub const RESOURCE_TYPE: PropertyHint = PropertyHint { + ord: 17i32 + }; + #[doc(alias = "PROPERTY_HINT_MULTILINE_TEXT")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_MULTILINE_TEXT`"] + pub const MULTILINE_TEXT: PropertyHint = PropertyHint { + ord: 18i32 + }; + #[doc(alias = "PROPERTY_HINT_EXPRESSION")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_EXPRESSION`"] + pub const EXPRESSION: PropertyHint = PropertyHint { + ord: 19i32 + }; + #[doc(alias = "PROPERTY_HINT_PLACEHOLDER_TEXT")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_PLACEHOLDER_TEXT`"] + pub const PLACEHOLDER_TEXT: PropertyHint = PropertyHint { + ord: 20i32 + }; + #[doc(alias = "PROPERTY_HINT_COLOR_NO_ALPHA")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_COLOR_NO_ALPHA`"] + pub const COLOR_NO_ALPHA: PropertyHint = PropertyHint { + ord: 21i32 + }; + #[doc(alias = "PROPERTY_HINT_OBJECT_ID")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_OBJECT_ID`"] + pub const OBJECT_ID: PropertyHint = PropertyHint { + ord: 22i32 + }; + #[doc(alias = "PROPERTY_HINT_TYPE_STRING")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_TYPE_STRING`"] + pub const TYPE_STRING: PropertyHint = PropertyHint { + ord: 23i32 + }; + #[doc(alias = "PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE`"] + pub const NODE_PATH_TO_EDITED_NODE: PropertyHint = PropertyHint { + ord: 24i32 + }; + #[doc(alias = "PROPERTY_HINT_OBJECT_TOO_BIG")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_OBJECT_TOO_BIG`"] + pub const OBJECT_TOO_BIG: PropertyHint = PropertyHint { + ord: 25i32 + }; + #[doc(alias = "PROPERTY_HINT_NODE_PATH_VALID_TYPES")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_NODE_PATH_VALID_TYPES`"] + pub const NODE_PATH_VALID_TYPES: PropertyHint = PropertyHint { + ord: 26i32 + }; + #[doc(alias = "PROPERTY_HINT_SAVE_FILE")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_SAVE_FILE`"] + pub const SAVE_FILE: PropertyHint = PropertyHint { + ord: 27i32 + }; + #[doc(alias = "PROPERTY_HINT_GLOBAL_SAVE_FILE")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_GLOBAL_SAVE_FILE`"] + pub const GLOBAL_SAVE_FILE: PropertyHint = PropertyHint { + ord: 28i32 + }; + #[doc(alias = "PROPERTY_HINT_INT_IS_OBJECTID")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_INT_IS_OBJECTID`"] + pub const INT_IS_OBJECTID: PropertyHint = PropertyHint { + ord: 29i32 + }; + #[doc(alias = "PROPERTY_HINT_INT_IS_POINTER")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_INT_IS_POINTER`"] + pub const INT_IS_POINTER: PropertyHint = PropertyHint { + ord: 30i32 + }; + #[doc(alias = "PROPERTY_HINT_ARRAY_TYPE")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_ARRAY_TYPE`"] + pub const ARRAY_TYPE: PropertyHint = PropertyHint { + ord: 31i32 + }; + #[doc(alias = "PROPERTY_HINT_LOCALE_ID")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_LOCALE_ID`"] + pub const LOCALE_ID: PropertyHint = PropertyHint { + ord: 32i32 + }; + #[doc(alias = "PROPERTY_HINT_LOCALIZABLE_STRING")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_LOCALIZABLE_STRING`"] + pub const LOCALIZABLE_STRING: PropertyHint = PropertyHint { + ord: 33i32 + }; + #[doc(alias = "PROPERTY_HINT_NODE_TYPE")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_NODE_TYPE`"] + pub const NODE_TYPE: PropertyHint = PropertyHint { + ord: 34i32 + }; + #[doc(alias = "PROPERTY_HINT_HIDE_QUATERNION_EDIT")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_HIDE_QUATERNION_EDIT`"] + pub const HIDE_QUATERNION_EDIT: PropertyHint = PropertyHint { + ord: 35i32 + }; + #[doc(alias = "PROPERTY_HINT_PASSWORD")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_PASSWORD`"] + pub const PASSWORD: PropertyHint = PropertyHint { + ord: 36i32 + }; + #[doc(alias = "PROPERTY_HINT_MAX")] + #[doc = "Godot enumerator name: `PROPERTY_HINT_MAX`"] + pub const MAX: PropertyHint = PropertyHint { + ord: 38i32 + }; + + } + impl std::fmt::Debug for PropertyHint { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PropertyHint") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for PropertyHint { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 | ord @ 26i32 | ord @ 27i32 | ord @ 28i32 | ord @ 29i32 | ord @ 30i32 | ord @ 31i32 | ord @ 32i32 | ord @ 33i32 | ord @ 34i32 | ord @ 35i32 | ord @ 36i32 | ord @ 37i32 | ord @ 38i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::RANGE => "RANGE", Self::ENUM => "ENUM", Self::ENUM_SUGGESTION => "ENUM_SUGGESTION", Self::EXP_EASING => "EXP_EASING", Self::LINK => "LINK", Self::FLAGS => "FLAGS", Self::LAYERS_2D_RENDER => "LAYERS_2D_RENDER", Self::LAYERS_2D_PHYSICS => "LAYERS_2D_PHYSICS", Self::LAYERS_2D_NAVIGATION => "LAYERS_2D_NAVIGATION", Self::LAYERS_3D_RENDER => "LAYERS_3D_RENDER", Self::LAYERS_3D_PHYSICS => "LAYERS_3D_PHYSICS", Self::LAYERS_3D_NAVIGATION => "LAYERS_3D_NAVIGATION", Self::LAYERS_AVOIDANCE => "LAYERS_AVOIDANCE", Self::FILE => "FILE", Self::DIR => "DIR", Self::GLOBAL_FILE => "GLOBAL_FILE", Self::GLOBAL_DIR => "GLOBAL_DIR", Self::RESOURCE_TYPE => "RESOURCE_TYPE", Self::MULTILINE_TEXT => "MULTILINE_TEXT", Self::EXPRESSION => "EXPRESSION", Self::PLACEHOLDER_TEXT => "PLACEHOLDER_TEXT", Self::COLOR_NO_ALPHA => "COLOR_NO_ALPHA", Self::OBJECT_ID => "OBJECT_ID", Self::TYPE_STRING => "TYPE_STRING", Self::NODE_PATH_TO_EDITED_NODE => "NODE_PATH_TO_EDITED_NODE", Self::OBJECT_TOO_BIG => "OBJECT_TOO_BIG", Self::NODE_PATH_VALID_TYPES => "NODE_PATH_VALID_TYPES", Self::SAVE_FILE => "SAVE_FILE", Self::GLOBAL_SAVE_FILE => "GLOBAL_SAVE_FILE", Self::INT_IS_OBJECTID => "INT_IS_OBJECTID", Self::INT_IS_POINTER => "INT_IS_POINTER", Self::ARRAY_TYPE => "ARRAY_TYPE", Self::LOCALE_ID => "LOCALE_ID", Self::LOCALIZABLE_STRING => "LOCALIZABLE_STRING", Self::NODE_TYPE => "NODE_TYPE", Self::HIDE_QUATERNION_EDIT => "HIDE_QUATERNION_EDIT", Self::PASSWORD => "PASSWORD", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "PROPERTY_HINT_NONE", Self::RANGE => "PROPERTY_HINT_RANGE", Self::ENUM => "PROPERTY_HINT_ENUM", Self::ENUM_SUGGESTION => "PROPERTY_HINT_ENUM_SUGGESTION", Self::EXP_EASING => "PROPERTY_HINT_EXP_EASING", Self::LINK => "PROPERTY_HINT_LINK", Self::FLAGS => "PROPERTY_HINT_FLAGS", Self::LAYERS_2D_RENDER => "PROPERTY_HINT_LAYERS_2D_RENDER", Self::LAYERS_2D_PHYSICS => "PROPERTY_HINT_LAYERS_2D_PHYSICS", Self::LAYERS_2D_NAVIGATION => "PROPERTY_HINT_LAYERS_2D_NAVIGATION", Self::LAYERS_3D_RENDER => "PROPERTY_HINT_LAYERS_3D_RENDER", Self::LAYERS_3D_PHYSICS => "PROPERTY_HINT_LAYERS_3D_PHYSICS", Self::LAYERS_3D_NAVIGATION => "PROPERTY_HINT_LAYERS_3D_NAVIGATION", Self::LAYERS_AVOIDANCE => "PROPERTY_HINT_LAYERS_AVOIDANCE", Self::FILE => "PROPERTY_HINT_FILE", Self::DIR => "PROPERTY_HINT_DIR", Self::GLOBAL_FILE => "PROPERTY_HINT_GLOBAL_FILE", Self::GLOBAL_DIR => "PROPERTY_HINT_GLOBAL_DIR", Self::RESOURCE_TYPE => "PROPERTY_HINT_RESOURCE_TYPE", Self::MULTILINE_TEXT => "PROPERTY_HINT_MULTILINE_TEXT", Self::EXPRESSION => "PROPERTY_HINT_EXPRESSION", Self::PLACEHOLDER_TEXT => "PROPERTY_HINT_PLACEHOLDER_TEXT", Self::COLOR_NO_ALPHA => "PROPERTY_HINT_COLOR_NO_ALPHA", Self::OBJECT_ID => "PROPERTY_HINT_OBJECT_ID", Self::TYPE_STRING => "PROPERTY_HINT_TYPE_STRING", Self::NODE_PATH_TO_EDITED_NODE => "PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE", Self::OBJECT_TOO_BIG => "PROPERTY_HINT_OBJECT_TOO_BIG", Self::NODE_PATH_VALID_TYPES => "PROPERTY_HINT_NODE_PATH_VALID_TYPES", Self::SAVE_FILE => "PROPERTY_HINT_SAVE_FILE", Self::GLOBAL_SAVE_FILE => "PROPERTY_HINT_GLOBAL_SAVE_FILE", Self::INT_IS_OBJECTID => "PROPERTY_HINT_INT_IS_OBJECTID", Self::INT_IS_POINTER => "PROPERTY_HINT_INT_IS_POINTER", Self::ARRAY_TYPE => "PROPERTY_HINT_ARRAY_TYPE", Self::LOCALE_ID => "PROPERTY_HINT_LOCALE_ID", Self::LOCALIZABLE_STRING => "PROPERTY_HINT_LOCALIZABLE_STRING", Self::NODE_TYPE => "PROPERTY_HINT_NODE_TYPE", Self::HIDE_QUATERNION_EDIT => "PROPERTY_HINT_HIDE_QUATERNION_EDIT", Self::PASSWORD => "PROPERTY_HINT_PASSWORD", Self::MAX => "PROPERTY_HINT_MAX", _ => self.as_str(), + } + } + } + impl crate::obj::IndexEnum for PropertyHint { + const ENUMERATOR_COUNT: usize = 38usize; + + } + impl crate::meta::GodotConvert for PropertyHint { + type Via = i32; + + } + impl crate::meta::ToGodot for PropertyHint { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for PropertyHint { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] + pub struct PropertyUsageFlags { + ord: u64 + } + impl PropertyUsageFlags { + #[doc(alias = "PROPERTY_USAGE_NONE")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_NONE`"] + pub const NONE: PropertyUsageFlags = PropertyUsageFlags { + ord: 0u64 + }; + #[doc(alias = "PROPERTY_USAGE_STORAGE")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_STORAGE`"] + pub const STORAGE: PropertyUsageFlags = PropertyUsageFlags { + ord: 2u64 + }; + #[doc(alias = "PROPERTY_USAGE_EDITOR")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_EDITOR`"] + pub const EDITOR: PropertyUsageFlags = PropertyUsageFlags { + ord: 4u64 + }; + #[doc(alias = "PROPERTY_USAGE_INTERNAL")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_INTERNAL`"] + pub const INTERNAL: PropertyUsageFlags = PropertyUsageFlags { + ord: 8u64 + }; + #[doc(alias = "PROPERTY_USAGE_CHECKABLE")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_CHECKABLE`"] + pub const CHECKABLE: PropertyUsageFlags = PropertyUsageFlags { + ord: 16u64 + }; + #[doc(alias = "PROPERTY_USAGE_CHECKED")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_CHECKED`"] + pub const CHECKED: PropertyUsageFlags = PropertyUsageFlags { + ord: 32u64 + }; + #[doc(alias = "PROPERTY_USAGE_GROUP")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_GROUP`"] + pub const GROUP: PropertyUsageFlags = PropertyUsageFlags { + ord: 64u64 + }; + #[doc(alias = "PROPERTY_USAGE_CATEGORY")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_CATEGORY`"] + pub const CATEGORY: PropertyUsageFlags = PropertyUsageFlags { + ord: 128u64 + }; + #[doc(alias = "PROPERTY_USAGE_SUBGROUP")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_SUBGROUP`"] + pub const SUBGROUP: PropertyUsageFlags = PropertyUsageFlags { + ord: 256u64 + }; + #[doc(alias = "PROPERTY_USAGE_CLASS_IS_BITFIELD")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_CLASS_IS_BITFIELD`"] + pub const CLASS_IS_BITFIELD: PropertyUsageFlags = PropertyUsageFlags { + ord: 512u64 + }; + #[doc(alias = "PROPERTY_USAGE_NO_INSTANCE_STATE")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_NO_INSTANCE_STATE`"] + pub const NO_INSTANCE_STATE: PropertyUsageFlags = PropertyUsageFlags { + ord: 1024u64 + }; + #[doc(alias = "PROPERTY_USAGE_RESTART_IF_CHANGED")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_RESTART_IF_CHANGED`"] + pub const RESTART_IF_CHANGED: PropertyUsageFlags = PropertyUsageFlags { + ord: 2048u64 + }; + #[doc(alias = "PROPERTY_USAGE_SCRIPT_VARIABLE")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_SCRIPT_VARIABLE`"] + pub const SCRIPT_VARIABLE: PropertyUsageFlags = PropertyUsageFlags { + ord: 4096u64 + }; + #[doc(alias = "PROPERTY_USAGE_STORE_IF_NULL")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_STORE_IF_NULL`"] + pub const STORE_IF_NULL: PropertyUsageFlags = PropertyUsageFlags { + ord: 8192u64 + }; + #[doc(alias = "PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED`"] + pub const UPDATE_ALL_IF_MODIFIED: PropertyUsageFlags = PropertyUsageFlags { + ord: 16384u64 + }; + #[doc(alias = "PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE`"] + pub const SCRIPT_DEFAULT_VALUE: PropertyUsageFlags = PropertyUsageFlags { + ord: 32768u64 + }; + #[doc(alias = "PROPERTY_USAGE_CLASS_IS_ENUM")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_CLASS_IS_ENUM`"] + pub const CLASS_IS_ENUM: PropertyUsageFlags = PropertyUsageFlags { + ord: 65536u64 + }; + #[doc(alias = "PROPERTY_USAGE_NIL_IS_VARIANT")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_NIL_IS_VARIANT`"] + pub const NIL_IS_VARIANT: PropertyUsageFlags = PropertyUsageFlags { + ord: 131072u64 + }; + #[doc(alias = "PROPERTY_USAGE_ARRAY")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_ARRAY`"] + pub const ARRAY: PropertyUsageFlags = PropertyUsageFlags { + ord: 262144u64 + }; + #[doc(alias = "PROPERTY_USAGE_ALWAYS_DUPLICATE")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_ALWAYS_DUPLICATE`"] + pub const ALWAYS_DUPLICATE: PropertyUsageFlags = PropertyUsageFlags { + ord: 524288u64 + }; + #[doc(alias = "PROPERTY_USAGE_NEVER_DUPLICATE")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_NEVER_DUPLICATE`"] + pub const NEVER_DUPLICATE: PropertyUsageFlags = PropertyUsageFlags { + ord: 1048576u64 + }; + #[doc(alias = "PROPERTY_USAGE_HIGH_END_GFX")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_HIGH_END_GFX`"] + pub const HIGH_END_GFX: PropertyUsageFlags = PropertyUsageFlags { + ord: 2097152u64 + }; + #[doc(alias = "PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT`"] + pub const NODE_PATH_FROM_SCENE_ROOT: PropertyUsageFlags = PropertyUsageFlags { + ord: 4194304u64 + }; + #[doc(alias = "PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT`"] + pub const RESOURCE_NOT_PERSISTENT: PropertyUsageFlags = PropertyUsageFlags { + ord: 8388608u64 + }; + #[doc(alias = "PROPERTY_USAGE_KEYING_INCREMENTS")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_KEYING_INCREMENTS`"] + pub const KEYING_INCREMENTS: PropertyUsageFlags = PropertyUsageFlags { + ord: 16777216u64 + }; + #[doc(alias = "PROPERTY_USAGE_DEFERRED_SET_RESOURCE")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_DEFERRED_SET_RESOURCE`"] + pub const DEFERRED_SET_RESOURCE: PropertyUsageFlags = PropertyUsageFlags { + ord: 33554432u64 + }; + #[doc(alias = "PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT`"] + pub const EDITOR_INSTANTIATE_OBJECT: PropertyUsageFlags = PropertyUsageFlags { + ord: 67108864u64 + }; + #[doc(alias = "PROPERTY_USAGE_EDITOR_BASIC_SETTING")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_EDITOR_BASIC_SETTING`"] + pub const EDITOR_BASIC_SETTING: PropertyUsageFlags = PropertyUsageFlags { + ord: 134217728u64 + }; + #[doc(alias = "PROPERTY_USAGE_READ_ONLY")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_READ_ONLY`"] + pub const READ_ONLY: PropertyUsageFlags = PropertyUsageFlags { + ord: 268435456u64 + }; + #[doc(alias = "PROPERTY_USAGE_SECRET")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_SECRET`"] + pub const SECRET: PropertyUsageFlags = PropertyUsageFlags { + ord: 536870912u64 + }; + #[doc(alias = "PROPERTY_USAGE_DEFAULT")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_DEFAULT`"] + pub const DEFAULT: PropertyUsageFlags = PropertyUsageFlags { + ord: 6u64 + }; + #[doc(alias = "PROPERTY_USAGE_NO_EDITOR")] + #[doc = "Godot enumerator name: `PROPERTY_USAGE_NO_EDITOR`"] + pub const NO_EDITOR: PropertyUsageFlags = PropertyUsageFlags { + ord: 2u64 + }; + + } + impl std::fmt::Debug for PropertyUsageFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::NONE => "NONE", Self::STORAGE => "STORAGE", Self::EDITOR => "EDITOR", Self::INTERNAL => "INTERNAL", Self::CHECKABLE => "CHECKABLE", Self::CHECKED => "CHECKED", Self::GROUP => "GROUP", Self::CATEGORY => "CATEGORY", Self::SUBGROUP => "SUBGROUP", Self::CLASS_IS_BITFIELD => "CLASS_IS_BITFIELD", Self::NO_INSTANCE_STATE => "NO_INSTANCE_STATE", Self::RESTART_IF_CHANGED => "RESTART_IF_CHANGED", Self::SCRIPT_VARIABLE => "SCRIPT_VARIABLE", Self::STORE_IF_NULL => "STORE_IF_NULL", Self::UPDATE_ALL_IF_MODIFIED => "UPDATE_ALL_IF_MODIFIED", Self::SCRIPT_DEFAULT_VALUE => "SCRIPT_DEFAULT_VALUE", Self::CLASS_IS_ENUM => "CLASS_IS_ENUM", Self::NIL_IS_VARIANT => "NIL_IS_VARIANT", Self::ARRAY => "ARRAY", Self::ALWAYS_DUPLICATE => "ALWAYS_DUPLICATE", Self::NEVER_DUPLICATE => "NEVER_DUPLICATE", Self::HIGH_END_GFX => "HIGH_END_GFX", Self::NODE_PATH_FROM_SCENE_ROOT => "NODE_PATH_FROM_SCENE_ROOT", Self::RESOURCE_NOT_PERSISTENT => "RESOURCE_NOT_PERSISTENT", Self::KEYING_INCREMENTS => "KEYING_INCREMENTS", Self::DEFERRED_SET_RESOURCE => "DEFERRED_SET_RESOURCE", Self::EDITOR_INSTANTIATE_OBJECT => "EDITOR_INSTANTIATE_OBJECT", Self::EDITOR_BASIC_SETTING => "EDITOR_BASIC_SETTING", Self::READ_ONLY => "READ_ONLY", Self::SECRET => "SECRET", Self::DEFAULT => "DEFAULT", Self::NO_EDITOR => "NO_EDITOR", _ => { + f.debug_struct("PropertyUsageFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } + } + impl crate::obj::EngineBitfield for PropertyUsageFlags { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } + } + impl std::ops::BitOr for PropertyUsageFlags { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } + } + impl crate::meta::GodotConvert for PropertyUsageFlags { + type Via = u64; + + } + impl crate::meta::ToGodot for PropertyUsageFlags { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } + } + impl crate::meta::FromGodot for PropertyUsageFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] + pub struct MethodFlags { + ord: u64 + } + impl MethodFlags { + #[doc(alias = "METHOD_FLAG_NORMAL")] + #[doc = "Godot enumerator name: `METHOD_FLAG_NORMAL`"] + pub const NORMAL: MethodFlags = MethodFlags { + ord: 1u64 + }; + #[doc(alias = "METHOD_FLAG_EDITOR")] + #[doc = "Godot enumerator name: `METHOD_FLAG_EDITOR`"] + pub const EDITOR: MethodFlags = MethodFlags { + ord: 2u64 + }; + #[doc(alias = "METHOD_FLAG_CONST")] + #[doc = "Godot enumerator name: `METHOD_FLAG_CONST`"] + pub const CONST: MethodFlags = MethodFlags { + ord: 4u64 + }; + #[doc(alias = "METHOD_FLAG_VIRTUAL")] + #[doc = "Godot enumerator name: `METHOD_FLAG_VIRTUAL`"] + pub const VIRTUAL: MethodFlags = MethodFlags { + ord: 8u64 + }; + #[doc(alias = "METHOD_FLAG_VARARG")] + #[doc = "Godot enumerator name: `METHOD_FLAG_VARARG`"] + pub const VARARG: MethodFlags = MethodFlags { + ord: 16u64 + }; + #[doc(alias = "METHOD_FLAG_STATIC")] + #[doc = "Godot enumerator name: `METHOD_FLAG_STATIC`"] + pub const STATIC: MethodFlags = MethodFlags { + ord: 32u64 + }; + #[doc(alias = "METHOD_FLAG_OBJECT_CORE")] + #[doc = "Godot enumerator name: `METHOD_FLAG_OBJECT_CORE`"] + pub const OBJECT_CORE: MethodFlags = MethodFlags { + ord: 64u64 + }; + #[doc(alias = "METHOD_FLAGS_DEFAULT")] + #[doc = "Godot enumerator name: `METHOD_FLAGS_DEFAULT`"] + pub const DEFAULT: MethodFlags = MethodFlags { + ord: 1u64 + }; + + } + impl std::fmt::Debug for MethodFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::NORMAL => "NORMAL", Self::EDITOR => "EDITOR", Self::CONST => "CONST", Self::VIRTUAL => "VIRTUAL", Self::VARARG => "VARARG", Self::STATIC => "STATIC", Self::OBJECT_CORE => "OBJECT_CORE", Self::DEFAULT => "DEFAULT", _ => { + f.debug_struct("MethodFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } + } + impl crate::obj::EngineBitfield for MethodFlags { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } + } + impl std::ops::BitOr for MethodFlags { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } + } + impl crate::meta::GodotConvert for MethodFlags { + type Via = u64; + + } + impl crate::meta::ToGodot for MethodFlags { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } + } + impl crate::meta::FromGodot for MethodFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } +} +pub mod global_reexported_enums { + use crate::sys; + #[repr(i32)] + #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] + #[doc = r""] + #[doc = r" This enum is exhaustive; you should not expect future Godot versions to add new enumerators."] + #[allow(non_camel_case_types)] + pub enum Side { + #[doc(alias = "SIDE_LEFT")] + #[doc = "Godot enumerator name: `SIDE_LEFT`"] + LEFT = 0i32, #[doc(alias = "SIDE_TOP")] + #[doc = "Godot enumerator name: `SIDE_TOP`"] + TOP = 1i32, #[doc(alias = "SIDE_RIGHT")] + #[doc = "Godot enumerator name: `SIDE_RIGHT`"] + RIGHT = 2i32, #[doc(alias = "SIDE_BOTTOM")] + #[doc = "Godot enumerator name: `SIDE_BOTTOM`"] + BOTTOM = 3i32, + } + impl crate::obj::EngineEnum for Side { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + 0i32 => Some(Self::LEFT), 1i32 => Some(Self::TOP), 2i32 => Some(Self::RIGHT), 3i32 => Some(Self::BOTTOM), _ => None, + } + } + fn ord(self) -> i32 { + self as i32 + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT => "LEFT", Self::TOP => "TOP", Self::RIGHT => "RIGHT", Self::BOTTOM => "BOTTOM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT => "SIDE_LEFT", Self::TOP => "SIDE_TOP", Self::RIGHT => "SIDE_RIGHT", Self::BOTTOM => "SIDE_BOTTOM", _ => self.as_str(), + } + } + } + impl crate::meta::GodotConvert for Side { + type Via = i32; + + } + impl crate::meta::ToGodot for Side { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for Side { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(i32)] + #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] + #[doc = r""] + #[doc = r" This enum is exhaustive; you should not expect future Godot versions to add new enumerators."] + #[allow(non_camel_case_types)] + pub enum Corner { + #[doc(alias = "CORNER_TOP_LEFT")] + #[doc = "Godot enumerator name: `CORNER_TOP_LEFT`"] + TOP_LEFT = 0i32, #[doc(alias = "CORNER_TOP_RIGHT")] + #[doc = "Godot enumerator name: `CORNER_TOP_RIGHT`"] + TOP_RIGHT = 1i32, #[doc(alias = "CORNER_BOTTOM_RIGHT")] + #[doc = "Godot enumerator name: `CORNER_BOTTOM_RIGHT`"] + BOTTOM_RIGHT = 2i32, #[doc(alias = "CORNER_BOTTOM_LEFT")] + #[doc = "Godot enumerator name: `CORNER_BOTTOM_LEFT`"] + BOTTOM_LEFT = 3i32, + } + impl crate::obj::EngineEnum for Corner { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + 0i32 => Some(Self::TOP_LEFT), 1i32 => Some(Self::TOP_RIGHT), 2i32 => Some(Self::BOTTOM_RIGHT), 3i32 => Some(Self::BOTTOM_LEFT), _ => None, + } + } + fn ord(self) -> i32 { + self as i32 + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOP_LEFT => "TOP_LEFT", Self::TOP_RIGHT => "TOP_RIGHT", Self::BOTTOM_RIGHT => "BOTTOM_RIGHT", Self::BOTTOM_LEFT => "BOTTOM_LEFT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOP_LEFT => "CORNER_TOP_LEFT", Self::TOP_RIGHT => "CORNER_TOP_RIGHT", Self::BOTTOM_RIGHT => "CORNER_BOTTOM_RIGHT", Self::BOTTOM_LEFT => "CORNER_BOTTOM_LEFT", _ => self.as_str(), + } + } + } + impl crate::meta::GodotConvert for Corner { + type Via = i32; + + } + impl crate::meta::ToGodot for Corner { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for Corner { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(i32)] + #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] + #[doc = r""] + #[doc = r" This enum is exhaustive; you should not expect future Godot versions to add new enumerators."] + #[allow(non_camel_case_types)] + pub enum EulerOrder { + #[doc(alias = "EULER_ORDER_XYZ")] + #[doc = "Godot enumerator name: `EULER_ORDER_XYZ`"] + XYZ = 0i32, #[doc(alias = "EULER_ORDER_XZY")] + #[doc = "Godot enumerator name: `EULER_ORDER_XZY`"] + XZY = 1i32, #[doc(alias = "EULER_ORDER_YXZ")] + #[doc = "Godot enumerator name: `EULER_ORDER_YXZ`"] + YXZ = 2i32, #[doc(alias = "EULER_ORDER_YZX")] + #[doc = "Godot enumerator name: `EULER_ORDER_YZX`"] + YZX = 3i32, #[doc(alias = "EULER_ORDER_ZXY")] + #[doc = "Godot enumerator name: `EULER_ORDER_ZXY`"] + ZXY = 4i32, #[doc(alias = "EULER_ORDER_ZYX")] + #[doc = "Godot enumerator name: `EULER_ORDER_ZYX`"] + ZYX = 5i32, + } + impl crate::obj::EngineEnum for EulerOrder { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + 0i32 => Some(Self::XYZ), 1i32 => Some(Self::XZY), 2i32 => Some(Self::YXZ), 3i32 => Some(Self::YZX), 4i32 => Some(Self::ZXY), 5i32 => Some(Self::ZYX), _ => None, + } + } + fn ord(self) -> i32 { + self as i32 + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::XYZ => "XYZ", Self::XZY => "XZY", Self::YXZ => "YXZ", Self::YZX => "YZX", Self::ZXY => "ZXY", Self::ZYX => "ZYX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::XYZ => "EULER_ORDER_XYZ", Self::XZY => "EULER_ORDER_XZY", Self::YXZ => "EULER_ORDER_YXZ", Self::YZX => "EULER_ORDER_YZX", Self::ZXY => "EULER_ORDER_ZXY", Self::ZYX => "EULER_ORDER_ZYX", _ => self.as_str(), + } + } + } + impl crate::meta::GodotConvert for EulerOrder { + type Via = i32; + + } + impl crate::meta::ToGodot for EulerOrder { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for EulerOrder { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash)] + #[doc = "Godot enum name: `Variant.Operator`."] + pub struct VariantOperator { + ord: i32 + } + impl VariantOperator { + #[doc(alias = "OP_EQUAL")] + #[doc = "Godot enumerator name: `OP_EQUAL`"] + pub const EQUAL: VariantOperator = VariantOperator { + ord: 0i32 + }; + #[doc(alias = "OP_NOT_EQUAL")] + #[doc = "Godot enumerator name: `OP_NOT_EQUAL`"] + pub const NOT_EQUAL: VariantOperator = VariantOperator { + ord: 1i32 + }; + #[doc(alias = "OP_LESS")] + #[doc = "Godot enumerator name: `OP_LESS`"] + pub const LESS: VariantOperator = VariantOperator { + ord: 2i32 + }; + #[doc(alias = "OP_LESS_EQUAL")] + #[doc = "Godot enumerator name: `OP_LESS_EQUAL`"] + pub const LESS_EQUAL: VariantOperator = VariantOperator { + ord: 3i32 + }; + #[doc(alias = "OP_GREATER")] + #[doc = "Godot enumerator name: `OP_GREATER`"] + pub const GREATER: VariantOperator = VariantOperator { + ord: 4i32 + }; + #[doc(alias = "OP_GREATER_EQUAL")] + #[doc = "Godot enumerator name: `OP_GREATER_EQUAL`"] + pub const GREATER_EQUAL: VariantOperator = VariantOperator { + ord: 5i32 + }; + #[doc(alias = "OP_ADD")] + #[doc = "Godot enumerator name: `OP_ADD`"] + pub const ADD: VariantOperator = VariantOperator { + ord: 6i32 + }; + #[doc(alias = "OP_SUBTRACT")] + #[doc = "Godot enumerator name: `OP_SUBTRACT`"] + pub const SUBTRACT: VariantOperator = VariantOperator { + ord: 7i32 + }; + #[doc(alias = "OP_MULTIPLY")] + #[doc = "Godot enumerator name: `OP_MULTIPLY`"] + pub const MULTIPLY: VariantOperator = VariantOperator { + ord: 8i32 + }; + #[doc(alias = "OP_DIVIDE")] + #[doc = "Godot enumerator name: `OP_DIVIDE`"] + pub const DIVIDE: VariantOperator = VariantOperator { + ord: 9i32 + }; + #[doc(alias = "OP_NEGATE")] + #[doc = "Godot enumerator name: `OP_NEGATE`"] + pub const NEGATE: VariantOperator = VariantOperator { + ord: 10i32 + }; + #[doc(alias = "OP_POSITIVE")] + #[doc = "Godot enumerator name: `OP_POSITIVE`"] + pub const POSITIVE: VariantOperator = VariantOperator { + ord: 11i32 + }; + #[doc(alias = "OP_MODULE")] + #[doc = "Godot enumerator name: `OP_MODULE`"] + pub const MODULO: VariantOperator = VariantOperator { + ord: 12i32 + }; + #[doc(alias = "OP_POWER")] + #[doc = "Godot enumerator name: `OP_POWER`"] + pub const POWER: VariantOperator = VariantOperator { + ord: 13i32 + }; + #[doc(alias = "OP_SHIFT_LEFT")] + #[doc = "Godot enumerator name: `OP_SHIFT_LEFT`"] + pub const SHIFT_LEFT: VariantOperator = VariantOperator { + ord: 14i32 + }; + #[doc(alias = "OP_SHIFT_RIGHT")] + #[doc = "Godot enumerator name: `OP_SHIFT_RIGHT`"] + pub const SHIFT_RIGHT: VariantOperator = VariantOperator { + ord: 15i32 + }; + #[doc(alias = "OP_BIT_AND")] + #[doc = "Godot enumerator name: `OP_BIT_AND`"] + pub const BIT_AND: VariantOperator = VariantOperator { + ord: 16i32 + }; + #[doc(alias = "OP_BIT_OR")] + #[doc = "Godot enumerator name: `OP_BIT_OR`"] + pub const BIT_OR: VariantOperator = VariantOperator { + ord: 17i32 + }; + #[doc(alias = "OP_BIT_XOR")] + #[doc = "Godot enumerator name: `OP_BIT_XOR`"] + pub const BIT_XOR: VariantOperator = VariantOperator { + ord: 18i32 + }; + #[doc(alias = "OP_BIT_NEGATE")] + #[doc = "Godot enumerator name: `OP_BIT_NEGATE`"] + pub const BIT_NEGATE: VariantOperator = VariantOperator { + ord: 19i32 + }; + #[doc(alias = "OP_AND")] + #[doc = "Godot enumerator name: `OP_AND`"] + pub const AND: VariantOperator = VariantOperator { + ord: 20i32 + }; + #[doc(alias = "OP_OR")] + #[doc = "Godot enumerator name: `OP_OR`"] + pub const OR: VariantOperator = VariantOperator { + ord: 21i32 + }; + #[doc(alias = "OP_XOR")] + #[doc = "Godot enumerator name: `OP_XOR`"] + pub const XOR: VariantOperator = VariantOperator { + ord: 22i32 + }; + #[doc(alias = "OP_NOT")] + #[doc = "Godot enumerator name: `OP_NOT`"] + pub const NOT: VariantOperator = VariantOperator { + ord: 23i32 + }; + #[doc(alias = "OP_IN")] + #[doc = "Godot enumerator name: `OP_IN`"] + pub const IN: VariantOperator = VariantOperator { + ord: 24i32 + }; + #[doc(alias = "OP_MAX")] + #[doc = "Godot enumerator name: `OP_MAX`"] + pub const MAX: VariantOperator = VariantOperator { + ord: 25i32 + }; + + } + impl std::fmt::Debug for VariantOperator { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("VariantOperator") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } + } + impl crate::obj::EngineEnum for VariantOperator { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EQUAL => "EQUAL", Self::NOT_EQUAL => "NOT_EQUAL", Self::LESS => "LESS", Self::LESS_EQUAL => "LESS_EQUAL", Self::GREATER => "GREATER", Self::GREATER_EQUAL => "GREATER_EQUAL", Self::ADD => "ADD", Self::SUBTRACT => "SUBTRACT", Self::MULTIPLY => "MULTIPLY", Self::DIVIDE => "DIVIDE", Self::NEGATE => "NEGATE", Self::POSITIVE => "POSITIVE", Self::MODULO => "MODULO", Self::POWER => "POWER", Self::SHIFT_LEFT => "SHIFT_LEFT", Self::SHIFT_RIGHT => "SHIFT_RIGHT", Self::BIT_AND => "BIT_AND", Self::BIT_OR => "BIT_OR", Self::BIT_XOR => "BIT_XOR", Self::BIT_NEGATE => "BIT_NEGATE", Self::AND => "AND", Self::OR => "OR", Self::XOR => "XOR", Self::NOT => "NOT", Self::IN => "IN", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EQUAL => "OP_EQUAL", Self::NOT_EQUAL => "OP_NOT_EQUAL", Self::LESS => "OP_LESS", Self::LESS_EQUAL => "OP_LESS_EQUAL", Self::GREATER => "OP_GREATER", Self::GREATER_EQUAL => "OP_GREATER_EQUAL", Self::ADD => "OP_ADD", Self::SUBTRACT => "OP_SUBTRACT", Self::MULTIPLY => "OP_MULTIPLY", Self::DIVIDE => "OP_DIVIDE", Self::NEGATE => "OP_NEGATE", Self::POSITIVE => "OP_POSITIVE", Self::MODULO => "OP_MODULE", Self::POWER => "OP_POWER", Self::SHIFT_LEFT => "OP_SHIFT_LEFT", Self::SHIFT_RIGHT => "OP_SHIFT_RIGHT", Self::BIT_AND => "OP_BIT_AND", Self::BIT_OR => "OP_BIT_OR", Self::BIT_XOR => "OP_BIT_XOR", Self::BIT_NEGATE => "OP_BIT_NEGATE", Self::AND => "OP_AND", Self::OR => "OP_OR", Self::XOR => "OP_XOR", Self::NOT => "OP_NOT", Self::IN => "OP_IN", Self::MAX => "OP_MAX", _ => self.as_str(), + } + } + } + impl crate::obj::IndexEnum for VariantOperator { + const ENUMERATOR_COUNT: usize = 25usize; + + } + impl crate::meta::GodotConvert for VariantOperator { + type Via = i32; + + } + impl crate::meta::ToGodot for VariantOperator { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } + } + impl crate::meta::FromGodot for VariantOperator { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/a_star_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/a_star_2d.rs new file mode 100644 index 0000000..3e9aae6 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/a_star_2d.rs @@ -0,0 +1,679 @@ +#![doc = "Sidecar module for class [`AStar2D`][crate::classes::AStar2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AStar2D` enums](https://docs.godotengine.org/en/stable/classes/class_astar2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AStar2D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`a_star_2d`][crate::classes::a_star_2d]: sidecar module with related enum/flag types\n* [`IAStar2D`][crate::classes::IAStar2D]: virtual methods\n\n\nSee also [Godot docs for `AStar2D`](https://docs.godotengine.org/en/stable/classes/class_astar2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AStar2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AStar2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AStar2D`][crate::classes::AStar2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AStar2D` methods](https://docs.godotengine.org/en/stable/classes/class_astar2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAStar2D: crate::obj::GodotClass < Base = AStar2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn estimate_cost(&self, from_id: i64, to_id: i64,) -> f32 { + unimplemented !() + } + fn compute_cost(&self, from_id: i64, to_id: i64,) -> f32 { + unimplemented !() + } + } + impl AStar2D { + pub fn get_available_point_id(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "get_available_point_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_point_full(&mut self, id: i64, position: Vector2, weight_scale: f32,) { + type CallSig = ((), i64, Vector2, f32); + let args = (id, position, weight_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "add_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_point(&mut self, id: i64, position: Vector2,) { + self.add_point_ex(id, position,) . done() + } + #[inline] + pub fn add_point_ex < 'a > (&'a mut self, id: i64, position: Vector2,) -> ExAddPoint < 'a > { + ExAddPoint::new(self, id, position,) + } + pub fn get_point_position(&self, id: i64,) -> Vector2 { + type CallSig = (Vector2, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "get_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_position(&mut self, id: i64, position: Vector2,) { + type CallSig = ((), i64, Vector2); + let args = (id, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "set_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_weight_scale(&self, id: i64,) -> f32 { + type CallSig = (f32, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(8usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "get_point_weight_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_weight_scale(&mut self, id: i64, weight_scale: f32,) { + type CallSig = ((), i64, f32); + let args = (id, weight_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(9usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "set_point_weight_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_point(&mut self, id: i64,) { + type CallSig = ((), i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(10usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "remove_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_point(&self, id: i64,) -> bool { + type CallSig = (bool, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(11usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "has_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_connections(&mut self, id: i64,) -> PackedInt64Array { + type CallSig = (PackedInt64Array, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(12usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "get_point_connections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_ids(&mut self,) -> PackedInt64Array { + type CallSig = (PackedInt64Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(13usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "get_point_ids", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_point_disabled_full(&mut self, id: i64, disabled: bool,) { + type CallSig = ((), i64, bool); + let args = (id, disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(14usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "set_point_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_point_disabled_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_point_disabled(&mut self, id: i64,) { + self.set_point_disabled_ex(id,) . done() + } + #[inline] + pub fn set_point_disabled_ex < 'a > (&'a mut self, id: i64,) -> ExSetPointDisabled < 'a > { + ExSetPointDisabled::new(self, id,) + } + pub fn is_point_disabled(&self, id: i64,) -> bool { + type CallSig = (bool, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(15usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "is_point_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn connect_points_full(&mut self, id: i64, to_id: i64, bidirectional: bool,) { + type CallSig = ((), i64, i64, bool); + let args = (id, to_id, bidirectional,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(16usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "connect_points", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::connect_points_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn connect_points(&mut self, id: i64, to_id: i64,) { + self.connect_points_ex(id, to_id,) . done() + } + #[inline] + pub fn connect_points_ex < 'a > (&'a mut self, id: i64, to_id: i64,) -> ExConnectPoints < 'a > { + ExConnectPoints::new(self, id, to_id,) + } + pub(crate) fn disconnect_points_full(&mut self, id: i64, to_id: i64, bidirectional: bool,) { + type CallSig = ((), i64, i64, bool); + let args = (id, to_id, bidirectional,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(17usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "disconnect_points", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::disconnect_points_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn disconnect_points(&mut self, id: i64, to_id: i64,) { + self.disconnect_points_ex(id, to_id,) . done() + } + #[inline] + pub fn disconnect_points_ex < 'a > (&'a mut self, id: i64, to_id: i64,) -> ExDisconnectPoints < 'a > { + ExDisconnectPoints::new(self, id, to_id,) + } + pub(crate) fn are_points_connected_full(&self, id: i64, to_id: i64, bidirectional: bool,) -> bool { + type CallSig = (bool, i64, i64, bool); + let args = (id, to_id, bidirectional,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(18usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "are_points_connected", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::are_points_connected_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn are_points_connected(&self, id: i64, to_id: i64,) -> bool { + self.are_points_connected_ex(id, to_id,) . done() + } + #[inline] + pub fn are_points_connected_ex < 'a > (&'a self, id: i64, to_id: i64,) -> ExArePointsConnected < 'a > { + ExArePointsConnected::new(self, id, to_id,) + } + pub fn get_point_count(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(19usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "get_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_capacity(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(20usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "get_point_capacity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reserve_space(&mut self, num_nodes: i64,) { + type CallSig = ((), i64); + let args = (num_nodes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(21usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "reserve_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(22usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_closest_point_full(&self, to_position: Vector2, include_disabled: bool,) -> i64 { + type CallSig = (i64, Vector2, bool); + let args = (to_position, include_disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(23usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "get_closest_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_closest_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_closest_point(&self, to_position: Vector2,) -> i64 { + self.get_closest_point_ex(to_position,) . done() + } + #[inline] + pub fn get_closest_point_ex < 'a > (&'a self, to_position: Vector2,) -> ExGetClosestPoint < 'a > { + ExGetClosestPoint::new(self, to_position,) + } + pub fn get_closest_position_in_segment(&self, to_position: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (to_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(24usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "get_closest_position_in_segment", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_point_path_full(&mut self, from_id: i64, to_id: i64, allow_partial_path: bool,) -> PackedVector2Array { + type CallSig = (PackedVector2Array, i64, i64, bool); + let args = (from_id, to_id, allow_partial_path,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(25usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "get_point_path", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_point_path_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_point_path(&mut self, from_id: i64, to_id: i64,) -> PackedVector2Array { + self.get_point_path_ex(from_id, to_id,) . done() + } + #[inline] + pub fn get_point_path_ex < 'a > (&'a mut self, from_id: i64, to_id: i64,) -> ExGetPointPath < 'a > { + ExGetPointPath::new(self, from_id, to_id,) + } + pub(crate) fn get_id_path_full(&mut self, from_id: i64, to_id: i64, allow_partial_path: bool,) -> PackedInt64Array { + type CallSig = (PackedInt64Array, i64, i64, bool); + let args = (from_id, to_id, allow_partial_path,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(26usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar2D", "get_id_path", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_id_path_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_id_path(&mut self, from_id: i64, to_id: i64,) -> PackedInt64Array { + self.get_id_path_ex(from_id, to_id,) . done() + } + #[inline] + pub fn get_id_path_ex < 'a > (&'a mut self, from_id: i64, to_id: i64,) -> ExGetIdPath < 'a > { + ExGetIdPath::new(self, from_id, to_id,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AStar2D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AStar2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AStar2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AStar2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AStar2D { + + } + impl crate::obj::cap::GodotDefault for AStar2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AStar2D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AStar2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AStar2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AStar2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AStar2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AStar2D::add_point_ex`][super::AStar2D::add_point_ex]."] +#[must_use] +pub struct ExAddPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar2D, id: i64, position: Vector2, weight_scale: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddPoint < 'a > { + fn new(surround_object: &'a mut re_export::AStar2D, id: i64, position: Vector2,) -> Self { + let weight_scale = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, position: position, weight_scale: weight_scale, + } + } + #[inline] + pub fn weight_scale(self, weight_scale: f32) -> Self { + Self { + weight_scale: weight_scale, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, id, position, weight_scale, + } + = self; + re_export::AStar2D::add_point_full(surround_object, id, position, weight_scale,) + } +} +#[doc = "Default-param extender for [`AStar2D::set_point_disabled_ex`][super::AStar2D::set_point_disabled_ex]."] +#[must_use] +pub struct ExSetPointDisabled < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar2D, id: i64, disabled: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetPointDisabled < 'a > { + fn new(surround_object: &'a mut re_export::AStar2D, id: i64,) -> Self { + let disabled = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, disabled: disabled, + } + } + #[inline] + pub fn disabled(self, disabled: bool) -> Self { + Self { + disabled: disabled, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, id, disabled, + } + = self; + re_export::AStar2D::set_point_disabled_full(surround_object, id, disabled,) + } +} +#[doc = "Default-param extender for [`AStar2D::connect_points_ex`][super::AStar2D::connect_points_ex]."] +#[must_use] +pub struct ExConnectPoints < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar2D, id: i64, to_id: i64, bidirectional: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExConnectPoints < 'a > { + fn new(surround_object: &'a mut re_export::AStar2D, id: i64, to_id: i64,) -> Self { + let bidirectional = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, to_id: to_id, bidirectional: bidirectional, + } + } + #[inline] + pub fn bidirectional(self, bidirectional: bool) -> Self { + Self { + bidirectional: bidirectional, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, id, to_id, bidirectional, + } + = self; + re_export::AStar2D::connect_points_full(surround_object, id, to_id, bidirectional,) + } +} +#[doc = "Default-param extender for [`AStar2D::disconnect_points_ex`][super::AStar2D::disconnect_points_ex]."] +#[must_use] +pub struct ExDisconnectPoints < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar2D, id: i64, to_id: i64, bidirectional: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDisconnectPoints < 'a > { + fn new(surround_object: &'a mut re_export::AStar2D, id: i64, to_id: i64,) -> Self { + let bidirectional = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, to_id: to_id, bidirectional: bidirectional, + } + } + #[inline] + pub fn bidirectional(self, bidirectional: bool) -> Self { + Self { + bidirectional: bidirectional, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, id, to_id, bidirectional, + } + = self; + re_export::AStar2D::disconnect_points_full(surround_object, id, to_id, bidirectional,) + } +} +#[doc = "Default-param extender for [`AStar2D::are_points_connected_ex`][super::AStar2D::are_points_connected_ex]."] +#[must_use] +pub struct ExArePointsConnected < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::AStar2D, id: i64, to_id: i64, bidirectional: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExArePointsConnected < 'a > { + fn new(surround_object: &'a re_export::AStar2D, id: i64, to_id: i64,) -> Self { + let bidirectional = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, to_id: to_id, bidirectional: bidirectional, + } + } + #[inline] + pub fn bidirectional(self, bidirectional: bool) -> Self { + Self { + bidirectional: bidirectional, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, id, to_id, bidirectional, + } + = self; + re_export::AStar2D::are_points_connected_full(surround_object, id, to_id, bidirectional,) + } +} +#[doc = "Default-param extender for [`AStar2D::get_closest_point_ex`][super::AStar2D::get_closest_point_ex]."] +#[must_use] +pub struct ExGetClosestPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::AStar2D, to_position: Vector2, include_disabled: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetClosestPoint < 'a > { + fn new(surround_object: &'a re_export::AStar2D, to_position: Vector2,) -> Self { + let include_disabled = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, to_position: to_position, include_disabled: include_disabled, + } + } + #[inline] + pub fn include_disabled(self, include_disabled: bool) -> Self { + Self { + include_disabled: include_disabled, .. self + } + } + #[inline] + pub fn done(self) -> i64 { + let Self { + _phantom, surround_object, to_position, include_disabled, + } + = self; + re_export::AStar2D::get_closest_point_full(surround_object, to_position, include_disabled,) + } +} +#[doc = "Default-param extender for [`AStar2D::get_point_path_ex`][super::AStar2D::get_point_path_ex]."] +#[must_use] +pub struct ExGetPointPath < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar2D, from_id: i64, to_id: i64, allow_partial_path: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetPointPath < 'a > { + fn new(surround_object: &'a mut re_export::AStar2D, from_id: i64, to_id: i64,) -> Self { + let allow_partial_path = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_id: from_id, to_id: to_id, allow_partial_path: allow_partial_path, + } + } + #[inline] + pub fn allow_partial_path(self, allow_partial_path: bool) -> Self { + Self { + allow_partial_path: allow_partial_path, .. self + } + } + #[inline] + pub fn done(self) -> PackedVector2Array { + let Self { + _phantom, surround_object, from_id, to_id, allow_partial_path, + } + = self; + re_export::AStar2D::get_point_path_full(surround_object, from_id, to_id, allow_partial_path,) + } +} +#[doc = "Default-param extender for [`AStar2D::get_id_path_ex`][super::AStar2D::get_id_path_ex]."] +#[must_use] +pub struct ExGetIdPath < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar2D, from_id: i64, to_id: i64, allow_partial_path: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetIdPath < 'a > { + fn new(surround_object: &'a mut re_export::AStar2D, from_id: i64, to_id: i64,) -> Self { + let allow_partial_path = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_id: from_id, to_id: to_id, allow_partial_path: allow_partial_path, + } + } + #[inline] + pub fn allow_partial_path(self, allow_partial_path: bool) -> Self { + Self { + allow_partial_path: allow_partial_path, .. self + } + } + #[inline] + pub fn done(self) -> PackedInt64Array { + let Self { + _phantom, surround_object, from_id, to_id, allow_partial_path, + } + = self; + re_export::AStar2D::get_id_path_full(surround_object, from_id, to_id, allow_partial_path,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/a_star_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/a_star_3d.rs new file mode 100644 index 0000000..c707de3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/a_star_3d.rs @@ -0,0 +1,679 @@ +#![doc = "Sidecar module for class [`AStar3D`][crate::classes::AStar3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AStar3D` enums](https://docs.godotengine.org/en/stable/classes/class_astar3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AStar3D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`a_star_3d`][crate::classes::a_star_3d]: sidecar module with related enum/flag types\n* [`IAStar3D`][crate::classes::IAStar3D]: virtual methods\n\n\nSee also [Godot docs for `AStar3D`](https://docs.godotengine.org/en/stable/classes/class_astar3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AStar3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AStar3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AStar3D`][crate::classes::AStar3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AStar3D` methods](https://docs.godotengine.org/en/stable/classes/class_astar3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAStar3D: crate::obj::GodotClass < Base = AStar3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn estimate_cost(&self, from_id: i64, to_id: i64,) -> f32 { + unimplemented !() + } + fn compute_cost(&self, from_id: i64, to_id: i64,) -> f32 { + unimplemented !() + } + } + impl AStar3D { + pub fn get_available_point_id(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(27usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "get_available_point_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_point_full(&mut self, id: i64, position: Vector3, weight_scale: f32,) { + type CallSig = ((), i64, Vector3, f32); + let args = (id, position, weight_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(28usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "add_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_point(&mut self, id: i64, position: Vector3,) { + self.add_point_ex(id, position,) . done() + } + #[inline] + pub fn add_point_ex < 'a > (&'a mut self, id: i64, position: Vector3,) -> ExAddPoint < 'a > { + ExAddPoint::new(self, id, position,) + } + pub fn get_point_position(&self, id: i64,) -> Vector3 { + type CallSig = (Vector3, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(29usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "get_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_position(&mut self, id: i64, position: Vector3,) { + type CallSig = ((), i64, Vector3); + let args = (id, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(30usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "set_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_weight_scale(&self, id: i64,) -> f32 { + type CallSig = (f32, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(31usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "get_point_weight_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_weight_scale(&mut self, id: i64, weight_scale: f32,) { + type CallSig = ((), i64, f32); + let args = (id, weight_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(32usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "set_point_weight_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_point(&mut self, id: i64,) { + type CallSig = ((), i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(33usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "remove_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_point(&self, id: i64,) -> bool { + type CallSig = (bool, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(34usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "has_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_connections(&mut self, id: i64,) -> PackedInt64Array { + type CallSig = (PackedInt64Array, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(35usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "get_point_connections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_ids(&mut self,) -> PackedInt64Array { + type CallSig = (PackedInt64Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(36usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "get_point_ids", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_point_disabled_full(&mut self, id: i64, disabled: bool,) { + type CallSig = ((), i64, bool); + let args = (id, disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(37usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "set_point_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_point_disabled_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_point_disabled(&mut self, id: i64,) { + self.set_point_disabled_ex(id,) . done() + } + #[inline] + pub fn set_point_disabled_ex < 'a > (&'a mut self, id: i64,) -> ExSetPointDisabled < 'a > { + ExSetPointDisabled::new(self, id,) + } + pub fn is_point_disabled(&self, id: i64,) -> bool { + type CallSig = (bool, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(38usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "is_point_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn connect_points_full(&mut self, id: i64, to_id: i64, bidirectional: bool,) { + type CallSig = ((), i64, i64, bool); + let args = (id, to_id, bidirectional,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(39usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "connect_points", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::connect_points_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn connect_points(&mut self, id: i64, to_id: i64,) { + self.connect_points_ex(id, to_id,) . done() + } + #[inline] + pub fn connect_points_ex < 'a > (&'a mut self, id: i64, to_id: i64,) -> ExConnectPoints < 'a > { + ExConnectPoints::new(self, id, to_id,) + } + pub(crate) fn disconnect_points_full(&mut self, id: i64, to_id: i64, bidirectional: bool,) { + type CallSig = ((), i64, i64, bool); + let args = (id, to_id, bidirectional,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(40usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "disconnect_points", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::disconnect_points_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn disconnect_points(&mut self, id: i64, to_id: i64,) { + self.disconnect_points_ex(id, to_id,) . done() + } + #[inline] + pub fn disconnect_points_ex < 'a > (&'a mut self, id: i64, to_id: i64,) -> ExDisconnectPoints < 'a > { + ExDisconnectPoints::new(self, id, to_id,) + } + pub(crate) fn are_points_connected_full(&self, id: i64, to_id: i64, bidirectional: bool,) -> bool { + type CallSig = (bool, i64, i64, bool); + let args = (id, to_id, bidirectional,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(41usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "are_points_connected", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::are_points_connected_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn are_points_connected(&self, id: i64, to_id: i64,) -> bool { + self.are_points_connected_ex(id, to_id,) . done() + } + #[inline] + pub fn are_points_connected_ex < 'a > (&'a self, id: i64, to_id: i64,) -> ExArePointsConnected < 'a > { + ExArePointsConnected::new(self, id, to_id,) + } + pub fn get_point_count(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(42usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "get_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_capacity(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(43usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "get_point_capacity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reserve_space(&mut self, num_nodes: i64,) { + type CallSig = ((), i64); + let args = (num_nodes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(44usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "reserve_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(45usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_closest_point_full(&self, to_position: Vector3, include_disabled: bool,) -> i64 { + type CallSig = (i64, Vector3, bool); + let args = (to_position, include_disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(46usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "get_closest_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_closest_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_closest_point(&self, to_position: Vector3,) -> i64 { + self.get_closest_point_ex(to_position,) . done() + } + #[inline] + pub fn get_closest_point_ex < 'a > (&'a self, to_position: Vector3,) -> ExGetClosestPoint < 'a > { + ExGetClosestPoint::new(self, to_position,) + } + pub fn get_closest_position_in_segment(&self, to_position: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (to_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(47usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "get_closest_position_in_segment", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_point_path_full(&mut self, from_id: i64, to_id: i64, allow_partial_path: bool,) -> PackedVector3Array { + type CallSig = (PackedVector3Array, i64, i64, bool); + let args = (from_id, to_id, allow_partial_path,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(48usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "get_point_path", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_point_path_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_point_path(&mut self, from_id: i64, to_id: i64,) -> PackedVector3Array { + self.get_point_path_ex(from_id, to_id,) . done() + } + #[inline] + pub fn get_point_path_ex < 'a > (&'a mut self, from_id: i64, to_id: i64,) -> ExGetPointPath < 'a > { + ExGetPointPath::new(self, from_id, to_id,) + } + pub(crate) fn get_id_path_full(&mut self, from_id: i64, to_id: i64, allow_partial_path: bool,) -> PackedInt64Array { + type CallSig = (PackedInt64Array, i64, i64, bool); + let args = (from_id, to_id, allow_partial_path,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(49usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStar3D", "get_id_path", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_id_path_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_id_path(&mut self, from_id: i64, to_id: i64,) -> PackedInt64Array { + self.get_id_path_ex(from_id, to_id,) . done() + } + #[inline] + pub fn get_id_path_ex < 'a > (&'a mut self, from_id: i64, to_id: i64,) -> ExGetIdPath < 'a > { + ExGetIdPath::new(self, from_id, to_id,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AStar3D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AStar3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AStar3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AStar3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AStar3D { + + } + impl crate::obj::cap::GodotDefault for AStar3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AStar3D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AStar3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AStar3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AStar3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AStar3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AStar3D::add_point_ex`][super::AStar3D::add_point_ex]."] +#[must_use] +pub struct ExAddPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar3D, id: i64, position: Vector3, weight_scale: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddPoint < 'a > { + fn new(surround_object: &'a mut re_export::AStar3D, id: i64, position: Vector3,) -> Self { + let weight_scale = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, position: position, weight_scale: weight_scale, + } + } + #[inline] + pub fn weight_scale(self, weight_scale: f32) -> Self { + Self { + weight_scale: weight_scale, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, id, position, weight_scale, + } + = self; + re_export::AStar3D::add_point_full(surround_object, id, position, weight_scale,) + } +} +#[doc = "Default-param extender for [`AStar3D::set_point_disabled_ex`][super::AStar3D::set_point_disabled_ex]."] +#[must_use] +pub struct ExSetPointDisabled < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar3D, id: i64, disabled: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetPointDisabled < 'a > { + fn new(surround_object: &'a mut re_export::AStar3D, id: i64,) -> Self { + let disabled = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, disabled: disabled, + } + } + #[inline] + pub fn disabled(self, disabled: bool) -> Self { + Self { + disabled: disabled, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, id, disabled, + } + = self; + re_export::AStar3D::set_point_disabled_full(surround_object, id, disabled,) + } +} +#[doc = "Default-param extender for [`AStar3D::connect_points_ex`][super::AStar3D::connect_points_ex]."] +#[must_use] +pub struct ExConnectPoints < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar3D, id: i64, to_id: i64, bidirectional: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExConnectPoints < 'a > { + fn new(surround_object: &'a mut re_export::AStar3D, id: i64, to_id: i64,) -> Self { + let bidirectional = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, to_id: to_id, bidirectional: bidirectional, + } + } + #[inline] + pub fn bidirectional(self, bidirectional: bool) -> Self { + Self { + bidirectional: bidirectional, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, id, to_id, bidirectional, + } + = self; + re_export::AStar3D::connect_points_full(surround_object, id, to_id, bidirectional,) + } +} +#[doc = "Default-param extender for [`AStar3D::disconnect_points_ex`][super::AStar3D::disconnect_points_ex]."] +#[must_use] +pub struct ExDisconnectPoints < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar3D, id: i64, to_id: i64, bidirectional: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDisconnectPoints < 'a > { + fn new(surround_object: &'a mut re_export::AStar3D, id: i64, to_id: i64,) -> Self { + let bidirectional = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, to_id: to_id, bidirectional: bidirectional, + } + } + #[inline] + pub fn bidirectional(self, bidirectional: bool) -> Self { + Self { + bidirectional: bidirectional, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, id, to_id, bidirectional, + } + = self; + re_export::AStar3D::disconnect_points_full(surround_object, id, to_id, bidirectional,) + } +} +#[doc = "Default-param extender for [`AStar3D::are_points_connected_ex`][super::AStar3D::are_points_connected_ex]."] +#[must_use] +pub struct ExArePointsConnected < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::AStar3D, id: i64, to_id: i64, bidirectional: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExArePointsConnected < 'a > { + fn new(surround_object: &'a re_export::AStar3D, id: i64, to_id: i64,) -> Self { + let bidirectional = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, to_id: to_id, bidirectional: bidirectional, + } + } + #[inline] + pub fn bidirectional(self, bidirectional: bool) -> Self { + Self { + bidirectional: bidirectional, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, id, to_id, bidirectional, + } + = self; + re_export::AStar3D::are_points_connected_full(surround_object, id, to_id, bidirectional,) + } +} +#[doc = "Default-param extender for [`AStar3D::get_closest_point_ex`][super::AStar3D::get_closest_point_ex]."] +#[must_use] +pub struct ExGetClosestPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::AStar3D, to_position: Vector3, include_disabled: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetClosestPoint < 'a > { + fn new(surround_object: &'a re_export::AStar3D, to_position: Vector3,) -> Self { + let include_disabled = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, to_position: to_position, include_disabled: include_disabled, + } + } + #[inline] + pub fn include_disabled(self, include_disabled: bool) -> Self { + Self { + include_disabled: include_disabled, .. self + } + } + #[inline] + pub fn done(self) -> i64 { + let Self { + _phantom, surround_object, to_position, include_disabled, + } + = self; + re_export::AStar3D::get_closest_point_full(surround_object, to_position, include_disabled,) + } +} +#[doc = "Default-param extender for [`AStar3D::get_point_path_ex`][super::AStar3D::get_point_path_ex]."] +#[must_use] +pub struct ExGetPointPath < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar3D, from_id: i64, to_id: i64, allow_partial_path: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetPointPath < 'a > { + fn new(surround_object: &'a mut re_export::AStar3D, from_id: i64, to_id: i64,) -> Self { + let allow_partial_path = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_id: from_id, to_id: to_id, allow_partial_path: allow_partial_path, + } + } + #[inline] + pub fn allow_partial_path(self, allow_partial_path: bool) -> Self { + Self { + allow_partial_path: allow_partial_path, .. self + } + } + #[inline] + pub fn done(self) -> PackedVector3Array { + let Self { + _phantom, surround_object, from_id, to_id, allow_partial_path, + } + = self; + re_export::AStar3D::get_point_path_full(surround_object, from_id, to_id, allow_partial_path,) + } +} +#[doc = "Default-param extender for [`AStar3D::get_id_path_ex`][super::AStar3D::get_id_path_ex]."] +#[must_use] +pub struct ExGetIdPath < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStar3D, from_id: i64, to_id: i64, allow_partial_path: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetIdPath < 'a > { + fn new(surround_object: &'a mut re_export::AStar3D, from_id: i64, to_id: i64,) -> Self { + let allow_partial_path = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_id: from_id, to_id: to_id, allow_partial_path: allow_partial_path, + } + } + #[inline] + pub fn allow_partial_path(self, allow_partial_path: bool) -> Self { + Self { + allow_partial_path: allow_partial_path, .. self + } + } + #[inline] + pub fn done(self) -> PackedInt64Array { + let Self { + _phantom, surround_object, from_id, to_id, allow_partial_path, + } + = self; + re_export::AStar3D::get_id_path_full(surround_object, from_id, to_id, allow_partial_path,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/a_star_grid_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/a_star_grid_2d.rs new file mode 100644 index 0000000..dc99ce3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/a_star_grid_2d.rs @@ -0,0 +1,865 @@ +#![doc = "Sidecar module for class [`AStarGrid2D`][crate::classes::AStarGrid2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AStarGrid2D` enums](https://docs.godotengine.org/en/stable/classes/class_astargrid2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AStarGrid2D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`a_star_grid_2d`][crate::classes::a_star_grid_2d]: sidecar module with related enum/flag types\n* [`IAStarGrid2D`][crate::classes::IAStarGrid2D]: virtual methods\n\n\nSee also [Godot docs for `AStarGrid2D`](https://docs.godotengine.org/en/stable/classes/class_astargrid2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AStarGrid2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AStarGrid2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AStarGrid2D`][crate::classes::AStarGrid2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AStarGrid2D` methods](https://docs.godotengine.org/en/stable/classes/class_astargrid2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAStarGrid2D: crate::obj::GodotClass < Base = AStarGrid2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn estimate_cost(&self, from_id: Vector2i, to_id: Vector2i,) -> f32 { + unimplemented !() + } + fn compute_cost(&self, from_id: Vector2i, to_id: Vector2i,) -> f32 { + unimplemented !() + } + } + impl AStarGrid2D { + pub fn set_region(&mut self, region: Rect2i,) { + type CallSig = ((), Rect2i); + let args = (region,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(50usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "set_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_region(&self,) -> Rect2i { + type CallSig = (Rect2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(51usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_size(&mut self, size: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(52usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(53usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(54usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "set_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(55usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cell_size(&mut self, cell_size: Vector2,) { + type CallSig = ((), Vector2); + let args = (cell_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(56usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "set_cell_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cell_size(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(57usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_cell_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cell_shape(&mut self, cell_shape: crate::classes::a_star_grid_2d::CellShape,) { + type CallSig = ((), crate::classes::a_star_grid_2d::CellShape); + let args = (cell_shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(58usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "set_cell_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cell_shape(&self,) -> crate::classes::a_star_grid_2d::CellShape { + type CallSig = (crate::classes::a_star_grid_2d::CellShape,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(59usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_cell_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_in_bounds(&self, x: i32, y: i32,) -> bool { + type CallSig = (bool, i32, i32); + let args = (x, y,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(60usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "is_in_bounds", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_in_boundsv(&self, id: Vector2i,) -> bool { + type CallSig = (bool, Vector2i); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(61usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "is_in_boundsv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_dirty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(62usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "is_dirty", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(63usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_jumping_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(64usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "set_jumping_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_jumping_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(65usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "is_jumping_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_diagonal_mode(&mut self, mode: crate::classes::a_star_grid_2d::DiagonalMode,) { + type CallSig = ((), crate::classes::a_star_grid_2d::DiagonalMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(66usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "set_diagonal_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_diagonal_mode(&self,) -> crate::classes::a_star_grid_2d::DiagonalMode { + type CallSig = (crate::classes::a_star_grid_2d::DiagonalMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(67usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_diagonal_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_default_compute_heuristic(&mut self, heuristic: crate::classes::a_star_grid_2d::Heuristic,) { + type CallSig = ((), crate::classes::a_star_grid_2d::Heuristic); + let args = (heuristic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(68usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "set_default_compute_heuristic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_default_compute_heuristic(&self,) -> crate::classes::a_star_grid_2d::Heuristic { + type CallSig = (crate::classes::a_star_grid_2d::Heuristic,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(69usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_default_compute_heuristic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_default_estimate_heuristic(&mut self, heuristic: crate::classes::a_star_grid_2d::Heuristic,) { + type CallSig = ((), crate::classes::a_star_grid_2d::Heuristic); + let args = (heuristic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(70usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "set_default_estimate_heuristic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_default_estimate_heuristic(&self,) -> crate::classes::a_star_grid_2d::Heuristic { + type CallSig = (crate::classes::a_star_grid_2d::Heuristic,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(71usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_default_estimate_heuristic", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_point_solid_full(&mut self, id: Vector2i, solid: bool,) { + type CallSig = ((), Vector2i, bool); + let args = (id, solid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(72usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "set_point_solid", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_point_solid_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_point_solid(&mut self, id: Vector2i,) { + self.set_point_solid_ex(id,) . done() + } + #[inline] + pub fn set_point_solid_ex < 'a > (&'a mut self, id: Vector2i,) -> ExSetPointSolid < 'a > { + ExSetPointSolid::new(self, id,) + } + pub fn is_point_solid(&self, id: Vector2i,) -> bool { + type CallSig = (bool, Vector2i); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(73usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "is_point_solid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_weight_scale(&mut self, id: Vector2i, weight_scale: f32,) { + type CallSig = ((), Vector2i, f32); + let args = (id, weight_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(74usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "set_point_weight_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_weight_scale(&self, id: Vector2i,) -> f32 { + type CallSig = (f32, Vector2i); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(75usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_point_weight_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn fill_solid_region_full(&mut self, region: Rect2i, solid: bool,) { + type CallSig = ((), Rect2i, bool); + let args = (region, solid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(76usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "fill_solid_region", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::fill_solid_region_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn fill_solid_region(&mut self, region: Rect2i,) { + self.fill_solid_region_ex(region,) . done() + } + #[inline] + pub fn fill_solid_region_ex < 'a > (&'a mut self, region: Rect2i,) -> ExFillSolidRegion < 'a > { + ExFillSolidRegion::new(self, region,) + } + pub fn fill_weight_scale_region(&mut self, region: Rect2i, weight_scale: f32,) { + type CallSig = ((), Rect2i, f32); + let args = (region, weight_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(77usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "fill_weight_scale_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(78usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_position(&self, id: Vector2i,) -> Vector2 { + type CallSig = (Vector2, Vector2i); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(79usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_point_path_full(&mut self, from_id: Vector2i, to_id: Vector2i, allow_partial_path: bool,) -> PackedVector2Array { + type CallSig = (PackedVector2Array, Vector2i, Vector2i, bool); + let args = (from_id, to_id, allow_partial_path,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(80usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_point_path", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_point_path_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_point_path(&mut self, from_id: Vector2i, to_id: Vector2i,) -> PackedVector2Array { + self.get_point_path_ex(from_id, to_id,) . done() + } + #[inline] + pub fn get_point_path_ex < 'a > (&'a mut self, from_id: Vector2i, to_id: Vector2i,) -> ExGetPointPath < 'a > { + ExGetPointPath::new(self, from_id, to_id,) + } + pub(crate) fn get_id_path_full(&mut self, from_id: Vector2i, to_id: Vector2i, allow_partial_path: bool,) -> Array < Vector2i > { + type CallSig = (Array < Vector2i >, Vector2i, Vector2i, bool); + let args = (from_id, to_id, allow_partial_path,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(81usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AStarGrid2D", "get_id_path", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_id_path_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_id_path(&mut self, from_id: Vector2i, to_id: Vector2i,) -> Array < Vector2i > { + self.get_id_path_ex(from_id, to_id,) . done() + } + #[inline] + pub fn get_id_path_ex < 'a > (&'a mut self, from_id: Vector2i, to_id: Vector2i,) -> ExGetIdPath < 'a > { + ExGetIdPath::new(self, from_id, to_id,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AStarGrid2D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AStarGrid2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AStarGrid2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AStarGrid2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AStarGrid2D { + + } + impl crate::obj::cap::GodotDefault for AStarGrid2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AStarGrid2D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AStarGrid2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AStarGrid2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AStarGrid2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AStarGrid2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AStarGrid2D::set_point_solid_ex`][super::AStarGrid2D::set_point_solid_ex]."] +#[must_use] +pub struct ExSetPointSolid < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStarGrid2D, id: Vector2i, solid: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetPointSolid < 'a > { + fn new(surround_object: &'a mut re_export::AStarGrid2D, id: Vector2i,) -> Self { + let solid = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, solid: solid, + } + } + #[inline] + pub fn solid(self, solid: bool) -> Self { + Self { + solid: solid, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, id, solid, + } + = self; + re_export::AStarGrid2D::set_point_solid_full(surround_object, id, solid,) + } +} +#[doc = "Default-param extender for [`AStarGrid2D::fill_solid_region_ex`][super::AStarGrid2D::fill_solid_region_ex]."] +#[must_use] +pub struct ExFillSolidRegion < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStarGrid2D, region: Rect2i, solid: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFillSolidRegion < 'a > { + fn new(surround_object: &'a mut re_export::AStarGrid2D, region: Rect2i,) -> Self { + let solid = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, region: region, solid: solid, + } + } + #[inline] + pub fn solid(self, solid: bool) -> Self { + Self { + solid: solid, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, region, solid, + } + = self; + re_export::AStarGrid2D::fill_solid_region_full(surround_object, region, solid,) + } +} +#[doc = "Default-param extender for [`AStarGrid2D::get_point_path_ex`][super::AStarGrid2D::get_point_path_ex]."] +#[must_use] +pub struct ExGetPointPath < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStarGrid2D, from_id: Vector2i, to_id: Vector2i, allow_partial_path: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetPointPath < 'a > { + fn new(surround_object: &'a mut re_export::AStarGrid2D, from_id: Vector2i, to_id: Vector2i,) -> Self { + let allow_partial_path = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_id: from_id, to_id: to_id, allow_partial_path: allow_partial_path, + } + } + #[inline] + pub fn allow_partial_path(self, allow_partial_path: bool) -> Self { + Self { + allow_partial_path: allow_partial_path, .. self + } + } + #[inline] + pub fn done(self) -> PackedVector2Array { + let Self { + _phantom, surround_object, from_id, to_id, allow_partial_path, + } + = self; + re_export::AStarGrid2D::get_point_path_full(surround_object, from_id, to_id, allow_partial_path,) + } +} +#[doc = "Default-param extender for [`AStarGrid2D::get_id_path_ex`][super::AStarGrid2D::get_id_path_ex]."] +#[must_use] +pub struct ExGetIdPath < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AStarGrid2D, from_id: Vector2i, to_id: Vector2i, allow_partial_path: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetIdPath < 'a > { + fn new(surround_object: &'a mut re_export::AStarGrid2D, from_id: Vector2i, to_id: Vector2i,) -> Self { + let allow_partial_path = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_id: from_id, to_id: to_id, allow_partial_path: allow_partial_path, + } + } + #[inline] + pub fn allow_partial_path(self, allow_partial_path: bool) -> Self { + Self { + allow_partial_path: allow_partial_path, .. self + } + } + #[inline] + pub fn done(self) -> Array < Vector2i > { + let Self { + _phantom, surround_object, from_id, to_id, allow_partial_path, + } + = self; + re_export::AStarGrid2D::get_id_path_full(surround_object, from_id, to_id, allow_partial_path,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Heuristic { + ord: i32 +} +impl Heuristic { + #[doc(alias = "HEURISTIC_EUCLIDEAN")] + #[doc = "Godot enumerator name: `HEURISTIC_EUCLIDEAN`"] + pub const EUCLIDEAN: Heuristic = Heuristic { + ord: 0i32 + }; + #[doc(alias = "HEURISTIC_MANHATTAN")] + #[doc = "Godot enumerator name: `HEURISTIC_MANHATTAN`"] + pub const MANHATTAN: Heuristic = Heuristic { + ord: 1i32 + }; + #[doc(alias = "HEURISTIC_OCTILE")] + #[doc = "Godot enumerator name: `HEURISTIC_OCTILE`"] + pub const OCTILE: Heuristic = Heuristic { + ord: 2i32 + }; + #[doc(alias = "HEURISTIC_CHEBYSHEV")] + #[doc = "Godot enumerator name: `HEURISTIC_CHEBYSHEV`"] + pub const CHEBYSHEV: Heuristic = Heuristic { + ord: 3i32 + }; + #[doc(alias = "HEURISTIC_MAX")] + #[doc = "Godot enumerator name: `HEURISTIC_MAX`"] + pub const MAX: Heuristic = Heuristic { + ord: 4i32 + }; + +} +impl std::fmt::Debug for Heuristic { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Heuristic") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Heuristic { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EUCLIDEAN => "EUCLIDEAN", Self::MANHATTAN => "MANHATTAN", Self::OCTILE => "OCTILE", Self::CHEBYSHEV => "CHEBYSHEV", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EUCLIDEAN => "HEURISTIC_EUCLIDEAN", Self::MANHATTAN => "HEURISTIC_MANHATTAN", Self::OCTILE => "HEURISTIC_OCTILE", Self::CHEBYSHEV => "HEURISTIC_CHEBYSHEV", Self::MAX => "HEURISTIC_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Heuristic { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for Heuristic { + type Via = i32; + +} +impl crate::meta::ToGodot for Heuristic { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Heuristic { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DiagonalMode { + ord: i32 +} +impl DiagonalMode { + #[doc(alias = "DIAGONAL_MODE_ALWAYS")] + #[doc = "Godot enumerator name: `DIAGONAL_MODE_ALWAYS`"] + pub const ALWAYS: DiagonalMode = DiagonalMode { + ord: 0i32 + }; + #[doc(alias = "DIAGONAL_MODE_NEVER")] + #[doc = "Godot enumerator name: `DIAGONAL_MODE_NEVER`"] + pub const NEVER: DiagonalMode = DiagonalMode { + ord: 1i32 + }; + #[doc(alias = "DIAGONAL_MODE_AT_LEAST_ONE_WALKABLE")] + #[doc = "Godot enumerator name: `DIAGONAL_MODE_AT_LEAST_ONE_WALKABLE`"] + pub const AT_LEAST_ONE_WALKABLE: DiagonalMode = DiagonalMode { + ord: 2i32 + }; + #[doc(alias = "DIAGONAL_MODE_ONLY_IF_NO_OBSTACLES")] + #[doc = "Godot enumerator name: `DIAGONAL_MODE_ONLY_IF_NO_OBSTACLES`"] + pub const ONLY_IF_NO_OBSTACLES: DiagonalMode = DiagonalMode { + ord: 3i32 + }; + #[doc(alias = "DIAGONAL_MODE_MAX")] + #[doc = "Godot enumerator name: `DIAGONAL_MODE_MAX`"] + pub const MAX: DiagonalMode = DiagonalMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for DiagonalMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DiagonalMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DiagonalMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALWAYS => "ALWAYS", Self::NEVER => "NEVER", Self::AT_LEAST_ONE_WALKABLE => "AT_LEAST_ONE_WALKABLE", Self::ONLY_IF_NO_OBSTACLES => "ONLY_IF_NO_OBSTACLES", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALWAYS => "DIAGONAL_MODE_ALWAYS", Self::NEVER => "DIAGONAL_MODE_NEVER", Self::AT_LEAST_ONE_WALKABLE => "DIAGONAL_MODE_AT_LEAST_ONE_WALKABLE", Self::ONLY_IF_NO_OBSTACLES => "DIAGONAL_MODE_ONLY_IF_NO_OBSTACLES", Self::MAX => "DIAGONAL_MODE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for DiagonalMode { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for DiagonalMode { + type Via = i32; + +} +impl crate::meta::ToGodot for DiagonalMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DiagonalMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CellShape { + ord: i32 +} +impl CellShape { + #[doc(alias = "CELL_SHAPE_SQUARE")] + #[doc = "Godot enumerator name: `CELL_SHAPE_SQUARE`"] + pub const SQUARE: CellShape = CellShape { + ord: 0i32 + }; + #[doc(alias = "CELL_SHAPE_ISOMETRIC_RIGHT")] + #[doc = "Godot enumerator name: `CELL_SHAPE_ISOMETRIC_RIGHT`"] + pub const ISOMETRIC_RIGHT: CellShape = CellShape { + ord: 1i32 + }; + #[doc(alias = "CELL_SHAPE_ISOMETRIC_DOWN")] + #[doc = "Godot enumerator name: `CELL_SHAPE_ISOMETRIC_DOWN`"] + pub const ISOMETRIC_DOWN: CellShape = CellShape { + ord: 2i32 + }; + #[doc(alias = "CELL_SHAPE_MAX")] + #[doc = "Godot enumerator name: `CELL_SHAPE_MAX`"] + pub const MAX: CellShape = CellShape { + ord: 3i32 + }; + +} +impl std::fmt::Debug for CellShape { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CellShape") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CellShape { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SQUARE => "SQUARE", Self::ISOMETRIC_RIGHT => "ISOMETRIC_RIGHT", Self::ISOMETRIC_DOWN => "ISOMETRIC_DOWN", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SQUARE => "CELL_SHAPE_SQUARE", Self::ISOMETRIC_RIGHT => "CELL_SHAPE_ISOMETRIC_RIGHT", Self::ISOMETRIC_DOWN => "CELL_SHAPE_ISOMETRIC_DOWN", Self::MAX => "CELL_SHAPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for CellShape { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for CellShape { + type Via = i32; + +} +impl crate::meta::ToGodot for CellShape { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CellShape { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/accept_dialog.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/accept_dialog.rs new file mode 100644 index 0000000..33c3cff --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/accept_dialog.rs @@ -0,0 +1,410 @@ +#![doc = "Sidecar module for class [`AcceptDialog`][crate::classes::AcceptDialog].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AcceptDialog` enums](https://docs.godotengine.org/en/stable/classes/class_acceptdialog.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AcceptDialog.`\n\nInherits [`Window`][crate::classes::Window].\n\nRelated symbols:\n\n* [`accept_dialog`][crate::classes::accept_dialog]: sidecar module with related enum/flag types\n* [`IAcceptDialog`][crate::classes::IAcceptDialog]: virtual methods\n\n\nSee also [Godot docs for `AcceptDialog`](https://docs.godotengine.org/en/stable/classes/class_acceptdialog.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AcceptDialog::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AcceptDialog { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AcceptDialog`][crate::classes::AcceptDialog].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AcceptDialog` methods](https://docs.godotengine.org/en/stable/classes/class_acceptdialog.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAcceptDialog: crate::obj::GodotClass < Base = AcceptDialog > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: WindowNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_contents_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AcceptDialog { + pub fn get_ok_button(&mut self,) -> Option < Gd < crate::classes::Button > > { + type CallSig = (Option < Gd < crate::classes::Button > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(82usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "get_ok_button", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_label(&mut self,) -> Option < Gd < crate::classes::Label > > { + type CallSig = (Option < Gd < crate::classes::Label > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(83usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "get_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hide_on_ok(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(84usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "set_hide_on_ok", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hide_on_ok(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(85usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "get_hide_on_ok", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_close_on_escape(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(86usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "set_close_on_escape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_close_on_escape(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(87usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "get_close_on_escape", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_button_full(&mut self, text: CowArg < GString >, right: bool, action: CowArg < GString >,) -> Option < Gd < crate::classes::Button > > { + type CallSig < 'a0, 'a1, > = (Option < Gd < crate::classes::Button > >, CowArg < 'a0, GString >, bool, CowArg < 'a1, GString >); + let args = (text, right, action,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(88usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "add_button", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_button_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_button(&mut self, text: impl AsArg < GString >,) -> Option < Gd < crate::classes::Button > > { + self.add_button_ex(text,) . done() + } + #[inline] + pub fn add_button_ex < 'a > (&'a mut self, text: impl AsArg < GString > + 'a,) -> ExAddButton < 'a > { + ExAddButton::new(self, text,) + } + pub fn add_cancel_button(&mut self, name: impl AsArg < GString >,) -> Option < Gd < crate::classes::Button > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Button > >, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(89usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "add_cancel_button", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_button(&mut self, button: impl AsObjectArg < crate::classes::Button >,) { + type CallSig = ((), ObjectArg < crate::classes::Button >); + let args = (button.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(90usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "remove_button", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn register_text_enter(&mut self, line_edit: impl AsObjectArg < crate::classes::LineEdit >,) { + type CallSig = ((), ObjectArg < crate::classes::LineEdit >); + let args = (line_edit.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(91usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "register_text_enter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(92usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "set_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(93usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "get_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autowrap(&mut self, autowrap: bool,) { + type CallSig = ((), bool); + let args = (autowrap,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(94usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "set_autowrap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_autowrap(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(95usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "has_autowrap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ok_button_text(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(96usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "set_ok_button_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ok_button_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(97usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AcceptDialog", "get_ok_button_text", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AcceptDialog { + type Base = crate::classes::Window; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AcceptDialog")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AcceptDialog { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Window > for AcceptDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Viewport > for AcceptDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AcceptDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AcceptDialog { + + } + impl crate::obj::cap::GodotDefault for AcceptDialog { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AcceptDialog { + type Target = crate::classes::Window; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AcceptDialog { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AcceptDialog`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AcceptDialog { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AcceptDialog > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Window > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Viewport > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AcceptDialog::add_button_ex`][super::AcceptDialog::add_button_ex]."] +#[must_use] +pub struct ExAddButton < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AcceptDialog, text: CowArg < 'a, GString >, right: bool, action: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddButton < 'a > { + fn new(surround_object: &'a mut re_export::AcceptDialog, text: impl AsArg < GString > + 'a,) -> Self { + let right = false; + let action = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, text: text.into_arg(), right: right, action: CowArg::Owned(action), + } + } + #[inline] + pub fn right(self, right: bool) -> Self { + Self { + right: right, .. self + } + } + #[inline] + pub fn action(self, action: impl AsArg < GString > + 'a) -> Self { + Self { + action: action.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Button > > { + let Self { + _phantom, surround_object, text, right, action, + } + = self; + re_export::AcceptDialog::add_button_full(surround_object, text, right, action,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/aes_context.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/aes_context.rs new file mode 100644 index 0000000..217f253 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/aes_context.rs @@ -0,0 +1,351 @@ +#![doc = "Sidecar module for class [`AesContext`][crate::classes::AesContext].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AESContext` enums](https://docs.godotengine.org/en/stable/classes/class_aescontext.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AESContext.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`aes_context`][crate::classes::aes_context]: sidecar module with related enum/flag types\n* [`IAesContext`][crate::classes::IAesContext]: virtual methods\n\n\nSee also [Godot docs for `AESContext`](https://docs.godotengine.org/en/stable/classes/class_aescontext.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AesContext::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AesContext { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AesContext`][crate::classes::AesContext].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AESContext` methods](https://docs.godotengine.org/en/stable/classes/class_aescontext.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAesContext: crate::obj::GodotClass < Base = AesContext > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl AesContext { + pub(crate) fn start_full(&mut self, mode: crate::classes::aes_context::Mode, key: RefArg < PackedByteArray >, iv: RefArg < PackedByteArray >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, crate::classes::aes_context::Mode, RefArg < 'a0, PackedByteArray >, RefArg < 'a1, PackedByteArray >); + let args = (mode, key, iv,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(0usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AesContext", "start", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::start_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn start(&mut self, mode: crate::classes::aes_context::Mode, key: &PackedByteArray,) -> crate::global::Error { + self.start_ex(mode, key,) . done() + } + #[inline] + pub fn start_ex < 'a > (&'a mut self, mode: crate::classes::aes_context::Mode, key: &'a PackedByteArray,) -> ExStart < 'a > { + ExStart::new(self, mode, key,) + } + pub fn update(&mut self, src: &PackedByteArray,) -> PackedByteArray { + type CallSig < 'a0, > = (PackedByteArray, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(src),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AesContext", "update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_iv_state(&mut self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AesContext", "get_iv_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn finish(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AesContext", "finish", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AesContext { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AESContext")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AesContext { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AesContext { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AesContext { + + } + impl crate::obj::cap::GodotDefault for AesContext { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AesContext { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AesContext { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AesContext`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AesContext { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AesContext > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AesContext::start_ex`][super::AesContext::start_ex]."] +#[must_use] +pub struct ExStart < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AesContext, mode: crate::classes::aes_context::Mode, key: CowArg < 'a, PackedByteArray >, iv: CowArg < 'a, PackedByteArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExStart < 'a > { + fn new(surround_object: &'a mut re_export::AesContext, mode: crate::classes::aes_context::Mode, key: &'a PackedByteArray,) -> Self { + let iv = PackedByteArray::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, mode: mode, key: CowArg::Borrowed(key), iv: CowArg::Owned(iv), + } + } + #[inline] + pub fn iv(self, iv: &'a PackedByteArray) -> Self { + Self { + iv: CowArg::Borrowed(iv), .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, mode, key, iv, + } + = self; + re_export::AesContext::start_full(surround_object, mode, key.cow_as_arg(), iv.cow_as_arg(),) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Mode { + ord: i32 +} +impl Mode { + #[doc(alias = "MODE_ECB_ENCRYPT")] + #[doc = "Godot enumerator name: `MODE_ECB_ENCRYPT`"] + pub const ECB_ENCRYPT: Mode = Mode { + ord: 0i32 + }; + #[doc(alias = "MODE_ECB_DECRYPT")] + #[doc = "Godot enumerator name: `MODE_ECB_DECRYPT`"] + pub const ECB_DECRYPT: Mode = Mode { + ord: 1i32 + }; + #[doc(alias = "MODE_CBC_ENCRYPT")] + #[doc = "Godot enumerator name: `MODE_CBC_ENCRYPT`"] + pub const CBC_ENCRYPT: Mode = Mode { + ord: 2i32 + }; + #[doc(alias = "MODE_CBC_DECRYPT")] + #[doc = "Godot enumerator name: `MODE_CBC_DECRYPT`"] + pub const CBC_DECRYPT: Mode = Mode { + ord: 3i32 + }; + #[doc(alias = "MODE_MAX")] + #[doc = "Godot enumerator name: `MODE_MAX`"] + pub const MAX: Mode = Mode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for Mode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Mode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Mode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ECB_ENCRYPT => "ECB_ENCRYPT", Self::ECB_DECRYPT => "ECB_DECRYPT", Self::CBC_ENCRYPT => "CBC_ENCRYPT", Self::CBC_DECRYPT => "CBC_DECRYPT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ECB_ENCRYPT => "MODE_ECB_ENCRYPT", Self::ECB_DECRYPT => "MODE_ECB_DECRYPT", Self::CBC_ENCRYPT => "MODE_CBC_ENCRYPT", Self::CBC_DECRYPT => "MODE_CBC_DECRYPT", Self::MAX => "MODE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Mode { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for Mode { + type Via = i32; + +} +impl crate::meta::ToGodot for Mode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Mode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animatable_body_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animatable_body_2d.rs new file mode 100644 index 0000000..c3730e3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animatable_body_2d.rs @@ -0,0 +1,287 @@ +#![doc = "Sidecar module for class [`AnimatableBody2D`][crate::classes::AnimatableBody2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimatableBody2D` enums](https://docs.godotengine.org/en/stable/classes/class_animatablebody2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimatableBody2D.`\n\nInherits [`StaticBody2D`][crate::classes::StaticBody2D].\n\nRelated symbols:\n\n* [`IAnimatableBody2D`][crate::classes::IAnimatableBody2D]: virtual methods\n\n\nSee also [Godot docs for `AnimatableBody2D`](https://docs.godotengine.org/en/stable/classes/class_animatablebody2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AnimatableBody2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimatableBody2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimatableBody2D`][crate::classes::AnimatableBody2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimatableBody2D` methods](https://docs.godotengine.org/en/stable/classes/class_animatablebody2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimatableBody2D: crate::obj::GodotClass < Base = AnimatableBody2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn input_event(&mut self, viewport: Gd < crate::classes::Viewport >, event: Gd < crate::classes::InputEvent >, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn mouse_shape_enter(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn mouse_shape_exit(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AnimatableBody2D { + pub fn set_sync_to_physics(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(98usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatableBody2D", "set_sync_to_physics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_sync_to_physics_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(99usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatableBody2D", "is_sync_to_physics_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimatableBody2D { + type Base = crate::classes::StaticBody2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimatableBody2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimatableBody2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::StaticBody2D > for AnimatableBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsBody2D > for AnimatableBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject2D > for AnimatableBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for AnimatableBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for AnimatableBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AnimatableBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimatableBody2D { + + } + impl crate::obj::cap::GodotDefault for AnimatableBody2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimatableBody2D { + type Target = crate::classes::StaticBody2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimatableBody2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimatableBody2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimatableBody2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimatableBody2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::StaticBody2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsBody2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animatable_body_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animatable_body_3d.rs new file mode 100644 index 0000000..dc6d017 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animatable_body_3d.rs @@ -0,0 +1,272 @@ +#![doc = "Sidecar module for class [`AnimatableBody3D`][crate::classes::AnimatableBody3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimatableBody3D` enums](https://docs.godotengine.org/en/stable/classes/class_animatablebody3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimatableBody3D.`\n\nInherits [`StaticBody3D`][crate::classes::StaticBody3D].\n\nRelated symbols:\n\n* [`IAnimatableBody3D`][crate::classes::IAnimatableBody3D]: virtual methods\n\n\nSee also [Godot docs for `AnimatableBody3D`](https://docs.godotengine.org/en/stable/classes/class_animatablebody3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AnimatableBody3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimatableBody3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimatableBody3D`][crate::classes::AnimatableBody3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimatableBody3D` methods](https://docs.godotengine.org/en/stable/classes/class_animatablebody3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimatableBody3D: crate::obj::GodotClass < Base = AnimatableBody3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn input_event(&mut self, camera: Option < Gd < crate::classes::Camera3D > >, event: Option < Gd < crate::classes::InputEvent > >, event_position: Vector3, normal: Vector3, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AnimatableBody3D { + pub fn set_sync_to_physics(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(100usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatableBody3D", "set_sync_to_physics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_sync_to_physics_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(101usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatableBody3D", "is_sync_to_physics_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimatableBody3D { + type Base = crate::classes::StaticBody3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimatableBody3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimatableBody3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::StaticBody3D > for AnimatableBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsBody3D > for AnimatableBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject3D > for AnimatableBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for AnimatableBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AnimatableBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimatableBody3D { + + } + impl crate::obj::cap::GodotDefault for AnimatableBody3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimatableBody3D { + type Target = crate::classes::StaticBody3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimatableBody3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimatableBody3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimatableBody3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimatableBody3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::StaticBody3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsBody3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animated_sprite_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animated_sprite_2d.rs new file mode 100644 index 0000000..190bdb8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animated_sprite_2d.rs @@ -0,0 +1,542 @@ +#![doc = "Sidecar module for class [`AnimatedSprite2D`][crate::classes::AnimatedSprite2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimatedSprite2D` enums](https://docs.godotengine.org/en/stable/classes/class_animatedsprite2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimatedSprite2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`animated_sprite_2d`][crate::classes::animated_sprite_2d]: sidecar module with related enum/flag types\n* [`IAnimatedSprite2D`][crate::classes::IAnimatedSprite2D]: virtual methods\n\n\nSee also [Godot docs for `AnimatedSprite2D`](https://docs.godotengine.org/en/stable/classes/class_animatedsprite2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AnimatedSprite2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimatedSprite2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimatedSprite2D`][crate::classes::AnimatedSprite2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimatedSprite2D` methods](https://docs.godotengine.org/en/stable/classes/class_animatedsprite2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimatedSprite2D: crate::obj::GodotClass < Base = AnimatedSprite2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AnimatedSprite2D { + pub fn set_sprite_frames(&mut self, sprite_frames: impl AsObjectArg < crate::classes::SpriteFrames >,) { + type CallSig = ((), ObjectArg < crate::classes::SpriteFrames >); + let args = (sprite_frames.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(102usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "set_sprite_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sprite_frames(&self,) -> Option < Gd < crate::classes::SpriteFrames > > { + type CallSig = (Option < Gd < crate::classes::SpriteFrames > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(103usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "get_sprite_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_animation(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(104usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "set_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(105usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "get_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autoplay(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(106usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "set_autoplay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_autoplay(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(107usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "get_autoplay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_playing(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(108usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "is_playing", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn play_full(&mut self, name: CowArg < StringName >, custom_speed: f32, from_end: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, f32, bool); + let args = (name, custom_speed, from_end,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(109usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "play", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::play_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn play(&mut self,) { + self.play_ex() . done() + } + #[inline] + pub fn play_ex < 'a > (&'a mut self,) -> ExPlay < 'a > { + ExPlay::new(self,) + } + pub(crate) fn play_backwards_full(&mut self, name: CowArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(110usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "play_backwards", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::play_backwards_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn play_backwards(&mut self,) { + self.play_backwards_ex() . done() + } + #[inline] + pub fn play_backwards_ex < 'a > (&'a mut self,) -> ExPlayBackwards < 'a > { + ExPlayBackwards::new(self,) + } + pub fn pause(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(111usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "pause", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn stop(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(112usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "stop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_centered(&mut self, centered: bool,) { + type CallSig = ((), bool); + let args = (centered,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(113usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "set_centered", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_centered(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(114usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "is_centered", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(115usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "set_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(116usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "get_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flip_h(&mut self, flip_h: bool,) { + type CallSig = ((), bool); + let args = (flip_h,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(117usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "set_flip_h", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_flipped_h(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(118usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "is_flipped_h", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flip_v(&mut self, flip_v: bool,) { + type CallSig = ((), bool); + let args = (flip_v,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(119usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "set_flip_v", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_flipped_v(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(120usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "is_flipped_v", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frame(&mut self, frame: i32,) { + type CallSig = ((), i32); + let args = (frame,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(121usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "set_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frame(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(122usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "get_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frame_progress(&mut self, progress: f32,) { + type CallSig = ((), f32); + let args = (progress,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(123usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "set_frame_progress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frame_progress(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(124usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "get_frame_progress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frame_and_progress(&mut self, frame: i32, progress: f32,) { + type CallSig = ((), i32, f32); + let args = (frame, progress,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(125usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "set_frame_and_progress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_speed_scale(&mut self, speed_scale: f32,) { + type CallSig = ((), f32); + let args = (speed_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(126usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "set_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_speed_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(127usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "get_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playing_speed(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(128usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite2D", "get_playing_speed", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimatedSprite2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimatedSprite2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimatedSprite2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for AnimatedSprite2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for AnimatedSprite2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AnimatedSprite2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimatedSprite2D { + + } + impl crate::obj::cap::GodotDefault for AnimatedSprite2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimatedSprite2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimatedSprite2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimatedSprite2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimatedSprite2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimatedSprite2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AnimatedSprite2D::play_ex`][super::AnimatedSprite2D::play_ex]."] +#[must_use] +pub struct ExPlay < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimatedSprite2D, name: CowArg < 'a, StringName >, custom_speed: f32, from_end: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPlay < 'a > { + fn new(surround_object: &'a mut re_export::AnimatedSprite2D,) -> Self { + let name = StringName::from(""); + let custom_speed = 1f32; + let from_end = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: CowArg::Owned(name), custom_speed: custom_speed, from_end: from_end, + } + } + #[inline] + pub fn name(self, name: impl AsArg < StringName > + 'a) -> Self { + Self { + name: name.into_arg(), .. self + } + } + #[inline] + pub fn custom_speed(self, custom_speed: f32) -> Self { + Self { + custom_speed: custom_speed, .. self + } + } + #[inline] + pub fn from_end(self, from_end: bool) -> Self { + Self { + from_end: from_end, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, custom_speed, from_end, + } + = self; + re_export::AnimatedSprite2D::play_full(surround_object, name, custom_speed, from_end,) + } +} +#[doc = "Default-param extender for [`AnimatedSprite2D::play_backwards_ex`][super::AnimatedSprite2D::play_backwards_ex]."] +#[must_use] +pub struct ExPlayBackwards < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimatedSprite2D, name: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPlayBackwards < 'a > { + fn new(surround_object: &'a mut re_export::AnimatedSprite2D,) -> Self { + let name = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: CowArg::Owned(name), + } + } + #[inline] + pub fn name(self, name: impl AsArg < StringName > + 'a) -> Self { + Self { + name: name.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, + } + = self; + re_export::AnimatedSprite2D::play_backwards_full(surround_object, name,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animated_sprite_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animated_sprite_3d.rs new file mode 100644 index 0000000..f8300f7 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animated_sprite_3d.rs @@ -0,0 +1,490 @@ +#![doc = "Sidecar module for class [`AnimatedSprite3D`][crate::classes::AnimatedSprite3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimatedSprite3D` enums](https://docs.godotengine.org/en/stable/classes/class_animatedsprite3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimatedSprite3D.`\n\nInherits [`SpriteBase3D`][crate::classes::SpriteBase3D].\n\nRelated symbols:\n\n* [`animated_sprite_3d`][crate::classes::animated_sprite_3d]: sidecar module with related enum/flag types\n* [`IAnimatedSprite3D`][crate::classes::IAnimatedSprite3D]: virtual methods\n\n\nSee also [Godot docs for `AnimatedSprite3D`](https://docs.godotengine.org/en/stable/classes/class_animatedsprite3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AnimatedSprite3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimatedSprite3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimatedSprite3D`][crate::classes::AnimatedSprite3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimatedSprite3D` methods](https://docs.godotengine.org/en/stable/classes/class_animatedsprite3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimatedSprite3D: crate::obj::GodotClass < Base = AnimatedSprite3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AnimatedSprite3D { + pub fn set_sprite_frames(&mut self, sprite_frames: impl AsObjectArg < crate::classes::SpriteFrames >,) { + type CallSig = ((), ObjectArg < crate::classes::SpriteFrames >); + let args = (sprite_frames.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(129usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "set_sprite_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sprite_frames(&self,) -> Option < Gd < crate::classes::SpriteFrames > > { + type CallSig = (Option < Gd < crate::classes::SpriteFrames > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(130usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "get_sprite_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_animation(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(131usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "set_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(132usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "get_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autoplay(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(133usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "set_autoplay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_autoplay(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(134usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "get_autoplay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_playing(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(135usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "is_playing", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn play_full(&mut self, name: CowArg < StringName >, custom_speed: f32, from_end: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, f32, bool); + let args = (name, custom_speed, from_end,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(136usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "play", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::play_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn play(&mut self,) { + self.play_ex() . done() + } + #[inline] + pub fn play_ex < 'a > (&'a mut self,) -> ExPlay < 'a > { + ExPlay::new(self,) + } + pub(crate) fn play_backwards_full(&mut self, name: CowArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(137usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "play_backwards", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::play_backwards_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn play_backwards(&mut self,) { + self.play_backwards_ex() . done() + } + #[inline] + pub fn play_backwards_ex < 'a > (&'a mut self,) -> ExPlayBackwards < 'a > { + ExPlayBackwards::new(self,) + } + pub fn pause(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(138usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "pause", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn stop(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(139usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "stop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frame(&mut self, frame: i32,) { + type CallSig = ((), i32); + let args = (frame,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(140usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "set_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frame(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(141usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "get_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frame_progress(&mut self, progress: f32,) { + type CallSig = ((), f32); + let args = (progress,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(142usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "set_frame_progress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frame_progress(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(143usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "get_frame_progress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frame_and_progress(&mut self, frame: i32, progress: f32,) { + type CallSig = ((), i32, f32); + let args = (frame, progress,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(144usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "set_frame_and_progress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_speed_scale(&mut self, speed_scale: f32,) { + type CallSig = ((), f32); + let args = (speed_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(145usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "set_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_speed_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(146usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "get_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playing_speed(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(147usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedSprite3D", "get_playing_speed", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimatedSprite3D { + type Base = crate::classes::SpriteBase3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimatedSprite3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimatedSprite3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::SpriteBase3D > for AnimatedSprite3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for AnimatedSprite3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for AnimatedSprite3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for AnimatedSprite3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AnimatedSprite3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimatedSprite3D { + + } + impl crate::obj::cap::GodotDefault for AnimatedSprite3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimatedSprite3D { + type Target = crate::classes::SpriteBase3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimatedSprite3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimatedSprite3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimatedSprite3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimatedSprite3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::SpriteBase3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AnimatedSprite3D::play_ex`][super::AnimatedSprite3D::play_ex]."] +#[must_use] +pub struct ExPlay < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimatedSprite3D, name: CowArg < 'a, StringName >, custom_speed: f32, from_end: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPlay < 'a > { + fn new(surround_object: &'a mut re_export::AnimatedSprite3D,) -> Self { + let name = StringName::from(""); + let custom_speed = 1f32; + let from_end = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: CowArg::Owned(name), custom_speed: custom_speed, from_end: from_end, + } + } + #[inline] + pub fn name(self, name: impl AsArg < StringName > + 'a) -> Self { + Self { + name: name.into_arg(), .. self + } + } + #[inline] + pub fn custom_speed(self, custom_speed: f32) -> Self { + Self { + custom_speed: custom_speed, .. self + } + } + #[inline] + pub fn from_end(self, from_end: bool) -> Self { + Self { + from_end: from_end, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, custom_speed, from_end, + } + = self; + re_export::AnimatedSprite3D::play_full(surround_object, name, custom_speed, from_end,) + } +} +#[doc = "Default-param extender for [`AnimatedSprite3D::play_backwards_ex`][super::AnimatedSprite3D::play_backwards_ex]."] +#[must_use] +pub struct ExPlayBackwards < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimatedSprite3D, name: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPlayBackwards < 'a > { + fn new(surround_object: &'a mut re_export::AnimatedSprite3D,) -> Self { + let name = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: CowArg::Owned(name), + } + } + #[inline] + pub fn name(self, name: impl AsArg < StringName > + 'a) -> Self { + Self { + name: name.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, + } + = self; + re_export::AnimatedSprite3D::play_backwards_full(surround_object, name,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animated_texture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animated_texture.rs new file mode 100644 index 0000000..fc8c28c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animated_texture.rs @@ -0,0 +1,345 @@ +#![doc = "Sidecar module for class [`AnimatedTexture`][crate::classes::AnimatedTexture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimatedTexture` enums](https://docs.godotengine.org/en/stable/classes/class_animatedtexture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimatedTexture.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`IAnimatedTexture`][crate::classes::IAnimatedTexture]: virtual methods\n\n\nSee also [Godot docs for `AnimatedTexture`](https://docs.godotengine.org/en/stable/classes/class_animatedtexture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimatedTexture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimatedTexture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimatedTexture`][crate::classes::AnimatedTexture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimatedTexture` methods](https://docs.godotengine.org/en/stable/classes/class_animatedtexture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimatedTexture: crate::obj::GodotClass < Base = AnimatedTexture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimatedTexture { + pub fn set_frames(&mut self, frames: i32,) { + type CallSig = ((), i32); + let args = (frames,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(148usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "set_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frames(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(149usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "get_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_current_frame(&mut self, frame: i32,) { + type CallSig = ((), i32); + let args = (frame,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(150usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "set_current_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_frame(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(151usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "get_current_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pause(&mut self, pause: bool,) { + type CallSig = ((), bool); + let args = (pause,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(152usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "set_pause", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pause(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(153usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "get_pause", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_one_shot(&mut self, one_shot: bool,) { + type CallSig = ((), bool); + let args = (one_shot,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(154usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "set_one_shot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_one_shot(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(155usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "get_one_shot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_speed_scale(&mut self, scale: f32,) { + type CallSig = ((), f32); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(156usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "set_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_speed_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(157usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "get_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frame_texture(&mut self, frame: i32, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Texture2D >); + let args = (frame, texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(158usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "set_frame_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frame_texture(&self, frame: i32,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >, i32); + let args = (frame,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(159usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "get_frame_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frame_duration(&mut self, frame: i32, duration: f32,) { + type CallSig = ((), i32, f32); + let args = (frame, duration,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(160usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "set_frame_duration", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frame_duration(&self, frame: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (frame,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(161usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimatedTexture", "get_frame_duration", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const MAX_FRAMES: i32 = 256i32; + + } + impl crate::obj::GodotClass for AnimatedTexture { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimatedTexture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimatedTexture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for AnimatedTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for AnimatedTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimatedTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimatedTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimatedTexture { + + } + impl crate::obj::cap::GodotDefault for AnimatedTexture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimatedTexture { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimatedTexture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimatedTexture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimatedTexture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimatedTexture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation.rs new file mode 100644 index 0000000..a574f2c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation.rs @@ -0,0 +1,1807 @@ +#![doc = "Sidecar module for class [`Animation`][crate::classes::Animation].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Animation` enums](https://docs.godotengine.org/en/stable/classes/class_animation.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Animation.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`animation`][crate::classes::animation]: sidecar module with related enum/flag types\n* [`IAnimation`][crate::classes::IAnimation]: virtual methods\n\n\nSee also [Godot docs for `Animation`](https://docs.godotengine.org/en/stable/classes/class_animation.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Animation::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Animation { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Animation`][crate::classes::Animation].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Animation` methods](https://docs.godotengine.org/en/stable/classes/class_animation.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimation: crate::obj::GodotClass < Base = Animation > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Animation { + pub(crate) fn add_track_full(&mut self, type_: crate::classes::animation::TrackType, at_position: i32,) -> i32 { + type CallSig = (i32, crate::classes::animation::TrackType, i32); + let args = (type_, at_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(162usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "add_track", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_track_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_track(&mut self, type_: crate::classes::animation::TrackType,) -> i32 { + self.add_track_ex(type_,) . done() + } + #[inline] + pub fn add_track_ex < 'a > (&'a mut self, type_: crate::classes::animation::TrackType,) -> ExAddTrack < 'a > { + ExAddTrack::new(self, type_,) + } + pub fn remove_track(&mut self, track_idx: i32,) { + type CallSig = ((), i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(163usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "remove_track", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_track_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(164usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "get_track_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_get_type(&self, track_idx: i32,) -> crate::classes::animation::TrackType { + type CallSig = (crate::classes::animation::TrackType, i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(165usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_get_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_get_path(&self, track_idx: i32,) -> NodePath { + type CallSig = (NodePath, i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(166usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_get_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_set_path(&mut self, track_idx: i32, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, NodePath >); + let args = (track_idx, path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(167usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_set_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_track(&self, path: impl AsArg < NodePath >, type_: crate::classes::animation::TrackType,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, NodePath >, crate::classes::animation::TrackType); + let args = (path.into_arg(), type_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(168usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "find_track", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_move_up(&mut self, track_idx: i32,) { + type CallSig = ((), i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(169usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_move_up", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_move_down(&mut self, track_idx: i32,) { + type CallSig = ((), i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(170usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_move_down", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_move_to(&mut self, track_idx: i32, to_idx: i32,) { + type CallSig = ((), i32, i32); + let args = (track_idx, to_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(171usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_move_to", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_swap(&mut self, track_idx: i32, with_idx: i32,) { + type CallSig = ((), i32, i32); + let args = (track_idx, with_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(172usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_swap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_set_imported(&mut self, track_idx: i32, imported: bool,) { + type CallSig = ((), i32, bool); + let args = (track_idx, imported,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(173usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_set_imported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_is_imported(&self, track_idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(174usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_is_imported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_set_enabled(&mut self, track_idx: i32, enabled: bool,) { + type CallSig = ((), i32, bool); + let args = (track_idx, enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(175usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_set_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_is_enabled(&self, track_idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(176usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_is_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn position_track_insert_key(&mut self, track_idx: i32, time: f64, position: Vector3,) -> i32 { + type CallSig = (i32, i32, f64, Vector3); + let args = (track_idx, time, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(177usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "position_track_insert_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rotation_track_insert_key(&mut self, track_idx: i32, time: f64, rotation: Quaternion,) -> i32 { + type CallSig = (i32, i32, f64, Quaternion); + let args = (track_idx, time, rotation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(178usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "rotation_track_insert_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scale_track_insert_key(&mut self, track_idx: i32, time: f64, scale: Vector3,) -> i32 { + type CallSig = (i32, i32, f64, Vector3); + let args = (track_idx, time, scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(179usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "scale_track_insert_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn blend_shape_track_insert_key(&mut self, track_idx: i32, time: f64, amount: f32,) -> i32 { + type CallSig = (i32, i32, f64, f32); + let args = (track_idx, time, amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(180usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "blend_shape_track_insert_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn position_track_interpolate_full(&self, track_idx: i32, time_sec: f64, backward: bool,) -> Vector3 { + type CallSig = (Vector3, i32, f64, bool); + let args = (track_idx, time_sec, backward,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(181usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "position_track_interpolate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::position_track_interpolate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn position_track_interpolate(&self, track_idx: i32, time_sec: f64,) -> Vector3 { + self.position_track_interpolate_ex(track_idx, time_sec,) . done() + } + #[inline] + pub fn position_track_interpolate_ex < 'a > (&'a self, track_idx: i32, time_sec: f64,) -> ExPositionTrackInterpolate < 'a > { + ExPositionTrackInterpolate::new(self, track_idx, time_sec,) + } + pub(crate) fn rotation_track_interpolate_full(&self, track_idx: i32, time_sec: f64, backward: bool,) -> Quaternion { + type CallSig = (Quaternion, i32, f64, bool); + let args = (track_idx, time_sec, backward,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(182usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "rotation_track_interpolate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::rotation_track_interpolate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn rotation_track_interpolate(&self, track_idx: i32, time_sec: f64,) -> Quaternion { + self.rotation_track_interpolate_ex(track_idx, time_sec,) . done() + } + #[inline] + pub fn rotation_track_interpolate_ex < 'a > (&'a self, track_idx: i32, time_sec: f64,) -> ExRotationTrackInterpolate < 'a > { + ExRotationTrackInterpolate::new(self, track_idx, time_sec,) + } + pub(crate) fn scale_track_interpolate_full(&self, track_idx: i32, time_sec: f64, backward: bool,) -> Vector3 { + type CallSig = (Vector3, i32, f64, bool); + let args = (track_idx, time_sec, backward,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(183usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "scale_track_interpolate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::scale_track_interpolate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn scale_track_interpolate(&self, track_idx: i32, time_sec: f64,) -> Vector3 { + self.scale_track_interpolate_ex(track_idx, time_sec,) . done() + } + #[inline] + pub fn scale_track_interpolate_ex < 'a > (&'a self, track_idx: i32, time_sec: f64,) -> ExScaleTrackInterpolate < 'a > { + ExScaleTrackInterpolate::new(self, track_idx, time_sec,) + } + pub(crate) fn blend_shape_track_interpolate_full(&self, track_idx: i32, time_sec: f64, backward: bool,) -> f32 { + type CallSig = (f32, i32, f64, bool); + let args = (track_idx, time_sec, backward,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(184usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "blend_shape_track_interpolate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::blend_shape_track_interpolate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn blend_shape_track_interpolate(&self, track_idx: i32, time_sec: f64,) -> f32 { + self.blend_shape_track_interpolate_ex(track_idx, time_sec,) . done() + } + #[inline] + pub fn blend_shape_track_interpolate_ex < 'a > (&'a self, track_idx: i32, time_sec: f64,) -> ExBlendShapeTrackInterpolate < 'a > { + ExBlendShapeTrackInterpolate::new(self, track_idx, time_sec,) + } + pub(crate) fn track_insert_key_full(&mut self, track_idx: i32, time: f64, key: RefArg < Variant >, transition: f32,) -> i32 { + type CallSig < 'a0, > = (i32, i32, f64, RefArg < 'a0, Variant >, f32); + let args = (track_idx, time, key, transition,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(185usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_insert_key", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::track_insert_key_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn track_insert_key(&mut self, track_idx: i32, time: f64, key: &Variant,) -> i32 { + self.track_insert_key_ex(track_idx, time, key,) . done() + } + #[inline] + pub fn track_insert_key_ex < 'a > (&'a mut self, track_idx: i32, time: f64, key: &'a Variant,) -> ExTrackInsertKey < 'a > { + ExTrackInsertKey::new(self, track_idx, time, key,) + } + pub fn track_remove_key(&mut self, track_idx: i32, key_idx: i32,) { + type CallSig = ((), i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(186usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_remove_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_remove_key_at_time(&mut self, track_idx: i32, time: f64,) { + type CallSig = ((), i32, f64); + let args = (track_idx, time,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(187usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_remove_key_at_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_set_key_value(&mut self, track_idx: i32, key: i32, value: &Variant,) { + type CallSig < 'a0, > = ((), i32, i32, RefArg < 'a0, Variant >); + let args = (track_idx, key, RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(188usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_set_key_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_set_key_transition(&mut self, track_idx: i32, key_idx: i32, transition: f32,) { + type CallSig = ((), i32, i32, f32); + let args = (track_idx, key_idx, transition,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(189usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_set_key_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_set_key_time(&mut self, track_idx: i32, key_idx: i32, time: f64,) { + type CallSig = ((), i32, i32, f64); + let args = (track_idx, key_idx, time,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(190usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_set_key_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_get_key_transition(&self, track_idx: i32, key_idx: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(191usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_get_key_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_get_key_count(&self, track_idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(192usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_get_key_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_get_key_value(&self, track_idx: i32, key_idx: i32,) -> Variant { + type CallSig = (Variant, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(193usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_get_key_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_get_key_time(&self, track_idx: i32, key_idx: i32,) -> f64 { + type CallSig = (f64, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(194usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_get_key_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn track_find_key_full(&self, track_idx: i32, time: f64, find_mode: crate::classes::animation::FindMode, limit: bool, backward: bool,) -> i32 { + type CallSig = (i32, i32, f64, crate::classes::animation::FindMode, bool, bool); + let args = (track_idx, time, find_mode, limit, backward,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(195usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_find_key", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::track_find_key_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn track_find_key(&self, track_idx: i32, time: f64,) -> i32 { + self.track_find_key_ex(track_idx, time,) . done() + } + #[inline] + pub fn track_find_key_ex < 'a > (&'a self, track_idx: i32, time: f64,) -> ExTrackFindKey < 'a > { + ExTrackFindKey::new(self, track_idx, time,) + } + pub fn track_set_interpolation_type(&mut self, track_idx: i32, interpolation: crate::classes::animation::InterpolationType,) { + type CallSig = ((), i32, crate::classes::animation::InterpolationType); + let args = (track_idx, interpolation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(196usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_set_interpolation_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_get_interpolation_type(&self, track_idx: i32,) -> crate::classes::animation::InterpolationType { + type CallSig = (crate::classes::animation::InterpolationType, i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(197usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_get_interpolation_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_set_interpolation_loop_wrap(&mut self, track_idx: i32, interpolation: bool,) { + type CallSig = ((), i32, bool); + let args = (track_idx, interpolation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(198usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_set_interpolation_loop_wrap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_get_interpolation_loop_wrap(&self, track_idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(199usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_get_interpolation_loop_wrap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn track_is_compressed(&self, track_idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(200usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "track_is_compressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn value_track_set_update_mode(&mut self, track_idx: i32, mode: crate::classes::animation::UpdateMode,) { + type CallSig = ((), i32, crate::classes::animation::UpdateMode); + let args = (track_idx, mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(201usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "value_track_set_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn value_track_get_update_mode(&self, track_idx: i32,) -> crate::classes::animation::UpdateMode { + type CallSig = (crate::classes::animation::UpdateMode, i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(202usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "value_track_get_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn value_track_interpolate_full(&self, track_idx: i32, time_sec: f64, backward: bool,) -> Variant { + type CallSig = (Variant, i32, f64, bool); + let args = (track_idx, time_sec, backward,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(203usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "value_track_interpolate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::value_track_interpolate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn value_track_interpolate(&self, track_idx: i32, time_sec: f64,) -> Variant { + self.value_track_interpolate_ex(track_idx, time_sec,) . done() + } + #[inline] + pub fn value_track_interpolate_ex < 'a > (&'a self, track_idx: i32, time_sec: f64,) -> ExValueTrackInterpolate < 'a > { + ExValueTrackInterpolate::new(self, track_idx, time_sec,) + } + pub fn method_track_get_name(&self, track_idx: i32, key_idx: i32,) -> StringName { + type CallSig = (StringName, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(204usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "method_track_get_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn method_track_get_params(&self, track_idx: i32, key_idx: i32,) -> VariantArray { + type CallSig = (VariantArray, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(205usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "method_track_get_params", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn bezier_track_insert_key_full(&mut self, track_idx: i32, time: f64, value: f32, in_handle: Vector2, out_handle: Vector2,) -> i32 { + type CallSig = (i32, i32, f64, f32, Vector2, Vector2); + let args = (track_idx, time, value, in_handle, out_handle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(206usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "bezier_track_insert_key", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::bezier_track_insert_key_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn bezier_track_insert_key(&mut self, track_idx: i32, time: f64, value: f32,) -> i32 { + self.bezier_track_insert_key_ex(track_idx, time, value,) . done() + } + #[inline] + pub fn bezier_track_insert_key_ex < 'a > (&'a mut self, track_idx: i32, time: f64, value: f32,) -> ExBezierTrackInsertKey < 'a > { + ExBezierTrackInsertKey::new(self, track_idx, time, value,) + } + pub fn bezier_track_set_key_value(&mut self, track_idx: i32, key_idx: i32, value: f32,) { + type CallSig = ((), i32, i32, f32); + let args = (track_idx, key_idx, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(207usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "bezier_track_set_key_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn bezier_track_set_key_in_handle_full(&mut self, track_idx: i32, key_idx: i32, in_handle: Vector2, balanced_value_time_ratio: f32,) { + type CallSig = ((), i32, i32, Vector2, f32); + let args = (track_idx, key_idx, in_handle, balanced_value_time_ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(208usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "bezier_track_set_key_in_handle", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::bezier_track_set_key_in_handle_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn bezier_track_set_key_in_handle(&mut self, track_idx: i32, key_idx: i32, in_handle: Vector2,) { + self.bezier_track_set_key_in_handle_ex(track_idx, key_idx, in_handle,) . done() + } + #[inline] + pub fn bezier_track_set_key_in_handle_ex < 'a > (&'a mut self, track_idx: i32, key_idx: i32, in_handle: Vector2,) -> ExBezierTrackSetKeyInHandle < 'a > { + ExBezierTrackSetKeyInHandle::new(self, track_idx, key_idx, in_handle,) + } + pub(crate) fn bezier_track_set_key_out_handle_full(&mut self, track_idx: i32, key_idx: i32, out_handle: Vector2, balanced_value_time_ratio: f32,) { + type CallSig = ((), i32, i32, Vector2, f32); + let args = (track_idx, key_idx, out_handle, balanced_value_time_ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(209usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "bezier_track_set_key_out_handle", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::bezier_track_set_key_out_handle_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn bezier_track_set_key_out_handle(&mut self, track_idx: i32, key_idx: i32, out_handle: Vector2,) { + self.bezier_track_set_key_out_handle_ex(track_idx, key_idx, out_handle,) . done() + } + #[inline] + pub fn bezier_track_set_key_out_handle_ex < 'a > (&'a mut self, track_idx: i32, key_idx: i32, out_handle: Vector2,) -> ExBezierTrackSetKeyOutHandle < 'a > { + ExBezierTrackSetKeyOutHandle::new(self, track_idx, key_idx, out_handle,) + } + pub fn bezier_track_get_key_value(&self, track_idx: i32, key_idx: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(210usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "bezier_track_get_key_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn bezier_track_get_key_in_handle(&self, track_idx: i32, key_idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(211usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "bezier_track_get_key_in_handle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn bezier_track_get_key_out_handle(&self, track_idx: i32, key_idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(212usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "bezier_track_get_key_out_handle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn bezier_track_interpolate(&self, track_idx: i32, time: f64,) -> f32 { + type CallSig = (f32, i32, f64); + let args = (track_idx, time,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(213usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "bezier_track_interpolate", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn audio_track_insert_key_full(&mut self, track_idx: i32, time: f64, stream: ObjectArg < crate::classes::Resource >, start_offset: f32, end_offset: f32,) -> i32 { + type CallSig = (i32, i32, f64, ObjectArg < crate::classes::Resource >, f32, f32); + let args = (track_idx, time, stream, start_offset, end_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(214usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "audio_track_insert_key", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::audio_track_insert_key_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn audio_track_insert_key(&mut self, track_idx: i32, time: f64, stream: impl AsObjectArg < crate::classes::Resource >,) -> i32 { + self.audio_track_insert_key_ex(track_idx, time, stream,) . done() + } + #[inline] + pub fn audio_track_insert_key_ex < 'a > (&'a mut self, track_idx: i32, time: f64, stream: impl AsObjectArg < crate::classes::Resource >,) -> ExAudioTrackInsertKey < 'a > { + ExAudioTrackInsertKey::new(self, track_idx, time, stream,) + } + pub fn audio_track_set_key_stream(&mut self, track_idx: i32, key_idx: i32, stream: impl AsObjectArg < crate::classes::Resource >,) { + type CallSig = ((), i32, i32, ObjectArg < crate::classes::Resource >); + let args = (track_idx, key_idx, stream.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(215usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "audio_track_set_key_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn audio_track_set_key_start_offset(&mut self, track_idx: i32, key_idx: i32, offset: f32,) { + type CallSig = ((), i32, i32, f32); + let args = (track_idx, key_idx, offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(216usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "audio_track_set_key_start_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn audio_track_set_key_end_offset(&mut self, track_idx: i32, key_idx: i32, offset: f32,) { + type CallSig = ((), i32, i32, f32); + let args = (track_idx, key_idx, offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(217usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "audio_track_set_key_end_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn audio_track_get_key_stream(&self, track_idx: i32, key_idx: i32,) -> Option < Gd < crate::classes::Resource > > { + type CallSig = (Option < Gd < crate::classes::Resource > >, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(218usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "audio_track_get_key_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn audio_track_get_key_start_offset(&self, track_idx: i32, key_idx: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(219usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "audio_track_get_key_start_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn audio_track_get_key_end_offset(&self, track_idx: i32, key_idx: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(220usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "audio_track_get_key_end_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn audio_track_set_use_blend(&mut self, track_idx: i32, enable: bool,) { + type CallSig = ((), i32, bool); + let args = (track_idx, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(221usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "audio_track_set_use_blend", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn audio_track_is_use_blend(&self, track_idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (track_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(222usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "audio_track_is_use_blend", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn animation_track_insert_key(&mut self, track_idx: i32, time: f64, animation: impl AsArg < StringName >,) -> i32 { + type CallSig < 'a0, > = (i32, i32, f64, CowArg < 'a0, StringName >); + let args = (track_idx, time, animation.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(223usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "animation_track_insert_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn animation_track_set_key_animation(&mut self, track_idx: i32, key_idx: i32, animation: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), i32, i32, CowArg < 'a0, StringName >); + let args = (track_idx, key_idx, animation.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(224usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "animation_track_set_key_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn animation_track_get_key_animation(&self, track_idx: i32, key_idx: i32,) -> StringName { + type CallSig = (StringName, i32, i32); + let args = (track_idx, key_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(225usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "animation_track_get_key_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_length(&mut self, time_sec: f32,) { + type CallSig = ((), f32); + let args = (time_sec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(226usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "set_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(227usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "get_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop_mode(&mut self, loop_mode: crate::classes::animation::LoopMode,) { + type CallSig = ((), crate::classes::animation::LoopMode); + let args = (loop_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(228usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "set_loop_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_loop_mode(&self,) -> crate::classes::animation::LoopMode { + type CallSig = (crate::classes::animation::LoopMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(229usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "get_loop_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_step(&mut self, size_sec: f32,) { + type CallSig = ((), f32); + let args = (size_sec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(230usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "set_step", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_step(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(231usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "get_step", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(232usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn copy_track(&mut self, track_idx: i32, to_animation: impl AsObjectArg < crate::classes::Animation >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Animation >); + let args = (track_idx, to_animation.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(233usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "copy_track", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn compress_full(&mut self, page_size: u32, fps: u32, split_tolerance: f32,) { + type CallSig = ((), u32, u32, f32); + let args = (page_size, fps, split_tolerance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(234usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "compress", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::compress_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn compress(&mut self,) { + self.compress_ex() . done() + } + #[inline] + pub fn compress_ex < 'a > (&'a mut self,) -> ExCompress < 'a > { + ExCompress::new(self,) + } + pub fn is_capture_included(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(235usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Animation", "is_capture_included", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Animation { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Animation")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Animation { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Animation { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Animation { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Animation { + + } + impl crate::obj::cap::GodotDefault for Animation { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Animation { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Animation { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Animation`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Animation { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Animation > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Animation::add_track_ex`][super::Animation::add_track_ex]."] +#[must_use] +pub struct ExAddTrack < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Animation, type_: crate::classes::animation::TrackType, at_position: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddTrack < 'a > { + fn new(surround_object: &'a mut re_export::Animation, type_: crate::classes::animation::TrackType,) -> Self { + let at_position = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, type_: type_, at_position: at_position, + } + } + #[inline] + pub fn at_position(self, at_position: i32) -> Self { + Self { + at_position: at_position, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, type_, at_position, + } + = self; + re_export::Animation::add_track_full(surround_object, type_, at_position,) + } +} +#[doc = "Default-param extender for [`Animation::position_track_interpolate_ex`][super::Animation::position_track_interpolate_ex]."] +#[must_use] +pub struct ExPositionTrackInterpolate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Animation, track_idx: i32, time_sec: f64, backward: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPositionTrackInterpolate < 'a > { + fn new(surround_object: &'a re_export::Animation, track_idx: i32, time_sec: f64,) -> Self { + let backward = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, track_idx: track_idx, time_sec: time_sec, backward: backward, + } + } + #[inline] + pub fn backward(self, backward: bool) -> Self { + Self { + backward: backward, .. self + } + } + #[inline] + pub fn done(self) -> Vector3 { + let Self { + _phantom, surround_object, track_idx, time_sec, backward, + } + = self; + re_export::Animation::position_track_interpolate_full(surround_object, track_idx, time_sec, backward,) + } +} +#[doc = "Default-param extender for [`Animation::rotation_track_interpolate_ex`][super::Animation::rotation_track_interpolate_ex]."] +#[must_use] +pub struct ExRotationTrackInterpolate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Animation, track_idx: i32, time_sec: f64, backward: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExRotationTrackInterpolate < 'a > { + fn new(surround_object: &'a re_export::Animation, track_idx: i32, time_sec: f64,) -> Self { + let backward = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, track_idx: track_idx, time_sec: time_sec, backward: backward, + } + } + #[inline] + pub fn backward(self, backward: bool) -> Self { + Self { + backward: backward, .. self + } + } + #[inline] + pub fn done(self) -> Quaternion { + let Self { + _phantom, surround_object, track_idx, time_sec, backward, + } + = self; + re_export::Animation::rotation_track_interpolate_full(surround_object, track_idx, time_sec, backward,) + } +} +#[doc = "Default-param extender for [`Animation::scale_track_interpolate_ex`][super::Animation::scale_track_interpolate_ex]."] +#[must_use] +pub struct ExScaleTrackInterpolate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Animation, track_idx: i32, time_sec: f64, backward: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScaleTrackInterpolate < 'a > { + fn new(surround_object: &'a re_export::Animation, track_idx: i32, time_sec: f64,) -> Self { + let backward = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, track_idx: track_idx, time_sec: time_sec, backward: backward, + } + } + #[inline] + pub fn backward(self, backward: bool) -> Self { + Self { + backward: backward, .. self + } + } + #[inline] + pub fn done(self) -> Vector3 { + let Self { + _phantom, surround_object, track_idx, time_sec, backward, + } + = self; + re_export::Animation::scale_track_interpolate_full(surround_object, track_idx, time_sec, backward,) + } +} +#[doc = "Default-param extender for [`Animation::blend_shape_track_interpolate_ex`][super::Animation::blend_shape_track_interpolate_ex]."] +#[must_use] +pub struct ExBlendShapeTrackInterpolate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Animation, track_idx: i32, time_sec: f64, backward: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBlendShapeTrackInterpolate < 'a > { + fn new(surround_object: &'a re_export::Animation, track_idx: i32, time_sec: f64,) -> Self { + let backward = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, track_idx: track_idx, time_sec: time_sec, backward: backward, + } + } + #[inline] + pub fn backward(self, backward: bool) -> Self { + Self { + backward: backward, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, track_idx, time_sec, backward, + } + = self; + re_export::Animation::blend_shape_track_interpolate_full(surround_object, track_idx, time_sec, backward,) + } +} +#[doc = "Default-param extender for [`Animation::track_insert_key_ex`][super::Animation::track_insert_key_ex]."] +#[must_use] +pub struct ExTrackInsertKey < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Animation, track_idx: i32, time: f64, key: CowArg < 'a, Variant >, transition: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTrackInsertKey < 'a > { + fn new(surround_object: &'a mut re_export::Animation, track_idx: i32, time: f64, key: &'a Variant,) -> Self { + let transition = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, track_idx: track_idx, time: time, key: CowArg::Borrowed(key), transition: transition, + } + } + #[inline] + pub fn transition(self, transition: f32) -> Self { + Self { + transition: transition, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, track_idx, time, key, transition, + } + = self; + re_export::Animation::track_insert_key_full(surround_object, track_idx, time, key.cow_as_arg(), transition,) + } +} +#[doc = "Default-param extender for [`Animation::track_find_key_ex`][super::Animation::track_find_key_ex]."] +#[must_use] +pub struct ExTrackFindKey < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Animation, track_idx: i32, time: f64, find_mode: crate::classes::animation::FindMode, limit: bool, backward: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTrackFindKey < 'a > { + fn new(surround_object: &'a re_export::Animation, track_idx: i32, time: f64,) -> Self { + let find_mode = crate::obj::EngineEnum::from_ord(0); + let limit = false; + let backward = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, track_idx: track_idx, time: time, find_mode: find_mode, limit: limit, backward: backward, + } + } + #[inline] + pub fn find_mode(self, find_mode: crate::classes::animation::FindMode) -> Self { + Self { + find_mode: find_mode, .. self + } + } + #[inline] + pub fn limit(self, limit: bool) -> Self { + Self { + limit: limit, .. self + } + } + #[inline] + pub fn backward(self, backward: bool) -> Self { + Self { + backward: backward, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, track_idx, time, find_mode, limit, backward, + } + = self; + re_export::Animation::track_find_key_full(surround_object, track_idx, time, find_mode, limit, backward,) + } +} +#[doc = "Default-param extender for [`Animation::value_track_interpolate_ex`][super::Animation::value_track_interpolate_ex]."] +#[must_use] +pub struct ExValueTrackInterpolate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Animation, track_idx: i32, time_sec: f64, backward: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExValueTrackInterpolate < 'a > { + fn new(surround_object: &'a re_export::Animation, track_idx: i32, time_sec: f64,) -> Self { + let backward = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, track_idx: track_idx, time_sec: time_sec, backward: backward, + } + } + #[inline] + pub fn backward(self, backward: bool) -> Self { + Self { + backward: backward, .. self + } + } + #[inline] + pub fn done(self) -> Variant { + let Self { + _phantom, surround_object, track_idx, time_sec, backward, + } + = self; + re_export::Animation::value_track_interpolate_full(surround_object, track_idx, time_sec, backward,) + } +} +#[doc = "Default-param extender for [`Animation::bezier_track_insert_key_ex`][super::Animation::bezier_track_insert_key_ex]."] +#[must_use] +pub struct ExBezierTrackInsertKey < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Animation, track_idx: i32, time: f64, value: f32, in_handle: Vector2, out_handle: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBezierTrackInsertKey < 'a > { + fn new(surround_object: &'a mut re_export::Animation, track_idx: i32, time: f64, value: f32,) -> Self { + let in_handle = Vector2::new(0 as _, 0 as _); + let out_handle = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, track_idx: track_idx, time: time, value: value, in_handle: in_handle, out_handle: out_handle, + } + } + #[inline] + pub fn in_handle(self, in_handle: Vector2) -> Self { + Self { + in_handle: in_handle, .. self + } + } + #[inline] + pub fn out_handle(self, out_handle: Vector2) -> Self { + Self { + out_handle: out_handle, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, track_idx, time, value, in_handle, out_handle, + } + = self; + re_export::Animation::bezier_track_insert_key_full(surround_object, track_idx, time, value, in_handle, out_handle,) + } +} +#[doc = "Default-param extender for [`Animation::bezier_track_set_key_in_handle_ex`][super::Animation::bezier_track_set_key_in_handle_ex]."] +#[must_use] +pub struct ExBezierTrackSetKeyInHandle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Animation, track_idx: i32, key_idx: i32, in_handle: Vector2, balanced_value_time_ratio: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBezierTrackSetKeyInHandle < 'a > { + fn new(surround_object: &'a mut re_export::Animation, track_idx: i32, key_idx: i32, in_handle: Vector2,) -> Self { + let balanced_value_time_ratio = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, track_idx: track_idx, key_idx: key_idx, in_handle: in_handle, balanced_value_time_ratio: balanced_value_time_ratio, + } + } + #[inline] + pub fn balanced_value_time_ratio(self, balanced_value_time_ratio: f32) -> Self { + Self { + balanced_value_time_ratio: balanced_value_time_ratio, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, track_idx, key_idx, in_handle, balanced_value_time_ratio, + } + = self; + re_export::Animation::bezier_track_set_key_in_handle_full(surround_object, track_idx, key_idx, in_handle, balanced_value_time_ratio,) + } +} +#[doc = "Default-param extender for [`Animation::bezier_track_set_key_out_handle_ex`][super::Animation::bezier_track_set_key_out_handle_ex]."] +#[must_use] +pub struct ExBezierTrackSetKeyOutHandle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Animation, track_idx: i32, key_idx: i32, out_handle: Vector2, balanced_value_time_ratio: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBezierTrackSetKeyOutHandle < 'a > { + fn new(surround_object: &'a mut re_export::Animation, track_idx: i32, key_idx: i32, out_handle: Vector2,) -> Self { + let balanced_value_time_ratio = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, track_idx: track_idx, key_idx: key_idx, out_handle: out_handle, balanced_value_time_ratio: balanced_value_time_ratio, + } + } + #[inline] + pub fn balanced_value_time_ratio(self, balanced_value_time_ratio: f32) -> Self { + Self { + balanced_value_time_ratio: balanced_value_time_ratio, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, track_idx, key_idx, out_handle, balanced_value_time_ratio, + } + = self; + re_export::Animation::bezier_track_set_key_out_handle_full(surround_object, track_idx, key_idx, out_handle, balanced_value_time_ratio,) + } +} +#[doc = "Default-param extender for [`Animation::audio_track_insert_key_ex`][super::Animation::audio_track_insert_key_ex]."] +#[must_use] +pub struct ExAudioTrackInsertKey < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Animation, track_idx: i32, time: f64, stream: ObjectCow < crate::classes::Resource >, start_offset: f32, end_offset: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAudioTrackInsertKey < 'a > { + fn new(surround_object: &'a mut re_export::Animation, track_idx: i32, time: f64, stream: impl AsObjectArg < crate::classes::Resource >,) -> Self { + let start_offset = 0f32; + let end_offset = 0f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, track_idx: track_idx, time: time, stream: stream.consume_arg(), start_offset: start_offset, end_offset: end_offset, + } + } + #[inline] + pub fn start_offset(self, start_offset: f32) -> Self { + Self { + start_offset: start_offset, .. self + } + } + #[inline] + pub fn end_offset(self, end_offset: f32) -> Self { + Self { + end_offset: end_offset, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, track_idx, time, stream, start_offset, end_offset, + } + = self; + re_export::Animation::audio_track_insert_key_full(surround_object, track_idx, time, stream.cow_as_object_arg(), start_offset, end_offset,) + } +} +#[doc = "Default-param extender for [`Animation::compress_ex`][super::Animation::compress_ex]."] +#[must_use] +pub struct ExCompress < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Animation, page_size: u32, fps: u32, split_tolerance: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCompress < 'a > { + fn new(surround_object: &'a mut re_export::Animation,) -> Self { + let page_size = 8192u32; + let fps = 120u32; + let split_tolerance = 4f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, page_size: page_size, fps: fps, split_tolerance: split_tolerance, + } + } + #[inline] + pub fn page_size(self, page_size: u32) -> Self { + Self { + page_size: page_size, .. self + } + } + #[inline] + pub fn fps(self, fps: u32) -> Self { + Self { + fps: fps, .. self + } + } + #[inline] + pub fn split_tolerance(self, split_tolerance: f32) -> Self { + Self { + split_tolerance: split_tolerance, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, page_size, fps, split_tolerance, + } + = self; + re_export::Animation::compress_full(surround_object, page_size, fps, split_tolerance,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TrackType { + ord: i32 +} +impl TrackType { + #[doc(alias = "TYPE_VALUE")] + #[doc = "Godot enumerator name: `TYPE_VALUE`"] + pub const VALUE: TrackType = TrackType { + ord: 0i32 + }; + #[doc(alias = "TYPE_POSITION_3D")] + #[doc = "Godot enumerator name: `TYPE_POSITION_3D`"] + pub const POSITION_3D: TrackType = TrackType { + ord: 1i32 + }; + #[doc(alias = "TYPE_ROTATION_3D")] + #[doc = "Godot enumerator name: `TYPE_ROTATION_3D`"] + pub const ROTATION_3D: TrackType = TrackType { + ord: 2i32 + }; + #[doc(alias = "TYPE_SCALE_3D")] + #[doc = "Godot enumerator name: `TYPE_SCALE_3D`"] + pub const SCALE_3D: TrackType = TrackType { + ord: 3i32 + }; + #[doc(alias = "TYPE_BLEND_SHAPE")] + #[doc = "Godot enumerator name: `TYPE_BLEND_SHAPE`"] + pub const BLEND_SHAPE: TrackType = TrackType { + ord: 4i32 + }; + #[doc(alias = "TYPE_METHOD")] + #[doc = "Godot enumerator name: `TYPE_METHOD`"] + pub const METHOD: TrackType = TrackType { + ord: 5i32 + }; + #[doc(alias = "TYPE_BEZIER")] + #[doc = "Godot enumerator name: `TYPE_BEZIER`"] + pub const BEZIER: TrackType = TrackType { + ord: 6i32 + }; + #[doc(alias = "TYPE_AUDIO")] + #[doc = "Godot enumerator name: `TYPE_AUDIO`"] + pub const AUDIO: TrackType = TrackType { + ord: 7i32 + }; + #[doc(alias = "TYPE_ANIMATION")] + #[doc = "Godot enumerator name: `TYPE_ANIMATION`"] + pub const ANIMATION: TrackType = TrackType { + ord: 8i32 + }; + +} +impl std::fmt::Debug for TrackType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TrackType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TrackType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VALUE => "VALUE", Self::POSITION_3D => "POSITION_3D", Self::ROTATION_3D => "ROTATION_3D", Self::SCALE_3D => "SCALE_3D", Self::BLEND_SHAPE => "BLEND_SHAPE", Self::METHOD => "METHOD", Self::BEZIER => "BEZIER", Self::AUDIO => "AUDIO", Self::ANIMATION => "ANIMATION", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VALUE => "TYPE_VALUE", Self::POSITION_3D => "TYPE_POSITION_3D", Self::ROTATION_3D => "TYPE_ROTATION_3D", Self::SCALE_3D => "TYPE_SCALE_3D", Self::BLEND_SHAPE => "TYPE_BLEND_SHAPE", Self::METHOD => "TYPE_METHOD", Self::BEZIER => "TYPE_BEZIER", Self::AUDIO => "TYPE_AUDIO", Self::ANIMATION => "TYPE_ANIMATION", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TrackType { + type Via = i32; + +} +impl crate::meta::ToGodot for TrackType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TrackType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct InterpolationType { + ord: i32 +} +impl InterpolationType { + #[doc(alias = "INTERPOLATION_NEAREST")] + #[doc = "Godot enumerator name: `INTERPOLATION_NEAREST`"] + pub const NEAREST: InterpolationType = InterpolationType { + ord: 0i32 + }; + #[doc(alias = "INTERPOLATION_LINEAR")] + #[doc = "Godot enumerator name: `INTERPOLATION_LINEAR`"] + pub const LINEAR: InterpolationType = InterpolationType { + ord: 1i32 + }; + #[doc(alias = "INTERPOLATION_CUBIC")] + #[doc = "Godot enumerator name: `INTERPOLATION_CUBIC`"] + pub const CUBIC: InterpolationType = InterpolationType { + ord: 2i32 + }; + #[doc(alias = "INTERPOLATION_LINEAR_ANGLE")] + #[doc = "Godot enumerator name: `INTERPOLATION_LINEAR_ANGLE`"] + pub const LINEAR_ANGLE: InterpolationType = InterpolationType { + ord: 3i32 + }; + #[doc(alias = "INTERPOLATION_CUBIC_ANGLE")] + #[doc = "Godot enumerator name: `INTERPOLATION_CUBIC_ANGLE`"] + pub const CUBIC_ANGLE: InterpolationType = InterpolationType { + ord: 4i32 + }; + +} +impl std::fmt::Debug for InterpolationType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("InterpolationType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for InterpolationType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "NEAREST", Self::LINEAR => "LINEAR", Self::CUBIC => "CUBIC", Self::LINEAR_ANGLE => "LINEAR_ANGLE", Self::CUBIC_ANGLE => "CUBIC_ANGLE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "INTERPOLATION_NEAREST", Self::LINEAR => "INTERPOLATION_LINEAR", Self::CUBIC => "INTERPOLATION_CUBIC", Self::LINEAR_ANGLE => "INTERPOLATION_LINEAR_ANGLE", Self::CUBIC_ANGLE => "INTERPOLATION_CUBIC_ANGLE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for InterpolationType { + type Via = i32; + +} +impl crate::meta::ToGodot for InterpolationType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for InterpolationType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct UpdateMode { + ord: i32 +} +impl UpdateMode { + #[doc(alias = "UPDATE_CONTINUOUS")] + #[doc = "Godot enumerator name: `UPDATE_CONTINUOUS`"] + pub const CONTINUOUS: UpdateMode = UpdateMode { + ord: 0i32 + }; + #[doc(alias = "UPDATE_DISCRETE")] + #[doc = "Godot enumerator name: `UPDATE_DISCRETE`"] + pub const DISCRETE: UpdateMode = UpdateMode { + ord: 1i32 + }; + #[doc(alias = "UPDATE_CAPTURE")] + #[doc = "Godot enumerator name: `UPDATE_CAPTURE`"] + pub const CAPTURE: UpdateMode = UpdateMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for UpdateMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("UpdateMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for UpdateMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CONTINUOUS => "CONTINUOUS", Self::DISCRETE => "DISCRETE", Self::CAPTURE => "CAPTURE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CONTINUOUS => "UPDATE_CONTINUOUS", Self::DISCRETE => "UPDATE_DISCRETE", Self::CAPTURE => "UPDATE_CAPTURE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for UpdateMode { + type Via = i32; + +} +impl crate::meta::ToGodot for UpdateMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for UpdateMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LoopMode { + ord: i32 +} +impl LoopMode { + #[doc(alias = "LOOP_NONE")] + #[doc = "Godot enumerator name: `LOOP_NONE`"] + pub const NONE: LoopMode = LoopMode { + ord: 0i32 + }; + #[doc(alias = "LOOP_LINEAR")] + #[doc = "Godot enumerator name: `LOOP_LINEAR`"] + pub const LINEAR: LoopMode = LoopMode { + ord: 1i32 + }; + #[doc(alias = "LOOP_PINGPONG")] + #[doc = "Godot enumerator name: `LOOP_PINGPONG`"] + pub const PINGPONG: LoopMode = LoopMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for LoopMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LoopMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LoopMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::LINEAR => "LINEAR", Self::PINGPONG => "PINGPONG", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "LOOP_NONE", Self::LINEAR => "LOOP_LINEAR", Self::PINGPONG => "LOOP_PINGPONG", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LoopMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LoopMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LoopMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LoopedFlag { + ord: i32 +} +impl LoopedFlag { + #[doc(alias = "LOOPED_FLAG_NONE")] + #[doc = "Godot enumerator name: `LOOPED_FLAG_NONE`"] + pub const NONE: LoopedFlag = LoopedFlag { + ord: 0i32 + }; + #[doc(alias = "LOOPED_FLAG_END")] + #[doc = "Godot enumerator name: `LOOPED_FLAG_END`"] + pub const END: LoopedFlag = LoopedFlag { + ord: 1i32 + }; + #[doc(alias = "LOOPED_FLAG_START")] + #[doc = "Godot enumerator name: `LOOPED_FLAG_START`"] + pub const START: LoopedFlag = LoopedFlag { + ord: 2i32 + }; + +} +impl std::fmt::Debug for LoopedFlag { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LoopedFlag") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LoopedFlag { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::END => "END", Self::START => "START", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "LOOPED_FLAG_NONE", Self::END => "LOOPED_FLAG_END", Self::START => "LOOPED_FLAG_START", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LoopedFlag { + type Via = i32; + +} +impl crate::meta::ToGodot for LoopedFlag { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LoopedFlag { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FindMode { + ord: i32 +} +impl FindMode { + #[doc(alias = "FIND_MODE_NEAREST")] + #[doc = "Godot enumerator name: `FIND_MODE_NEAREST`"] + pub const NEAREST: FindMode = FindMode { + ord: 0i32 + }; + #[doc(alias = "FIND_MODE_APPROX")] + #[doc = "Godot enumerator name: `FIND_MODE_APPROX`"] + pub const APPROX: FindMode = FindMode { + ord: 1i32 + }; + #[doc(alias = "FIND_MODE_EXACT")] + #[doc = "Godot enumerator name: `FIND_MODE_EXACT`"] + pub const EXACT: FindMode = FindMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for FindMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FindMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FindMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "NEAREST", Self::APPROX => "APPROX", Self::EXACT => "EXACT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "FIND_MODE_NEAREST", Self::APPROX => "FIND_MODE_APPROX", Self::EXACT => "FIND_MODE_EXACT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FindMode { + type Via = i32; + +} +impl crate::meta::ToGodot for FindMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FindMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_library.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_library.rs new file mode 100644 index 0000000..0ca58cb --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_library.rs @@ -0,0 +1,250 @@ +#![doc = "Sidecar module for class [`AnimationLibrary`][crate::classes::AnimationLibrary].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationLibrary` enums](https://docs.godotengine.org/en/stable/classes/class_animationlibrary.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationLibrary.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IAnimationLibrary`][crate::classes::IAnimationLibrary]: virtual methods\n\n\nSee also [Godot docs for `AnimationLibrary`](https://docs.godotengine.org/en/stable/classes/class_animationlibrary.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationLibrary::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationLibrary { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationLibrary`][crate::classes::AnimationLibrary].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationLibrary` methods](https://docs.godotengine.org/en/stable/classes/class_animationlibrary.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationLibrary: crate::obj::GodotClass < Base = AnimationLibrary > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationLibrary { + pub fn add_animation(&mut self, name: impl AsArg < StringName >, animation: impl AsObjectArg < crate::classes::Animation >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, StringName >, ObjectArg < crate::classes::Animation >); + let args = (name.into_arg(), animation.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(236usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationLibrary", "add_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_animation(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(237usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationLibrary", "remove_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rename_animation(&mut self, name: impl AsArg < StringName >, newname: impl AsArg < StringName >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name.into_arg(), newname.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(238usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationLibrary", "rename_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_animation(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(239usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationLibrary", "has_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation(&self, name: impl AsArg < StringName >,) -> Option < Gd < crate::classes::Animation > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Animation > >, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(240usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationLibrary", "get_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation_list(&self,) -> Array < StringName > { + type CallSig = (Array < StringName >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(241usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationLibrary", "get_animation_list", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationLibrary { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationLibrary")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationLibrary { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationLibrary { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationLibrary { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationLibrary { + + } + impl crate::obj::cap::GodotDefault for AnimationLibrary { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationLibrary { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationLibrary { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationLibrary`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationLibrary { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationLibrary > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_mixer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_mixer.rs new file mode 100644 index 0000000..f3f5a2c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_mixer.rs @@ -0,0 +1,789 @@ +#![doc = "Sidecar module for class [`AnimationMixer`][crate::classes::AnimationMixer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationMixer` enums](https://docs.godotengine.org/en/stable/classes/class_animationmixer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationMixer.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`animation_mixer`][crate::classes::animation_mixer]: sidecar module with related enum/flag types\n* [`IAnimationMixer`][crate::classes::IAnimationMixer]: virtual methods\n\n\nSee also [Godot docs for `AnimationMixer`](https://docs.godotengine.org/en/stable/classes/class_animationmixer.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationMixer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationMixer`][crate::classes::AnimationMixer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationMixer` methods](https://docs.godotengine.org/en/stable/classes/class_animationmixer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationMixer: crate::obj::GodotClass < Base = AnimationMixer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn post_process_key_value(&self, animation: Option < Gd < crate::classes::Animation > >, track: i32, value: Variant, object_id: u64, object_sub_idx: i32,) -> Variant { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AnimationMixer { + pub fn add_animation_library(&mut self, name: impl AsArg < StringName >, library: impl AsObjectArg < crate::classes::AnimationLibrary >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, StringName >, ObjectArg < crate::classes::AnimationLibrary >); + let args = (name.into_arg(), library.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(242usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "add_animation_library", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_animation_library(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(243usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "remove_animation_library", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rename_animation_library(&mut self, name: impl AsArg < StringName >, newname: impl AsArg < StringName >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name.into_arg(), newname.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(244usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "rename_animation_library", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_animation_library(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(245usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "has_animation_library", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation_library(&self, name: impl AsArg < StringName >,) -> Option < Gd < crate::classes::AnimationLibrary > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::AnimationLibrary > >, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(246usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_animation_library", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation_library_list(&self,) -> Array < StringName > { + type CallSig = (Array < StringName >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(247usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_animation_library_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_animation(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(248usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "has_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation(&self, name: impl AsArg < StringName >,) -> Option < Gd < crate::classes::Animation > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Animation > >, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(249usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation_list(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(250usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_animation_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_active(&mut self, active: bool,) { + type CallSig = ((), bool); + let args = (active,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(251usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "set_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_active(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(252usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "is_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_deterministic(&mut self, deterministic: bool,) { + type CallSig = ((), bool); + let args = (deterministic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(253usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "set_deterministic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_deterministic(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(254usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "is_deterministic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_root_node(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(255usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "set_root_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_node(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(256usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_root_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_callback_mode_process(&mut self, mode: crate::classes::animation_mixer::AnimationCallbackModeProcess,) { + type CallSig = ((), crate::classes::animation_mixer::AnimationCallbackModeProcess); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(257usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "set_callback_mode_process", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_callback_mode_process(&self,) -> crate::classes::animation_mixer::AnimationCallbackModeProcess { + type CallSig = (crate::classes::animation_mixer::AnimationCallbackModeProcess,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(258usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_callback_mode_process", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_callback_mode_method(&mut self, mode: crate::classes::animation_mixer::AnimationCallbackModeMethod,) { + type CallSig = ((), crate::classes::animation_mixer::AnimationCallbackModeMethod); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(259usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "set_callback_mode_method", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_callback_mode_method(&self,) -> crate::classes::animation_mixer::AnimationCallbackModeMethod { + type CallSig = (crate::classes::animation_mixer::AnimationCallbackModeMethod,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(260usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_callback_mode_method", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_callback_mode_discrete(&mut self, mode: crate::classes::animation_mixer::AnimationCallbackModeDiscrete,) { + type CallSig = ((), crate::classes::animation_mixer::AnimationCallbackModeDiscrete); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(261usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "set_callback_mode_discrete", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_callback_mode_discrete(&self,) -> crate::classes::animation_mixer::AnimationCallbackModeDiscrete { + type CallSig = (crate::classes::animation_mixer::AnimationCallbackModeDiscrete,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(262usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_callback_mode_discrete", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_audio_max_polyphony(&mut self, max_polyphony: i32,) { + type CallSig = ((), i32); + let args = (max_polyphony,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(263usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "set_audio_max_polyphony", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_audio_max_polyphony(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(264usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_audio_max_polyphony", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_root_motion_track(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(265usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "set_root_motion_track", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_motion_track(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(266usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_root_motion_track", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_motion_position(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(267usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_root_motion_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_motion_rotation(&self,) -> Quaternion { + type CallSig = (Quaternion,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(268usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_root_motion_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_motion_scale(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(269usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_root_motion_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_motion_position_accumulator(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(270usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_root_motion_position_accumulator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_motion_rotation_accumulator(&self,) -> Quaternion { + type CallSig = (Quaternion,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(271usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_root_motion_rotation_accumulator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_motion_scale_accumulator(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(272usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "get_root_motion_scale_accumulator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_caches(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(273usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "clear_caches", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn advance(&mut self, delta: f64,) { + type CallSig = ((), f64); + let args = (delta,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(274usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "advance", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn capture_full(&mut self, name: CowArg < StringName >, duration: f64, trans_type: crate::classes::tween::TransitionType, ease_type: crate::classes::tween::EaseType,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, f64, crate::classes::tween::TransitionType, crate::classes::tween::EaseType); + let args = (name, duration, trans_type, ease_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(275usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "capture", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::capture_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn capture(&mut self, name: impl AsArg < StringName >, duration: f64,) { + self.capture_ex(name, duration,) . done() + } + #[inline] + pub fn capture_ex < 'a > (&'a mut self, name: impl AsArg < StringName > + 'a, duration: f64,) -> ExCapture < 'a > { + ExCapture::new(self, name, duration,) + } + pub fn set_reset_on_save_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(276usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "set_reset_on_save_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_reset_on_save_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(277usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "is_reset_on_save_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_animation(&self, animation: impl AsObjectArg < crate::classes::Animation >,) -> StringName { + type CallSig = (StringName, ObjectArg < crate::classes::Animation >); + let args = (animation.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(278usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "find_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_animation_library(&self, animation: impl AsObjectArg < crate::classes::Animation >,) -> StringName { + type CallSig = (StringName, ObjectArg < crate::classes::Animation >); + let args = (animation.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(279usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationMixer", "find_animation_library", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationMixer { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationMixer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationMixer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AnimationMixer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationMixer { + + } + impl std::ops::Deref for AnimationMixer { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationMixer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationMixer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationMixer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationMixer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AnimationMixer::capture_ex`][super::AnimationMixer::capture_ex]."] +#[must_use] +pub struct ExCapture < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationMixer, name: CowArg < 'a, StringName >, duration: f64, trans_type: crate::classes::tween::TransitionType, ease_type: crate::classes::tween::EaseType, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCapture < 'a > { + fn new(surround_object: &'a mut re_export::AnimationMixer, name: impl AsArg < StringName > + 'a, duration: f64,) -> Self { + let trans_type = crate::obj::EngineEnum::from_ord(0); + let ease_type = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), duration: duration, trans_type: trans_type, ease_type: ease_type, + } + } + #[inline] + pub fn trans_type(self, trans_type: crate::classes::tween::TransitionType) -> Self { + Self { + trans_type: trans_type, .. self + } + } + #[inline] + pub fn ease_type(self, ease_type: crate::classes::tween::EaseType) -> Self { + Self { + ease_type: ease_type, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, duration, trans_type, ease_type, + } + = self; + re_export::AnimationMixer::capture_full(surround_object, name, duration, trans_type, ease_type,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AnimationCallbackModeProcess { + ord: i32 +} +impl AnimationCallbackModeProcess { + #[doc(alias = "ANIMATION_CALLBACK_MODE_PROCESS_PHYSICS")] + #[doc = "Godot enumerator name: `ANIMATION_CALLBACK_MODE_PROCESS_PHYSICS`"] + pub const PHYSICS: AnimationCallbackModeProcess = AnimationCallbackModeProcess { + ord: 0i32 + }; + #[doc(alias = "ANIMATION_CALLBACK_MODE_PROCESS_IDLE")] + #[doc = "Godot enumerator name: `ANIMATION_CALLBACK_MODE_PROCESS_IDLE`"] + pub const IDLE: AnimationCallbackModeProcess = AnimationCallbackModeProcess { + ord: 1i32 + }; + #[doc(alias = "ANIMATION_CALLBACK_MODE_PROCESS_MANUAL")] + #[doc = "Godot enumerator name: `ANIMATION_CALLBACK_MODE_PROCESS_MANUAL`"] + pub const MANUAL: AnimationCallbackModeProcess = AnimationCallbackModeProcess { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AnimationCallbackModeProcess { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AnimationCallbackModeProcess") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AnimationCallbackModeProcess { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PHYSICS => "PHYSICS", Self::IDLE => "IDLE", Self::MANUAL => "MANUAL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PHYSICS => "ANIMATION_CALLBACK_MODE_PROCESS_PHYSICS", Self::IDLE => "ANIMATION_CALLBACK_MODE_PROCESS_IDLE", Self::MANUAL => "ANIMATION_CALLBACK_MODE_PROCESS_MANUAL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AnimationCallbackModeProcess { + type Via = i32; + +} +impl crate::meta::ToGodot for AnimationCallbackModeProcess { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AnimationCallbackModeProcess { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AnimationCallbackModeMethod { + ord: i32 +} +impl AnimationCallbackModeMethod { + #[doc(alias = "ANIMATION_CALLBACK_MODE_METHOD_DEFERRED")] + #[doc = "Godot enumerator name: `ANIMATION_CALLBACK_MODE_METHOD_DEFERRED`"] + pub const DEFERRED: AnimationCallbackModeMethod = AnimationCallbackModeMethod { + ord: 0i32 + }; + #[doc(alias = "ANIMATION_CALLBACK_MODE_METHOD_IMMEDIATE")] + #[doc = "Godot enumerator name: `ANIMATION_CALLBACK_MODE_METHOD_IMMEDIATE`"] + pub const IMMEDIATE: AnimationCallbackModeMethod = AnimationCallbackModeMethod { + ord: 1i32 + }; + +} +impl std::fmt::Debug for AnimationCallbackModeMethod { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AnimationCallbackModeMethod") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AnimationCallbackModeMethod { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFERRED => "DEFERRED", Self::IMMEDIATE => "IMMEDIATE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFERRED => "ANIMATION_CALLBACK_MODE_METHOD_DEFERRED", Self::IMMEDIATE => "ANIMATION_CALLBACK_MODE_METHOD_IMMEDIATE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AnimationCallbackModeMethod { + type Via = i32; + +} +impl crate::meta::ToGodot for AnimationCallbackModeMethod { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AnimationCallbackModeMethod { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AnimationCallbackModeDiscrete { + ord: i32 +} +impl AnimationCallbackModeDiscrete { + #[doc(alias = "ANIMATION_CALLBACK_MODE_DISCRETE_DOMINANT")] + #[doc = "Godot enumerator name: `ANIMATION_CALLBACK_MODE_DISCRETE_DOMINANT`"] + pub const DOMINANT: AnimationCallbackModeDiscrete = AnimationCallbackModeDiscrete { + ord: 0i32 + }; + #[doc(alias = "ANIMATION_CALLBACK_MODE_DISCRETE_RECESSIVE")] + #[doc = "Godot enumerator name: `ANIMATION_CALLBACK_MODE_DISCRETE_RECESSIVE`"] + pub const RECESSIVE: AnimationCallbackModeDiscrete = AnimationCallbackModeDiscrete { + ord: 1i32 + }; + #[doc(alias = "ANIMATION_CALLBACK_MODE_DISCRETE_FORCE_CONTINUOUS")] + #[doc = "Godot enumerator name: `ANIMATION_CALLBACK_MODE_DISCRETE_FORCE_CONTINUOUS`"] + pub const FORCE_CONTINUOUS: AnimationCallbackModeDiscrete = AnimationCallbackModeDiscrete { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AnimationCallbackModeDiscrete { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AnimationCallbackModeDiscrete") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AnimationCallbackModeDiscrete { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DOMINANT => "DOMINANT", Self::RECESSIVE => "RECESSIVE", Self::FORCE_CONTINUOUS => "FORCE_CONTINUOUS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DOMINANT => "ANIMATION_CALLBACK_MODE_DISCRETE_DOMINANT", Self::RECESSIVE => "ANIMATION_CALLBACK_MODE_DISCRETE_RECESSIVE", Self::FORCE_CONTINUOUS => "ANIMATION_CALLBACK_MODE_DISCRETE_FORCE_CONTINUOUS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AnimationCallbackModeDiscrete { + type Via = i32; + +} +impl crate::meta::ToGodot for AnimationCallbackModeDiscrete { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AnimationCallbackModeDiscrete { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node.rs new file mode 100644 index 0000000..7afd67e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node.rs @@ -0,0 +1,565 @@ +#![doc = "Sidecar module for class [`AnimationNode`][crate::classes::AnimationNode].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNode` enums](https://docs.godotengine.org/en/stable/classes/class_animationnode.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNode.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`animation_node`][crate::classes::animation_node]: sidecar module with related enum/flag types\n* [`IAnimationNode`][crate::classes::IAnimationNode]: virtual methods\n\n\nSee also [Godot docs for `AnimationNode`](https://docs.godotengine.org/en/stable/classes/class_animationnode.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNode::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNode { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNode`][crate::classes::AnimationNode].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNode` methods](https://docs.godotengine.org/en/stable/classes/class_animationnode.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNode: crate::obj::GodotClass < Base = AnimationNode > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNode { + pub fn add_input(&mut self, name: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(280usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "add_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_input(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(281usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "remove_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_input_name(&mut self, input: i32, name: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, i32, CowArg < 'a0, GString >); + let args = (input, name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(282usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "set_input_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_input_name(&self, input: i32,) -> GString { + type CallSig = (GString, i32); + let args = (input,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(283usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "get_input_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_input_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(284usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "get_input_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_input(&self, name: impl AsArg < GString >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(285usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "find_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_filter_path(&mut self, path: impl AsArg < NodePath >, enable: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >, bool); + let args = (path.into_arg(), enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(286usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "set_filter_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_path_filtered(&self, path: impl AsArg < NodePath >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(287usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "is_path_filtered", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_filter_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(288usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "set_filter_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_filter_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(289usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "is_filter_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn blend_animation_full(&mut self, animation: CowArg < StringName >, time: f64, delta: f64, seeked: bool, is_external_seeking: bool, blend: f32, looped_flag: crate::classes::animation::LoopedFlag,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, f64, f64, bool, bool, f32, crate::classes::animation::LoopedFlag); + let args = (animation, time, delta, seeked, is_external_seeking, blend, looped_flag,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(290usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "blend_animation", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::blend_animation_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn blend_animation(&mut self, animation: impl AsArg < StringName >, time: f64, delta: f64, seeked: bool, is_external_seeking: bool, blend: f32,) { + self.blend_animation_ex(animation, time, delta, seeked, is_external_seeking, blend,) . done() + } + #[inline] + pub fn blend_animation_ex < 'a > (&'a mut self, animation: impl AsArg < StringName > + 'a, time: f64, delta: f64, seeked: bool, is_external_seeking: bool, blend: f32,) -> ExBlendAnimation < 'a > { + ExBlendAnimation::new(self, animation, time, delta, seeked, is_external_seeking, blend,) + } + pub(crate) fn blend_node_full(&mut self, name: CowArg < StringName >, node: ObjectArg < crate::classes::AnimationNode >, time: f64, seek: bool, is_external_seeking: bool, blend: f32, filter: crate::classes::animation_node::FilterAction, sync: bool, test_only: bool,) -> f64 { + type CallSig < 'a0, > = (f64, CowArg < 'a0, StringName >, ObjectArg < crate::classes::AnimationNode >, f64, bool, bool, f32, crate::classes::animation_node::FilterAction, bool, bool); + let args = (name, node, time, seek, is_external_seeking, blend, filter, sync, test_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(291usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "blend_node", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::blend_node_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn blend_node(&mut self, name: impl AsArg < StringName >, node: impl AsObjectArg < crate::classes::AnimationNode >, time: f64, seek: bool, is_external_seeking: bool, blend: f32,) -> f64 { + self.blend_node_ex(name, node, time, seek, is_external_seeking, blend,) . done() + } + #[inline] + pub fn blend_node_ex < 'a > (&'a mut self, name: impl AsArg < StringName > + 'a, node: impl AsObjectArg < crate::classes::AnimationNode >, time: f64, seek: bool, is_external_seeking: bool, blend: f32,) -> ExBlendNode < 'a > { + ExBlendNode::new(self, name, node, time, seek, is_external_seeking, blend,) + } + pub(crate) fn blend_input_full(&mut self, input_index: i32, time: f64, seek: bool, is_external_seeking: bool, blend: f32, filter: crate::classes::animation_node::FilterAction, sync: bool, test_only: bool,) -> f64 { + type CallSig = (f64, i32, f64, bool, bool, f32, crate::classes::animation_node::FilterAction, bool, bool); + let args = (input_index, time, seek, is_external_seeking, blend, filter, sync, test_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(292usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "blend_input", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::blend_input_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn blend_input(&mut self, input_index: i32, time: f64, seek: bool, is_external_seeking: bool, blend: f32,) -> f64 { + self.blend_input_ex(input_index, time, seek, is_external_seeking, blend,) . done() + } + #[inline] + pub fn blend_input_ex < 'a > (&'a mut self, input_index: i32, time: f64, seek: bool, is_external_seeking: bool, blend: f32,) -> ExBlendInput < 'a > { + ExBlendInput::new(self, input_index, time, seek, is_external_seeking, blend,) + } + pub fn set_parameter(&mut self, name: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (name.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(293usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "set_parameter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_parameter(&self, name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(294usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNode", "get_parameter", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNode { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNode")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNode { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNode { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNode { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNode { + + } + impl crate::obj::cap::GodotDefault for AnimationNode { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNode { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNode { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNode`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNode { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AnimationNode::blend_animation_ex`][super::AnimationNode::blend_animation_ex]."] +#[must_use] +pub struct ExBlendAnimation < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationNode, animation: CowArg < 'a, StringName >, time: f64, delta: f64, seeked: bool, is_external_seeking: bool, blend: f32, looped_flag: crate::classes::animation::LoopedFlag, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBlendAnimation < 'a > { + fn new(surround_object: &'a mut re_export::AnimationNode, animation: impl AsArg < StringName > + 'a, time: f64, delta: f64, seeked: bool, is_external_seeking: bool, blend: f32,) -> Self { + let looped_flag = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, animation: animation.into_arg(), time: time, delta: delta, seeked: seeked, is_external_seeking: is_external_seeking, blend: blend, looped_flag: looped_flag, + } + } + #[inline] + pub fn looped_flag(self, looped_flag: crate::classes::animation::LoopedFlag) -> Self { + Self { + looped_flag: looped_flag, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, animation, time, delta, seeked, is_external_seeking, blend, looped_flag, + } + = self; + re_export::AnimationNode::blend_animation_full(surround_object, animation, time, delta, seeked, is_external_seeking, blend, looped_flag,) + } +} +#[doc = "Default-param extender for [`AnimationNode::blend_node_ex`][super::AnimationNode::blend_node_ex]."] +#[must_use] +pub struct ExBlendNode < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationNode, name: CowArg < 'a, StringName >, node: ObjectCow < crate::classes::AnimationNode >, time: f64, seek: bool, is_external_seeking: bool, blend: f32, filter: crate::classes::animation_node::FilterAction, sync: bool, test_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBlendNode < 'a > { + fn new(surround_object: &'a mut re_export::AnimationNode, name: impl AsArg < StringName > + 'a, node: impl AsObjectArg < crate::classes::AnimationNode >, time: f64, seek: bool, is_external_seeking: bool, blend: f32,) -> Self { + let filter = crate::obj::EngineEnum::from_ord(0); + let sync = true; + let test_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), node: node.consume_arg(), time: time, seek: seek, is_external_seeking: is_external_seeking, blend: blend, filter: filter, sync: sync, test_only: test_only, + } + } + #[inline] + pub fn filter(self, filter: crate::classes::animation_node::FilterAction) -> Self { + Self { + filter: filter, .. self + } + } + #[inline] + pub fn sync(self, sync: bool) -> Self { + Self { + sync: sync, .. self + } + } + #[inline] + pub fn test_only(self, test_only: bool) -> Self { + Self { + test_only: test_only, .. self + } + } + #[inline] + pub fn done(self) -> f64 { + let Self { + _phantom, surround_object, name, node, time, seek, is_external_seeking, blend, filter, sync, test_only, + } + = self; + re_export::AnimationNode::blend_node_full(surround_object, name, node.cow_as_object_arg(), time, seek, is_external_seeking, blend, filter, sync, test_only,) + } +} +#[doc = "Default-param extender for [`AnimationNode::blend_input_ex`][super::AnimationNode::blend_input_ex]."] +#[must_use] +pub struct ExBlendInput < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationNode, input_index: i32, time: f64, seek: bool, is_external_seeking: bool, blend: f32, filter: crate::classes::animation_node::FilterAction, sync: bool, test_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBlendInput < 'a > { + fn new(surround_object: &'a mut re_export::AnimationNode, input_index: i32, time: f64, seek: bool, is_external_seeking: bool, blend: f32,) -> Self { + let filter = crate::obj::EngineEnum::from_ord(0); + let sync = true; + let test_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, input_index: input_index, time: time, seek: seek, is_external_seeking: is_external_seeking, blend: blend, filter: filter, sync: sync, test_only: test_only, + } + } + #[inline] + pub fn filter(self, filter: crate::classes::animation_node::FilterAction) -> Self { + Self { + filter: filter, .. self + } + } + #[inline] + pub fn sync(self, sync: bool) -> Self { + Self { + sync: sync, .. self + } + } + #[inline] + pub fn test_only(self, test_only: bool) -> Self { + Self { + test_only: test_only, .. self + } + } + #[inline] + pub fn done(self) -> f64 { + let Self { + _phantom, surround_object, input_index, time, seek, is_external_seeking, blend, filter, sync, test_only, + } + = self; + re_export::AnimationNode::blend_input_full(surround_object, input_index, time, seek, is_external_seeking, blend, filter, sync, test_only,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FilterAction { + ord: i32 +} +impl FilterAction { + #[doc(alias = "FILTER_IGNORE")] + #[doc = "Godot enumerator name: `FILTER_IGNORE`"] + pub const IGNORE: FilterAction = FilterAction { + ord: 0i32 + }; + #[doc(alias = "FILTER_PASS")] + #[doc = "Godot enumerator name: `FILTER_PASS`"] + pub const PASS: FilterAction = FilterAction { + ord: 1i32 + }; + #[doc(alias = "FILTER_STOP")] + #[doc = "Godot enumerator name: `FILTER_STOP`"] + pub const STOP: FilterAction = FilterAction { + ord: 2i32 + }; + #[doc(alias = "FILTER_BLEND")] + #[doc = "Godot enumerator name: `FILTER_BLEND`"] + pub const BLEND: FilterAction = FilterAction { + ord: 3i32 + }; + +} +impl std::fmt::Debug for FilterAction { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FilterAction") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FilterAction { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IGNORE => "IGNORE", Self::PASS => "PASS", Self::STOP => "STOP", Self::BLEND => "BLEND", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IGNORE => "FILTER_IGNORE", Self::PASS => "FILTER_PASS", Self::STOP => "FILTER_STOP", Self::BLEND => "FILTER_BLEND", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FilterAction { + type Via = i32; + +} +impl crate::meta::ToGodot for FilterAction { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FilterAction { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_add2.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_add2.rs new file mode 100644 index 0000000..9a2a013 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_add2.rs @@ -0,0 +1,238 @@ +#![doc = "Sidecar module for class [`AnimationNodeAdd2`][crate::classes::AnimationNodeAdd2].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeAdd2` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodeadd2.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeAdd2.`\n\nInherits [`AnimationNodeSync`][crate::classes::AnimationNodeSync].\n\nRelated symbols:\n\n* [`IAnimationNodeAdd2`][crate::classes::IAnimationNodeAdd2]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeAdd2`](https://docs.godotengine.org/en/stable/classes/class_animationnodeadd2.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeAdd2::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeAdd2 { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeAdd2`][crate::classes::AnimationNodeAdd2].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeAdd2` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodeadd2.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeAdd2: crate::obj::GodotClass < Base = AnimationNodeAdd2 > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeAdd2 { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeAdd2 { + type Base = crate::classes::AnimationNodeSync; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeAdd2")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeAdd2 { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNodeSync > for AnimationNodeAdd2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeAdd2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeAdd2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeAdd2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeAdd2 { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeAdd2 { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeAdd2 { + type Target = crate::classes::AnimationNodeSync; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeAdd2 { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeAdd2`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeAdd2 { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeAdd2 > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeSync > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_add3.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_add3.rs new file mode 100644 index 0000000..df8ba01 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_add3.rs @@ -0,0 +1,238 @@ +#![doc = "Sidecar module for class [`AnimationNodeAdd3`][crate::classes::AnimationNodeAdd3].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeAdd3` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodeadd3.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeAdd3.`\n\nInherits [`AnimationNodeSync`][crate::classes::AnimationNodeSync].\n\nRelated symbols:\n\n* [`IAnimationNodeAdd3`][crate::classes::IAnimationNodeAdd3]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeAdd3`](https://docs.godotengine.org/en/stable/classes/class_animationnodeadd3.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeAdd3::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeAdd3 { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeAdd3`][crate::classes::AnimationNodeAdd3].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeAdd3` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodeadd3.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeAdd3: crate::obj::GodotClass < Base = AnimationNodeAdd3 > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeAdd3 { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeAdd3 { + type Base = crate::classes::AnimationNodeSync; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeAdd3")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeAdd3 { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNodeSync > for AnimationNodeAdd3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeAdd3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeAdd3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeAdd3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeAdd3 { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeAdd3 { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeAdd3 { + type Target = crate::classes::AnimationNodeSync; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeAdd3 { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeAdd3`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeAdd3 { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeAdd3 > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeSync > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_animation.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_animation.rs new file mode 100644 index 0000000..065a3ea --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_animation.rs @@ -0,0 +1,420 @@ +#![doc = "Sidecar module for class [`AnimationNodeAnimation`][crate::classes::AnimationNodeAnimation].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeAnimation` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodeanimation.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeAnimation.`\n\nInherits [`AnimationRootNode`][crate::classes::AnimationRootNode].\n\nRelated symbols:\n\n* [`animation_node_animation`][crate::classes::animation_node_animation]: sidecar module with related enum/flag types\n* [`IAnimationNodeAnimation`][crate::classes::IAnimationNodeAnimation]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeAnimation`](https://docs.godotengine.org/en/stable/classes/class_animationnodeanimation.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeAnimation::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeAnimation { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeAnimation`][crate::classes::AnimationNodeAnimation].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeAnimation` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodeanimation.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeAnimation: crate::obj::GodotClass < Base = AnimationNodeAnimation > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeAnimation { + pub fn set_animation(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(295usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "set_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(296usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "get_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_play_mode(&mut self, mode: crate::classes::animation_node_animation::PlayMode,) { + type CallSig = ((), crate::classes::animation_node_animation::PlayMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(297usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "set_play_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_play_mode(&self,) -> crate::classes::animation_node_animation::PlayMode { + type CallSig = (crate::classes::animation_node_animation::PlayMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(298usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "get_play_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_custom_timeline(&mut self, use_custom_timeline: bool,) { + type CallSig = ((), bool); + let args = (use_custom_timeline,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(299usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "set_use_custom_timeline", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_custom_timeline(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(300usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "is_using_custom_timeline", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_timeline_length(&mut self, timeline_length: f64,) { + type CallSig = ((), f64); + let args = (timeline_length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(301usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "set_timeline_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_timeline_length(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(302usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "get_timeline_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stretch_time_scale(&mut self, stretch_time_scale: bool,) { + type CallSig = ((), bool); + let args = (stretch_time_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(303usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "set_stretch_time_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_stretching_time_scale(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(304usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "is_stretching_time_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_start_offset(&mut self, start_offset: f64,) { + type CallSig = ((), f64); + let args = (start_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(305usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "set_start_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_start_offset(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(306usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "get_start_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop_mode(&mut self, loop_mode: crate::classes::animation::LoopMode,) { + type CallSig = ((), crate::classes::animation::LoopMode); + let args = (loop_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(307usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "set_loop_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_loop_mode(&self,) -> crate::classes::animation::LoopMode { + type CallSig = (crate::classes::animation::LoopMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(308usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeAnimation", "get_loop_mode", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeAnimation { + type Base = crate::classes::AnimationRootNode; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeAnimation")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeAnimation { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationRootNode > for AnimationNodeAnimation { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeAnimation { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeAnimation { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeAnimation { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeAnimation { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeAnimation { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeAnimation { + type Target = crate::classes::AnimationRootNode; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeAnimation { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeAnimation`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeAnimation { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeAnimation > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationRootNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PlayMode { + ord: i32 +} +impl PlayMode { + #[doc(alias = "PLAY_MODE_FORWARD")] + #[doc = "Godot enumerator name: `PLAY_MODE_FORWARD`"] + pub const FORWARD: PlayMode = PlayMode { + ord: 0i32 + }; + #[doc(alias = "PLAY_MODE_BACKWARD")] + #[doc = "Godot enumerator name: `PLAY_MODE_BACKWARD`"] + pub const BACKWARD: PlayMode = PlayMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for PlayMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PlayMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PlayMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FORWARD => "FORWARD", Self::BACKWARD => "BACKWARD", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FORWARD => "PLAY_MODE_FORWARD", Self::BACKWARD => "PLAY_MODE_BACKWARD", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PlayMode { + type Via = i32; + +} +impl crate::meta::ToGodot for PlayMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PlayMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend2.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend2.rs new file mode 100644 index 0000000..f9e3a99 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend2.rs @@ -0,0 +1,238 @@ +#![doc = "Sidecar module for class [`AnimationNodeBlend2`][crate::classes::AnimationNodeBlend2].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeBlend2` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodeblend2.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeBlend2.`\n\nInherits [`AnimationNodeSync`][crate::classes::AnimationNodeSync].\n\nRelated symbols:\n\n* [`IAnimationNodeBlend2`][crate::classes::IAnimationNodeBlend2]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeBlend2`](https://docs.godotengine.org/en/stable/classes/class_animationnodeblend2.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeBlend2::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeBlend2 { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeBlend2`][crate::classes::AnimationNodeBlend2].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeBlend2` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodeblend2.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeBlend2: crate::obj::GodotClass < Base = AnimationNodeBlend2 > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeBlend2 { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeBlend2 { + type Base = crate::classes::AnimationNodeSync; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeBlend2")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeBlend2 { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNodeSync > for AnimationNodeBlend2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeBlend2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeBlend2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeBlend2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeBlend2 { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeBlend2 { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeBlend2 { + type Target = crate::classes::AnimationNodeSync; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeBlend2 { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeBlend2`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeBlend2 { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeBlend2 > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeSync > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend3.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend3.rs new file mode 100644 index 0000000..f86704a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend3.rs @@ -0,0 +1,238 @@ +#![doc = "Sidecar module for class [`AnimationNodeBlend3`][crate::classes::AnimationNodeBlend3].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeBlend3` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodeblend3.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeBlend3.`\n\nInherits [`AnimationNodeSync`][crate::classes::AnimationNodeSync].\n\nRelated symbols:\n\n* [`IAnimationNodeBlend3`][crate::classes::IAnimationNodeBlend3]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeBlend3`](https://docs.godotengine.org/en/stable/classes/class_animationnodeblend3.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeBlend3::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeBlend3 { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeBlend3`][crate::classes::AnimationNodeBlend3].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeBlend3` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodeblend3.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeBlend3: crate::obj::GodotClass < Base = AnimationNodeBlend3 > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeBlend3 { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeBlend3 { + type Base = crate::classes::AnimationNodeSync; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeBlend3")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeBlend3 { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNodeSync > for AnimationNodeBlend3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeBlend3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeBlend3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeBlend3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeBlend3 { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeBlend3 { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeBlend3 { + type Target = crate::classes::AnimationNodeSync; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeBlend3 { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeBlend3`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeBlend3 { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeBlend3 > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeSync > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend_space_1d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend_space_1d.rs new file mode 100644 index 0000000..386d0db --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend_space_1d.rs @@ -0,0 +1,502 @@ +#![doc = "Sidecar module for class [`AnimationNodeBlendSpace1D`][crate::classes::AnimationNodeBlendSpace1D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeBlendSpace1D` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodeblendspace1d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeBlendSpace1D.`\n\nInherits [`AnimationRootNode`][crate::classes::AnimationRootNode].\n\nRelated symbols:\n\n* [`animation_node_blend_space_1d`][crate::classes::animation_node_blend_space_1d]: sidecar module with related enum/flag types\n* [`IAnimationNodeBlendSpace1D`][crate::classes::IAnimationNodeBlendSpace1D]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeBlendSpace1D`](https://docs.godotengine.org/en/stable/classes/class_animationnodeblendspace1d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeBlendSpace1D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeBlendSpace1D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeBlendSpace1D`][crate::classes::AnimationNodeBlendSpace1D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeBlendSpace1D` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodeblendspace1d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeBlendSpace1D: crate::obj::GodotClass < Base = AnimationNodeBlendSpace1D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeBlendSpace1D { + pub(crate) fn add_blend_point_full(&mut self, node: ObjectArg < crate::classes::AnimationRootNode >, pos: f32, at_index: i32,) { + type CallSig = ((), ObjectArg < crate::classes::AnimationRootNode >, f32, i32); + let args = (node, pos, at_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(309usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "add_blend_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_blend_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_blend_point(&mut self, node: impl AsObjectArg < crate::classes::AnimationRootNode >, pos: f32,) { + self.add_blend_point_ex(node, pos,) . done() + } + #[inline] + pub fn add_blend_point_ex < 'a > (&'a mut self, node: impl AsObjectArg < crate::classes::AnimationRootNode >, pos: f32,) -> ExAddBlendPoint < 'a > { + ExAddBlendPoint::new(self, node, pos,) + } + pub fn set_blend_point_position(&mut self, point: i32, pos: f32,) { + type CallSig = ((), i32, f32); + let args = (point, pos,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(310usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "set_blend_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_point_position(&self, point: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(311usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "get_blend_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_point_node(&mut self, point: i32, node: impl AsObjectArg < crate::classes::AnimationRootNode >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::AnimationRootNode >); + let args = (point, node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(312usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "set_blend_point_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_point_node(&self, point: i32,) -> Option < Gd < crate::classes::AnimationRootNode > > { + type CallSig = (Option < Gd < crate::classes::AnimationRootNode > >, i32); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(313usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "get_blend_point_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_blend_point(&mut self, point: i32,) { + type CallSig = ((), i32); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(314usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "remove_blend_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_point_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(315usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "get_blend_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_min_space(&mut self, min_space: f32,) { + type CallSig = ((), f32); + let args = (min_space,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(316usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "set_min_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_min_space(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(317usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "get_min_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_space(&mut self, max_space: f32,) { + type CallSig = ((), f32); + let args = (max_space,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(318usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "set_max_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_space(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(319usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "get_max_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_snap(&mut self, snap: f32,) { + type CallSig = ((), f32); + let args = (snap,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(320usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "set_snap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_snap(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(321usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "get_snap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_value_label(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(322usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "set_value_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_value_label(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(323usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "get_value_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_mode(&mut self, mode: crate::classes::animation_node_blend_space_1d::BlendMode,) { + type CallSig = ((), crate::classes::animation_node_blend_space_1d::BlendMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(324usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "set_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_mode(&self,) -> crate::classes::animation_node_blend_space_1d::BlendMode { + type CallSig = (crate::classes::animation_node_blend_space_1d::BlendMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(325usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "get_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_sync(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(326usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "set_use_sync", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_sync(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(327usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace1D", "is_using_sync", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeBlendSpace1D { + type Base = crate::classes::AnimationRootNode; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeBlendSpace1D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeBlendSpace1D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationRootNode > for AnimationNodeBlendSpace1D { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeBlendSpace1D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeBlendSpace1D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeBlendSpace1D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeBlendSpace1D { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeBlendSpace1D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeBlendSpace1D { + type Target = crate::classes::AnimationRootNode; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeBlendSpace1D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeBlendSpace1D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeBlendSpace1D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeBlendSpace1D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationRootNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AnimationNodeBlendSpace1D::add_blend_point_ex`][super::AnimationNodeBlendSpace1D::add_blend_point_ex]."] +#[must_use] +pub struct ExAddBlendPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationNodeBlendSpace1D, node: ObjectCow < crate::classes::AnimationRootNode >, pos: f32, at_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddBlendPoint < 'a > { + fn new(surround_object: &'a mut re_export::AnimationNodeBlendSpace1D, node: impl AsObjectArg < crate::classes::AnimationRootNode >, pos: f32,) -> Self { + let at_index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, node: node.consume_arg(), pos: pos, at_index: at_index, + } + } + #[inline] + pub fn at_index(self, at_index: i32) -> Self { + Self { + at_index: at_index, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, node, pos, at_index, + } + = self; + re_export::AnimationNodeBlendSpace1D::add_blend_point_full(surround_object, node.cow_as_object_arg(), pos, at_index,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BlendMode { + ord: i32 +} +impl BlendMode { + #[doc(alias = "BLEND_MODE_INTERPOLATED")] + #[doc = "Godot enumerator name: `BLEND_MODE_INTERPOLATED`"] + pub const INTERPOLATED: BlendMode = BlendMode { + ord: 0i32 + }; + #[doc(alias = "BLEND_MODE_DISCRETE")] + #[doc = "Godot enumerator name: `BLEND_MODE_DISCRETE`"] + pub const DISCRETE: BlendMode = BlendMode { + ord: 1i32 + }; + #[doc(alias = "BLEND_MODE_DISCRETE_CARRY")] + #[doc = "Godot enumerator name: `BLEND_MODE_DISCRETE_CARRY`"] + pub const DISCRETE_CARRY: BlendMode = BlendMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for BlendMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BlendMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BlendMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INTERPOLATED => "INTERPOLATED", Self::DISCRETE => "DISCRETE", Self::DISCRETE_CARRY => "DISCRETE_CARRY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INTERPOLATED => "BLEND_MODE_INTERPOLATED", Self::DISCRETE => "BLEND_MODE_DISCRETE", Self::DISCRETE_CARRY => "BLEND_MODE_DISCRETE_CARRY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BlendMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BlendMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BlendMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend_space_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend_space_2d.rs new file mode 100644 index 0000000..2b767bf --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend_space_2d.rs @@ -0,0 +1,603 @@ +#![doc = "Sidecar module for class [`AnimationNodeBlendSpace2D`][crate::classes::AnimationNodeBlendSpace2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeBlendSpace2D` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodeblendspace2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeBlendSpace2D.`\n\nInherits [`AnimationRootNode`][crate::classes::AnimationRootNode].\n\nRelated symbols:\n\n* [`animation_node_blend_space_2d`][crate::classes::animation_node_blend_space_2d]: sidecar module with related enum/flag types\n* [`IAnimationNodeBlendSpace2D`][crate::classes::IAnimationNodeBlendSpace2D]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeBlendSpace2D`](https://docs.godotengine.org/en/stable/classes/class_animationnodeblendspace2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeBlendSpace2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeBlendSpace2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeBlendSpace2D`][crate::classes::AnimationNodeBlendSpace2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeBlendSpace2D` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodeblendspace2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeBlendSpace2D: crate::obj::GodotClass < Base = AnimationNodeBlendSpace2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeBlendSpace2D { + pub(crate) fn add_blend_point_full(&mut self, node: ObjectArg < crate::classes::AnimationRootNode >, pos: Vector2, at_index: i32,) { + type CallSig = ((), ObjectArg < crate::classes::AnimationRootNode >, Vector2, i32); + let args = (node, pos, at_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(328usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "add_blend_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_blend_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_blend_point(&mut self, node: impl AsObjectArg < crate::classes::AnimationRootNode >, pos: Vector2,) { + self.add_blend_point_ex(node, pos,) . done() + } + #[inline] + pub fn add_blend_point_ex < 'a > (&'a mut self, node: impl AsObjectArg < crate::classes::AnimationRootNode >, pos: Vector2,) -> ExAddBlendPoint < 'a > { + ExAddBlendPoint::new(self, node, pos,) + } + pub fn set_blend_point_position(&mut self, point: i32, pos: Vector2,) { + type CallSig = ((), i32, Vector2); + let args = (point, pos,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(329usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "set_blend_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_point_position(&self, point: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(330usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_blend_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_point_node(&mut self, point: i32, node: impl AsObjectArg < crate::classes::AnimationRootNode >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::AnimationRootNode >); + let args = (point, node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(331usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "set_blend_point_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_point_node(&self, point: i32,) -> Option < Gd < crate::classes::AnimationRootNode > > { + type CallSig = (Option < Gd < crate::classes::AnimationRootNode > >, i32); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(332usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_blend_point_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_blend_point(&mut self, point: i32,) { + type CallSig = ((), i32); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(333usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "remove_blend_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_point_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(334usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_blend_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_triangle_full(&mut self, x: i32, y: i32, z: i32, at_index: i32,) { + type CallSig = ((), i32, i32, i32, i32); + let args = (x, y, z, at_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(335usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "add_triangle", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_triangle_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_triangle(&mut self, x: i32, y: i32, z: i32,) { + self.add_triangle_ex(x, y, z,) . done() + } + #[inline] + pub fn add_triangle_ex < 'a > (&'a mut self, x: i32, y: i32, z: i32,) -> ExAddTriangle < 'a > { + ExAddTriangle::new(self, x, y, z,) + } + pub fn get_triangle_point(&mut self, triangle: i32, point: i32,) -> i32 { + type CallSig = (i32, i32, i32); + let args = (triangle, point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(336usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_triangle_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_triangle(&mut self, triangle: i32,) { + type CallSig = ((), i32); + let args = (triangle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(337usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "remove_triangle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_triangle_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(338usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_triangle_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_min_space(&mut self, min_space: Vector2,) { + type CallSig = ((), Vector2); + let args = (min_space,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(339usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "set_min_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_min_space(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(340usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_min_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_space(&mut self, max_space: Vector2,) { + type CallSig = ((), Vector2); + let args = (max_space,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(341usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "set_max_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_space(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(342usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_max_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_snap(&mut self, snap: Vector2,) { + type CallSig = ((), Vector2); + let args = (snap,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(343usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "set_snap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_snap(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(344usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_snap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_x_label(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(345usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "set_x_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_x_label(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(346usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_x_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_y_label(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(347usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "set_y_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_y_label(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(348usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_y_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_triangles(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(349usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "set_auto_triangles", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_triangles(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(350usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_auto_triangles", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_mode(&mut self, mode: crate::classes::animation_node_blend_space_2d::BlendMode,) { + type CallSig = ((), crate::classes::animation_node_blend_space_2d::BlendMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(351usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "set_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_mode(&self,) -> crate::classes::animation_node_blend_space_2d::BlendMode { + type CallSig = (crate::classes::animation_node_blend_space_2d::BlendMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(352usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "get_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_sync(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(353usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "set_use_sync", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_sync(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(354usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendSpace2D", "is_using_sync", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeBlendSpace2D { + type Base = crate::classes::AnimationRootNode; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeBlendSpace2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeBlendSpace2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationRootNode > for AnimationNodeBlendSpace2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeBlendSpace2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeBlendSpace2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeBlendSpace2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeBlendSpace2D { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeBlendSpace2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeBlendSpace2D { + type Target = crate::classes::AnimationRootNode; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeBlendSpace2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeBlendSpace2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeBlendSpace2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeBlendSpace2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationRootNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AnimationNodeBlendSpace2D::add_blend_point_ex`][super::AnimationNodeBlendSpace2D::add_blend_point_ex]."] +#[must_use] +pub struct ExAddBlendPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationNodeBlendSpace2D, node: ObjectCow < crate::classes::AnimationRootNode >, pos: Vector2, at_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddBlendPoint < 'a > { + fn new(surround_object: &'a mut re_export::AnimationNodeBlendSpace2D, node: impl AsObjectArg < crate::classes::AnimationRootNode >, pos: Vector2,) -> Self { + let at_index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, node: node.consume_arg(), pos: pos, at_index: at_index, + } + } + #[inline] + pub fn at_index(self, at_index: i32) -> Self { + Self { + at_index: at_index, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, node, pos, at_index, + } + = self; + re_export::AnimationNodeBlendSpace2D::add_blend_point_full(surround_object, node.cow_as_object_arg(), pos, at_index,) + } +} +#[doc = "Default-param extender for [`AnimationNodeBlendSpace2D::add_triangle_ex`][super::AnimationNodeBlendSpace2D::add_triangle_ex]."] +#[must_use] +pub struct ExAddTriangle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationNodeBlendSpace2D, x: i32, y: i32, z: i32, at_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddTriangle < 'a > { + fn new(surround_object: &'a mut re_export::AnimationNodeBlendSpace2D, x: i32, y: i32, z: i32,) -> Self { + let at_index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, x: x, y: y, z: z, at_index: at_index, + } + } + #[inline] + pub fn at_index(self, at_index: i32) -> Self { + Self { + at_index: at_index, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, x, y, z, at_index, + } + = self; + re_export::AnimationNodeBlendSpace2D::add_triangle_full(surround_object, x, y, z, at_index,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BlendMode { + ord: i32 +} +impl BlendMode { + #[doc(alias = "BLEND_MODE_INTERPOLATED")] + #[doc = "Godot enumerator name: `BLEND_MODE_INTERPOLATED`"] + pub const INTERPOLATED: BlendMode = BlendMode { + ord: 0i32 + }; + #[doc(alias = "BLEND_MODE_DISCRETE")] + #[doc = "Godot enumerator name: `BLEND_MODE_DISCRETE`"] + pub const DISCRETE: BlendMode = BlendMode { + ord: 1i32 + }; + #[doc(alias = "BLEND_MODE_DISCRETE_CARRY")] + #[doc = "Godot enumerator name: `BLEND_MODE_DISCRETE_CARRY`"] + pub const DISCRETE_CARRY: BlendMode = BlendMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for BlendMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BlendMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BlendMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INTERPOLATED => "INTERPOLATED", Self::DISCRETE => "DISCRETE", Self::DISCRETE_CARRY => "DISCRETE_CARRY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INTERPOLATED => "BLEND_MODE_INTERPOLATED", Self::DISCRETE => "BLEND_MODE_DISCRETE", Self::DISCRETE_CARRY => "BLEND_MODE_DISCRETE_CARRY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BlendMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BlendMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BlendMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend_tree.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend_tree.rs new file mode 100644 index 0000000..a409c0c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_blend_tree.rs @@ -0,0 +1,370 @@ +#![doc = "Sidecar module for class [`AnimationNodeBlendTree`][crate::classes::AnimationNodeBlendTree].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeBlendTree` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodeblendtree.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeBlendTree.`\n\nInherits [`AnimationRootNode`][crate::classes::AnimationRootNode].\n\nRelated symbols:\n\n* [`animation_node_blend_tree`][crate::classes::animation_node_blend_tree]: sidecar module with related enum/flag types\n* [`IAnimationNodeBlendTree`][crate::classes::IAnimationNodeBlendTree]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeBlendTree`](https://docs.godotengine.org/en/stable/classes/class_animationnodeblendtree.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeBlendTree::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeBlendTree { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeBlendTree`][crate::classes::AnimationNodeBlendTree].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeBlendTree` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodeblendtree.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeBlendTree: crate::obj::GodotClass < Base = AnimationNodeBlendTree > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeBlendTree { + pub(crate) fn add_node_full(&mut self, name: CowArg < StringName >, node: ObjectArg < crate::classes::AnimationNode >, position: Vector2,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, ObjectArg < crate::classes::AnimationNode >, Vector2); + let args = (name, node, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(355usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendTree", "add_node", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_node_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_node(&mut self, name: impl AsArg < StringName >, node: impl AsObjectArg < crate::classes::AnimationNode >,) { + self.add_node_ex(name, node,) . done() + } + #[inline] + pub fn add_node_ex < 'a > (&'a mut self, name: impl AsArg < StringName > + 'a, node: impl AsObjectArg < crate::classes::AnimationNode >,) -> ExAddNode < 'a > { + ExAddNode::new(self, name, node,) + } + pub fn get_node(&self, name: impl AsArg < StringName >,) -> Option < Gd < crate::classes::AnimationNode > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::AnimationNode > >, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(356usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendTree", "get_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_node(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(357usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendTree", "remove_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rename_node(&mut self, name: impl AsArg < StringName >, new_name: impl AsArg < StringName >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name.into_arg(), new_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(358usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendTree", "rename_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_node(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(359usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendTree", "has_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn connect_node(&mut self, input_node: impl AsArg < StringName >, input_index: i32, output_node: impl AsArg < StringName >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, i32, CowArg < 'a1, StringName >); + let args = (input_node.into_arg(), input_index, output_node.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(360usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendTree", "connect_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn disconnect_node(&mut self, input_node: impl AsArg < StringName >, input_index: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, i32); + let args = (input_node.into_arg(), input_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(361usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendTree", "disconnect_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_node_position(&mut self, name: impl AsArg < StringName >, position: Vector2,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, Vector2); + let args = (name.into_arg(), position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(362usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendTree", "set_node_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_position(&self, name: impl AsArg < StringName >,) -> Vector2 { + type CallSig < 'a0, > = (Vector2, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(363usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendTree", "get_node_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_graph_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(364usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendTree", "set_graph_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_graph_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(365usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeBlendTree", "get_graph_offset", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const CONNECTION_OK: i32 = 0i32; + pub const CONNECTION_ERROR_NO_INPUT: i32 = 1i32; + pub const CONNECTION_ERROR_NO_INPUT_INDEX: i32 = 2i32; + pub const CONNECTION_ERROR_NO_OUTPUT: i32 = 3i32; + pub const CONNECTION_ERROR_SAME_NODE: i32 = 4i32; + pub const CONNECTION_ERROR_CONNECTION_EXISTS: i32 = 5i32; + + } + impl crate::obj::GodotClass for AnimationNodeBlendTree { + type Base = crate::classes::AnimationRootNode; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeBlendTree")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeBlendTree { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationRootNode > for AnimationNodeBlendTree { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeBlendTree { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeBlendTree { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeBlendTree { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeBlendTree { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeBlendTree { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeBlendTree { + type Target = crate::classes::AnimationRootNode; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeBlendTree { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeBlendTree`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeBlendTree { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeBlendTree > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationRootNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AnimationNodeBlendTree::add_node_ex`][super::AnimationNodeBlendTree::add_node_ex]."] +#[must_use] +pub struct ExAddNode < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationNodeBlendTree, name: CowArg < 'a, StringName >, node: ObjectCow < crate::classes::AnimationNode >, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddNode < 'a > { + fn new(surround_object: &'a mut re_export::AnimationNodeBlendTree, name: impl AsArg < StringName > + 'a, node: impl AsObjectArg < crate::classes::AnimationNode >,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), node: node.consume_arg(), position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, node, position, + } + = self; + re_export::AnimationNodeBlendTree::add_node_full(surround_object, name, node.cow_as_object_arg(), position,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_one_shot.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_one_shot.rs new file mode 100644 index 0000000..d83725e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_one_shot.rs @@ -0,0 +1,532 @@ +#![doc = "Sidecar module for class [`AnimationNodeOneShot`][crate::classes::AnimationNodeOneShot].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeOneShot` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodeoneshot.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeOneShot.`\n\nInherits [`AnimationNodeSync`][crate::classes::AnimationNodeSync].\n\nRelated symbols:\n\n* [`animation_node_one_shot`][crate::classes::animation_node_one_shot]: sidecar module with related enum/flag types\n* [`IAnimationNodeOneShot`][crate::classes::IAnimationNodeOneShot]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeOneShot`](https://docs.godotengine.org/en/stable/classes/class_animationnodeoneshot.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeOneShot::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeOneShot { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeOneShot`][crate::classes::AnimationNodeOneShot].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeOneShot` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodeoneshot.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeOneShot: crate::obj::GodotClass < Base = AnimationNodeOneShot > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeOneShot { + pub fn set_fadein_time(&mut self, time: f64,) { + type CallSig = ((), f64); + let args = (time,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(366usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "set_fadein_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fadein_time(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(367usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "get_fadein_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fadein_curve(&mut self, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(368usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "set_fadein_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fadein_curve(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(369usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "get_fadein_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fadeout_time(&mut self, time: f64,) { + type CallSig = ((), f64); + let args = (time,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(370usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "set_fadeout_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fadeout_time(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(371usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "get_fadeout_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fadeout_curve(&mut self, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(372usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "set_fadeout_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fadeout_curve(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(373usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "get_fadeout_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_break_loop_at_end(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(374usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "set_break_loop_at_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_loop_broken_at_end(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(375usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "is_loop_broken_at_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autorestart(&mut self, active: bool,) { + type CallSig = ((), bool); + let args = (active,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(376usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "set_autorestart", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_autorestart(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(377usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "has_autorestart", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autorestart_delay(&mut self, time: f64,) { + type CallSig = ((), f64); + let args = (time,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(378usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "set_autorestart_delay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_autorestart_delay(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(379usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "get_autorestart_delay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autorestart_random_delay(&mut self, time: f64,) { + type CallSig = ((), f64); + let args = (time,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(380usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "set_autorestart_random_delay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_autorestart_random_delay(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(381usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "get_autorestart_random_delay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mix_mode(&mut self, mode: crate::classes::animation_node_one_shot::MixMode,) { + type CallSig = ((), crate::classes::animation_node_one_shot::MixMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(382usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "set_mix_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mix_mode(&self,) -> crate::classes::animation_node_one_shot::MixMode { + type CallSig = (crate::classes::animation_node_one_shot::MixMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(383usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeOneShot", "get_mix_mode", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeOneShot { + type Base = crate::classes::AnimationNodeSync; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeOneShot")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeOneShot { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNodeSync > for AnimationNodeOneShot { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeOneShot { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeOneShot { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeOneShot { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeOneShot { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeOneShot { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeOneShot { + type Target = crate::classes::AnimationNodeSync; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeOneShot { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeOneShot`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeOneShot { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeOneShot > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeSync > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct OneShotRequest { + ord: i32 +} +impl OneShotRequest { + #[doc(alias = "ONE_SHOT_REQUEST_NONE")] + #[doc = "Godot enumerator name: `ONE_SHOT_REQUEST_NONE`"] + pub const NONE: OneShotRequest = OneShotRequest { + ord: 0i32 + }; + #[doc(alias = "ONE_SHOT_REQUEST_FIRE")] + #[doc = "Godot enumerator name: `ONE_SHOT_REQUEST_FIRE`"] + pub const FIRE: OneShotRequest = OneShotRequest { + ord: 1i32 + }; + #[doc(alias = "ONE_SHOT_REQUEST_ABORT")] + #[doc = "Godot enumerator name: `ONE_SHOT_REQUEST_ABORT`"] + pub const ABORT: OneShotRequest = OneShotRequest { + ord: 2i32 + }; + #[doc(alias = "ONE_SHOT_REQUEST_FADE_OUT")] + #[doc = "Godot enumerator name: `ONE_SHOT_REQUEST_FADE_OUT`"] + pub const FADE_OUT: OneShotRequest = OneShotRequest { + ord: 3i32 + }; + +} +impl std::fmt::Debug for OneShotRequest { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("OneShotRequest") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for OneShotRequest { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::FIRE => "FIRE", Self::ABORT => "ABORT", Self::FADE_OUT => "FADE_OUT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "ONE_SHOT_REQUEST_NONE", Self::FIRE => "ONE_SHOT_REQUEST_FIRE", Self::ABORT => "ONE_SHOT_REQUEST_ABORT", Self::FADE_OUT => "ONE_SHOT_REQUEST_FADE_OUT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for OneShotRequest { + type Via = i32; + +} +impl crate::meta::ToGodot for OneShotRequest { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for OneShotRequest { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MixMode { + ord: i32 +} +impl MixMode { + #[doc(alias = "MIX_MODE_BLEND")] + #[doc = "Godot enumerator name: `MIX_MODE_BLEND`"] + pub const BLEND: MixMode = MixMode { + ord: 0i32 + }; + #[doc(alias = "MIX_MODE_ADD")] + #[doc = "Godot enumerator name: `MIX_MODE_ADD`"] + pub const ADD: MixMode = MixMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for MixMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MixMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MixMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BLEND => "BLEND", Self::ADD => "ADD", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BLEND => "MIX_MODE_BLEND", Self::ADD => "MIX_MODE_ADD", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for MixMode { + type Via = i32; + +} +impl crate::meta::ToGodot for MixMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MixMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_output.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_output.rs new file mode 100644 index 0000000..7924c46 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_output.rs @@ -0,0 +1,232 @@ +#![doc = "Sidecar module for class [`AnimationNodeOutput`][crate::classes::AnimationNodeOutput].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeOutput` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodeoutput.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeOutput.`\n\nInherits [`AnimationNode`][crate::classes::AnimationNode].\n\nRelated symbols:\n\n* [`IAnimationNodeOutput`][crate::classes::IAnimationNodeOutput]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeOutput`](https://docs.godotengine.org/en/stable/classes/class_animationnodeoutput.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeOutput::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeOutput { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeOutput`][crate::classes::AnimationNodeOutput].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeOutput` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodeoutput.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeOutput: crate::obj::GodotClass < Base = AnimationNodeOutput > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeOutput { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeOutput { + type Base = crate::classes::AnimationNode; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeOutput")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeOutput { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeOutput { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeOutput { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeOutput { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeOutput { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeOutput { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeOutput { + type Target = crate::classes::AnimationNode; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeOutput { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeOutput`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeOutput { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeOutput > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_state_machine.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_state_machine.rs new file mode 100644 index 0000000..61dfc14 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_state_machine.rs @@ -0,0 +1,550 @@ +#![doc = "Sidecar module for class [`AnimationNodeStateMachine`][crate::classes::AnimationNodeStateMachine].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeStateMachine` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodestatemachine.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeStateMachine.`\n\nInherits [`AnimationRootNode`][crate::classes::AnimationRootNode].\n\nRelated symbols:\n\n* [`animation_node_state_machine`][crate::classes::animation_node_state_machine]: sidecar module with related enum/flag types\n* [`IAnimationNodeStateMachine`][crate::classes::IAnimationNodeStateMachine]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeStateMachine`](https://docs.godotengine.org/en/stable/classes/class_animationnodestatemachine.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeStateMachine::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeStateMachine { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeStateMachine`][crate::classes::AnimationNodeStateMachine].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeStateMachine` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodestatemachine.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeStateMachine: crate::obj::GodotClass < Base = AnimationNodeStateMachine > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeStateMachine { + pub(crate) fn add_node_full(&mut self, name: CowArg < StringName >, node: ObjectArg < crate::classes::AnimationNode >, position: Vector2,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, ObjectArg < crate::classes::AnimationNode >, Vector2); + let args = (name, node, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(384usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "add_node", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_node_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_node(&mut self, name: impl AsArg < StringName >, node: impl AsObjectArg < crate::classes::AnimationNode >,) { + self.add_node_ex(name, node,) . done() + } + #[inline] + pub fn add_node_ex < 'a > (&'a mut self, name: impl AsArg < StringName > + 'a, node: impl AsObjectArg < crate::classes::AnimationNode >,) -> ExAddNode < 'a > { + ExAddNode::new(self, name, node,) + } + pub fn replace_node(&mut self, name: impl AsArg < StringName >, node: impl AsObjectArg < crate::classes::AnimationNode >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, ObjectArg < crate::classes::AnimationNode >); + let args = (name.into_arg(), node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(385usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "replace_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node(&self, name: impl AsArg < StringName >,) -> Option < Gd < crate::classes::AnimationNode > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::AnimationNode > >, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(386usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "get_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_node(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(387usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "remove_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rename_node(&mut self, name: impl AsArg < StringName >, new_name: impl AsArg < StringName >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name.into_arg(), new_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(388usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "rename_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_node(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(389usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "has_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_name(&self, node: impl AsObjectArg < crate::classes::AnimationNode >,) -> StringName { + type CallSig = (StringName, ObjectArg < crate::classes::AnimationNode >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(390usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "get_node_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_node_position(&mut self, name: impl AsArg < StringName >, position: Vector2,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, Vector2); + let args = (name.into_arg(), position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(391usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "set_node_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_position(&self, name: impl AsArg < StringName >,) -> Vector2 { + type CallSig < 'a0, > = (Vector2, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(392usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "get_node_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_transition(&self, from: impl AsArg < StringName >, to: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (from.into_arg(), to.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(393usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "has_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_transition(&mut self, from: impl AsArg < StringName >, to: impl AsArg < StringName >, transition: impl AsObjectArg < crate::classes::AnimationNodeStateMachineTransition >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, ObjectArg < crate::classes::AnimationNodeStateMachineTransition >); + let args = (from.into_arg(), to.into_arg(), transition.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(394usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "add_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transition(&self, idx: i32,) -> Option < Gd < crate::classes::AnimationNodeStateMachineTransition > > { + type CallSig = (Option < Gd < crate::classes::AnimationNodeStateMachineTransition > >, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(395usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "get_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transition_from(&self, idx: i32,) -> StringName { + type CallSig = (StringName, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(396usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "get_transition_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transition_to(&self, idx: i32,) -> StringName { + type CallSig = (StringName, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(397usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "get_transition_to", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transition_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(398usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "get_transition_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_transition_by_index(&mut self, idx: i32,) { + type CallSig = ((), i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(399usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "remove_transition_by_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_transition(&mut self, from: impl AsArg < StringName >, to: impl AsArg < StringName >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (from.into_arg(), to.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(400usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "remove_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_graph_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(401usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "set_graph_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_graph_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(402usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "get_graph_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_state_machine_type(&mut self, state_machine_type: crate::classes::animation_node_state_machine::StateMachineType,) { + type CallSig = ((), crate::classes::animation_node_state_machine::StateMachineType); + let args = (state_machine_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(403usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "set_state_machine_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_state_machine_type(&self,) -> crate::classes::animation_node_state_machine::StateMachineType { + type CallSig = (crate::classes::animation_node_state_machine::StateMachineType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(404usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "get_state_machine_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_transition_to_self(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(405usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "set_allow_transition_to_self", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_allow_transition_to_self(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(406usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "is_allow_transition_to_self", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_reset_ends(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(407usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "set_reset_ends", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn are_ends_reset(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(408usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachine", "are_ends_reset", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeStateMachine { + type Base = crate::classes::AnimationRootNode; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeStateMachine")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeStateMachine { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationRootNode > for AnimationNodeStateMachine { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeStateMachine { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeStateMachine { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeStateMachine { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeStateMachine { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeStateMachine { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeStateMachine { + type Target = crate::classes::AnimationRootNode; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeStateMachine { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeStateMachine`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeStateMachine { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeStateMachine > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationRootNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AnimationNodeStateMachine::add_node_ex`][super::AnimationNodeStateMachine::add_node_ex]."] +#[must_use] +pub struct ExAddNode < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationNodeStateMachine, name: CowArg < 'a, StringName >, node: ObjectCow < crate::classes::AnimationNode >, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddNode < 'a > { + fn new(surround_object: &'a mut re_export::AnimationNodeStateMachine, name: impl AsArg < StringName > + 'a, node: impl AsObjectArg < crate::classes::AnimationNode >,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), node: node.consume_arg(), position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, node, position, + } + = self; + re_export::AnimationNodeStateMachine::add_node_full(surround_object, name, node.cow_as_object_arg(), position,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct StateMachineType { + ord: i32 +} +impl StateMachineType { + #[doc(alias = "STATE_MACHINE_TYPE_ROOT")] + #[doc = "Godot enumerator name: `STATE_MACHINE_TYPE_ROOT`"] + pub const ROOT: StateMachineType = StateMachineType { + ord: 0i32 + }; + #[doc(alias = "STATE_MACHINE_TYPE_NESTED")] + #[doc = "Godot enumerator name: `STATE_MACHINE_TYPE_NESTED`"] + pub const NESTED: StateMachineType = StateMachineType { + ord: 1i32 + }; + #[doc(alias = "STATE_MACHINE_TYPE_GROUPED")] + #[doc = "Godot enumerator name: `STATE_MACHINE_TYPE_GROUPED`"] + pub const GROUPED: StateMachineType = StateMachineType { + ord: 2i32 + }; + +} +impl std::fmt::Debug for StateMachineType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("StateMachineType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for StateMachineType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ROOT => "ROOT", Self::NESTED => "NESTED", Self::GROUPED => "GROUPED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ROOT => "STATE_MACHINE_TYPE_ROOT", Self::NESTED => "STATE_MACHINE_TYPE_NESTED", Self::GROUPED => "STATE_MACHINE_TYPE_GROUPED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for StateMachineType { + type Via = i32; + +} +impl crate::meta::ToGodot for StateMachineType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for StateMachineType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_state_machine_playback.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_state_machine_playback.rs new file mode 100644 index 0000000..bb5b48a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_state_machine_playback.rs @@ -0,0 +1,356 @@ +#![doc = "Sidecar module for class [`AnimationNodeStateMachinePlayback`][crate::classes::AnimationNodeStateMachinePlayback].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeStateMachinePlayback` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodestatemachineplayback.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeStateMachinePlayback.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`animation_node_state_machine_playback`][crate::classes::animation_node_state_machine_playback]: sidecar module with related enum/flag types\n* [`IAnimationNodeStateMachinePlayback`][crate::classes::IAnimationNodeStateMachinePlayback]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeStateMachinePlayback`](https://docs.godotengine.org/en/stable/classes/class_animationnodestatemachineplayback.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeStateMachinePlayback::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeStateMachinePlayback { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeStateMachinePlayback`][crate::classes::AnimationNodeStateMachinePlayback].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeStateMachinePlayback` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodestatemachineplayback.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeStateMachinePlayback: crate::obj::GodotClass < Base = AnimationNodeStateMachinePlayback > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeStateMachinePlayback { + pub(crate) fn travel_full(&mut self, to_node: CowArg < StringName >, reset_on_teleport: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, bool); + let args = (to_node, reset_on_teleport,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(409usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachinePlayback", "travel", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::travel_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn travel(&mut self, to_node: impl AsArg < StringName >,) { + self.travel_ex(to_node,) . done() + } + #[inline] + pub fn travel_ex < 'a > (&'a mut self, to_node: impl AsArg < StringName > + 'a,) -> ExTravel < 'a > { + ExTravel::new(self, to_node,) + } + pub(crate) fn start_full(&mut self, node: CowArg < StringName >, reset: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, bool); + let args = (node, reset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(410usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachinePlayback", "start", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::start_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn start(&mut self, node: impl AsArg < StringName >,) { + self.start_ex(node,) . done() + } + #[inline] + pub fn start_ex < 'a > (&'a mut self, node: impl AsArg < StringName > + 'a,) -> ExStart < 'a > { + ExStart::new(self, node,) + } + pub fn next(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(411usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachinePlayback", "next", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn stop(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(412usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachinePlayback", "stop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_playing(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(413usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachinePlayback", "is_playing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_node(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(414usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachinePlayback", "get_current_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_play_position(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(415usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachinePlayback", "get_current_play_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(416usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachinePlayback", "get_current_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fading_from_node(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(417usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachinePlayback", "get_fading_from_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_travel_path(&self,) -> Array < StringName > { + type CallSig = (Array < StringName >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(418usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachinePlayback", "get_travel_path", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeStateMachinePlayback { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeStateMachinePlayback")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeStateMachinePlayback { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeStateMachinePlayback { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeStateMachinePlayback { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeStateMachinePlayback { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeStateMachinePlayback { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeStateMachinePlayback { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeStateMachinePlayback { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeStateMachinePlayback`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeStateMachinePlayback { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeStateMachinePlayback > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AnimationNodeStateMachinePlayback::travel_ex`][super::AnimationNodeStateMachinePlayback::travel_ex]."] +#[must_use] +pub struct ExTravel < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationNodeStateMachinePlayback, to_node: CowArg < 'a, StringName >, reset_on_teleport: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTravel < 'a > { + fn new(surround_object: &'a mut re_export::AnimationNodeStateMachinePlayback, to_node: impl AsArg < StringName > + 'a,) -> Self { + let reset_on_teleport = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, to_node: to_node.into_arg(), reset_on_teleport: reset_on_teleport, + } + } + #[inline] + pub fn reset_on_teleport(self, reset_on_teleport: bool) -> Self { + Self { + reset_on_teleport: reset_on_teleport, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, to_node, reset_on_teleport, + } + = self; + re_export::AnimationNodeStateMachinePlayback::travel_full(surround_object, to_node, reset_on_teleport,) + } +} +#[doc = "Default-param extender for [`AnimationNodeStateMachinePlayback::start_ex`][super::AnimationNodeStateMachinePlayback::start_ex]."] +#[must_use] +pub struct ExStart < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationNodeStateMachinePlayback, node: CowArg < 'a, StringName >, reset: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExStart < 'a > { + fn new(surround_object: &'a mut re_export::AnimationNodeStateMachinePlayback, node: impl AsArg < StringName > + 'a,) -> Self { + let reset = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, node: node.into_arg(), reset: reset, + } + } + #[inline] + pub fn reset(self, reset: bool) -> Self { + Self { + reset: reset, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, node, reset, + } + = self; + re_export::AnimationNodeStateMachinePlayback::start_full(surround_object, node, reset,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_state_machine_transition.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_state_machine_transition.rs new file mode 100644 index 0000000..4c2bb40 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_state_machine_transition.rs @@ -0,0 +1,496 @@ +#![doc = "Sidecar module for class [`AnimationNodeStateMachineTransition`][crate::classes::AnimationNodeStateMachineTransition].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeStateMachineTransition` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodestatemachinetransition.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeStateMachineTransition.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`animation_node_state_machine_transition`][crate::classes::animation_node_state_machine_transition]: sidecar module with related enum/flag types\n* [`IAnimationNodeStateMachineTransition`][crate::classes::IAnimationNodeStateMachineTransition]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeStateMachineTransition`](https://docs.godotengine.org/en/stable/classes/class_animationnodestatemachinetransition.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeStateMachineTransition::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeStateMachineTransition { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeStateMachineTransition`][crate::classes::AnimationNodeStateMachineTransition].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeStateMachineTransition` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodestatemachinetransition.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeStateMachineTransition: crate::obj::GodotClass < Base = AnimationNodeStateMachineTransition > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeStateMachineTransition { + pub fn set_switch_mode(&mut self, mode: crate::classes::animation_node_state_machine_transition::SwitchMode,) { + type CallSig = ((), crate::classes::animation_node_state_machine_transition::SwitchMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(419usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "set_switch_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_switch_mode(&self,) -> crate::classes::animation_node_state_machine_transition::SwitchMode { + type CallSig = (crate::classes::animation_node_state_machine_transition::SwitchMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(420usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "get_switch_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_advance_mode(&mut self, mode: crate::classes::animation_node_state_machine_transition::AdvanceMode,) { + type CallSig = ((), crate::classes::animation_node_state_machine_transition::AdvanceMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(421usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "set_advance_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_advance_mode(&self,) -> crate::classes::animation_node_state_machine_transition::AdvanceMode { + type CallSig = (crate::classes::animation_node_state_machine_transition::AdvanceMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(422usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "get_advance_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_advance_condition(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(423usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "set_advance_condition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_advance_condition(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(424usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "get_advance_condition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_xfade_time(&mut self, secs: f32,) { + type CallSig = ((), f32); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(425usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "set_xfade_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_xfade_time(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(426usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "get_xfade_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_xfade_curve(&mut self, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(427usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "set_xfade_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_xfade_curve(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(428usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "get_xfade_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_break_loop_at_end(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(429usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "set_break_loop_at_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_loop_broken_at_end(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(430usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "is_loop_broken_at_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_reset(&mut self, reset: bool,) { + type CallSig = ((), bool); + let args = (reset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(431usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "set_reset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_reset(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(432usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "is_reset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_priority(&mut self, priority: i32,) { + type CallSig = ((), i32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(433usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "set_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_priority(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(434usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "get_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_advance_expression(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(435usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "set_advance_expression", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_advance_expression(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(436usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeStateMachineTransition", "get_advance_expression", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeStateMachineTransition { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeStateMachineTransition")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeStateMachineTransition { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeStateMachineTransition { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeStateMachineTransition { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeStateMachineTransition { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeStateMachineTransition { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeStateMachineTransition { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeStateMachineTransition { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeStateMachineTransition`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeStateMachineTransition { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeStateMachineTransition > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SwitchMode { + ord: i32 +} +impl SwitchMode { + #[doc(alias = "SWITCH_MODE_IMMEDIATE")] + #[doc = "Godot enumerator name: `SWITCH_MODE_IMMEDIATE`"] + pub const IMMEDIATE: SwitchMode = SwitchMode { + ord: 0i32 + }; + #[doc(alias = "SWITCH_MODE_SYNC")] + #[doc = "Godot enumerator name: `SWITCH_MODE_SYNC`"] + pub const SYNC: SwitchMode = SwitchMode { + ord: 1i32 + }; + #[doc(alias = "SWITCH_MODE_AT_END")] + #[doc = "Godot enumerator name: `SWITCH_MODE_AT_END`"] + pub const AT_END: SwitchMode = SwitchMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for SwitchMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SwitchMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SwitchMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IMMEDIATE => "IMMEDIATE", Self::SYNC => "SYNC", Self::AT_END => "AT_END", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IMMEDIATE => "SWITCH_MODE_IMMEDIATE", Self::SYNC => "SWITCH_MODE_SYNC", Self::AT_END => "SWITCH_MODE_AT_END", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SwitchMode { + type Via = i32; + +} +impl crate::meta::ToGodot for SwitchMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SwitchMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AdvanceMode { + ord: i32 +} +impl AdvanceMode { + #[doc(alias = "ADVANCE_MODE_DISABLED")] + #[doc = "Godot enumerator name: `ADVANCE_MODE_DISABLED`"] + pub const DISABLED: AdvanceMode = AdvanceMode { + ord: 0i32 + }; + #[doc(alias = "ADVANCE_MODE_ENABLED")] + #[doc = "Godot enumerator name: `ADVANCE_MODE_ENABLED`"] + pub const ENABLED: AdvanceMode = AdvanceMode { + ord: 1i32 + }; + #[doc(alias = "ADVANCE_MODE_AUTO")] + #[doc = "Godot enumerator name: `ADVANCE_MODE_AUTO`"] + pub const AUTO: AdvanceMode = AdvanceMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AdvanceMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AdvanceMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AdvanceMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ENABLED => "ENABLED", Self::AUTO => "AUTO", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "ADVANCE_MODE_DISABLED", Self::ENABLED => "ADVANCE_MODE_ENABLED", Self::AUTO => "ADVANCE_MODE_AUTO", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AdvanceMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AdvanceMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AdvanceMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_sub2.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_sub2.rs new file mode 100644 index 0000000..75c8b85 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_sub2.rs @@ -0,0 +1,238 @@ +#![doc = "Sidecar module for class [`AnimationNodeSub2`][crate::classes::AnimationNodeSub2].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeSub2` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodesub2.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeSub2.`\n\nInherits [`AnimationNodeSync`][crate::classes::AnimationNodeSync].\n\nRelated symbols:\n\n* [`IAnimationNodeSub2`][crate::classes::IAnimationNodeSub2]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeSub2`](https://docs.godotengine.org/en/stable/classes/class_animationnodesub2.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeSub2::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeSub2 { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeSub2`][crate::classes::AnimationNodeSub2].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeSub2` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodesub2.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeSub2: crate::obj::GodotClass < Base = AnimationNodeSub2 > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeSub2 { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeSub2 { + type Base = crate::classes::AnimationNodeSync; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeSub2")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeSub2 { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNodeSync > for AnimationNodeSub2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeSub2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeSub2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeSub2 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeSub2 { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeSub2 { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeSub2 { + type Target = crate::classes::AnimationNodeSync; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeSub2 { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeSub2`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeSub2 { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeSub2 > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeSync > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_sync.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_sync.rs new file mode 100644 index 0000000..6124aff --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_sync.rs @@ -0,0 +1,248 @@ +#![doc = "Sidecar module for class [`AnimationNodeSync`][crate::classes::AnimationNodeSync].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeSync` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodesync.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeSync.`\n\nInherits [`AnimationNode`][crate::classes::AnimationNode].\n\nRelated symbols:\n\n* [`IAnimationNodeSync`][crate::classes::IAnimationNodeSync]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeSync`](https://docs.godotengine.org/en/stable/classes/class_animationnodesync.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeSync::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeSync { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeSync`][crate::classes::AnimationNodeSync].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeSync` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodesync.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeSync: crate::obj::GodotClass < Base = AnimationNodeSync > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeSync { + pub fn set_use_sync(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(437usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeSync", "set_use_sync", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_sync(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(438usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeSync", "is_using_sync", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeSync { + type Base = crate::classes::AnimationNode; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeSync")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeSync { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeSync { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeSync { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeSync { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeSync { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeSync { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeSync { + type Target = crate::classes::AnimationNode; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeSync { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeSync`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeSync { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeSync > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_time_scale.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_time_scale.rs new file mode 100644 index 0000000..6844e37 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_time_scale.rs @@ -0,0 +1,232 @@ +#![doc = "Sidecar module for class [`AnimationNodeTimeScale`][crate::classes::AnimationNodeTimeScale].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeTimeScale` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodetimescale.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeTimeScale.`\n\nInherits [`AnimationNode`][crate::classes::AnimationNode].\n\nRelated symbols:\n\n* [`IAnimationNodeTimeScale`][crate::classes::IAnimationNodeTimeScale]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeTimeScale`](https://docs.godotengine.org/en/stable/classes/class_animationnodetimescale.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeTimeScale::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeTimeScale { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeTimeScale`][crate::classes::AnimationNodeTimeScale].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeTimeScale` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodetimescale.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeTimeScale: crate::obj::GodotClass < Base = AnimationNodeTimeScale > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeTimeScale { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeTimeScale { + type Base = crate::classes::AnimationNode; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeTimeScale")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeTimeScale { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeTimeScale { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeTimeScale { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeTimeScale { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeTimeScale { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeTimeScale { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeTimeScale { + type Target = crate::classes::AnimationNode; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeTimeScale { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeTimeScale`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeTimeScale { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeTimeScale > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_time_seek.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_time_seek.rs new file mode 100644 index 0000000..2456afa --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_time_seek.rs @@ -0,0 +1,232 @@ +#![doc = "Sidecar module for class [`AnimationNodeTimeSeek`][crate::classes::AnimationNodeTimeSeek].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeTimeSeek` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodetimeseek.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeTimeSeek.`\n\nInherits [`AnimationNode`][crate::classes::AnimationNode].\n\nRelated symbols:\n\n* [`IAnimationNodeTimeSeek`][crate::classes::IAnimationNodeTimeSeek]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeTimeSeek`](https://docs.godotengine.org/en/stable/classes/class_animationnodetimeseek.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeTimeSeek::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeTimeSeek { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeTimeSeek`][crate::classes::AnimationNodeTimeSeek].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeTimeSeek` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodetimeseek.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeTimeSeek: crate::obj::GodotClass < Base = AnimationNodeTimeSeek > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeTimeSeek { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeTimeSeek { + type Base = crate::classes::AnimationNode; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeTimeSeek")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeTimeSeek { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeTimeSeek { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeTimeSeek { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeTimeSeek { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeTimeSeek { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeTimeSeek { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeTimeSeek { + type Target = crate::classes::AnimationNode; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeTimeSeek { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeTimeSeek`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeTimeSeek { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeTimeSeek > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_transition.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_transition.rs new file mode 100644 index 0000000..f00900a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_node_transition.rs @@ -0,0 +1,342 @@ +#![doc = "Sidecar module for class [`AnimationNodeTransition`][crate::classes::AnimationNodeTransition].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationNodeTransition` enums](https://docs.godotengine.org/en/stable/classes/class_animationnodetransition.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationNodeTransition.`\n\nInherits [`AnimationNodeSync`][crate::classes::AnimationNodeSync].\n\nRelated symbols:\n\n* [`IAnimationNodeTransition`][crate::classes::IAnimationNodeTransition]: virtual methods\n\n\nSee also [Godot docs for `AnimationNodeTransition`](https://docs.godotengine.org/en/stable/classes/class_animationnodetransition.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationNodeTransition::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationNodeTransition { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationNodeTransition`][crate::classes::AnimationNodeTransition].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationNodeTransition` methods](https://docs.godotengine.org/en/stable/classes/class_animationnodetransition.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationNodeTransition: crate::obj::GodotClass < Base = AnimationNodeTransition > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationNodeTransition { + pub fn set_input_count(&mut self, input_count: i32,) { + type CallSig = ((), i32); + let args = (input_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(439usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "set_input_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_input_as_auto_advance(&mut self, input: i32, enable: bool,) { + type CallSig = ((), i32, bool); + let args = (input, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(440usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "set_input_as_auto_advance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_input_set_as_auto_advance(&self, input: i32,) -> bool { + type CallSig = (bool, i32); + let args = (input,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(441usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "is_input_set_as_auto_advance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_input_break_loop_at_end(&mut self, input: i32, enable: bool,) { + type CallSig = ((), i32, bool); + let args = (input, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(442usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "set_input_break_loop_at_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_input_loop_broken_at_end(&self, input: i32,) -> bool { + type CallSig = (bool, i32); + let args = (input,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(443usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "is_input_loop_broken_at_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_input_reset(&mut self, input: i32, enable: bool,) { + type CallSig = ((), i32, bool); + let args = (input, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(444usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "set_input_reset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_input_reset(&self, input: i32,) -> bool { + type CallSig = (bool, i32); + let args = (input,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(445usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "is_input_reset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_xfade_time(&mut self, time: f64,) { + type CallSig = ((), f64); + let args = (time,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(446usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "set_xfade_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_xfade_time(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(447usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "get_xfade_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_xfade_curve(&mut self, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(448usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "set_xfade_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_xfade_curve(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(449usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "get_xfade_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_transition_to_self(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(450usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "set_allow_transition_to_self", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_allow_transition_to_self(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(451usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationNodeTransition", "is_allow_transition_to_self", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationNodeTransition { + type Base = crate::classes::AnimationNodeSync; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationNodeTransition")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationNodeTransition { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNodeSync > for AnimationNodeTransition { + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationNodeTransition { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationNodeTransition { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationNodeTransition { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationNodeTransition { + + } + impl crate::obj::cap::GodotDefault for AnimationNodeTransition { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationNodeTransition { + type Target = crate::classes::AnimationNodeSync; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationNodeTransition { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationNodeTransition`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationNodeTransition { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeTransition > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNodeSync > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_player.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_player.rs new file mode 100644 index 0000000..7296035 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_player.rs @@ -0,0 +1,983 @@ +#![doc = "Sidecar module for class [`AnimationPlayer`][crate::classes::AnimationPlayer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationPlayer` enums](https://docs.godotengine.org/en/stable/classes/class_animationplayer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationPlayer.`\n\nInherits [`AnimationMixer`][crate::classes::AnimationMixer].\n\nRelated symbols:\n\n* [`animation_player`][crate::classes::animation_player]: sidecar module with related enum/flag types\n* [`IAnimationPlayer`][crate::classes::IAnimationPlayer]: virtual methods\n\n\nSee also [Godot docs for `AnimationPlayer`](https://docs.godotengine.org/en/stable/classes/class_animationplayer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AnimationPlayer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationPlayer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationPlayer`][crate::classes::AnimationPlayer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationPlayer` methods](https://docs.godotengine.org/en/stable/classes/class_animationplayer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationPlayer: crate::obj::GodotClass < Base = AnimationPlayer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn post_process_key_value(&self, animation: Option < Gd < crate::classes::Animation > >, track: i32, value: Variant, object_id: u64, object_sub_idx: i32,) -> Variant { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AnimationPlayer { + pub fn animation_set_next(&mut self, animation_from: impl AsArg < StringName >, animation_to: impl AsArg < StringName >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (animation_from.into_arg(), animation_to.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(452usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "animation_set_next", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn animation_get_next(&self, animation_from: impl AsArg < StringName >,) -> StringName { + type CallSig < 'a0, > = (StringName, CowArg < 'a0, StringName >); + let args = (animation_from.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(453usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "animation_get_next", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_time(&mut self, animation_from: impl AsArg < StringName >, animation_to: impl AsArg < StringName >, sec: f64,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, f64); + let args = (animation_from.into_arg(), animation_to.into_arg(), sec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(454usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_blend_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_time(&self, animation_from: impl AsArg < StringName >, animation_to: impl AsArg < StringName >,) -> f64 { + type CallSig < 'a0, 'a1, > = (f64, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (animation_from.into_arg(), animation_to.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(455usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_blend_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_default_blend_time(&mut self, sec: f64,) { + type CallSig = ((), f64); + let args = (sec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(456usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_default_blend_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_default_blend_time(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(457usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_default_blend_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_capture(&mut self, auto_capture: bool,) { + type CallSig = ((), bool); + let args = (auto_capture,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(458usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_auto_capture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_auto_capture(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(459usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "is_auto_capture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_capture_duration(&mut self, auto_capture_duration: f64,) { + type CallSig = ((), f64); + let args = (auto_capture_duration,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(460usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_auto_capture_duration", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_capture_duration(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(461usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_auto_capture_duration", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_capture_transition_type(&mut self, auto_capture_transition_type: crate::classes::tween::TransitionType,) { + type CallSig = ((), crate::classes::tween::TransitionType); + let args = (auto_capture_transition_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(462usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_auto_capture_transition_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_capture_transition_type(&self,) -> crate::classes::tween::TransitionType { + type CallSig = (crate::classes::tween::TransitionType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(463usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_auto_capture_transition_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_capture_ease_type(&mut self, auto_capture_ease_type: crate::classes::tween::EaseType,) { + type CallSig = ((), crate::classes::tween::EaseType); + let args = (auto_capture_ease_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(464usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_auto_capture_ease_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_capture_ease_type(&self,) -> crate::classes::tween::EaseType { + type CallSig = (crate::classes::tween::EaseType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(465usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_auto_capture_ease_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn play_full(&mut self, name: CowArg < StringName >, custom_blend: f64, custom_speed: f32, from_end: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, f64, f32, bool); + let args = (name, custom_blend, custom_speed, from_end,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(466usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "play", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::play_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn play(&mut self,) { + self.play_ex() . done() + } + #[inline] + pub fn play_ex < 'a > (&'a mut self,) -> ExPlay < 'a > { + ExPlay::new(self,) + } + pub(crate) fn play_backwards_full(&mut self, name: CowArg < StringName >, custom_blend: f64,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, f64); + let args = (name, custom_blend,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(467usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "play_backwards", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::play_backwards_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn play_backwards(&mut self,) { + self.play_backwards_ex() . done() + } + #[inline] + pub fn play_backwards_ex < 'a > (&'a mut self,) -> ExPlayBackwards < 'a > { + ExPlayBackwards::new(self,) + } + pub(crate) fn play_with_capture_full(&mut self, name: CowArg < StringName >, duration: f64, custom_blend: f64, custom_speed: f32, from_end: bool, trans_type: crate::classes::tween::TransitionType, ease_type: crate::classes::tween::EaseType,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, f64, f64, f32, bool, crate::classes::tween::TransitionType, crate::classes::tween::EaseType); + let args = (name, duration, custom_blend, custom_speed, from_end, trans_type, ease_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(468usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "play_with_capture", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::play_with_capture_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn play_with_capture(&mut self,) { + self.play_with_capture_ex() . done() + } + #[inline] + pub fn play_with_capture_ex < 'a > (&'a mut self,) -> ExPlayWithCapture < 'a > { + ExPlayWithCapture::new(self,) + } + pub fn pause(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(469usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "pause", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn stop_full(&mut self, keep_state: bool,) { + type CallSig = ((), bool); + let args = (keep_state,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(470usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "stop", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::stop_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn stop(&mut self,) { + self.stop_ex() . done() + } + #[inline] + pub fn stop_ex < 'a > (&'a mut self,) -> ExStop < 'a > { + ExStop::new(self,) + } + pub fn is_playing(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(471usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "is_playing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_current_animation(&mut self, animation: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (animation.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(472usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_current_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_animation(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(473usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_current_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_assigned_animation(&mut self, animation: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (animation.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(474usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_assigned_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_assigned_animation(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(475usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_assigned_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn queue(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(476usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "queue", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_queue(&mut self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(477usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_queue", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_queue(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(478usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "clear_queue", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_speed_scale(&mut self, speed: f32,) { + type CallSig = ((), f32); + let args = (speed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(479usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_speed_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(480usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playing_speed(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(481usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_playing_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autoplay(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(482usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_autoplay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_autoplay(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(483usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_autoplay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_movie_quit_on_finish_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(484usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_movie_quit_on_finish_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_movie_quit_on_finish_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(485usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "is_movie_quit_on_finish_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_animation_position(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(486usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_current_animation_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_animation_length(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(487usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_current_animation_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn seek_full(&mut self, seconds: f64, update: bool, update_only: bool,) { + type CallSig = ((), f64, bool, bool); + let args = (seconds, update, update_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(488usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "seek", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::seek_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn seek(&mut self, seconds: f64,) { + self.seek_ex(seconds,) . done() + } + #[inline] + pub fn seek_ex < 'a > (&'a mut self, seconds: f64,) -> ExSeek < 'a > { + ExSeek::new(self, seconds,) + } + pub fn set_process_callback(&mut self, mode: crate::classes::animation_player::AnimationProcessCallback,) { + type CallSig = ((), crate::classes::animation_player::AnimationProcessCallback); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(489usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_process_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_callback(&self,) -> crate::classes::animation_player::AnimationProcessCallback { + type CallSig = (crate::classes::animation_player::AnimationProcessCallback,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(490usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_process_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_method_call_mode(&mut self, mode: crate::classes::animation_player::AnimationMethodCallMode,) { + type CallSig = ((), crate::classes::animation_player::AnimationMethodCallMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(491usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_method_call_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_method_call_mode(&self,) -> crate::classes::animation_player::AnimationMethodCallMode { + type CallSig = (crate::classes::animation_player::AnimationMethodCallMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(492usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_method_call_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_root(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(493usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "set_root", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(494usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationPlayer", "get_root", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationPlayer { + type Base = crate::classes::AnimationMixer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationPlayer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationPlayer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationMixer > for AnimationPlayer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AnimationPlayer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationPlayer { + + } + impl crate::obj::cap::GodotDefault for AnimationPlayer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationPlayer { + type Target = crate::classes::AnimationMixer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationPlayer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationPlayer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationPlayer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationPlayer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationMixer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AnimationPlayer::play_ex`][super::AnimationPlayer::play_ex]."] +#[must_use] +pub struct ExPlay < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationPlayer, name: CowArg < 'a, StringName >, custom_blend: f64, custom_speed: f32, from_end: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPlay < 'a > { + fn new(surround_object: &'a mut re_export::AnimationPlayer,) -> Self { + let name = StringName::from(""); + let custom_blend = - 1f64; + let custom_speed = 1f32; + let from_end = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: CowArg::Owned(name), custom_blend: custom_blend, custom_speed: custom_speed, from_end: from_end, + } + } + #[inline] + pub fn name(self, name: impl AsArg < StringName > + 'a) -> Self { + Self { + name: name.into_arg(), .. self + } + } + #[inline] + pub fn custom_blend(self, custom_blend: f64) -> Self { + Self { + custom_blend: custom_blend, .. self + } + } + #[inline] + pub fn custom_speed(self, custom_speed: f32) -> Self { + Self { + custom_speed: custom_speed, .. self + } + } + #[inline] + pub fn from_end(self, from_end: bool) -> Self { + Self { + from_end: from_end, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, custom_blend, custom_speed, from_end, + } + = self; + re_export::AnimationPlayer::play_full(surround_object, name, custom_blend, custom_speed, from_end,) + } +} +#[doc = "Default-param extender for [`AnimationPlayer::play_backwards_ex`][super::AnimationPlayer::play_backwards_ex]."] +#[must_use] +pub struct ExPlayBackwards < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationPlayer, name: CowArg < 'a, StringName >, custom_blend: f64, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPlayBackwards < 'a > { + fn new(surround_object: &'a mut re_export::AnimationPlayer,) -> Self { + let name = StringName::from(""); + let custom_blend = - 1f64; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: CowArg::Owned(name), custom_blend: custom_blend, + } + } + #[inline] + pub fn name(self, name: impl AsArg < StringName > + 'a) -> Self { + Self { + name: name.into_arg(), .. self + } + } + #[inline] + pub fn custom_blend(self, custom_blend: f64) -> Self { + Self { + custom_blend: custom_blend, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, custom_blend, + } + = self; + re_export::AnimationPlayer::play_backwards_full(surround_object, name, custom_blend,) + } +} +#[doc = "Default-param extender for [`AnimationPlayer::play_with_capture_ex`][super::AnimationPlayer::play_with_capture_ex]."] +#[must_use] +pub struct ExPlayWithCapture < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationPlayer, name: CowArg < 'a, StringName >, duration: f64, custom_blend: f64, custom_speed: f32, from_end: bool, trans_type: crate::classes::tween::TransitionType, ease_type: crate::classes::tween::EaseType, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPlayWithCapture < 'a > { + fn new(surround_object: &'a mut re_export::AnimationPlayer,) -> Self { + let name = StringName::from(""); + let duration = - 1f64; + let custom_blend = - 1f64; + let custom_speed = 1f32; + let from_end = false; + let trans_type = crate::obj::EngineEnum::from_ord(0); + let ease_type = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: CowArg::Owned(name), duration: duration, custom_blend: custom_blend, custom_speed: custom_speed, from_end: from_end, trans_type: trans_type, ease_type: ease_type, + } + } + #[inline] + pub fn name(self, name: impl AsArg < StringName > + 'a) -> Self { + Self { + name: name.into_arg(), .. self + } + } + #[inline] + pub fn duration(self, duration: f64) -> Self { + Self { + duration: duration, .. self + } + } + #[inline] + pub fn custom_blend(self, custom_blend: f64) -> Self { + Self { + custom_blend: custom_blend, .. self + } + } + #[inline] + pub fn custom_speed(self, custom_speed: f32) -> Self { + Self { + custom_speed: custom_speed, .. self + } + } + #[inline] + pub fn from_end(self, from_end: bool) -> Self { + Self { + from_end: from_end, .. self + } + } + #[inline] + pub fn trans_type(self, trans_type: crate::classes::tween::TransitionType) -> Self { + Self { + trans_type: trans_type, .. self + } + } + #[inline] + pub fn ease_type(self, ease_type: crate::classes::tween::EaseType) -> Self { + Self { + ease_type: ease_type, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, duration, custom_blend, custom_speed, from_end, trans_type, ease_type, + } + = self; + re_export::AnimationPlayer::play_with_capture_full(surround_object, name, duration, custom_blend, custom_speed, from_end, trans_type, ease_type,) + } +} +#[doc = "Default-param extender for [`AnimationPlayer::stop_ex`][super::AnimationPlayer::stop_ex]."] +#[must_use] +pub struct ExStop < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationPlayer, keep_state: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExStop < 'a > { + fn new(surround_object: &'a mut re_export::AnimationPlayer,) -> Self { + let keep_state = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, keep_state: keep_state, + } + } + #[inline] + pub fn keep_state(self, keep_state: bool) -> Self { + Self { + keep_state: keep_state, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, keep_state, + } + = self; + re_export::AnimationPlayer::stop_full(surround_object, keep_state,) + } +} +#[doc = "Default-param extender for [`AnimationPlayer::seek_ex`][super::AnimationPlayer::seek_ex]."] +#[must_use] +pub struct ExSeek < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AnimationPlayer, seconds: f64, update: bool, update_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSeek < 'a > { + fn new(surround_object: &'a mut re_export::AnimationPlayer, seconds: f64,) -> Self { + let update = false; + let update_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, seconds: seconds, update: update, update_only: update_only, + } + } + #[inline] + pub fn update(self, update: bool) -> Self { + Self { + update: update, .. self + } + } + #[inline] + pub fn update_only(self, update_only: bool) -> Self { + Self { + update_only: update_only, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, seconds, update, update_only, + } + = self; + re_export::AnimationPlayer::seek_full(surround_object, seconds, update, update_only,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AnimationProcessCallback { + ord: i32 +} +impl AnimationProcessCallback { + #[doc(alias = "ANIMATION_PROCESS_PHYSICS")] + #[doc = "Godot enumerator name: `ANIMATION_PROCESS_PHYSICS`"] + pub const PHYSICS: AnimationProcessCallback = AnimationProcessCallback { + ord: 0i32 + }; + #[doc(alias = "ANIMATION_PROCESS_IDLE")] + #[doc = "Godot enumerator name: `ANIMATION_PROCESS_IDLE`"] + pub const IDLE: AnimationProcessCallback = AnimationProcessCallback { + ord: 1i32 + }; + #[doc(alias = "ANIMATION_PROCESS_MANUAL")] + #[doc = "Godot enumerator name: `ANIMATION_PROCESS_MANUAL`"] + pub const MANUAL: AnimationProcessCallback = AnimationProcessCallback { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AnimationProcessCallback { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AnimationProcessCallback") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AnimationProcessCallback { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PHYSICS => "PHYSICS", Self::IDLE => "IDLE", Self::MANUAL => "MANUAL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PHYSICS => "ANIMATION_PROCESS_PHYSICS", Self::IDLE => "ANIMATION_PROCESS_IDLE", Self::MANUAL => "ANIMATION_PROCESS_MANUAL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AnimationProcessCallback { + type Via = i32; + +} +impl crate::meta::ToGodot for AnimationProcessCallback { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AnimationProcessCallback { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AnimationMethodCallMode { + ord: i32 +} +impl AnimationMethodCallMode { + #[doc(alias = "ANIMATION_METHOD_CALL_DEFERRED")] + #[doc = "Godot enumerator name: `ANIMATION_METHOD_CALL_DEFERRED`"] + pub const DEFERRED: AnimationMethodCallMode = AnimationMethodCallMode { + ord: 0i32 + }; + #[doc(alias = "ANIMATION_METHOD_CALL_IMMEDIATE")] + #[doc = "Godot enumerator name: `ANIMATION_METHOD_CALL_IMMEDIATE`"] + pub const IMMEDIATE: AnimationMethodCallMode = AnimationMethodCallMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for AnimationMethodCallMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AnimationMethodCallMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AnimationMethodCallMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFERRED => "DEFERRED", Self::IMMEDIATE => "IMMEDIATE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFERRED => "ANIMATION_METHOD_CALL_DEFERRED", Self::IMMEDIATE => "ANIMATION_METHOD_CALL_IMMEDIATE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AnimationMethodCallMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AnimationMethodCallMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AnimationMethodCallMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_root_node.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_root_node.rs new file mode 100644 index 0000000..d14049c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_root_node.rs @@ -0,0 +1,232 @@ +#![doc = "Sidecar module for class [`AnimationRootNode`][crate::classes::AnimationRootNode].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationRootNode` enums](https://docs.godotengine.org/en/stable/classes/class_animationrootnode.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationRootNode.`\n\nInherits [`AnimationNode`][crate::classes::AnimationNode].\n\nRelated symbols:\n\n* [`IAnimationRootNode`][crate::classes::IAnimationRootNode]: virtual methods\n\n\nSee also [Godot docs for `AnimationRootNode`](https://docs.godotengine.org/en/stable/classes/class_animationrootnode.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AnimationRootNode::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationRootNode { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationRootNode`][crate::classes::AnimationRootNode].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationRootNode` methods](https://docs.godotengine.org/en/stable/classes/class_animationrootnode.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationRootNode: crate::obj::GodotClass < Base = AnimationRootNode > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_child_nodes(&self,) -> Dictionary { + unimplemented !() + } + fn get_parameter_list(&self,) -> VariantArray { + unimplemented !() + } + fn get_child_by_name(&self, name: StringName,) -> Option < Gd < crate::classes::AnimationNode > > { + unimplemented !() + } + fn get_parameter_default_value(&self, parameter: StringName,) -> Variant { + unimplemented !() + } + fn is_parameter_read_only(&self, parameter: StringName,) -> bool { + unimplemented !() + } + fn process(&self, time: f64, seek: bool, is_external_seeking: bool, test_only: bool,) -> f64 { + unimplemented !() + } + fn get_caption(&self,) -> GString { + unimplemented !() + } + fn has_filter(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AnimationRootNode { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationRootNode { + type Base = crate::classes::AnimationNode; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationRootNode")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationRootNode { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationNode > for AnimationRootNode { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AnimationRootNode { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AnimationRootNode { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationRootNode { + + } + impl crate::obj::cap::GodotDefault for AnimationRootNode { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationRootNode { + type Target = crate::classes::AnimationNode; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationRootNode { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationRootNode`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationRootNode { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationRootNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_tree.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_tree.rs new file mode 100644 index 0000000..30b3e6e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/animation_tree.rs @@ -0,0 +1,371 @@ +#![doc = "Sidecar module for class [`AnimationTree`][crate::classes::AnimationTree].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AnimationTree` enums](https://docs.godotengine.org/en/stable/classes/class_animationtree.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AnimationTree.`\n\nInherits [`AnimationMixer`][crate::classes::AnimationMixer].\n\nRelated symbols:\n\n* [`animation_tree`][crate::classes::animation_tree]: sidecar module with related enum/flag types\n* [`IAnimationTree`][crate::classes::IAnimationTree]: virtual methods\n\n\nSee also [Godot docs for `AnimationTree`](https://docs.godotengine.org/en/stable/classes/class_animationtree.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AnimationTree::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AnimationTree { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AnimationTree`][crate::classes::AnimationTree].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AnimationTree` methods](https://docs.godotengine.org/en/stable/classes/class_animationtree.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAnimationTree: crate::obj::GodotClass < Base = AnimationTree > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn post_process_key_value(&self, animation: Option < Gd < crate::classes::Animation > >, track: i32, value: Variant, object_id: u64, object_sub_idx: i32,) -> Variant { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AnimationTree { + pub fn set_tree_root(&mut self, animation_node: impl AsObjectArg < crate::classes::AnimationRootNode >,) { + type CallSig = ((), ObjectArg < crate::classes::AnimationRootNode >); + let args = (animation_node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(495usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationTree", "set_tree_root", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tree_root(&self,) -> Option < Gd < crate::classes::AnimationRootNode > > { + type CallSig = (Option < Gd < crate::classes::AnimationRootNode > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(496usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationTree", "get_tree_root", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_advance_expression_base_node(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(497usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationTree", "set_advance_expression_base_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_advance_expression_base_node(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(498usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationTree", "get_advance_expression_base_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_animation_player(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(499usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationTree", "set_animation_player", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation_player(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(500usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationTree", "get_animation_player", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_callback(&mut self, mode: crate::classes::animation_tree::AnimationProcessCallback,) { + type CallSig = ((), crate::classes::animation_tree::AnimationProcessCallback); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(501usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationTree", "set_process_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_callback(&self,) -> crate::classes::animation_tree::AnimationProcessCallback { + type CallSig = (crate::classes::animation_tree::AnimationProcessCallback,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(502usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AnimationTree", "get_process_callback", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AnimationTree { + type Base = crate::classes::AnimationMixer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AnimationTree")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AnimationTree { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AnimationMixer > for AnimationTree { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AnimationTree { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AnimationTree { + + } + impl crate::obj::cap::GodotDefault for AnimationTree { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AnimationTree { + type Target = crate::classes::AnimationMixer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AnimationTree { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AnimationTree`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AnimationTree { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationTree > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AnimationMixer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AnimationProcessCallback { + ord: i32 +} +impl AnimationProcessCallback { + #[doc(alias = "ANIMATION_PROCESS_PHYSICS")] + #[doc = "Godot enumerator name: `ANIMATION_PROCESS_PHYSICS`"] + pub const PHYSICS: AnimationProcessCallback = AnimationProcessCallback { + ord: 0i32 + }; + #[doc(alias = "ANIMATION_PROCESS_IDLE")] + #[doc = "Godot enumerator name: `ANIMATION_PROCESS_IDLE`"] + pub const IDLE: AnimationProcessCallback = AnimationProcessCallback { + ord: 1i32 + }; + #[doc(alias = "ANIMATION_PROCESS_MANUAL")] + #[doc = "Godot enumerator name: `ANIMATION_PROCESS_MANUAL`"] + pub const MANUAL: AnimationProcessCallback = AnimationProcessCallback { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AnimationProcessCallback { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AnimationProcessCallback") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AnimationProcessCallback { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PHYSICS => "PHYSICS", Self::IDLE => "IDLE", Self::MANUAL => "MANUAL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PHYSICS => "ANIMATION_PROCESS_PHYSICS", Self::IDLE => "ANIMATION_PROCESS_IDLE", Self::MANUAL => "ANIMATION_PROCESS_MANUAL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AnimationProcessCallback { + type Via = i32; + +} +impl crate::meta::ToGodot for AnimationProcessCallback { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AnimationProcessCallback { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/area_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/area_2d.rs new file mode 100644 index 0000000..b66c4d6 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/area_2d.rs @@ -0,0 +1,632 @@ +#![doc = "Sidecar module for class [`Area2D`][crate::classes::Area2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Area2D` enums](https://docs.godotengine.org/en/stable/classes/class_area2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Area2D.`\n\nInherits [`CollisionObject2D`][crate::classes::CollisionObject2D].\n\nRelated symbols:\n\n* [`area_2d`][crate::classes::area_2d]: sidecar module with related enum/flag types\n* [`IArea2D`][crate::classes::IArea2D]: virtual methods\n\n\nSee also [Godot docs for `Area2D`](https://docs.godotengine.org/en/stable/classes/class_area2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Area2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Area2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Area2D`][crate::classes::Area2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Area2D` methods](https://docs.godotengine.org/en/stable/classes/class_area2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IArea2D: crate::obj::GodotClass < Base = Area2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn input_event(&mut self, viewport: Gd < crate::classes::Viewport >, event: Gd < crate::classes::InputEvent >, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn mouse_shape_enter(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn mouse_shape_exit(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Area2D { + pub fn set_gravity_space_override_mode(&mut self, space_override_mode: crate::classes::area_2d::SpaceOverride,) { + type CallSig = ((), crate::classes::area_2d::SpaceOverride); + let args = (space_override_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(503usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_gravity_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity_space_override_mode(&self,) -> crate::classes::area_2d::SpaceOverride { + type CallSig = (crate::classes::area_2d::SpaceOverride,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(504usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_gravity_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity_is_point(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(505usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_gravity_is_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_gravity_a_point(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(506usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "is_gravity_a_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity_point_unit_distance(&mut self, distance_scale: f32,) { + type CallSig = ((), f32); + let args = (distance_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(507usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_gravity_point_unit_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity_point_unit_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(508usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_gravity_point_unit_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity_point_center(&mut self, center: Vector2,) { + type CallSig = ((), Vector2); + let args = (center,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(509usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_gravity_point_center", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity_point_center(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(510usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_gravity_point_center", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity_direction(&mut self, direction: Vector2,) { + type CallSig = ((), Vector2); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(511usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_gravity_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity_direction(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(512usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_gravity_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity(&mut self, gravity: f32,) { + type CallSig = ((), f32); + let args = (gravity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(513usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(514usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_damp_space_override_mode(&mut self, space_override_mode: crate::classes::area_2d::SpaceOverride,) { + type CallSig = ((), crate::classes::area_2d::SpaceOverride); + let args = (space_override_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(515usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_linear_damp_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_damp_space_override_mode(&self,) -> crate::classes::area_2d::SpaceOverride { + type CallSig = (crate::classes::area_2d::SpaceOverride,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(516usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_linear_damp_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_damp_space_override_mode(&mut self, space_override_mode: crate::classes::area_2d::SpaceOverride,) { + type CallSig = ((), crate::classes::area_2d::SpaceOverride); + let args = (space_override_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(517usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_angular_damp_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_damp_space_override_mode(&self,) -> crate::classes::area_2d::SpaceOverride { + type CallSig = (crate::classes::area_2d::SpaceOverride,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(518usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_angular_damp_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_damp(&mut self, linear_damp: f32,) { + type CallSig = ((), f32); + let args = (linear_damp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(519usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(520usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_damp(&mut self, angular_damp: f32,) { + type CallSig = ((), f32); + let args = (angular_damp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(521usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(522usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_priority(&mut self, priority: i32,) { + type CallSig = ((), i32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(523usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_priority(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(524usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_monitoring(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(525usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_monitoring", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_monitoring(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(526usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "is_monitoring", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_monitorable(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(527usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_monitorable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_monitorable(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(528usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "is_monitorable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_overlapping_bodies(&self,) -> Array < Gd < crate::classes::Node2D > > { + type CallSig = (Array < Gd < crate::classes::Node2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(529usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_overlapping_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_overlapping_areas(&self,) -> Array < Gd < crate::classes::Area2D > > { + type CallSig = (Array < Gd < crate::classes::Area2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(530usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_overlapping_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_overlapping_bodies(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(531usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "has_overlapping_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_overlapping_areas(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(532usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "has_overlapping_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn overlaps_body(&self, body: impl AsObjectArg < crate::classes::Node >,) -> bool { + type CallSig = (bool, ObjectArg < crate::classes::Node >); + let args = (body.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(533usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "overlaps_body", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn overlaps_area(&self, area: impl AsObjectArg < crate::classes::Node >,) -> bool { + type CallSig = (bool, ObjectArg < crate::classes::Node >); + let args = (area.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(534usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "overlaps_area", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_audio_bus_name(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(535usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_audio_bus_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_audio_bus_name(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(536usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "get_audio_bus_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_audio_bus_override(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(537usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "set_audio_bus_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_overriding_audio_bus(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(538usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area2D", "is_overriding_audio_bus", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Area2D { + type Base = crate::classes::CollisionObject2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Area2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Area2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject2D > for Area2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for Area2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Area2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Area2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Area2D { + + } + impl crate::obj::cap::GodotDefault for Area2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Area2D { + type Target = crate::classes::CollisionObject2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Area2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Area2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Area2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Area2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SpaceOverride { + ord: i32 +} +impl SpaceOverride { + #[doc(alias = "SPACE_OVERRIDE_DISABLED")] + #[doc = "Godot enumerator name: `SPACE_OVERRIDE_DISABLED`"] + pub const DISABLED: SpaceOverride = SpaceOverride { + ord: 0i32 + }; + #[doc(alias = "SPACE_OVERRIDE_COMBINE")] + #[doc = "Godot enumerator name: `SPACE_OVERRIDE_COMBINE`"] + pub const COMBINE: SpaceOverride = SpaceOverride { + ord: 1i32 + }; + #[doc(alias = "SPACE_OVERRIDE_COMBINE_REPLACE")] + #[doc = "Godot enumerator name: `SPACE_OVERRIDE_COMBINE_REPLACE`"] + pub const COMBINE_REPLACE: SpaceOverride = SpaceOverride { + ord: 2i32 + }; + #[doc(alias = "SPACE_OVERRIDE_REPLACE")] + #[doc = "Godot enumerator name: `SPACE_OVERRIDE_REPLACE`"] + pub const REPLACE: SpaceOverride = SpaceOverride { + ord: 3i32 + }; + #[doc(alias = "SPACE_OVERRIDE_REPLACE_COMBINE")] + #[doc = "Godot enumerator name: `SPACE_OVERRIDE_REPLACE_COMBINE`"] + pub const REPLACE_COMBINE: SpaceOverride = SpaceOverride { + ord: 4i32 + }; + +} +impl std::fmt::Debug for SpaceOverride { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SpaceOverride") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SpaceOverride { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::COMBINE => "COMBINE", Self::COMBINE_REPLACE => "COMBINE_REPLACE", Self::REPLACE => "REPLACE", Self::REPLACE_COMBINE => "REPLACE_COMBINE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "SPACE_OVERRIDE_DISABLED", Self::COMBINE => "SPACE_OVERRIDE_COMBINE", Self::COMBINE_REPLACE => "SPACE_OVERRIDE_COMBINE_REPLACE", Self::REPLACE => "SPACE_OVERRIDE_REPLACE", Self::REPLACE_COMBINE => "SPACE_OVERRIDE_REPLACE_COMBINE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SpaceOverride { + type Via = i32; + +} +impl crate::meta::ToGodot for SpaceOverride { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SpaceOverride { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/area_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/area_3d.rs new file mode 100644 index 0000000..1fa673e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/area_3d.rs @@ -0,0 +1,729 @@ +#![doc = "Sidecar module for class [`Area3D`][crate::classes::Area3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Area3D` enums](https://docs.godotengine.org/en/stable/classes/class_area3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Area3D.`\n\nInherits [`CollisionObject3D`][crate::classes::CollisionObject3D].\n\nRelated symbols:\n\n* [`area_3d`][crate::classes::area_3d]: sidecar module with related enum/flag types\n* [`IArea3D`][crate::classes::IArea3D]: virtual methods\n\n\nSee also [Godot docs for `Area3D`](https://docs.godotengine.org/en/stable/classes/class_area3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Area3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Area3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Area3D`][crate::classes::Area3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Area3D` methods](https://docs.godotengine.org/en/stable/classes/class_area3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IArea3D: crate::obj::GodotClass < Base = Area3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn input_event(&mut self, camera: Option < Gd < crate::classes::Camera3D > >, event: Option < Gd < crate::classes::InputEvent > >, event_position: Vector3, normal: Vector3, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Area3D { + pub fn set_gravity_space_override_mode(&mut self, space_override_mode: crate::classes::area_3d::SpaceOverride,) { + type CallSig = ((), crate::classes::area_3d::SpaceOverride); + let args = (space_override_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(539usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_gravity_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity_space_override_mode(&self,) -> crate::classes::area_3d::SpaceOverride { + type CallSig = (crate::classes::area_3d::SpaceOverride,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(540usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_gravity_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity_is_point(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(541usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_gravity_is_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_gravity_a_point(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(542usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "is_gravity_a_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity_point_unit_distance(&mut self, distance_scale: f32,) { + type CallSig = ((), f32); + let args = (distance_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(543usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_gravity_point_unit_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity_point_unit_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(544usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_gravity_point_unit_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity_point_center(&mut self, center: Vector3,) { + type CallSig = ((), Vector3); + let args = (center,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(545usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_gravity_point_center", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity_point_center(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(546usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_gravity_point_center", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity_direction(&mut self, direction: Vector3,) { + type CallSig = ((), Vector3); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(547usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_gravity_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity_direction(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(548usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_gravity_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity(&mut self, gravity: f32,) { + type CallSig = ((), f32); + let args = (gravity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(549usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(550usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_damp_space_override_mode(&mut self, space_override_mode: crate::classes::area_3d::SpaceOverride,) { + type CallSig = ((), crate::classes::area_3d::SpaceOverride); + let args = (space_override_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(551usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_linear_damp_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_damp_space_override_mode(&self,) -> crate::classes::area_3d::SpaceOverride { + type CallSig = (crate::classes::area_3d::SpaceOverride,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(552usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_linear_damp_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_damp_space_override_mode(&mut self, space_override_mode: crate::classes::area_3d::SpaceOverride,) { + type CallSig = ((), crate::classes::area_3d::SpaceOverride); + let args = (space_override_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(553usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_angular_damp_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_damp_space_override_mode(&self,) -> crate::classes::area_3d::SpaceOverride { + type CallSig = (crate::classes::area_3d::SpaceOverride,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(554usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_angular_damp_space_override_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_damp(&mut self, angular_damp: f32,) { + type CallSig = ((), f32); + let args = (angular_damp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(555usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(556usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_damp(&mut self, linear_damp: f32,) { + type CallSig = ((), f32); + let args = (linear_damp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(557usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(558usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_priority(&mut self, priority: i32,) { + type CallSig = ((), i32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(559usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_priority(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(560usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_wind_force_magnitude(&mut self, wind_force_magnitude: f32,) { + type CallSig = ((), f32); + let args = (wind_force_magnitude,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(561usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_wind_force_magnitude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wind_force_magnitude(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(562usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_wind_force_magnitude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_wind_attenuation_factor(&mut self, wind_attenuation_factor: f32,) { + type CallSig = ((), f32); + let args = (wind_attenuation_factor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(563usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_wind_attenuation_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wind_attenuation_factor(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(564usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_wind_attenuation_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_wind_source_path(&mut self, wind_source_path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (wind_source_path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(565usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_wind_source_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wind_source_path(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(566usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_wind_source_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_monitorable(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(567usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_monitorable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_monitorable(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(568usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "is_monitorable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_monitoring(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(569usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_monitoring", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_monitoring(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(570usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "is_monitoring", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_overlapping_bodies(&self,) -> Array < Gd < crate::classes::Node3D > > { + type CallSig = (Array < Gd < crate::classes::Node3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(571usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_overlapping_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_overlapping_areas(&self,) -> Array < Gd < crate::classes::Area3D > > { + type CallSig = (Array < Gd < crate::classes::Area3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(572usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_overlapping_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_overlapping_bodies(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(573usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "has_overlapping_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_overlapping_areas(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(574usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "has_overlapping_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn overlaps_body(&self, body: impl AsObjectArg < crate::classes::Node >,) -> bool { + type CallSig = (bool, ObjectArg < crate::classes::Node >); + let args = (body.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(575usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "overlaps_body", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn overlaps_area(&self, area: impl AsObjectArg < crate::classes::Node >,) -> bool { + type CallSig = (bool, ObjectArg < crate::classes::Node >); + let args = (area.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(576usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "overlaps_area", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_audio_bus_override(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(577usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_audio_bus_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_overriding_audio_bus(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(578usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "is_overriding_audio_bus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_audio_bus_name(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(579usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_audio_bus_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_audio_bus_name(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(580usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_audio_bus_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_reverb_bus(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(581usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_use_reverb_bus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_reverb_bus(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(582usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "is_using_reverb_bus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_reverb_bus_name(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(583usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_reverb_bus_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_reverb_bus_name(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(584usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_reverb_bus_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_reverb_amount(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(585usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_reverb_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_reverb_amount(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(586usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_reverb_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_reverb_uniformity(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(587usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "set_reverb_uniformity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_reverb_uniformity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(588usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Area3D", "get_reverb_uniformity", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Area3D { + type Base = crate::classes::CollisionObject3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Area3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Area3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject3D > for Area3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for Area3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Area3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Area3D { + + } + impl crate::obj::cap::GodotDefault for Area3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Area3D { + type Target = crate::classes::CollisionObject3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Area3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Area3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Area3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Area3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SpaceOverride { + ord: i32 +} +impl SpaceOverride { + #[doc(alias = "SPACE_OVERRIDE_DISABLED")] + #[doc = "Godot enumerator name: `SPACE_OVERRIDE_DISABLED`"] + pub const DISABLED: SpaceOverride = SpaceOverride { + ord: 0i32 + }; + #[doc(alias = "SPACE_OVERRIDE_COMBINE")] + #[doc = "Godot enumerator name: `SPACE_OVERRIDE_COMBINE`"] + pub const COMBINE: SpaceOverride = SpaceOverride { + ord: 1i32 + }; + #[doc(alias = "SPACE_OVERRIDE_COMBINE_REPLACE")] + #[doc = "Godot enumerator name: `SPACE_OVERRIDE_COMBINE_REPLACE`"] + pub const COMBINE_REPLACE: SpaceOverride = SpaceOverride { + ord: 2i32 + }; + #[doc(alias = "SPACE_OVERRIDE_REPLACE")] + #[doc = "Godot enumerator name: `SPACE_OVERRIDE_REPLACE`"] + pub const REPLACE: SpaceOverride = SpaceOverride { + ord: 3i32 + }; + #[doc(alias = "SPACE_OVERRIDE_REPLACE_COMBINE")] + #[doc = "Godot enumerator name: `SPACE_OVERRIDE_REPLACE_COMBINE`"] + pub const REPLACE_COMBINE: SpaceOverride = SpaceOverride { + ord: 4i32 + }; + +} +impl std::fmt::Debug for SpaceOverride { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SpaceOverride") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SpaceOverride { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::COMBINE => "COMBINE", Self::COMBINE_REPLACE => "COMBINE_REPLACE", Self::REPLACE => "REPLACE", Self::REPLACE_COMBINE => "REPLACE_COMBINE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "SPACE_OVERRIDE_DISABLED", Self::COMBINE => "SPACE_OVERRIDE_COMBINE", Self::COMBINE_REPLACE => "SPACE_OVERRIDE_COMBINE_REPLACE", Self::REPLACE => "SPACE_OVERRIDE_REPLACE", Self::REPLACE_COMBINE => "SPACE_OVERRIDE_REPLACE_COMBINE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SpaceOverride { + type Via = i32; + +} +impl crate::meta::ToGodot for SpaceOverride { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SpaceOverride { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/array_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/array_mesh.rs new file mode 100644 index 0000000..404ca40 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/array_mesh.rs @@ -0,0 +1,473 @@ +#![doc = "Sidecar module for class [`ArrayMesh`][crate::classes::ArrayMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ArrayMesh` enums](https://docs.godotengine.org/en/stable/classes/class_arraymesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ArrayMesh.`\n\nInherits [`Mesh`][crate::classes::Mesh].\n\nRelated symbols:\n\n* [`array_mesh`][crate::classes::array_mesh]: sidecar module with related enum/flag types\n* [`IArrayMesh`][crate::classes::IArrayMesh]: virtual methods\n\n\nSee also [Godot docs for `ArrayMesh`](https://docs.godotengine.org/en/stable/classes/class_arraymesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ArrayMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ArrayMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ArrayMesh`][crate::classes::ArrayMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ArrayMesh` methods](https://docs.godotengine.org/en/stable/classes/class_arraymesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IArrayMesh: crate::obj::GodotClass < Base = ArrayMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ArrayMesh { + pub fn add_blend_shape(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(589usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "add_blend_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_shape_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(590usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "get_blend_shape_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_shape_name(&self, index: i32,) -> StringName { + type CallSig = (StringName, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(591usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "get_blend_shape_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_shape_name(&mut self, index: i32, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, StringName >); + let args = (index, name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(592usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "set_blend_shape_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_blend_shapes(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(593usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "clear_blend_shapes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_shape_mode(&mut self, mode: crate::classes::mesh::BlendShapeMode,) { + type CallSig = ((), crate::classes::mesh::BlendShapeMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(594usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "set_blend_shape_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_shape_mode(&self,) -> crate::classes::mesh::BlendShapeMode { + type CallSig = (crate::classes::mesh::BlendShapeMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(595usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "get_blend_shape_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_surface_from_arrays_full(&mut self, primitive: crate::classes::mesh::PrimitiveType, arrays: RefArg < VariantArray >, blend_shapes: RefArg < Array < VariantArray > >, lods: RefArg < Dictionary >, flags: crate::classes::mesh::ArrayFormat,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), crate::classes::mesh::PrimitiveType, RefArg < 'a0, VariantArray >, RefArg < 'a1, Array < VariantArray > >, RefArg < 'a2, Dictionary >, crate::classes::mesh::ArrayFormat); + let args = (primitive, arrays, blend_shapes, lods, flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(596usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "add_surface_from_arrays", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_surface_from_arrays_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_surface_from_arrays(&mut self, primitive: crate::classes::mesh::PrimitiveType, arrays: &VariantArray,) { + self.add_surface_from_arrays_ex(primitive, arrays,) . done() + } + #[inline] + pub fn add_surface_from_arrays_ex < 'a > (&'a mut self, primitive: crate::classes::mesh::PrimitiveType, arrays: &'a VariantArray,) -> ExAddSurfaceFromArrays < 'a > { + ExAddSurfaceFromArrays::new(self, primitive, arrays,) + } + pub fn clear_surfaces(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(597usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "clear_surfaces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_update_vertex_region(&mut self, surf_idx: i32, offset: i32, data: &PackedByteArray,) { + type CallSig < 'a0, > = ((), i32, i32, RefArg < 'a0, PackedByteArray >); + let args = (surf_idx, offset, RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(598usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "surface_update_vertex_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_update_attribute_region(&mut self, surf_idx: i32, offset: i32, data: &PackedByteArray,) { + type CallSig < 'a0, > = ((), i32, i32, RefArg < 'a0, PackedByteArray >); + let args = (surf_idx, offset, RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(599usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "surface_update_attribute_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_update_skin_region(&mut self, surf_idx: i32, offset: i32, data: &PackedByteArray,) { + type CallSig < 'a0, > = ((), i32, i32, RefArg < 'a0, PackedByteArray >); + let args = (surf_idx, offset, RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(600usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "surface_update_skin_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_get_array_len(&self, surf_idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (surf_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(601usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "surface_get_array_len", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_get_array_index_len(&self, surf_idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (surf_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(602usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "surface_get_array_index_len", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_get_format(&self, surf_idx: i32,) -> crate::classes::mesh::ArrayFormat { + type CallSig = (crate::classes::mesh::ArrayFormat, i32); + let args = (surf_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(603usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "surface_get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_get_primitive_type(&self, surf_idx: i32,) -> crate::classes::mesh::PrimitiveType { + type CallSig = (crate::classes::mesh::PrimitiveType, i32); + let args = (surf_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(604usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "surface_get_primitive_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_find_by_name(&self, name: impl AsArg < GString >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(605usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "surface_find_by_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_set_name(&mut self, surf_idx: i32, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (surf_idx, name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(606usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "surface_set_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_get_name(&self, surf_idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (surf_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(607usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "surface_get_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn regen_normal_maps(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(608usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "regen_normal_maps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_unwrap(&mut self, transform: Transform3D, texel_size: f32,) -> crate::global::Error { + type CallSig = (crate::global::Error, Transform3D, f32); + let args = (transform, texel_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(609usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "lightmap_unwrap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_custom_aabb(&mut self, aabb: Aabb,) { + type CallSig = ((), Aabb); + let args = (aabb,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(610usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "set_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_custom_aabb(&self,) -> Aabb { + type CallSig = (Aabb,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(611usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "get_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shadow_mesh(&mut self, mesh: impl AsObjectArg < crate::classes::ArrayMesh >,) { + type CallSig = ((), ObjectArg < crate::classes::ArrayMesh >); + let args = (mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(612usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "set_shadow_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shadow_mesh(&self,) -> Option < Gd < crate::classes::ArrayMesh > > { + type CallSig = (Option < Gd < crate::classes::ArrayMesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(613usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayMesh", "get_shadow_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ArrayMesh { + type Base = crate::classes::Mesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ArrayMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ArrayMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for ArrayMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ArrayMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ArrayMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ArrayMesh { + + } + impl crate::obj::cap::GodotDefault for ArrayMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ArrayMesh { + type Target = crate::classes::Mesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ArrayMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ArrayMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ArrayMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ArrayMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ArrayMesh::add_surface_from_arrays_ex`][super::ArrayMesh::add_surface_from_arrays_ex]."] +#[must_use] +pub struct ExAddSurfaceFromArrays < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ArrayMesh, primitive: crate::classes::mesh::PrimitiveType, arrays: CowArg < 'a, VariantArray >, blend_shapes: CowArg < 'a, Array < VariantArray > >, lods: CowArg < 'a, Dictionary >, flags: crate::classes::mesh::ArrayFormat, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddSurfaceFromArrays < 'a > { + fn new(surround_object: &'a mut re_export::ArrayMesh, primitive: crate::classes::mesh::PrimitiveType, arrays: &'a VariantArray,) -> Self { + let blend_shapes = Array::new(); + let lods = Dictionary::new(); + let flags = crate::obj::EngineBitfield::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, primitive: primitive, arrays: CowArg::Borrowed(arrays), blend_shapes: CowArg::Owned(blend_shapes), lods: CowArg::Owned(lods), flags: flags, + } + } + #[inline] + pub fn blend_shapes(self, blend_shapes: &'a Array < VariantArray >) -> Self { + Self { + blend_shapes: CowArg::Borrowed(blend_shapes), .. self + } + } + #[inline] + pub fn lods(self, lods: &'a Dictionary) -> Self { + Self { + lods: CowArg::Borrowed(lods), .. self + } + } + #[inline] + pub fn flags(self, flags: crate::classes::mesh::ArrayFormat) -> Self { + Self { + flags: flags, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, primitive, arrays, blend_shapes, lods, flags, + } + = self; + re_export::ArrayMesh::add_surface_from_arrays_full(surround_object, primitive, arrays.cow_as_arg(), blend_shapes.cow_as_arg(), lods.cow_as_arg(), flags,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/array_occluder_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/array_occluder_3d.rs new file mode 100644 index 0000000..c36865a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/array_occluder_3d.rs @@ -0,0 +1,232 @@ +#![doc = "Sidecar module for class [`ArrayOccluder3D`][crate::classes::ArrayOccluder3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ArrayOccluder3D` enums](https://docs.godotengine.org/en/stable/classes/class_arrayoccluder3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ArrayOccluder3D.`\n\nInherits [`Occluder3D`][crate::classes::Occluder3D].\n\nRelated symbols:\n\n* [`IArrayOccluder3D`][crate::classes::IArrayOccluder3D]: virtual methods\n\n\nSee also [Godot docs for `ArrayOccluder3D`](https://docs.godotengine.org/en/stable/classes/class_arrayoccluder3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ArrayOccluder3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ArrayOccluder3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ArrayOccluder3D`][crate::classes::ArrayOccluder3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ArrayOccluder3D` methods](https://docs.godotengine.org/en/stable/classes/class_arrayoccluder3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IArrayOccluder3D: crate::obj::GodotClass < Base = ArrayOccluder3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ArrayOccluder3D { + pub fn set_arrays(&mut self, vertices: &PackedVector3Array, indices: &PackedInt32Array,) { + type CallSig < 'a0, 'a1, > = ((), RefArg < 'a0, PackedVector3Array >, RefArg < 'a1, PackedInt32Array >); + let args = (RefArg::new(vertices), RefArg::new(indices),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(614usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayOccluder3D", "set_arrays", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertices(&mut self, vertices: &PackedVector3Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector3Array >); + let args = (RefArg::new(vertices),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(615usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayOccluder3D", "set_vertices", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_indices(&mut self, indices: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(indices),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(616usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ArrayOccluder3D", "set_indices", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ArrayOccluder3D { + type Base = crate::classes::Occluder3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ArrayOccluder3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ArrayOccluder3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Occluder3D > for ArrayOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ArrayOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ArrayOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ArrayOccluder3D { + + } + impl crate::obj::cap::GodotDefault for ArrayOccluder3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ArrayOccluder3D { + type Target = crate::classes::Occluder3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ArrayOccluder3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ArrayOccluder3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ArrayOccluder3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ArrayOccluder3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Occluder3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/aspect_ratio_container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/aspect_ratio_container.rs new file mode 100644 index 0000000..dd42c49 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/aspect_ratio_container.rs @@ -0,0 +1,496 @@ +#![doc = "Sidecar module for class [`AspectRatioContainer`][crate::classes::AspectRatioContainer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AspectRatioContainer` enums](https://docs.godotengine.org/en/stable/classes/class_aspectratiocontainer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AspectRatioContainer.`\n\nInherits [`Container`][crate::classes::Container].\n\nRelated symbols:\n\n* [`aspect_ratio_container`][crate::classes::aspect_ratio_container]: sidecar module with related enum/flag types\n* [`IAspectRatioContainer`][crate::classes::IAspectRatioContainer]: virtual methods\n\n\nSee also [Godot docs for `AspectRatioContainer`](https://docs.godotengine.org/en/stable/classes/class_aspectratiocontainer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AspectRatioContainer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AspectRatioContainer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AspectRatioContainer`][crate::classes::AspectRatioContainer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AspectRatioContainer` methods](https://docs.godotengine.org/en/stable/classes/class_aspectratiocontainer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAspectRatioContainer: crate::obj::GodotClass < Base = AspectRatioContainer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AspectRatioContainer { + pub fn set_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(617usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AspectRatioContainer", "set_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(618usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AspectRatioContainer", "get_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stretch_mode(&mut self, stretch_mode: crate::classes::aspect_ratio_container::StretchMode,) { + type CallSig = ((), crate::classes::aspect_ratio_container::StretchMode); + let args = (stretch_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(619usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AspectRatioContainer", "set_stretch_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stretch_mode(&self,) -> crate::classes::aspect_ratio_container::StretchMode { + type CallSig = (crate::classes::aspect_ratio_container::StretchMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(620usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AspectRatioContainer", "get_stretch_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alignment_horizontal(&mut self, alignment_horizontal: crate::classes::aspect_ratio_container::AlignmentMode,) { + type CallSig = ((), crate::classes::aspect_ratio_container::AlignmentMode); + let args = (alignment_horizontal,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(621usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AspectRatioContainer", "set_alignment_horizontal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alignment_horizontal(&self,) -> crate::classes::aspect_ratio_container::AlignmentMode { + type CallSig = (crate::classes::aspect_ratio_container::AlignmentMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(622usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AspectRatioContainer", "get_alignment_horizontal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alignment_vertical(&mut self, alignment_vertical: crate::classes::aspect_ratio_container::AlignmentMode,) { + type CallSig = ((), crate::classes::aspect_ratio_container::AlignmentMode); + let args = (alignment_vertical,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(623usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AspectRatioContainer", "set_alignment_vertical", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alignment_vertical(&self,) -> crate::classes::aspect_ratio_container::AlignmentMode { + type CallSig = (crate::classes::aspect_ratio_container::AlignmentMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(624usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AspectRatioContainer", "get_alignment_vertical", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AspectRatioContainer { + type Base = crate::classes::Container; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AspectRatioContainer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AspectRatioContainer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for AspectRatioContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for AspectRatioContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for AspectRatioContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AspectRatioContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AspectRatioContainer { + + } + impl crate::obj::cap::GodotDefault for AspectRatioContainer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AspectRatioContainer { + type Target = crate::classes::Container; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AspectRatioContainer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AspectRatioContainer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AspectRatioContainer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AspectRatioContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct StretchMode { + ord: i32 +} +impl StretchMode { + #[doc(alias = "STRETCH_WIDTH_CONTROLS_HEIGHT")] + #[doc = "Godot enumerator name: `STRETCH_WIDTH_CONTROLS_HEIGHT`"] + pub const WIDTH_CONTROLS_HEIGHT: StretchMode = StretchMode { + ord: 0i32 + }; + #[doc(alias = "STRETCH_HEIGHT_CONTROLS_WIDTH")] + #[doc = "Godot enumerator name: `STRETCH_HEIGHT_CONTROLS_WIDTH`"] + pub const HEIGHT_CONTROLS_WIDTH: StretchMode = StretchMode { + ord: 1i32 + }; + #[doc(alias = "STRETCH_FIT")] + #[doc = "Godot enumerator name: `STRETCH_FIT`"] + pub const FIT: StretchMode = StretchMode { + ord: 2i32 + }; + #[doc(alias = "STRETCH_COVER")] + #[doc = "Godot enumerator name: `STRETCH_COVER`"] + pub const COVER: StretchMode = StretchMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for StretchMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("StretchMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for StretchMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WIDTH_CONTROLS_HEIGHT => "WIDTH_CONTROLS_HEIGHT", Self::HEIGHT_CONTROLS_WIDTH => "HEIGHT_CONTROLS_WIDTH", Self::FIT => "FIT", Self::COVER => "COVER", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WIDTH_CONTROLS_HEIGHT => "STRETCH_WIDTH_CONTROLS_HEIGHT", Self::HEIGHT_CONTROLS_WIDTH => "STRETCH_HEIGHT_CONTROLS_WIDTH", Self::FIT => "STRETCH_FIT", Self::COVER => "STRETCH_COVER", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for StretchMode { + type Via = i32; + +} +impl crate::meta::ToGodot for StretchMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for StretchMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AlignmentMode { + ord: i32 +} +impl AlignmentMode { + #[doc(alias = "ALIGNMENT_BEGIN")] + #[doc = "Godot enumerator name: `ALIGNMENT_BEGIN`"] + pub const BEGIN: AlignmentMode = AlignmentMode { + ord: 0i32 + }; + #[doc(alias = "ALIGNMENT_CENTER")] + #[doc = "Godot enumerator name: `ALIGNMENT_CENTER`"] + pub const CENTER: AlignmentMode = AlignmentMode { + ord: 1i32 + }; + #[doc(alias = "ALIGNMENT_END")] + #[doc = "Godot enumerator name: `ALIGNMENT_END`"] + pub const END: AlignmentMode = AlignmentMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AlignmentMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AlignmentMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AlignmentMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN => "BEGIN", Self::CENTER => "CENTER", Self::END => "END", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN => "ALIGNMENT_BEGIN", Self::CENTER => "ALIGNMENT_CENTER", Self::END => "ALIGNMENT_END", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AlignmentMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AlignmentMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AlignmentMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/atlas_texture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/atlas_texture.rs new file mode 100644 index 0000000..0659a08 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/atlas_texture.rs @@ -0,0 +1,295 @@ +#![doc = "Sidecar module for class [`AtlasTexture`][crate::classes::AtlasTexture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AtlasTexture` enums](https://docs.godotengine.org/en/stable/classes/class_atlastexture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AtlasTexture.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`IAtlasTexture`][crate::classes::IAtlasTexture]: virtual methods\n\n\nSee also [Godot docs for `AtlasTexture`](https://docs.godotengine.org/en/stable/classes/class_atlastexture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AtlasTexture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AtlasTexture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AtlasTexture`][crate::classes::AtlasTexture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AtlasTexture` methods](https://docs.godotengine.org/en/stable/classes/class_atlastexture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAtlasTexture: crate::obj::GodotClass < Base = AtlasTexture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AtlasTexture { + pub fn set_atlas(&mut self, atlas: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (atlas.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(625usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AtlasTexture", "set_atlas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_atlas(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(626usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AtlasTexture", "get_atlas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_region(&mut self, region: Rect2,) { + type CallSig = ((), Rect2); + let args = (region,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(627usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AtlasTexture", "set_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_region(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(628usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AtlasTexture", "get_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_margin(&mut self, margin: Rect2,) { + type CallSig = ((), Rect2); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(629usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AtlasTexture", "set_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_margin(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(630usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AtlasTexture", "get_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_filter_clip(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(631usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AtlasTexture", "set_filter_clip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_filter_clip(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(632usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AtlasTexture", "has_filter_clip", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AtlasTexture { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AtlasTexture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AtlasTexture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for AtlasTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for AtlasTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AtlasTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AtlasTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AtlasTexture { + + } + impl crate::obj::cap::GodotDefault for AtlasTexture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AtlasTexture { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AtlasTexture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AtlasTexture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AtlasTexture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AtlasTexture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_bus_layout.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_bus_layout.rs new file mode 100644 index 0000000..38272e8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_bus_layout.rs @@ -0,0 +1,202 @@ +#![doc = "Sidecar module for class [`AudioBusLayout`][crate::classes::AudioBusLayout].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioBusLayout` enums](https://docs.godotengine.org/en/stable/classes/class_audiobuslayout.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioBusLayout.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IAudioBusLayout`][crate::classes::IAudioBusLayout]: virtual methods\n\n\nSee also [Godot docs for `AudioBusLayout`](https://docs.godotengine.org/en/stable/classes/class_audiobuslayout.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioBusLayout::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioBusLayout { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioBusLayout`][crate::classes::AudioBusLayout].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioBusLayout` methods](https://docs.godotengine.org/en/stable/classes/class_audiobuslayout.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioBusLayout: crate::obj::GodotClass < Base = AudioBusLayout > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioBusLayout { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioBusLayout { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioBusLayout")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioBusLayout { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioBusLayout { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioBusLayout { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioBusLayout { + + } + impl crate::obj::cap::GodotDefault for AudioBusLayout { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioBusLayout { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioBusLayout { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioBusLayout`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioBusLayout { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioBusLayout > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect.rs new file mode 100644 index 0000000..dfad61a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect.rs @@ -0,0 +1,203 @@ +#![doc = "Sidecar module for class [`AudioEffect`][crate::classes::AudioEffect].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffect` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffect.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffect.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IAudioEffect`][crate::classes::IAudioEffect]: virtual methods\n\n\nSee also [Godot docs for `AudioEffect`](https://docs.godotengine.org/en/stable/classes/class_audioeffect.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffect::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffect { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffect`][crate::classes::AudioEffect].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffect` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffect.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffect: crate::obj::GodotClass < Base = AudioEffect > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffect { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffect { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffect")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffect { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffect { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffect { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffect { + + } + impl crate::obj::cap::GodotDefault for AudioEffect { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffect { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffect { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffect`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffect { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_amplify.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_amplify.rs new file mode 100644 index 0000000..9026f26 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_amplify.rs @@ -0,0 +1,225 @@ +#![doc = "Sidecar module for class [`AudioEffectAmplify`][crate::classes::AudioEffectAmplify].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectAmplify` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectamplify.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectAmplify.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectAmplify`][crate::classes::IAudioEffectAmplify]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectAmplify`](https://docs.godotengine.org/en/stable/classes/class_audioeffectamplify.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectAmplify::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectAmplify { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectAmplify`][crate::classes::AudioEffectAmplify].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectAmplify` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectamplify.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectAmplify: crate::obj::GodotClass < Base = AudioEffectAmplify > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectAmplify { + pub fn set_volume_db(&mut self, volume: f32,) { + type CallSig = ((), f32); + let args = (volume,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(633usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectAmplify", "set_volume_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volume_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(634usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectAmplify", "get_volume_db", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectAmplify { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectAmplify")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectAmplify { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectAmplify { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectAmplify { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectAmplify { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectAmplify { + + } + impl crate::obj::cap::GodotDefault for AudioEffectAmplify { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectAmplify { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectAmplify { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectAmplify`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectAmplify { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectAmplify > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_band_limit_filter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_band_limit_filter.rs new file mode 100644 index 0000000..078053e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_band_limit_filter.rs @@ -0,0 +1,215 @@ +#![doc = "Sidecar module for class [`AudioEffectBandLimitFilter`][crate::classes::AudioEffectBandLimitFilter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectBandLimitFilter` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectbandlimitfilter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectBandLimitFilter.`\n\nInherits [`AudioEffectFilter`][crate::classes::AudioEffectFilter].\n\nRelated symbols:\n\n* [`IAudioEffectBandLimitFilter`][crate::classes::IAudioEffectBandLimitFilter]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectBandLimitFilter`](https://docs.godotengine.org/en/stable/classes/class_audioeffectbandlimitfilter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectBandLimitFilter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectBandLimitFilter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectBandLimitFilter`][crate::classes::AudioEffectBandLimitFilter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectBandLimitFilter` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectbandlimitfilter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectBandLimitFilter: crate::obj::GodotClass < Base = AudioEffectBandLimitFilter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectBandLimitFilter { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectBandLimitFilter { + type Base = crate::classes::AudioEffectFilter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectBandLimitFilter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectBandLimitFilter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffectFilter > for AudioEffectBandLimitFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectBandLimitFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectBandLimitFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectBandLimitFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectBandLimitFilter { + + } + impl crate::obj::cap::GodotDefault for AudioEffectBandLimitFilter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectBandLimitFilter { + type Target = crate::classes::AudioEffectFilter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectBandLimitFilter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectBandLimitFilter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectBandLimitFilter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectBandLimitFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_band_pass_filter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_band_pass_filter.rs new file mode 100644 index 0000000..d934839 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_band_pass_filter.rs @@ -0,0 +1,215 @@ +#![doc = "Sidecar module for class [`AudioEffectBandPassFilter`][crate::classes::AudioEffectBandPassFilter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectBandPassFilter` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectbandpassfilter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectBandPassFilter.`\n\nInherits [`AudioEffectFilter`][crate::classes::AudioEffectFilter].\n\nRelated symbols:\n\n* [`IAudioEffectBandPassFilter`][crate::classes::IAudioEffectBandPassFilter]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectBandPassFilter`](https://docs.godotengine.org/en/stable/classes/class_audioeffectbandpassfilter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectBandPassFilter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectBandPassFilter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectBandPassFilter`][crate::classes::AudioEffectBandPassFilter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectBandPassFilter` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectbandpassfilter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectBandPassFilter: crate::obj::GodotClass < Base = AudioEffectBandPassFilter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectBandPassFilter { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectBandPassFilter { + type Base = crate::classes::AudioEffectFilter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectBandPassFilter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectBandPassFilter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffectFilter > for AudioEffectBandPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectBandPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectBandPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectBandPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectBandPassFilter { + + } + impl crate::obj::cap::GodotDefault for AudioEffectBandPassFilter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectBandPassFilter { + type Target = crate::classes::AudioEffectFilter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectBandPassFilter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectBandPassFilter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectBandPassFilter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectBandPassFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_capture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_capture.rs new file mode 100644 index 0000000..ef249a9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_capture.rs @@ -0,0 +1,281 @@ +#![doc = "Sidecar module for class [`AudioEffectCapture`][crate::classes::AudioEffectCapture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectCapture` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectcapture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectCapture.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectCapture`][crate::classes::IAudioEffectCapture]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectCapture`](https://docs.godotengine.org/en/stable/classes/class_audioeffectcapture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectCapture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectCapture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectCapture`][crate::classes::AudioEffectCapture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectCapture` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectcapture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectCapture: crate::obj::GodotClass < Base = AudioEffectCapture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectCapture { + pub fn can_get_buffer(&self, frames: i32,) -> bool { + type CallSig = (bool, i32); + let args = (frames,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(635usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCapture", "can_get_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_buffer(&mut self, frames: i32,) -> PackedVector2Array { + type CallSig = (PackedVector2Array, i32); + let args = (frames,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(636usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCapture", "get_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_buffer(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(637usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCapture", "clear_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_buffer_length(&mut self, buffer_length_seconds: f32,) { + type CallSig = ((), f32); + let args = (buffer_length_seconds,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(638usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCapture", "set_buffer_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_buffer_length(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(639usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCapture", "get_buffer_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frames_available(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(640usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCapture", "get_frames_available", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_discarded_frames(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(641usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCapture", "get_discarded_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_buffer_length_frames(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(642usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCapture", "get_buffer_length_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pushed_frames(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(643usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCapture", "get_pushed_frames", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectCapture { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectCapture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectCapture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectCapture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectCapture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectCapture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectCapture { + + } + impl crate::obj::cap::GodotDefault for AudioEffectCapture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectCapture { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectCapture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectCapture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectCapture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectCapture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_chorus.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_chorus.rs new file mode 100644 index 0000000..165804c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_chorus.rs @@ -0,0 +1,353 @@ +#![doc = "Sidecar module for class [`AudioEffectChorus`][crate::classes::AudioEffectChorus].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectChorus` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectchorus.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectChorus.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectChorus`][crate::classes::IAudioEffectChorus]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectChorus`](https://docs.godotengine.org/en/stable/classes/class_audioeffectchorus.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectChorus::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectChorus { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectChorus`][crate::classes::AudioEffectChorus].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectChorus` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectchorus.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectChorus: crate::obj::GodotClass < Base = AudioEffectChorus > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectChorus { + pub fn set_voice_count(&mut self, voices: i32,) { + type CallSig = ((), i32); + let args = (voices,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(644usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "set_voice_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_voice_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(645usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "get_voice_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_voice_delay_ms(&mut self, voice_idx: i32, delay_ms: f32,) { + type CallSig = ((), i32, f32); + let args = (voice_idx, delay_ms,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(646usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "set_voice_delay_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_voice_delay_ms(&self, voice_idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (voice_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(647usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "get_voice_delay_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_voice_rate_hz(&mut self, voice_idx: i32, rate_hz: f32,) { + type CallSig = ((), i32, f32); + let args = (voice_idx, rate_hz,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(648usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "set_voice_rate_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_voice_rate_hz(&self, voice_idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (voice_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(649usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "get_voice_rate_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_voice_depth_ms(&mut self, voice_idx: i32, depth_ms: f32,) { + type CallSig = ((), i32, f32); + let args = (voice_idx, depth_ms,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(650usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "set_voice_depth_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_voice_depth_ms(&self, voice_idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (voice_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(651usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "get_voice_depth_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_voice_level_db(&mut self, voice_idx: i32, level_db: f32,) { + type CallSig = ((), i32, f32); + let args = (voice_idx, level_db,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(652usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "set_voice_level_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_voice_level_db(&self, voice_idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (voice_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(653usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "get_voice_level_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_voice_cutoff_hz(&mut self, voice_idx: i32, cutoff_hz: f32,) { + type CallSig = ((), i32, f32); + let args = (voice_idx, cutoff_hz,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(654usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "set_voice_cutoff_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_voice_cutoff_hz(&self, voice_idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (voice_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(655usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "get_voice_cutoff_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_voice_pan(&mut self, voice_idx: i32, pan: f32,) { + type CallSig = ((), i32, f32); + let args = (voice_idx, pan,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(656usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "set_voice_pan", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_voice_pan(&self, voice_idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (voice_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(657usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "get_voice_pan", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_wet(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(658usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "set_wet", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wet(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(659usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "get_wet", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dry(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(660usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "set_dry", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_dry(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(661usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectChorus", "get_dry", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectChorus { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectChorus")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectChorus { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectChorus { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectChorus { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectChorus { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectChorus { + + } + impl crate::obj::cap::GodotDefault for AudioEffectChorus { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectChorus { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectChorus { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectChorus`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectChorus { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectChorus > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_compressor.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_compressor.rs new file mode 100644 index 0000000..0ed557c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_compressor.rs @@ -0,0 +1,321 @@ +#![doc = "Sidecar module for class [`AudioEffectCompressor`][crate::classes::AudioEffectCompressor].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectCompressor` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectcompressor.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectCompressor.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectCompressor`][crate::classes::IAudioEffectCompressor]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectCompressor`](https://docs.godotengine.org/en/stable/classes/class_audioeffectcompressor.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectCompressor::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectCompressor { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectCompressor`][crate::classes::AudioEffectCompressor].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectCompressor` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectcompressor.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectCompressor: crate::obj::GodotClass < Base = AudioEffectCompressor > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectCompressor { + pub fn set_threshold(&mut self, threshold: f32,) { + type CallSig = ((), f32); + let args = (threshold,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(662usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "set_threshold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_threshold(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(663usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "get_threshold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(664usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "set_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(665usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "get_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gain(&mut self, gain: f32,) { + type CallSig = ((), f32); + let args = (gain,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(666usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "set_gain", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gain(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(667usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "get_gain", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_attack_us(&mut self, attack_us: f32,) { + type CallSig = ((), f32); + let args = (attack_us,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(668usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "set_attack_us", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_attack_us(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(669usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "get_attack_us", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_release_ms(&mut self, release_ms: f32,) { + type CallSig = ((), f32); + let args = (release_ms,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(670usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "set_release_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_release_ms(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(671usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "get_release_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mix(&mut self, mix: f32,) { + type CallSig = ((), f32); + let args = (mix,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(672usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "set_mix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mix(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(673usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "get_mix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sidechain(&mut self, sidechain: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (sidechain.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(674usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "set_sidechain", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sidechain(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(675usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectCompressor", "get_sidechain", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectCompressor { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectCompressor")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectCompressor { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectCompressor { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectCompressor { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectCompressor { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectCompressor { + + } + impl crate::obj::cap::GodotDefault for AudioEffectCompressor { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectCompressor { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectCompressor { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectCompressor`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectCompressor { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectCompressor > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_delay.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_delay.rs new file mode 100644 index 0000000..e53a54a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_delay.rs @@ -0,0 +1,417 @@ +#![doc = "Sidecar module for class [`AudioEffectDelay`][crate::classes::AudioEffectDelay].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectDelay` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectdelay.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectDelay.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectDelay`][crate::classes::IAudioEffectDelay]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectDelay`](https://docs.godotengine.org/en/stable/classes/class_audioeffectdelay.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectDelay::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectDelay { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectDelay`][crate::classes::AudioEffectDelay].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectDelay` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectdelay.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectDelay: crate::obj::GodotClass < Base = AudioEffectDelay > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectDelay { + pub fn set_dry(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(676usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_dry", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_dry(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(677usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "get_dry", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tap1_active(&mut self, amount: bool,) { + type CallSig = ((), bool); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(678usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_tap1_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_tap1_active(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(679usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "is_tap1_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tap1_delay_ms(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(680usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_tap1_delay_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tap1_delay_ms(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(681usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "get_tap1_delay_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tap1_level_db(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(682usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_tap1_level_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tap1_level_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(683usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "get_tap1_level_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tap1_pan(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(684usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_tap1_pan", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tap1_pan(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(685usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "get_tap1_pan", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tap2_active(&mut self, amount: bool,) { + type CallSig = ((), bool); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(686usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_tap2_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_tap2_active(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(687usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "is_tap2_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tap2_delay_ms(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(688usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_tap2_delay_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tap2_delay_ms(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(689usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "get_tap2_delay_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tap2_level_db(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(690usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_tap2_level_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tap2_level_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(691usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "get_tap2_level_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tap2_pan(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(692usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_tap2_pan", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tap2_pan(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(693usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "get_tap2_pan", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_feedback_active(&mut self, amount: bool,) { + type CallSig = ((), bool); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(694usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_feedback_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_feedback_active(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(695usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "is_feedback_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_feedback_delay_ms(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(696usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_feedback_delay_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_feedback_delay_ms(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(697usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "get_feedback_delay_ms", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_feedback_level_db(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(698usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_feedback_level_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_feedback_level_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(699usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "get_feedback_level_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_feedback_lowpass(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(700usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "set_feedback_lowpass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_feedback_lowpass(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(701usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDelay", "get_feedback_lowpass", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectDelay { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectDelay")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectDelay { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectDelay { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectDelay { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectDelay { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectDelay { + + } + impl crate::obj::cap::GodotDefault for AudioEffectDelay { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectDelay { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectDelay { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectDelay`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectDelay { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectDelay > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_distortion.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_distortion.rs new file mode 100644 index 0000000..c1ed537 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_distortion.rs @@ -0,0 +1,374 @@ +#![doc = "Sidecar module for class [`AudioEffectDistortion`][crate::classes::AudioEffectDistortion].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectDistortion` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectdistortion.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectDistortion.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`audio_effect_distortion`][crate::classes::audio_effect_distortion]: sidecar module with related enum/flag types\n* [`IAudioEffectDistortion`][crate::classes::IAudioEffectDistortion]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectDistortion`](https://docs.godotengine.org/en/stable/classes/class_audioeffectdistortion.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectDistortion::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectDistortion { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectDistortion`][crate::classes::AudioEffectDistortion].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectDistortion` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectdistortion.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectDistortion: crate::obj::GodotClass < Base = AudioEffectDistortion > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectDistortion { + pub fn set_mode(&mut self, mode: crate::classes::audio_effect_distortion::Mode,) { + type CallSig = ((), crate::classes::audio_effect_distortion::Mode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(702usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDistortion", "set_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mode(&self,) -> crate::classes::audio_effect_distortion::Mode { + type CallSig = (crate::classes::audio_effect_distortion::Mode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(703usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDistortion", "get_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pre_gain(&mut self, pre_gain: f32,) { + type CallSig = ((), f32); + let args = (pre_gain,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(704usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDistortion", "set_pre_gain", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pre_gain(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(705usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDistortion", "get_pre_gain", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_keep_hf_hz(&mut self, keep_hf_hz: f32,) { + type CallSig = ((), f32); + let args = (keep_hf_hz,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(706usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDistortion", "set_keep_hf_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_keep_hf_hz(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(707usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDistortion", "get_keep_hf_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_drive(&mut self, drive: f32,) { + type CallSig = ((), f32); + let args = (drive,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(708usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDistortion", "set_drive", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_drive(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(709usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDistortion", "get_drive", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_post_gain(&mut self, post_gain: f32,) { + type CallSig = ((), f32); + let args = (post_gain,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(710usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDistortion", "set_post_gain", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_post_gain(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(711usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectDistortion", "get_post_gain", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectDistortion { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectDistortion")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectDistortion { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectDistortion { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectDistortion { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectDistortion { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectDistortion { + + } + impl crate::obj::cap::GodotDefault for AudioEffectDistortion { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectDistortion { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectDistortion { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectDistortion`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectDistortion { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectDistortion > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Mode { + ord: i32 +} +impl Mode { + #[doc(alias = "MODE_CLIP")] + #[doc = "Godot enumerator name: `MODE_CLIP`"] + pub const CLIP: Mode = Mode { + ord: 0i32 + }; + #[doc(alias = "MODE_ATAN")] + #[doc = "Godot enumerator name: `MODE_ATAN`"] + pub const ATAN: Mode = Mode { + ord: 1i32 + }; + #[doc(alias = "MODE_LOFI")] + #[doc = "Godot enumerator name: `MODE_LOFI`"] + pub const LOFI: Mode = Mode { + ord: 2i32 + }; + #[doc(alias = "MODE_OVERDRIVE")] + #[doc = "Godot enumerator name: `MODE_OVERDRIVE`"] + pub const OVERDRIVE: Mode = Mode { + ord: 3i32 + }; + #[doc(alias = "MODE_WAVESHAPE")] + #[doc = "Godot enumerator name: `MODE_WAVESHAPE`"] + pub const WAVESHAPE: Mode = Mode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for Mode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Mode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Mode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLIP => "CLIP", Self::ATAN => "ATAN", Self::LOFI => "LOFI", Self::OVERDRIVE => "OVERDRIVE", Self::WAVESHAPE => "WAVESHAPE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLIP => "MODE_CLIP", Self::ATAN => "MODE_ATAN", Self::LOFI => "MODE_LOFI", Self::OVERDRIVE => "MODE_OVERDRIVE", Self::WAVESHAPE => "MODE_WAVESHAPE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Mode { + type Via = i32; + +} +impl crate::meta::ToGodot for Mode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Mode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq.rs new file mode 100644 index 0000000..0fd2849 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq.rs @@ -0,0 +1,233 @@ +#![doc = "Sidecar module for class [`AudioEffectEq`][crate::classes::AudioEffectEq].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectEQ` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectEQ.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectEq`][crate::classes::IAudioEffectEq]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectEQ`](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectEq::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectEq { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectEq`][crate::classes::AudioEffectEq].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectEQ` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectEq: crate::obj::GodotClass < Base = AudioEffectEq > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectEq { + pub fn set_band_gain_db(&mut self, band_idx: i32, volume_db: f32,) { + type CallSig = ((), i32, f32); + let args = (band_idx, volume_db,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(712usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectEq", "set_band_gain_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_band_gain_db(&self, band_idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (band_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(713usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectEq", "get_band_gain_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_band_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(714usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectEq", "get_band_count", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectEq { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectEQ")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectEq { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectEq { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectEq { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectEq { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectEq { + + } + impl crate::obj::cap::GodotDefault for AudioEffectEq { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectEq { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectEq { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectEq`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectEq { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectEq > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq10.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq10.rs new file mode 100644 index 0000000..aa5b830 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq10.rs @@ -0,0 +1,215 @@ +#![doc = "Sidecar module for class [`AudioEffectEq10`][crate::classes::AudioEffectEq10].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectEQ10` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq10.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectEQ10.`\n\nInherits [`AudioEffectEq`][crate::classes::AudioEffectEq].\n\nRelated symbols:\n\n* [`IAudioEffectEq10`][crate::classes::IAudioEffectEq10]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectEQ10`](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq10.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectEq10::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectEq10 { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectEq10`][crate::classes::AudioEffectEq10].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectEQ10` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq10.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectEq10: crate::obj::GodotClass < Base = AudioEffectEq10 > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectEq10 { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectEq10 { + type Base = crate::classes::AudioEffectEq; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectEQ10")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectEq10 { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffectEq > for AudioEffectEq10 { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectEq10 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectEq10 { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectEq10 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectEq10 { + + } + impl crate::obj::cap::GodotDefault for AudioEffectEq10 { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectEq10 { + type Target = crate::classes::AudioEffectEq; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectEq10 { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectEq10`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectEq10 { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectEq10 > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectEq > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq21.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq21.rs new file mode 100644 index 0000000..d034d3d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq21.rs @@ -0,0 +1,215 @@ +#![doc = "Sidecar module for class [`AudioEffectEq21`][crate::classes::AudioEffectEq21].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectEQ21` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq21.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectEQ21.`\n\nInherits [`AudioEffectEq`][crate::classes::AudioEffectEq].\n\nRelated symbols:\n\n* [`IAudioEffectEq21`][crate::classes::IAudioEffectEq21]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectEQ21`](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq21.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectEq21::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectEq21 { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectEq21`][crate::classes::AudioEffectEq21].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectEQ21` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq21.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectEq21: crate::obj::GodotClass < Base = AudioEffectEq21 > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectEq21 { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectEq21 { + type Base = crate::classes::AudioEffectEq; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectEQ21")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectEq21 { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffectEq > for AudioEffectEq21 { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectEq21 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectEq21 { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectEq21 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectEq21 { + + } + impl crate::obj::cap::GodotDefault for AudioEffectEq21 { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectEq21 { + type Target = crate::classes::AudioEffectEq; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectEq21 { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectEq21`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectEq21 { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectEq21 > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectEq > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq6.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq6.rs new file mode 100644 index 0000000..6873b0f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_eq6.rs @@ -0,0 +1,215 @@ +#![doc = "Sidecar module for class [`AudioEffectEq6`][crate::classes::AudioEffectEq6].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectEQ6` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq6.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectEQ6.`\n\nInherits [`AudioEffectEq`][crate::classes::AudioEffectEq].\n\nRelated symbols:\n\n* [`IAudioEffectEq6`][crate::classes::IAudioEffectEq6]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectEQ6`](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq6.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectEq6::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectEq6 { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectEq6`][crate::classes::AudioEffectEq6].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectEQ6` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffecteq6.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectEq6: crate::obj::GodotClass < Base = AudioEffectEq6 > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectEq6 { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectEq6 { + type Base = crate::classes::AudioEffectEq; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectEQ6")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectEq6 { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffectEq > for AudioEffectEq6 { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectEq6 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectEq6 { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectEq6 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectEq6 { + + } + impl crate::obj::cap::GodotDefault for AudioEffectEq6 { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectEq6 { + type Target = crate::classes::AudioEffectEq; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectEq6 { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectEq6`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectEq6 { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectEq6 > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectEq > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_filter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_filter.rs new file mode 100644 index 0000000..8ab280c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_filter.rs @@ -0,0 +1,343 @@ +#![doc = "Sidecar module for class [`AudioEffectFilter`][crate::classes::AudioEffectFilter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectFilter` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectfilter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectFilter.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`audio_effect_filter`][crate::classes::audio_effect_filter]: sidecar module with related enum/flag types\n* [`IAudioEffectFilter`][crate::classes::IAudioEffectFilter]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectFilter`](https://docs.godotengine.org/en/stable/classes/class_audioeffectfilter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectFilter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectFilter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectFilter`][crate::classes::AudioEffectFilter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectFilter` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectfilter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectFilter: crate::obj::GodotClass < Base = AudioEffectFilter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectFilter { + pub fn set_cutoff(&mut self, freq: f32,) { + type CallSig = ((), f32); + let args = (freq,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(715usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectFilter", "set_cutoff", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cutoff(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(716usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectFilter", "get_cutoff", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_resonance(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(717usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectFilter", "set_resonance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_resonance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(718usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectFilter", "get_resonance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gain(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(719usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectFilter", "set_gain", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gain(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(720usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectFilter", "get_gain", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_db(&mut self, amount: crate::classes::audio_effect_filter::FilterDb,) { + type CallSig = ((), crate::classes::audio_effect_filter::FilterDb); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(721usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectFilter", "set_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_db(&self,) -> crate::classes::audio_effect_filter::FilterDb { + type CallSig = (crate::classes::audio_effect_filter::FilterDb,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(722usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectFilter", "get_db", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectFilter { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectFilter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectFilter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectFilter { + + } + impl crate::obj::cap::GodotDefault for AudioEffectFilter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectFilter { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectFilter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectFilter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectFilter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `FilterDB`."] +pub struct FilterDb { + ord: i32 +} +impl FilterDb { + pub const FILTER_6DB: FilterDb = FilterDb { + ord: 0i32 + }; + pub const FILTER_12DB: FilterDb = FilterDb { + ord: 1i32 + }; + pub const FILTER_18DB: FilterDb = FilterDb { + ord: 2i32 + }; + pub const FILTER_24DB: FilterDb = FilterDb { + ord: 3i32 + }; + +} +impl std::fmt::Debug for FilterDb { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FilterDb") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FilterDb { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FILTER_6DB => "FILTER_6DB", Self::FILTER_12DB => "FILTER_12DB", Self::FILTER_18DB => "FILTER_18DB", Self::FILTER_24DB => "FILTER_24DB", _ => "", + } + } + fn godot_name(&self) -> &'static str { + self.as_str() + } +} +impl crate::meta::GodotConvert for FilterDb { + type Via = i32; + +} +impl crate::meta::ToGodot for FilterDb { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FilterDb { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_hard_limiter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_hard_limiter.rs new file mode 100644 index 0000000..9ec9880 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_hard_limiter.rs @@ -0,0 +1,257 @@ +#![doc = "Sidecar module for class [`AudioEffectHardLimiter`][crate::classes::AudioEffectHardLimiter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectHardLimiter` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffecthardlimiter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectHardLimiter.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectHardLimiter`][crate::classes::IAudioEffectHardLimiter]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectHardLimiter`](https://docs.godotengine.org/en/stable/classes/class_audioeffecthardlimiter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectHardLimiter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectHardLimiter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectHardLimiter`][crate::classes::AudioEffectHardLimiter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectHardLimiter` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffecthardlimiter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectHardLimiter: crate::obj::GodotClass < Base = AudioEffectHardLimiter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectHardLimiter { + pub fn set_ceiling_db(&mut self, ceiling: f32,) { + type CallSig = ((), f32); + let args = (ceiling,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(723usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectHardLimiter", "set_ceiling_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ceiling_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(724usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectHardLimiter", "get_ceiling_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pre_gain_db(&mut self, p_pre_gain: f32,) { + type CallSig = ((), f32); + let args = (p_pre_gain,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(725usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectHardLimiter", "set_pre_gain_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pre_gain_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(726usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectHardLimiter", "get_pre_gain_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_release(&mut self, p_release: f32,) { + type CallSig = ((), f32); + let args = (p_release,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(727usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectHardLimiter", "set_release", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_release(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(728usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectHardLimiter", "get_release", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectHardLimiter { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectHardLimiter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectHardLimiter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectHardLimiter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectHardLimiter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectHardLimiter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectHardLimiter { + + } + impl crate::obj::cap::GodotDefault for AudioEffectHardLimiter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectHardLimiter { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectHardLimiter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectHardLimiter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectHardLimiter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectHardLimiter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_high_pass_filter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_high_pass_filter.rs new file mode 100644 index 0000000..9d3ec8b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_high_pass_filter.rs @@ -0,0 +1,215 @@ +#![doc = "Sidecar module for class [`AudioEffectHighPassFilter`][crate::classes::AudioEffectHighPassFilter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectHighPassFilter` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffecthighpassfilter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectHighPassFilter.`\n\nInherits [`AudioEffectFilter`][crate::classes::AudioEffectFilter].\n\nRelated symbols:\n\n* [`IAudioEffectHighPassFilter`][crate::classes::IAudioEffectHighPassFilter]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectHighPassFilter`](https://docs.godotengine.org/en/stable/classes/class_audioeffecthighpassfilter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectHighPassFilter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectHighPassFilter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectHighPassFilter`][crate::classes::AudioEffectHighPassFilter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectHighPassFilter` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffecthighpassfilter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectHighPassFilter: crate::obj::GodotClass < Base = AudioEffectHighPassFilter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectHighPassFilter { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectHighPassFilter { + type Base = crate::classes::AudioEffectFilter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectHighPassFilter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectHighPassFilter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffectFilter > for AudioEffectHighPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectHighPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectHighPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectHighPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectHighPassFilter { + + } + impl crate::obj::cap::GodotDefault for AudioEffectHighPassFilter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectHighPassFilter { + type Target = crate::classes::AudioEffectFilter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectHighPassFilter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectHighPassFilter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectHighPassFilter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectHighPassFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_high_shelf_filter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_high_shelf_filter.rs new file mode 100644 index 0000000..a27bc7a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_high_shelf_filter.rs @@ -0,0 +1,215 @@ +#![doc = "Sidecar module for class [`AudioEffectHighShelfFilter`][crate::classes::AudioEffectHighShelfFilter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectHighShelfFilter` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffecthighshelffilter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectHighShelfFilter.`\n\nInherits [`AudioEffectFilter`][crate::classes::AudioEffectFilter].\n\nRelated symbols:\n\n* [`IAudioEffectHighShelfFilter`][crate::classes::IAudioEffectHighShelfFilter]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectHighShelfFilter`](https://docs.godotengine.org/en/stable/classes/class_audioeffecthighshelffilter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectHighShelfFilter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectHighShelfFilter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectHighShelfFilter`][crate::classes::AudioEffectHighShelfFilter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectHighShelfFilter` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffecthighshelffilter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectHighShelfFilter: crate::obj::GodotClass < Base = AudioEffectHighShelfFilter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectHighShelfFilter { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectHighShelfFilter { + type Base = crate::classes::AudioEffectFilter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectHighShelfFilter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectHighShelfFilter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffectFilter > for AudioEffectHighShelfFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectHighShelfFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectHighShelfFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectHighShelfFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectHighShelfFilter { + + } + impl crate::obj::cap::GodotDefault for AudioEffectHighShelfFilter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectHighShelfFilter { + type Target = crate::classes::AudioEffectFilter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectHighShelfFilter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectHighShelfFilter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectHighShelfFilter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectHighShelfFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_instance.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_instance.rs new file mode 100644 index 0000000..2c60cc6 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_instance.rs @@ -0,0 +1,201 @@ +#![doc = "Sidecar module for class [`AudioEffectInstance`][crate::classes::AudioEffectInstance].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectInstance` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectinstance.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectInstance.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IAudioEffectInstance`][crate::classes::IAudioEffectInstance]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectInstance`](https://docs.godotengine.org/en/stable/classes/class_audioeffectinstance.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectInstance::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectInstance { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectInstance`][crate::classes::AudioEffectInstance].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectInstance` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectinstance.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectInstance: crate::obj::GodotClass < Base = AudioEffectInstance > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn process(&mut self, src_buffer: * const c_void, dst_buffer: * mut AudioFrame, frame_count: i32,); + fn process_silence(&self,) -> bool { + unimplemented !() + } + } + impl AudioEffectInstance { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectInstance { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectInstance")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectInstance { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectInstance { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectInstance { + + } + impl crate::obj::cap::GodotDefault for AudioEffectInstance { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectInstance { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectInstance { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectInstance`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectInstance { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectInstance > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_limiter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_limiter.rs new file mode 100644 index 0000000..fb5081c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_limiter.rs @@ -0,0 +1,273 @@ +#![doc = "Sidecar module for class [`AudioEffectLimiter`][crate::classes::AudioEffectLimiter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectLimiter` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectlimiter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectLimiter.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectLimiter`][crate::classes::IAudioEffectLimiter]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectLimiter`](https://docs.godotengine.org/en/stable/classes/class_audioeffectlimiter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectLimiter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectLimiter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectLimiter`][crate::classes::AudioEffectLimiter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectLimiter` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectlimiter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectLimiter: crate::obj::GodotClass < Base = AudioEffectLimiter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectLimiter { + pub fn set_ceiling_db(&mut self, ceiling: f32,) { + type CallSig = ((), f32); + let args = (ceiling,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(729usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectLimiter", "set_ceiling_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ceiling_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(730usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectLimiter", "get_ceiling_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_threshold_db(&mut self, threshold: f32,) { + type CallSig = ((), f32); + let args = (threshold,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(731usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectLimiter", "set_threshold_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_threshold_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(732usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectLimiter", "get_threshold_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_soft_clip_db(&mut self, soft_clip: f32,) { + type CallSig = ((), f32); + let args = (soft_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(733usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectLimiter", "set_soft_clip_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_soft_clip_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(734usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectLimiter", "get_soft_clip_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_soft_clip_ratio(&mut self, soft_clip: f32,) { + type CallSig = ((), f32); + let args = (soft_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(735usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectLimiter", "set_soft_clip_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_soft_clip_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(736usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectLimiter", "get_soft_clip_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectLimiter { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectLimiter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectLimiter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectLimiter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectLimiter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectLimiter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectLimiter { + + } + impl crate::obj::cap::GodotDefault for AudioEffectLimiter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectLimiter { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectLimiter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectLimiter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectLimiter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectLimiter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_low_pass_filter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_low_pass_filter.rs new file mode 100644 index 0000000..64d782b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_low_pass_filter.rs @@ -0,0 +1,215 @@ +#![doc = "Sidecar module for class [`AudioEffectLowPassFilter`][crate::classes::AudioEffectLowPassFilter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectLowPassFilter` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectlowpassfilter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectLowPassFilter.`\n\nInherits [`AudioEffectFilter`][crate::classes::AudioEffectFilter].\n\nRelated symbols:\n\n* [`IAudioEffectLowPassFilter`][crate::classes::IAudioEffectLowPassFilter]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectLowPassFilter`](https://docs.godotengine.org/en/stable/classes/class_audioeffectlowpassfilter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectLowPassFilter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectLowPassFilter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectLowPassFilter`][crate::classes::AudioEffectLowPassFilter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectLowPassFilter` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectlowpassfilter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectLowPassFilter: crate::obj::GodotClass < Base = AudioEffectLowPassFilter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectLowPassFilter { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectLowPassFilter { + type Base = crate::classes::AudioEffectFilter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectLowPassFilter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectLowPassFilter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffectFilter > for AudioEffectLowPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectLowPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectLowPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectLowPassFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectLowPassFilter { + + } + impl crate::obj::cap::GodotDefault for AudioEffectLowPassFilter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectLowPassFilter { + type Target = crate::classes::AudioEffectFilter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectLowPassFilter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectLowPassFilter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectLowPassFilter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectLowPassFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_low_shelf_filter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_low_shelf_filter.rs new file mode 100644 index 0000000..5a9b1de --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_low_shelf_filter.rs @@ -0,0 +1,215 @@ +#![doc = "Sidecar module for class [`AudioEffectLowShelfFilter`][crate::classes::AudioEffectLowShelfFilter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectLowShelfFilter` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectlowshelffilter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectLowShelfFilter.`\n\nInherits [`AudioEffectFilter`][crate::classes::AudioEffectFilter].\n\nRelated symbols:\n\n* [`IAudioEffectLowShelfFilter`][crate::classes::IAudioEffectLowShelfFilter]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectLowShelfFilter`](https://docs.godotengine.org/en/stable/classes/class_audioeffectlowshelffilter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectLowShelfFilter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectLowShelfFilter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectLowShelfFilter`][crate::classes::AudioEffectLowShelfFilter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectLowShelfFilter` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectlowshelffilter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectLowShelfFilter: crate::obj::GodotClass < Base = AudioEffectLowShelfFilter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectLowShelfFilter { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectLowShelfFilter { + type Base = crate::classes::AudioEffectFilter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectLowShelfFilter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectLowShelfFilter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffectFilter > for AudioEffectLowShelfFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectLowShelfFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectLowShelfFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectLowShelfFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectLowShelfFilter { + + } + impl crate::obj::cap::GodotDefault for AudioEffectLowShelfFilter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectLowShelfFilter { + type Target = crate::classes::AudioEffectFilter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectLowShelfFilter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectLowShelfFilter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectLowShelfFilter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectLowShelfFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_notch_filter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_notch_filter.rs new file mode 100644 index 0000000..5159516 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_notch_filter.rs @@ -0,0 +1,215 @@ +#![doc = "Sidecar module for class [`AudioEffectNotchFilter`][crate::classes::AudioEffectNotchFilter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectNotchFilter` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectnotchfilter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectNotchFilter.`\n\nInherits [`AudioEffectFilter`][crate::classes::AudioEffectFilter].\n\nRelated symbols:\n\n* [`IAudioEffectNotchFilter`][crate::classes::IAudioEffectNotchFilter]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectNotchFilter`](https://docs.godotengine.org/en/stable/classes/class_audioeffectnotchfilter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectNotchFilter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectNotchFilter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectNotchFilter`][crate::classes::AudioEffectNotchFilter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectNotchFilter` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectnotchfilter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectNotchFilter: crate::obj::GodotClass < Base = AudioEffectNotchFilter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectNotchFilter { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectNotchFilter { + type Base = crate::classes::AudioEffectFilter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectNotchFilter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectNotchFilter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffectFilter > for AudioEffectNotchFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectNotchFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectNotchFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectNotchFilter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectNotchFilter { + + } + impl crate::obj::cap::GodotDefault for AudioEffectNotchFilter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectNotchFilter { + type Target = crate::classes::AudioEffectFilter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectNotchFilter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectNotchFilter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectNotchFilter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectNotchFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectFilter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_panner.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_panner.rs new file mode 100644 index 0000000..2b4689e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_panner.rs @@ -0,0 +1,225 @@ +#![doc = "Sidecar module for class [`AudioEffectPanner`][crate::classes::AudioEffectPanner].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectPanner` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectpanner.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectPanner.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectPanner`][crate::classes::IAudioEffectPanner]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectPanner`](https://docs.godotengine.org/en/stable/classes/class_audioeffectpanner.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectPanner::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectPanner { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectPanner`][crate::classes::AudioEffectPanner].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectPanner` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectpanner.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectPanner: crate::obj::GodotClass < Base = AudioEffectPanner > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectPanner { + pub fn set_pan(&mut self, cpanume: f32,) { + type CallSig = ((), f32); + let args = (cpanume,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(737usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPanner", "set_pan", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pan(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(738usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPanner", "get_pan", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectPanner { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectPanner")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectPanner { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectPanner { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectPanner { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectPanner { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectPanner { + + } + impl crate::obj::cap::GodotDefault for AudioEffectPanner { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectPanner { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectPanner { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectPanner`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectPanner { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectPanner > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_phaser.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_phaser.rs new file mode 100644 index 0000000..d14a5de --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_phaser.rs @@ -0,0 +1,289 @@ +#![doc = "Sidecar module for class [`AudioEffectPhaser`][crate::classes::AudioEffectPhaser].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectPhaser` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectphaser.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectPhaser.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectPhaser`][crate::classes::IAudioEffectPhaser]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectPhaser`](https://docs.godotengine.org/en/stable/classes/class_audioeffectphaser.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectPhaser::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectPhaser { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectPhaser`][crate::classes::AudioEffectPhaser].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectPhaser` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectphaser.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectPhaser: crate::obj::GodotClass < Base = AudioEffectPhaser > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectPhaser { + pub fn set_range_min_hz(&mut self, hz: f32,) { + type CallSig = ((), f32); + let args = (hz,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(739usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPhaser", "set_range_min_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_range_min_hz(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(740usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPhaser", "get_range_min_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_range_max_hz(&mut self, hz: f32,) { + type CallSig = ((), f32); + let args = (hz,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(741usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPhaser", "set_range_max_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_range_max_hz(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(742usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPhaser", "get_range_max_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rate_hz(&mut self, hz: f32,) { + type CallSig = ((), f32); + let args = (hz,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(743usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPhaser", "set_rate_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rate_hz(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(744usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPhaser", "get_rate_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_feedback(&mut self, fbk: f32,) { + type CallSig = ((), f32); + let args = (fbk,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(745usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPhaser", "set_feedback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_feedback(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(746usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPhaser", "get_feedback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth(&mut self, depth: f32,) { + type CallSig = ((), f32); + let args = (depth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(747usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPhaser", "set_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(748usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPhaser", "get_depth", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectPhaser { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectPhaser")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectPhaser { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectPhaser { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectPhaser { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectPhaser { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectPhaser { + + } + impl crate::obj::cap::GodotDefault for AudioEffectPhaser { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectPhaser { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectPhaser { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectPhaser`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectPhaser { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectPhaser > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_pitch_shift.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_pitch_shift.rs new file mode 100644 index 0000000..ddee904 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_pitch_shift.rs @@ -0,0 +1,352 @@ +#![doc = "Sidecar module for class [`AudioEffectPitchShift`][crate::classes::AudioEffectPitchShift].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectPitchShift` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectpitchshift.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectPitchShift.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`audio_effect_pitch_shift`][crate::classes::audio_effect_pitch_shift]: sidecar module with related enum/flag types\n* [`IAudioEffectPitchShift`][crate::classes::IAudioEffectPitchShift]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectPitchShift`](https://docs.godotengine.org/en/stable/classes/class_audioeffectpitchshift.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectPitchShift::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectPitchShift { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectPitchShift`][crate::classes::AudioEffectPitchShift].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectPitchShift` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectpitchshift.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectPitchShift: crate::obj::GodotClass < Base = AudioEffectPitchShift > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectPitchShift { + pub fn set_pitch_scale(&mut self, rate: f32,) { + type CallSig = ((), f32); + let args = (rate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(749usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPitchShift", "set_pitch_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pitch_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(750usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPitchShift", "get_pitch_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_oversampling(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(751usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPitchShift", "set_oversampling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_oversampling(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(752usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPitchShift", "get_oversampling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fft_size(&mut self, size: crate::classes::audio_effect_pitch_shift::FftSize,) { + type CallSig = ((), crate::classes::audio_effect_pitch_shift::FftSize); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(753usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPitchShift", "set_fft_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fft_size(&self,) -> crate::classes::audio_effect_pitch_shift::FftSize { + type CallSig = (crate::classes::audio_effect_pitch_shift::FftSize,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(754usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectPitchShift", "get_fft_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectPitchShift { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectPitchShift")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectPitchShift { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectPitchShift { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectPitchShift { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectPitchShift { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectPitchShift { + + } + impl crate::obj::cap::GodotDefault for AudioEffectPitchShift { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectPitchShift { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectPitchShift { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectPitchShift`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectPitchShift { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectPitchShift > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `FFTSize`."] +pub struct FftSize { + ord: i32 +} +impl FftSize { + #[doc(alias = "FFT_SIZE_256")] + #[doc = "Godot enumerator name: `FFT_SIZE_256`"] + pub const SIZE_256: FftSize = FftSize { + ord: 0i32 + }; + #[doc(alias = "FFT_SIZE_512")] + #[doc = "Godot enumerator name: `FFT_SIZE_512`"] + pub const SIZE_512: FftSize = FftSize { + ord: 1i32 + }; + #[doc(alias = "FFT_SIZE_1024")] + #[doc = "Godot enumerator name: `FFT_SIZE_1024`"] + pub const SIZE_1024: FftSize = FftSize { + ord: 2i32 + }; + #[doc(alias = "FFT_SIZE_2048")] + #[doc = "Godot enumerator name: `FFT_SIZE_2048`"] + pub const SIZE_2048: FftSize = FftSize { + ord: 3i32 + }; + #[doc(alias = "FFT_SIZE_4096")] + #[doc = "Godot enumerator name: `FFT_SIZE_4096`"] + pub const SIZE_4096: FftSize = FftSize { + ord: 4i32 + }; + #[doc(alias = "FFT_SIZE_MAX")] + #[doc = "Godot enumerator name: `FFT_SIZE_MAX`"] + pub const MAX: FftSize = FftSize { + ord: 5i32 + }; + +} +impl std::fmt::Debug for FftSize { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FftSize") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FftSize { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SIZE_256 => "SIZE_256", Self::SIZE_512 => "SIZE_512", Self::SIZE_1024 => "SIZE_1024", Self::SIZE_2048 => "SIZE_2048", Self::SIZE_4096 => "SIZE_4096", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SIZE_256 => "FFT_SIZE_256", Self::SIZE_512 => "FFT_SIZE_512", Self::SIZE_1024 => "FFT_SIZE_1024", Self::SIZE_2048 => "FFT_SIZE_2048", Self::SIZE_4096 => "FFT_SIZE_4096", Self::MAX => "FFT_SIZE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for FftSize { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for FftSize { + type Via = i32; + +} +impl crate::meta::ToGodot for FftSize { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FftSize { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_record.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_record.rs new file mode 100644 index 0000000..5e31db3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_record.rs @@ -0,0 +1,249 @@ +#![doc = "Sidecar module for class [`AudioEffectRecord`][crate::classes::AudioEffectRecord].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectRecord` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectrecord.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectRecord.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectRecord`][crate::classes::IAudioEffectRecord]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectRecord`](https://docs.godotengine.org/en/stable/classes/class_audioeffectrecord.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectRecord::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectRecord { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectRecord`][crate::classes::AudioEffectRecord].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectRecord` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectrecord.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectRecord: crate::obj::GodotClass < Base = AudioEffectRecord > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectRecord { + pub fn set_recording_active(&mut self, record: bool,) { + type CallSig = ((), bool); + let args = (record,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(755usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectRecord", "set_recording_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_recording_active(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(756usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectRecord", "is_recording_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_format(&mut self, format: crate::classes::audio_stream_wav::Format,) { + type CallSig = ((), crate::classes::audio_stream_wav::Format); + let args = (format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(757usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectRecord", "set_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_format(&self,) -> crate::classes::audio_stream_wav::Format { + type CallSig = (crate::classes::audio_stream_wav::Format,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(758usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectRecord", "get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_recording(&self,) -> Option < Gd < crate::classes::AudioStreamWav > > { + type CallSig = (Option < Gd < crate::classes::AudioStreamWav > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(759usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectRecord", "get_recording", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectRecord { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectRecord")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectRecord { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectRecord { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectRecord { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectRecord { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectRecord { + + } + impl crate::obj::cap::GodotDefault for AudioEffectRecord { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectRecord { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectRecord { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectRecord`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectRecord { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectRecord > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_reverb.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_reverb.rs new file mode 100644 index 0000000..5d37e44 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_reverb.rs @@ -0,0 +1,337 @@ +#![doc = "Sidecar module for class [`AudioEffectReverb`][crate::classes::AudioEffectReverb].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectReverb` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectreverb.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectReverb.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectReverb`][crate::classes::IAudioEffectReverb]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectReverb`](https://docs.godotengine.org/en/stable/classes/class_audioeffectreverb.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectReverb::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectReverb { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectReverb`][crate::classes::AudioEffectReverb].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectReverb` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectreverb.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectReverb: crate::obj::GodotClass < Base = AudioEffectReverb > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectReverb { + pub fn set_predelay_msec(&mut self, msec: f32,) { + type CallSig = ((), f32); + let args = (msec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(760usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "set_predelay_msec", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_predelay_msec(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(761usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "get_predelay_msec", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_predelay_feedback(&mut self, feedback: f32,) { + type CallSig = ((), f32); + let args = (feedback,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(762usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "set_predelay_feedback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_predelay_feedback(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(763usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "get_predelay_feedback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_room_size(&mut self, size: f32,) { + type CallSig = ((), f32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(764usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "set_room_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_room_size(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(765usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "get_room_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_damping(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(766usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "set_damping", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_damping(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(767usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "get_damping", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_spread(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(768usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "set_spread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spread(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(769usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "get_spread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dry(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(770usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "set_dry", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_dry(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(771usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "get_dry", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_wet(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(772usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "set_wet", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wet(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(773usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "get_wet", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hpf(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(774usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "set_hpf", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hpf(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(775usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectReverb", "get_hpf", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectReverb { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectReverb")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectReverb { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectReverb { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectReverb { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectReverb { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectReverb { + + } + impl crate::obj::cap::GodotDefault for AudioEffectReverb { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectReverb { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectReverb { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectReverb`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectReverb { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectReverb > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_spectrum_analyzer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_spectrum_analyzer.rs new file mode 100644 index 0000000..1d3db2a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_spectrum_analyzer.rs @@ -0,0 +1,352 @@ +#![doc = "Sidecar module for class [`AudioEffectSpectrumAnalyzer`][crate::classes::AudioEffectSpectrumAnalyzer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectSpectrumAnalyzer` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectspectrumanalyzer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectSpectrumAnalyzer.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`audio_effect_spectrum_analyzer`][crate::classes::audio_effect_spectrum_analyzer]: sidecar module with related enum/flag types\n* [`IAudioEffectSpectrumAnalyzer`][crate::classes::IAudioEffectSpectrumAnalyzer]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectSpectrumAnalyzer`](https://docs.godotengine.org/en/stable/classes/class_audioeffectspectrumanalyzer.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectSpectrumAnalyzer::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectSpectrumAnalyzer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectSpectrumAnalyzer`][crate::classes::AudioEffectSpectrumAnalyzer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectSpectrumAnalyzer` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectspectrumanalyzer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectSpectrumAnalyzer: crate::obj::GodotClass < Base = AudioEffectSpectrumAnalyzer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectSpectrumAnalyzer { + pub fn set_buffer_length(&mut self, seconds: f32,) { + type CallSig = ((), f32); + let args = (seconds,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(776usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectSpectrumAnalyzer", "set_buffer_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_buffer_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(777usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectSpectrumAnalyzer", "get_buffer_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tap_back_pos(&mut self, seconds: f32,) { + type CallSig = ((), f32); + let args = (seconds,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(778usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectSpectrumAnalyzer", "set_tap_back_pos", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tap_back_pos(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(779usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectSpectrumAnalyzer", "get_tap_back_pos", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fft_size(&mut self, size: crate::classes::audio_effect_spectrum_analyzer::FftSize,) { + type CallSig = ((), crate::classes::audio_effect_spectrum_analyzer::FftSize); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(780usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectSpectrumAnalyzer", "set_fft_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fft_size(&self,) -> crate::classes::audio_effect_spectrum_analyzer::FftSize { + type CallSig = (crate::classes::audio_effect_spectrum_analyzer::FftSize,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(781usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectSpectrumAnalyzer", "get_fft_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectSpectrumAnalyzer { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectSpectrumAnalyzer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectSpectrumAnalyzer { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectSpectrumAnalyzer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectSpectrumAnalyzer { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectSpectrumAnalyzer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectSpectrumAnalyzer { + + } + impl crate::obj::cap::GodotDefault for AudioEffectSpectrumAnalyzer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectSpectrumAnalyzer { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectSpectrumAnalyzer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectSpectrumAnalyzer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectSpectrumAnalyzer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectSpectrumAnalyzer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `FFTSize`."] +pub struct FftSize { + ord: i32 +} +impl FftSize { + #[doc(alias = "FFT_SIZE_256")] + #[doc = "Godot enumerator name: `FFT_SIZE_256`"] + pub const SIZE_256: FftSize = FftSize { + ord: 0i32 + }; + #[doc(alias = "FFT_SIZE_512")] + #[doc = "Godot enumerator name: `FFT_SIZE_512`"] + pub const SIZE_512: FftSize = FftSize { + ord: 1i32 + }; + #[doc(alias = "FFT_SIZE_1024")] + #[doc = "Godot enumerator name: `FFT_SIZE_1024`"] + pub const SIZE_1024: FftSize = FftSize { + ord: 2i32 + }; + #[doc(alias = "FFT_SIZE_2048")] + #[doc = "Godot enumerator name: `FFT_SIZE_2048`"] + pub const SIZE_2048: FftSize = FftSize { + ord: 3i32 + }; + #[doc(alias = "FFT_SIZE_4096")] + #[doc = "Godot enumerator name: `FFT_SIZE_4096`"] + pub const SIZE_4096: FftSize = FftSize { + ord: 4i32 + }; + #[doc(alias = "FFT_SIZE_MAX")] + #[doc = "Godot enumerator name: `FFT_SIZE_MAX`"] + pub const MAX: FftSize = FftSize { + ord: 5i32 + }; + +} +impl std::fmt::Debug for FftSize { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FftSize") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FftSize { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SIZE_256 => "SIZE_256", Self::SIZE_512 => "SIZE_512", Self::SIZE_1024 => "SIZE_1024", Self::SIZE_2048 => "SIZE_2048", Self::SIZE_4096 => "SIZE_4096", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SIZE_256 => "FFT_SIZE_256", Self::SIZE_512 => "FFT_SIZE_512", Self::SIZE_1024 => "FFT_SIZE_1024", Self::SIZE_2048 => "FFT_SIZE_2048", Self::SIZE_4096 => "FFT_SIZE_4096", Self::MAX => "FFT_SIZE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for FftSize { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for FftSize { + type Via = i32; + +} +impl crate::meta::ToGodot for FftSize { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FftSize { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_spectrum_analyzer_instance.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_spectrum_analyzer_instance.rs new file mode 100644 index 0000000..70f679e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_spectrum_analyzer_instance.rs @@ -0,0 +1,321 @@ +#![doc = "Sidecar module for class [`AudioEffectSpectrumAnalyzerInstance`][crate::classes::AudioEffectSpectrumAnalyzerInstance].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectSpectrumAnalyzerInstance` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectspectrumanalyzerinstance.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectSpectrumAnalyzerInstance.`\n\nInherits [`AudioEffectInstance`][crate::classes::AudioEffectInstance].\n\nRelated symbols:\n\n* [`audio_effect_spectrum_analyzer_instance`][crate::classes::audio_effect_spectrum_analyzer_instance]: sidecar module with related enum/flag types\n* [`IAudioEffectSpectrumAnalyzerInstance`][crate::classes::IAudioEffectSpectrumAnalyzerInstance]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectSpectrumAnalyzerInstance`](https://docs.godotengine.org/en/stable/classes/class_audioeffectspectrumanalyzerinstance.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectSpectrumAnalyzerInstance { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectSpectrumAnalyzerInstance`][crate::classes::AudioEffectSpectrumAnalyzerInstance].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectSpectrumAnalyzerInstance` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectspectrumanalyzerinstance.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectSpectrumAnalyzerInstance: crate::obj::GodotClass < Base = AudioEffectSpectrumAnalyzerInstance > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn process(&mut self, src_buffer: * const c_void, dst_buffer: * mut AudioFrame, frame_count: i32,); + fn process_silence(&self,) -> bool { + unimplemented !() + } + } + impl AudioEffectSpectrumAnalyzerInstance { + pub(crate) fn get_magnitude_for_frequency_range_full(&self, from_hz: f32, to_hz: f32, mode: crate::classes::audio_effect_spectrum_analyzer_instance::MagnitudeMode,) -> Vector2 { + type CallSig = (Vector2, f32, f32, crate::classes::audio_effect_spectrum_analyzer_instance::MagnitudeMode); + let args = (from_hz, to_hz, mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(782usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectSpectrumAnalyzerInstance", "get_magnitude_for_frequency_range", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_magnitude_for_frequency_range_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_magnitude_for_frequency_range(&self, from_hz: f32, to_hz: f32,) -> Vector2 { + self.get_magnitude_for_frequency_range_ex(from_hz, to_hz,) . done() + } + #[inline] + pub fn get_magnitude_for_frequency_range_ex < 'a > (&'a self, from_hz: f32, to_hz: f32,) -> ExGetMagnitudeForFrequencyRange < 'a > { + ExGetMagnitudeForFrequencyRange::new(self, from_hz, to_hz,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectSpectrumAnalyzerInstance { + type Base = crate::classes::AudioEffectInstance; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectSpectrumAnalyzerInstance")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectSpectrumAnalyzerInstance { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffectInstance > for AudioEffectSpectrumAnalyzerInstance { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectSpectrumAnalyzerInstance { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectSpectrumAnalyzerInstance { + + } + impl std::ops::Deref for AudioEffectSpectrumAnalyzerInstance { + type Target = crate::classes::AudioEffectInstance; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectSpectrumAnalyzerInstance { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectSpectrumAnalyzerInstance`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectSpectrumAnalyzerInstance { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectSpectrumAnalyzerInstance > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectInstance > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AudioEffectSpectrumAnalyzerInstance::get_magnitude_for_frequency_range_ex`][super::AudioEffectSpectrumAnalyzerInstance::get_magnitude_for_frequency_range_ex]."] +#[must_use] +pub struct ExGetMagnitudeForFrequencyRange < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::AudioEffectSpectrumAnalyzerInstance, from_hz: f32, to_hz: f32, mode: crate::classes::audio_effect_spectrum_analyzer_instance::MagnitudeMode, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetMagnitudeForFrequencyRange < 'a > { + fn new(surround_object: &'a re_export::AudioEffectSpectrumAnalyzerInstance, from_hz: f32, to_hz: f32,) -> Self { + let mode = crate::obj::EngineEnum::from_ord(1); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_hz: from_hz, to_hz: to_hz, mode: mode, + } + } + #[inline] + pub fn mode(self, mode: crate::classes::audio_effect_spectrum_analyzer_instance::MagnitudeMode) -> Self { + Self { + mode: mode, .. self + } + } + #[inline] + pub fn done(self) -> Vector2 { + let Self { + _phantom, surround_object, from_hz, to_hz, mode, + } + = self; + re_export::AudioEffectSpectrumAnalyzerInstance::get_magnitude_for_frequency_range_full(surround_object, from_hz, to_hz, mode,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MagnitudeMode { + ord: i32 +} +impl MagnitudeMode { + #[doc(alias = "MAGNITUDE_AVERAGE")] + #[doc = "Godot enumerator name: `MAGNITUDE_AVERAGE`"] + pub const AVERAGE: MagnitudeMode = MagnitudeMode { + ord: 0i32 + }; + #[doc(alias = "MAGNITUDE_MAX")] + #[doc = "Godot enumerator name: `MAGNITUDE_MAX`"] + pub const MAX: MagnitudeMode = MagnitudeMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for MagnitudeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MagnitudeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MagnitudeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::AVERAGE => "AVERAGE", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::AVERAGE => "MAGNITUDE_AVERAGE", Self::MAX => "MAGNITUDE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for MagnitudeMode { + const ENUMERATOR_COUNT: usize = 1usize; + +} +impl crate::meta::GodotConvert for MagnitudeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for MagnitudeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MagnitudeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_stereo_enhance.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_stereo_enhance.rs new file mode 100644 index 0000000..35a3c47 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_effect_stereo_enhance.rs @@ -0,0 +1,257 @@ +#![doc = "Sidecar module for class [`AudioEffectStereoEnhance`][crate::classes::AudioEffectStereoEnhance].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioEffectStereoEnhance` enums](https://docs.godotengine.org/en/stable/classes/class_audioeffectstereoenhance.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioEffectStereoEnhance.`\n\nInherits [`AudioEffect`][crate::classes::AudioEffect].\n\nRelated symbols:\n\n* [`IAudioEffectStereoEnhance`][crate::classes::IAudioEffectStereoEnhance]: virtual methods\n\n\nSee also [Godot docs for `AudioEffectStereoEnhance`](https://docs.godotengine.org/en/stable/classes/class_audioeffectstereoenhance.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioEffectStereoEnhance::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioEffectStereoEnhance { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioEffectStereoEnhance`][crate::classes::AudioEffectStereoEnhance].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioEffectStereoEnhance` methods](https://docs.godotengine.org/en/stable/classes/class_audioeffectstereoenhance.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioEffectStereoEnhance: crate::obj::GodotClass < Base = AudioEffectStereoEnhance > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate(&mut self,) -> Option < Gd < crate::classes::AudioEffectInstance > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioEffectStereoEnhance { + pub fn set_pan_pullout(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(783usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectStereoEnhance", "set_pan_pullout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pan_pullout(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(784usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectStereoEnhance", "get_pan_pullout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_time_pullout(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(785usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectStereoEnhance", "set_time_pullout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_time_pullout(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(786usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectStereoEnhance", "get_time_pullout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_surround(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(787usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectStereoEnhance", "set_surround", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surround(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(788usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioEffectStereoEnhance", "get_surround", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioEffectStereoEnhance { + type Base = crate::classes::AudioEffect; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioEffectStereoEnhance")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioEffectStereoEnhance { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioEffect > for AudioEffectStereoEnhance { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioEffectStereoEnhance { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioEffectStereoEnhance { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioEffectStereoEnhance { + + } + impl crate::obj::cap::GodotDefault for AudioEffectStereoEnhance { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioEffectStereoEnhance { + type Target = crate::classes::AudioEffect; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioEffectStereoEnhance { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioEffectStereoEnhance`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioEffectStereoEnhance { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffectStereoEnhance > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_listener_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_listener_2d.rs new file mode 100644 index 0000000..b9b52bc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_listener_2d.rs @@ -0,0 +1,262 @@ +#![doc = "Sidecar module for class [`AudioListener2D`][crate::classes::AudioListener2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioListener2D` enums](https://docs.godotengine.org/en/stable/classes/class_audiolistener2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioListener2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IAudioListener2D`][crate::classes::IAudioListener2D]: virtual methods\n\n\nSee also [Godot docs for `AudioListener2D`](https://docs.godotengine.org/en/stable/classes/class_audiolistener2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AudioListener2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioListener2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioListener2D`][crate::classes::AudioListener2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioListener2D` methods](https://docs.godotengine.org/en/stable/classes/class_audiolistener2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioListener2D: crate::obj::GodotClass < Base = AudioListener2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AudioListener2D { + pub fn make_current(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(789usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioListener2D", "make_current", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_current(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(790usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioListener2D", "clear_current", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_current(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(791usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioListener2D", "is_current", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioListener2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioListener2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioListener2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for AudioListener2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for AudioListener2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AudioListener2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioListener2D { + + } + impl crate::obj::cap::GodotDefault for AudioListener2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioListener2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioListener2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioListener2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioListener2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioListener2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_listener_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_listener_3d.rs new file mode 100644 index 0000000..6152be8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_listener_3d.rs @@ -0,0 +1,261 @@ +#![doc = "Sidecar module for class [`AudioListener3D`][crate::classes::AudioListener3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioListener3D` enums](https://docs.godotengine.org/en/stable/classes/class_audiolistener3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioListener3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`IAudioListener3D`][crate::classes::IAudioListener3D]: virtual methods\n\n\nSee also [Godot docs for `AudioListener3D`](https://docs.godotengine.org/en/stable/classes/class_audiolistener3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AudioListener3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioListener3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioListener3D`][crate::classes::AudioListener3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioListener3D` methods](https://docs.godotengine.org/en/stable/classes/class_audiolistener3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioListener3D: crate::obj::GodotClass < Base = AudioListener3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AudioListener3D { + pub fn make_current(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(792usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioListener3D", "make_current", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_current(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(793usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioListener3D", "clear_current", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_current(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(794usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioListener3D", "is_current", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_listener_transform(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(795usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioListener3D", "get_listener_transform", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioListener3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioListener3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioListener3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for AudioListener3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AudioListener3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioListener3D { + + } + impl crate::obj::cap::GodotDefault for AudioListener3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioListener3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioListener3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioListener3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioListener3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioListener3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_server.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_server.rs new file mode 100644 index 0000000..103e167 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_server.rs @@ -0,0 +1,856 @@ +#![doc = "Sidecar module for class [`AudioServer`][crate::classes::AudioServer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioServer` enums](https://docs.godotengine.org/en/stable/classes/class_audioserver.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioServer.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`audio_server`][crate::classes::audio_server]: sidecar module with related enum/flag types\n* [`IAudioServer`][crate::classes::IAudioServer]: virtual methods\n\n\nSee also [Godot docs for `AudioServer`](https://docs.godotengine.org/en/stable/classes/class_audioserver.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`AudioServer::singleton()`][AudioServer::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioServer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioServer`][crate::classes::AudioServer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioServer` methods](https://docs.godotengine.org/en/stable/classes/class_audioserver.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioServer: crate::obj::GodotClass < Base = AudioServer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl AudioServer { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"AudioServer"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn set_bus_count(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(0usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_bus_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(1usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_bus_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_bus(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(2usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "remove_bus", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_bus_full(&mut self, at_position: i32,) { + type CallSig = ((), i32); + let args = (at_position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(3usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "add_bus", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_bus_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_bus(&mut self,) { + self.add_bus_ex() . done() + } + #[inline] + pub fn add_bus_ex < 'a > (&'a mut self,) -> ExAddBus < 'a > { + ExAddBus::new(self,) + } + pub fn move_bus(&mut self, index: i32, to_index: i32,) { + type CallSig = ((), i32, i32); + let args = (index, to_index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(4usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "move_bus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bus_name(&mut self, bus_idx: i32, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (bus_idx, name.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(5usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_bus_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus_name(&self, bus_idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (bus_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(6usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_bus_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus_index(&self, bus_name: impl AsArg < StringName >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, StringName >); + let args = (bus_name.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(7usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_bus_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus_channels(&self, bus_idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (bus_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(8usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_bus_channels", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bus_volume_db(&mut self, bus_idx: i32, volume_db: f32,) { + type CallSig = ((), i32, f32); + let args = (bus_idx, volume_db,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(9usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_bus_volume_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus_volume_db(&self, bus_idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (bus_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(10usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_bus_volume_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bus_send(&mut self, bus_idx: i32, send: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, StringName >); + let args = (bus_idx, send.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(11usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_bus_send", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus_send(&self, bus_idx: i32,) -> StringName { + type CallSig = (StringName, i32); + let args = (bus_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(12usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_bus_send", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bus_solo(&mut self, bus_idx: i32, enable: bool,) { + type CallSig = ((), i32, bool); + let args = (bus_idx, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(13usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_bus_solo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_bus_solo(&self, bus_idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (bus_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(14usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "is_bus_solo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bus_mute(&mut self, bus_idx: i32, enable: bool,) { + type CallSig = ((), i32, bool); + let args = (bus_idx, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(15usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_bus_mute", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_bus_mute(&self, bus_idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (bus_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(16usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "is_bus_mute", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bus_bypass_effects(&mut self, bus_idx: i32, enable: bool,) { + type CallSig = ((), i32, bool); + let args = (bus_idx, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(17usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_bus_bypass_effects", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_bus_bypassing_effects(&self, bus_idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (bus_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(18usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "is_bus_bypassing_effects", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_bus_effect_full(&mut self, bus_idx: i32, effect: ObjectArg < crate::classes::AudioEffect >, at_position: i32,) { + type CallSig = ((), i32, ObjectArg < crate::classes::AudioEffect >, i32); + let args = (bus_idx, effect, at_position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(19usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "add_bus_effect", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_bus_effect_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_bus_effect(&mut self, bus_idx: i32, effect: impl AsObjectArg < crate::classes::AudioEffect >,) { + self.add_bus_effect_ex(bus_idx, effect,) . done() + } + #[inline] + pub fn add_bus_effect_ex < 'a > (&'a mut self, bus_idx: i32, effect: impl AsObjectArg < crate::classes::AudioEffect >,) -> ExAddBusEffect < 'a > { + ExAddBusEffect::new(self, bus_idx, effect,) + } + pub fn remove_bus_effect(&mut self, bus_idx: i32, effect_idx: i32,) { + type CallSig = ((), i32, i32); + let args = (bus_idx, effect_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(20usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "remove_bus_effect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus_effect_count(&mut self, bus_idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (bus_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(21usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_bus_effect_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus_effect(&mut self, bus_idx: i32, effect_idx: i32,) -> Option < Gd < crate::classes::AudioEffect > > { + type CallSig = (Option < Gd < crate::classes::AudioEffect > >, i32, i32); + let args = (bus_idx, effect_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(22usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_bus_effect", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_bus_effect_instance_full(&mut self, bus_idx: i32, effect_idx: i32, channel: i32,) -> Option < Gd < crate::classes::AudioEffectInstance > > { + type CallSig = (Option < Gd < crate::classes::AudioEffectInstance > >, i32, i32, i32); + let args = (bus_idx, effect_idx, channel,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(23usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_bus_effect_instance", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_bus_effect_instance_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_bus_effect_instance(&mut self, bus_idx: i32, effect_idx: i32,) -> Option < Gd < crate::classes::AudioEffectInstance > > { + self.get_bus_effect_instance_ex(bus_idx, effect_idx,) . done() + } + #[inline] + pub fn get_bus_effect_instance_ex < 'a > (&'a mut self, bus_idx: i32, effect_idx: i32,) -> ExGetBusEffectInstance < 'a > { + ExGetBusEffectInstance::new(self, bus_idx, effect_idx,) + } + pub fn swap_bus_effects(&mut self, bus_idx: i32, effect_idx: i32, by_effect_idx: i32,) { + type CallSig = ((), i32, i32, i32); + let args = (bus_idx, effect_idx, by_effect_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(24usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "swap_bus_effects", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bus_effect_enabled(&mut self, bus_idx: i32, effect_idx: i32, enabled: bool,) { + type CallSig = ((), i32, i32, bool); + let args = (bus_idx, effect_idx, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(25usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_bus_effect_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_bus_effect_enabled(&self, bus_idx: i32, effect_idx: i32,) -> bool { + type CallSig = (bool, i32, i32); + let args = (bus_idx, effect_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(26usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "is_bus_effect_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus_peak_volume_left_db(&self, bus_idx: i32, channel: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (bus_idx, channel,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(27usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_bus_peak_volume_left_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus_peak_volume_right_db(&self, bus_idx: i32, channel: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (bus_idx, channel,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(28usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_bus_peak_volume_right_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_playback_speed_scale(&mut self, scale: f32,) { + type CallSig = ((), f32); + let args = (scale,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(29usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_playback_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playback_speed_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(30usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_playback_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lock(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(31usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "lock", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unlock(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(32usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "unlock", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_speaker_mode(&self,) -> crate::classes::audio_server::SpeakerMode { + type CallSig = (crate::classes::audio_server::SpeakerMode,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(33usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_speaker_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mix_rate(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(34usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_mix_rate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_output_device_list(&mut self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(35usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_output_device_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_output_device(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(36usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_output_device", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_output_device(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(37usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_output_device", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_time_to_next_mix(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(38usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_time_to_next_mix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_time_since_last_mix(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(39usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_time_since_last_mix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_output_latency(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(40usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_output_latency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_input_device_list(&mut self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(41usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_input_device_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_input_device(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(42usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "get_input_device", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_input_device(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(43usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_input_device", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bus_layout(&mut self, bus_layout: impl AsObjectArg < crate::classes::AudioBusLayout >,) { + type CallSig = ((), ObjectArg < crate::classes::AudioBusLayout >); + let args = (bus_layout.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(44usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_bus_layout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn generate_bus_layout(&self,) -> Option < Gd < crate::classes::AudioBusLayout > > { + type CallSig = (Option < Gd < crate::classes::AudioBusLayout > >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(45usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "generate_bus_layout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_tagging_used_audio_streams(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(46usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "set_enable_tagging_used_audio_streams", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_stream_registered_as_sample(&mut self, stream: impl AsObjectArg < crate::classes::AudioStream >,) -> bool { + type CallSig = (bool, ObjectArg < crate::classes::AudioStream >); + let args = (stream.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(47usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "is_stream_registered_as_sample", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn register_stream_as_sample(&mut self, stream: impl AsObjectArg < crate::classes::AudioStream >,) { + type CallSig = ((), ObjectArg < crate::classes::AudioStream >); + let args = (stream.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(48usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioServer", "register_stream_as_sample", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioServer { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioServer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for AudioServer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioServer { + + } + impl std::ops::Deref for AudioServer { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioServer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioServer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioServer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioServer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AudioServer::add_bus_ex`][super::AudioServer::add_bus_ex]."] +#[must_use] +pub struct ExAddBus < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AudioServer, at_position: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddBus < 'a > { + fn new(surround_object: &'a mut re_export::AudioServer,) -> Self { + let at_position = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, at_position: at_position, + } + } + #[inline] + pub fn at_position(self, at_position: i32) -> Self { + Self { + at_position: at_position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, at_position, + } + = self; + re_export::AudioServer::add_bus_full(surround_object, at_position,) + } +} +#[doc = "Default-param extender for [`AudioServer::add_bus_effect_ex`][super::AudioServer::add_bus_effect_ex]."] +#[must_use] +pub struct ExAddBusEffect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AudioServer, bus_idx: i32, effect: ObjectCow < crate::classes::AudioEffect >, at_position: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddBusEffect < 'a > { + fn new(surround_object: &'a mut re_export::AudioServer, bus_idx: i32, effect: impl AsObjectArg < crate::classes::AudioEffect >,) -> Self { + let at_position = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, bus_idx: bus_idx, effect: effect.consume_arg(), at_position: at_position, + } + } + #[inline] + pub fn at_position(self, at_position: i32) -> Self { + Self { + at_position: at_position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, bus_idx, effect, at_position, + } + = self; + re_export::AudioServer::add_bus_effect_full(surround_object, bus_idx, effect.cow_as_object_arg(), at_position,) + } +} +#[doc = "Default-param extender for [`AudioServer::get_bus_effect_instance_ex`][super::AudioServer::get_bus_effect_instance_ex]."] +#[must_use] +pub struct ExGetBusEffectInstance < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AudioServer, bus_idx: i32, effect_idx: i32, channel: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetBusEffectInstance < 'a > { + fn new(surround_object: &'a mut re_export::AudioServer, bus_idx: i32, effect_idx: i32,) -> Self { + let channel = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, bus_idx: bus_idx, effect_idx: effect_idx, channel: channel, + } + } + #[inline] + pub fn channel(self, channel: i32) -> Self { + Self { + channel: channel, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::AudioEffectInstance > > { + let Self { + _phantom, surround_object, bus_idx, effect_idx, channel, + } + = self; + re_export::AudioServer::get_bus_effect_instance_full(surround_object, bus_idx, effect_idx, channel,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SpeakerMode { + ord: i32 +} +impl SpeakerMode { + #[doc(alias = "SPEAKER_MODE_STEREO")] + #[doc = "Godot enumerator name: `SPEAKER_MODE_STEREO`"] + pub const STEREO: SpeakerMode = SpeakerMode { + ord: 0i32 + }; + #[doc(alias = "SPEAKER_SURROUND_31")] + #[doc = "Godot enumerator name: `SPEAKER_SURROUND_31`"] + pub const SURROUND_31: SpeakerMode = SpeakerMode { + ord: 1i32 + }; + #[doc(alias = "SPEAKER_SURROUND_51")] + #[doc = "Godot enumerator name: `SPEAKER_SURROUND_51`"] + pub const SURROUND_51: SpeakerMode = SpeakerMode { + ord: 2i32 + }; + #[doc(alias = "SPEAKER_SURROUND_71")] + #[doc = "Godot enumerator name: `SPEAKER_SURROUND_71`"] + pub const SURROUND_71: SpeakerMode = SpeakerMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for SpeakerMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SpeakerMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SpeakerMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STEREO => "STEREO", Self::SURROUND_31 => "SURROUND_31", Self::SURROUND_51 => "SURROUND_51", Self::SURROUND_71 => "SURROUND_71", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STEREO => "SPEAKER_MODE_STEREO", Self::SURROUND_31 => "SPEAKER_SURROUND_31", Self::SURROUND_51 => "SPEAKER_SURROUND_51", Self::SURROUND_71 => "SPEAKER_SURROUND_71", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SpeakerMode { + type Via = i32; + +} +impl crate::meta::ToGodot for SpeakerMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SpeakerMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PlaybackType { + ord: i32 +} +impl PlaybackType { + #[doc(alias = "PLAYBACK_TYPE_DEFAULT")] + #[doc = "Godot enumerator name: `PLAYBACK_TYPE_DEFAULT`"] + pub const DEFAULT: PlaybackType = PlaybackType { + ord: 0i32 + }; + #[doc(alias = "PLAYBACK_TYPE_STREAM")] + #[doc = "Godot enumerator name: `PLAYBACK_TYPE_STREAM`"] + pub const STREAM: PlaybackType = PlaybackType { + ord: 1i32 + }; + #[doc(alias = "PLAYBACK_TYPE_SAMPLE")] + #[doc = "Godot enumerator name: `PLAYBACK_TYPE_SAMPLE`"] + pub const SAMPLE: PlaybackType = PlaybackType { + ord: 2i32 + }; + #[doc(alias = "PLAYBACK_TYPE_MAX")] + #[doc = "Godot enumerator name: `PLAYBACK_TYPE_MAX`"] + pub const MAX: PlaybackType = PlaybackType { + ord: 3i32 + }; + +} +impl std::fmt::Debug for PlaybackType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PlaybackType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PlaybackType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "DEFAULT", Self::STREAM => "STREAM", Self::SAMPLE => "SAMPLE", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "PLAYBACK_TYPE_DEFAULT", Self::STREAM => "PLAYBACK_TYPE_STREAM", Self::SAMPLE => "PLAYBACK_TYPE_SAMPLE", Self::MAX => "PLAYBACK_TYPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for PlaybackType { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for PlaybackType { + type Via = i32; + +} +impl crate::meta::ToGodot for PlaybackType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PlaybackType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream.rs new file mode 100644 index 0000000..f356cf1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream.rs @@ -0,0 +1,263 @@ +#![doc = "Sidecar module for class [`AudioStream`][crate::classes::AudioStream].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStream` enums](https://docs.godotengine.org/en/stable/classes/class_audiostream.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStream.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IAudioStream`][crate::classes::IAudioStream]: virtual methods\n\n\nSee also [Godot docs for `AudioStream`](https://docs.godotengine.org/en/stable/classes/class_audiostream.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStream::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStream { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStream`][crate::classes::AudioStream].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStream` methods](https://docs.godotengine.org/en/stable/classes/class_audiostream.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStream: crate::obj::GodotClass < Base = AudioStream > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate_playback(&self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + unimplemented !() + } + fn get_stream_name(&self,) -> GString { + unimplemented !() + } + fn get_length(&self,) -> f64 { + unimplemented !() + } + fn is_monophonic(&self,) -> bool { + unimplemented !() + } + fn get_bpm(&self,) -> f64 { + unimplemented !() + } + fn get_beat_count(&self,) -> i32 { + unimplemented !() + } + fn get_parameter_list(&self,) -> Array < Dictionary > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioStream { + pub fn get_length(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(796usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStream", "get_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_monophonic(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(797usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStream", "is_monophonic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instantiate_playback(&mut self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + type CallSig = (Option < Gd < crate::classes::AudioStreamPlayback > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(798usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStream", "instantiate_playback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn can_be_sampled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(799usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStream", "can_be_sampled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_meta_stream(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(800usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStream", "is_meta_stream", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStream { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStream")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStream { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioStream { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStream { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStream { + + } + impl crate::obj::cap::GodotDefault for AudioStream { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStream { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStream { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStream`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStream { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_generator.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_generator.rs new file mode 100644 index 0000000..e53eb90 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_generator.rs @@ -0,0 +1,261 @@ +#![doc = "Sidecar module for class [`AudioStreamGenerator`][crate::classes::AudioStreamGenerator].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamGenerator` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamgenerator.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamGenerator.`\n\nInherits [`AudioStream`][crate::classes::AudioStream].\n\nRelated symbols:\n\n* [`IAudioStreamGenerator`][crate::classes::IAudioStreamGenerator]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamGenerator`](https://docs.godotengine.org/en/stable/classes/class_audiostreamgenerator.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamGenerator::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamGenerator { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamGenerator`][crate::classes::AudioStreamGenerator].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamGenerator` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamgenerator.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamGenerator: crate::obj::GodotClass < Base = AudioStreamGenerator > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate_playback(&self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + unimplemented !() + } + fn get_stream_name(&self,) -> GString { + unimplemented !() + } + fn get_length(&self,) -> f64 { + unimplemented !() + } + fn is_monophonic(&self,) -> bool { + unimplemented !() + } + fn get_bpm(&self,) -> f64 { + unimplemented !() + } + fn get_beat_count(&self,) -> i32 { + unimplemented !() + } + fn get_parameter_list(&self,) -> Array < Dictionary > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioStreamGenerator { + pub fn set_mix_rate(&mut self, hz: f32,) { + type CallSig = ((), f32); + let args = (hz,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(801usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamGenerator", "set_mix_rate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mix_rate(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(802usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamGenerator", "get_mix_rate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_buffer_length(&mut self, seconds: f32,) { + type CallSig = ((), f32); + let args = (seconds,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(803usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamGenerator", "set_buffer_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_buffer_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(804usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamGenerator", "get_buffer_length", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamGenerator { + type Base = crate::classes::AudioStream; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamGenerator")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamGenerator { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStream > for AudioStreamGenerator { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioStreamGenerator { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamGenerator { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamGenerator { + + } + impl crate::obj::cap::GodotDefault for AudioStreamGenerator { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamGenerator { + type Target = crate::classes::AudioStream; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamGenerator { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamGenerator`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamGenerator { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamGenerator > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_generator_playback.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_generator_playback.rs new file mode 100644 index 0000000..67ecc37 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_generator_playback.rs @@ -0,0 +1,286 @@ +#![doc = "Sidecar module for class [`AudioStreamGeneratorPlayback`][crate::classes::AudioStreamGeneratorPlayback].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamGeneratorPlayback` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamgeneratorplayback.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamGeneratorPlayback.`\n\nInherits [`AudioStreamPlaybackResampled`][crate::classes::AudioStreamPlaybackResampled].\n\nRelated symbols:\n\n* [`IAudioStreamGeneratorPlayback`][crate::classes::IAudioStreamGeneratorPlayback]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamGeneratorPlayback`](https://docs.godotengine.org/en/stable/classes/class_audiostreamgeneratorplayback.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamGeneratorPlayback { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamGeneratorPlayback`][crate::classes::AudioStreamGeneratorPlayback].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamGeneratorPlayback` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamgeneratorplayback.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamGeneratorPlayback: crate::obj::GodotClass < Base = AudioStreamGeneratorPlayback > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn mix_resampled(&mut self, dst_buffer: * mut AudioFrame, frame_count: i32,) -> i32; + fn get_stream_sampling_rate(&self,) -> f32; + fn start(&mut self, from_pos: f64,) { + unimplemented !() + } + fn stop(&mut self,) { + unimplemented !() + } + fn is_playing(&self,) -> bool { + unimplemented !() + } + fn get_loop_count(&self,) -> i32 { + unimplemented !() + } + fn get_playback_position(&self,) -> f64 { + unimplemented !() + } + fn seek(&mut self, position: f64,) { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn mix(&mut self, buffer: * mut AudioFrame, rate_scale: f32, frames: i32,) -> i32; + fn tag_used_streams(&mut self,) { + unimplemented !() + } + fn set_parameter(&mut self, name: StringName, value: Variant,) { + unimplemented !() + } + fn get_parameter(&self, name: StringName,) -> Variant { + unimplemented !() + } + } + impl AudioStreamGeneratorPlayback { + pub fn push_frame(&mut self, frame: Vector2,) -> bool { + type CallSig = (bool, Vector2); + let args = (frame,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(805usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamGeneratorPlayback", "push_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn can_push_buffer(&self, amount: i32,) -> bool { + type CallSig = (bool, i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(806usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamGeneratorPlayback", "can_push_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_buffer(&mut self, frames: &PackedVector2Array,) -> bool { + type CallSig < 'a0, > = (bool, RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(frames),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(807usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamGeneratorPlayback", "push_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frames_available(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(808usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamGeneratorPlayback", "get_frames_available", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skips(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(809usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamGeneratorPlayback", "get_skips", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_buffer(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(810usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamGeneratorPlayback", "clear_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamGeneratorPlayback { + type Base = crate::classes::AudioStreamPlaybackResampled; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamGeneratorPlayback")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamGeneratorPlayback { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStreamPlaybackResampled > for AudioStreamGeneratorPlayback { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStreamPlayback > for AudioStreamGeneratorPlayback { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamGeneratorPlayback { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamGeneratorPlayback { + + } + impl std::ops::Deref for AudioStreamGeneratorPlayback { + type Target = crate::classes::AudioStreamPlaybackResampled; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamGeneratorPlayback { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamGeneratorPlayback`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamGeneratorPlayback { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamGeneratorPlayback > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlaybackResampled > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlayback > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_interactive.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_interactive.rs new file mode 100644 index 0000000..03d5a6e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_interactive.rs @@ -0,0 +1,776 @@ +#![doc = "Sidecar module for class [`AudioStreamInteractive`][crate::classes::AudioStreamInteractive].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamInteractive` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreaminteractive.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamInteractive.`\n\nInherits [`AudioStream`][crate::classes::AudioStream].\n\nRelated symbols:\n\n* [`audio_stream_interactive`][crate::classes::audio_stream_interactive]: sidecar module with related enum/flag types\n* [`IAudioStreamInteractive`][crate::classes::IAudioStreamInteractive]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamInteractive`](https://docs.godotengine.org/en/stable/classes/class_audiostreaminteractive.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamInteractive::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamInteractive { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamInteractive`][crate::classes::AudioStreamInteractive].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamInteractive` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreaminteractive.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamInteractive: crate::obj::GodotClass < Base = AudioStreamInteractive > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate_playback(&self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + unimplemented !() + } + fn get_stream_name(&self,) -> GString { + unimplemented !() + } + fn get_length(&self,) -> f64 { + unimplemented !() + } + fn is_monophonic(&self,) -> bool { + unimplemented !() + } + fn get_bpm(&self,) -> f64 { + unimplemented !() + } + fn get_beat_count(&self,) -> i32 { + unimplemented !() + } + fn get_parameter_list(&self,) -> Array < Dictionary > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioStreamInteractive { + pub fn set_clip_count(&mut self, clip_count: i32,) { + type CallSig = ((), i32); + let args = (clip_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(811usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "set_clip_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_clip_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(812usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_clip_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_initial_clip(&mut self, clip_index: i32,) { + type CallSig = ((), i32); + let args = (clip_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(813usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "set_initial_clip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_initial_clip(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(814usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_initial_clip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clip_name(&mut self, clip_index: i32, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, StringName >); + let args = (clip_index, name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(815usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "set_clip_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_clip_name(&self, clip_index: i32,) -> StringName { + type CallSig = (StringName, i32); + let args = (clip_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(816usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_clip_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clip_stream(&mut self, clip_index: i32, stream: impl AsObjectArg < crate::classes::AudioStream >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::AudioStream >); + let args = (clip_index, stream.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(817usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "set_clip_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_clip_stream(&self, clip_index: i32,) -> Option < Gd < crate::classes::AudioStream > > { + type CallSig = (Option < Gd < crate::classes::AudioStream > >, i32); + let args = (clip_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(818usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_clip_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clip_auto_advance(&mut self, clip_index: i32, mode: crate::classes::audio_stream_interactive::AutoAdvanceMode,) { + type CallSig = ((), i32, crate::classes::audio_stream_interactive::AutoAdvanceMode); + let args = (clip_index, mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(819usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "set_clip_auto_advance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_clip_auto_advance(&self, clip_index: i32,) -> crate::classes::audio_stream_interactive::AutoAdvanceMode { + type CallSig = (crate::classes::audio_stream_interactive::AutoAdvanceMode, i32); + let args = (clip_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(820usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_clip_auto_advance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clip_auto_advance_next_clip(&mut self, clip_index: i32, auto_advance_next_clip: i32,) { + type CallSig = ((), i32, i32); + let args = (clip_index, auto_advance_next_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(821usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "set_clip_auto_advance_next_clip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_clip_auto_advance_next_clip(&self, clip_index: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (clip_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(822usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_clip_auto_advance_next_clip", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_transition_full(&mut self, from_clip: i32, to_clip: i32, from_time: crate::classes::audio_stream_interactive::TransitionFromTime, to_time: crate::classes::audio_stream_interactive::TransitionToTime, fade_mode: crate::classes::audio_stream_interactive::FadeMode, fade_beats: f32, use_filler_clip: bool, filler_clip: i32, hold_previous: bool,) { + type CallSig = ((), i32, i32, crate::classes::audio_stream_interactive::TransitionFromTime, crate::classes::audio_stream_interactive::TransitionToTime, crate::classes::audio_stream_interactive::FadeMode, f32, bool, i32, bool); + let args = (from_clip, to_clip, from_time, to_time, fade_mode, fade_beats, use_filler_clip, filler_clip, hold_previous,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(823usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "add_transition", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_transition_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_transition(&mut self, from_clip: i32, to_clip: i32, from_time: crate::classes::audio_stream_interactive::TransitionFromTime, to_time: crate::classes::audio_stream_interactive::TransitionToTime, fade_mode: crate::classes::audio_stream_interactive::FadeMode, fade_beats: f32,) { + self.add_transition_ex(from_clip, to_clip, from_time, to_time, fade_mode, fade_beats,) . done() + } + #[inline] + pub fn add_transition_ex < 'a > (&'a mut self, from_clip: i32, to_clip: i32, from_time: crate::classes::audio_stream_interactive::TransitionFromTime, to_time: crate::classes::audio_stream_interactive::TransitionToTime, fade_mode: crate::classes::audio_stream_interactive::FadeMode, fade_beats: f32,) -> ExAddTransition < 'a > { + ExAddTransition::new(self, from_clip, to_clip, from_time, to_time, fade_mode, fade_beats,) + } + pub fn has_transition(&self, from_clip: i32, to_clip: i32,) -> bool { + type CallSig = (bool, i32, i32); + let args = (from_clip, to_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(824usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "has_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn erase_transition(&mut self, from_clip: i32, to_clip: i32,) { + type CallSig = ((), i32, i32); + let args = (from_clip, to_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(825usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "erase_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transition_list(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(826usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_transition_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transition_from_time(&self, from_clip: i32, to_clip: i32,) -> crate::classes::audio_stream_interactive::TransitionFromTime { + type CallSig = (crate::classes::audio_stream_interactive::TransitionFromTime, i32, i32); + let args = (from_clip, to_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(827usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_transition_from_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transition_to_time(&self, from_clip: i32, to_clip: i32,) -> crate::classes::audio_stream_interactive::TransitionToTime { + type CallSig = (crate::classes::audio_stream_interactive::TransitionToTime, i32, i32); + let args = (from_clip, to_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(828usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_transition_to_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transition_fade_mode(&self, from_clip: i32, to_clip: i32,) -> crate::classes::audio_stream_interactive::FadeMode { + type CallSig = (crate::classes::audio_stream_interactive::FadeMode, i32, i32); + let args = (from_clip, to_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(829usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_transition_fade_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transition_fade_beats(&self, from_clip: i32, to_clip: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (from_clip, to_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(830usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_transition_fade_beats", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_transition_using_filler_clip(&self, from_clip: i32, to_clip: i32,) -> bool { + type CallSig = (bool, i32, i32); + let args = (from_clip, to_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(831usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "is_transition_using_filler_clip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transition_filler_clip(&self, from_clip: i32, to_clip: i32,) -> i32 { + type CallSig = (i32, i32, i32); + let args = (from_clip, to_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(832usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "get_transition_filler_clip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_transition_holding_previous(&self, from_clip: i32, to_clip: i32,) -> bool { + type CallSig = (bool, i32, i32); + let args = (from_clip, to_clip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(833usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamInteractive", "is_transition_holding_previous", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const CLIP_ANY: i32 = - 1i32; + + } + impl crate::obj::GodotClass for AudioStreamInteractive { + type Base = crate::classes::AudioStream; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamInteractive")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamInteractive { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStream > for AudioStreamInteractive { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioStreamInteractive { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamInteractive { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamInteractive { + + } + impl crate::obj::cap::GodotDefault for AudioStreamInteractive { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamInteractive { + type Target = crate::classes::AudioStream; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamInteractive { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamInteractive`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamInteractive { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamInteractive > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AudioStreamInteractive::add_transition_ex`][super::AudioStreamInteractive::add_transition_ex]."] +#[must_use] +pub struct ExAddTransition < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AudioStreamInteractive, from_clip: i32, to_clip: i32, from_time: crate::classes::audio_stream_interactive::TransitionFromTime, to_time: crate::classes::audio_stream_interactive::TransitionToTime, fade_mode: crate::classes::audio_stream_interactive::FadeMode, fade_beats: f32, use_filler_clip: bool, filler_clip: i32, hold_previous: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddTransition < 'a > { + fn new(surround_object: &'a mut re_export::AudioStreamInteractive, from_clip: i32, to_clip: i32, from_time: crate::classes::audio_stream_interactive::TransitionFromTime, to_time: crate::classes::audio_stream_interactive::TransitionToTime, fade_mode: crate::classes::audio_stream_interactive::FadeMode, fade_beats: f32,) -> Self { + let use_filler_clip = false; + let filler_clip = - 1i32; + let hold_previous = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_clip: from_clip, to_clip: to_clip, from_time: from_time, to_time: to_time, fade_mode: fade_mode, fade_beats: fade_beats, use_filler_clip: use_filler_clip, filler_clip: filler_clip, hold_previous: hold_previous, + } + } + #[inline] + pub fn use_filler_clip(self, use_filler_clip: bool) -> Self { + Self { + use_filler_clip: use_filler_clip, .. self + } + } + #[inline] + pub fn filler_clip(self, filler_clip: i32) -> Self { + Self { + filler_clip: filler_clip, .. self + } + } + #[inline] + pub fn hold_previous(self, hold_previous: bool) -> Self { + Self { + hold_previous: hold_previous, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, from_clip, to_clip, from_time, to_time, fade_mode, fade_beats, use_filler_clip, filler_clip, hold_previous, + } + = self; + re_export::AudioStreamInteractive::add_transition_full(surround_object, from_clip, to_clip, from_time, to_time, fade_mode, fade_beats, use_filler_clip, filler_clip, hold_previous,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TransitionFromTime { + ord: i32 +} +impl TransitionFromTime { + #[doc(alias = "TRANSITION_FROM_TIME_IMMEDIATE")] + #[doc = "Godot enumerator name: `TRANSITION_FROM_TIME_IMMEDIATE`"] + pub const IMMEDIATE: TransitionFromTime = TransitionFromTime { + ord: 0i32 + }; + #[doc(alias = "TRANSITION_FROM_TIME_NEXT_BEAT")] + #[doc = "Godot enumerator name: `TRANSITION_FROM_TIME_NEXT_BEAT`"] + pub const NEXT_BEAT: TransitionFromTime = TransitionFromTime { + ord: 1i32 + }; + #[doc(alias = "TRANSITION_FROM_TIME_NEXT_BAR")] + #[doc = "Godot enumerator name: `TRANSITION_FROM_TIME_NEXT_BAR`"] + pub const NEXT_BAR: TransitionFromTime = TransitionFromTime { + ord: 2i32 + }; + #[doc(alias = "TRANSITION_FROM_TIME_END")] + #[doc = "Godot enumerator name: `TRANSITION_FROM_TIME_END`"] + pub const END: TransitionFromTime = TransitionFromTime { + ord: 3i32 + }; + +} +impl std::fmt::Debug for TransitionFromTime { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TransitionFromTime") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TransitionFromTime { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IMMEDIATE => "IMMEDIATE", Self::NEXT_BEAT => "NEXT_BEAT", Self::NEXT_BAR => "NEXT_BAR", Self::END => "END", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IMMEDIATE => "TRANSITION_FROM_TIME_IMMEDIATE", Self::NEXT_BEAT => "TRANSITION_FROM_TIME_NEXT_BEAT", Self::NEXT_BAR => "TRANSITION_FROM_TIME_NEXT_BAR", Self::END => "TRANSITION_FROM_TIME_END", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TransitionFromTime { + type Via = i32; + +} +impl crate::meta::ToGodot for TransitionFromTime { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TransitionFromTime { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TransitionToTime { + ord: i32 +} +impl TransitionToTime { + #[doc(alias = "TRANSITION_TO_TIME_SAME_POSITION")] + #[doc = "Godot enumerator name: `TRANSITION_TO_TIME_SAME_POSITION`"] + pub const SAME_POSITION: TransitionToTime = TransitionToTime { + ord: 0i32 + }; + #[doc(alias = "TRANSITION_TO_TIME_START")] + #[doc = "Godot enumerator name: `TRANSITION_TO_TIME_START`"] + pub const START: TransitionToTime = TransitionToTime { + ord: 1i32 + }; + +} +impl std::fmt::Debug for TransitionToTime { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TransitionToTime") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TransitionToTime { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SAME_POSITION => "SAME_POSITION", Self::START => "START", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SAME_POSITION => "TRANSITION_TO_TIME_SAME_POSITION", Self::START => "TRANSITION_TO_TIME_START", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TransitionToTime { + type Via = i32; + +} +impl crate::meta::ToGodot for TransitionToTime { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TransitionToTime { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FadeMode { + ord: i32 +} +impl FadeMode { + #[doc(alias = "FADE_DISABLED")] + #[doc = "Godot enumerator name: `FADE_DISABLED`"] + pub const DISABLED: FadeMode = FadeMode { + ord: 0i32 + }; + #[doc(alias = "FADE_IN")] + #[doc = "Godot enumerator name: `FADE_IN`"] + pub const IN: FadeMode = FadeMode { + ord: 1i32 + }; + #[doc(alias = "FADE_OUT")] + #[doc = "Godot enumerator name: `FADE_OUT`"] + pub const OUT: FadeMode = FadeMode { + ord: 2i32 + }; + #[doc(alias = "FADE_CROSS")] + #[doc = "Godot enumerator name: `FADE_CROSS`"] + pub const CROSS: FadeMode = FadeMode { + ord: 3i32 + }; + #[doc(alias = "FADE_AUTOMATIC")] + #[doc = "Godot enumerator name: `FADE_AUTOMATIC`"] + pub const AUTOMATIC: FadeMode = FadeMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for FadeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FadeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FadeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::IN => "IN", Self::OUT => "OUT", Self::CROSS => "CROSS", Self::AUTOMATIC => "AUTOMATIC", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "FADE_DISABLED", Self::IN => "FADE_IN", Self::OUT => "FADE_OUT", Self::CROSS => "FADE_CROSS", Self::AUTOMATIC => "FADE_AUTOMATIC", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FadeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for FadeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FadeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AutoAdvanceMode { + ord: i32 +} +impl AutoAdvanceMode { + #[doc(alias = "AUTO_ADVANCE_DISABLED")] + #[doc = "Godot enumerator name: `AUTO_ADVANCE_DISABLED`"] + pub const DISABLED: AutoAdvanceMode = AutoAdvanceMode { + ord: 0i32 + }; + #[doc(alias = "AUTO_ADVANCE_ENABLED")] + #[doc = "Godot enumerator name: `AUTO_ADVANCE_ENABLED`"] + pub const ENABLED: AutoAdvanceMode = AutoAdvanceMode { + ord: 1i32 + }; + #[doc(alias = "AUTO_ADVANCE_RETURN_TO_HOLD")] + #[doc = "Godot enumerator name: `AUTO_ADVANCE_RETURN_TO_HOLD`"] + pub const RETURN_TO_HOLD: AutoAdvanceMode = AutoAdvanceMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AutoAdvanceMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AutoAdvanceMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AutoAdvanceMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ENABLED => "ENABLED", Self::RETURN_TO_HOLD => "RETURN_TO_HOLD", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "AUTO_ADVANCE_DISABLED", Self::ENABLED => "AUTO_ADVANCE_ENABLED", Self::RETURN_TO_HOLD => "AUTO_ADVANCE_RETURN_TO_HOLD", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AutoAdvanceMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AutoAdvanceMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AutoAdvanceMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_microphone.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_microphone.rs new file mode 100644 index 0000000..8a3b1aa --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_microphone.rs @@ -0,0 +1,229 @@ +#![doc = "Sidecar module for class [`AudioStreamMicrophone`][crate::classes::AudioStreamMicrophone].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamMicrophone` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreammicrophone.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamMicrophone.`\n\nInherits [`AudioStream`][crate::classes::AudioStream].\n\nRelated symbols:\n\n* [`IAudioStreamMicrophone`][crate::classes::IAudioStreamMicrophone]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamMicrophone`](https://docs.godotengine.org/en/stable/classes/class_audiostreammicrophone.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamMicrophone::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamMicrophone { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamMicrophone`][crate::classes::AudioStreamMicrophone].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamMicrophone` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreammicrophone.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamMicrophone: crate::obj::GodotClass < Base = AudioStreamMicrophone > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate_playback(&self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + unimplemented !() + } + fn get_stream_name(&self,) -> GString { + unimplemented !() + } + fn get_length(&self,) -> f64 { + unimplemented !() + } + fn is_monophonic(&self,) -> bool { + unimplemented !() + } + fn get_bpm(&self,) -> f64 { + unimplemented !() + } + fn get_beat_count(&self,) -> i32 { + unimplemented !() + } + fn get_parameter_list(&self,) -> Array < Dictionary > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioStreamMicrophone { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamMicrophone { + type Base = crate::classes::AudioStream; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamMicrophone")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamMicrophone { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStream > for AudioStreamMicrophone { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioStreamMicrophone { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamMicrophone { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamMicrophone { + + } + impl crate::obj::cap::GodotDefault for AudioStreamMicrophone { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamMicrophone { + type Target = crate::classes::AudioStream; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamMicrophone { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamMicrophone`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamMicrophone { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamMicrophone > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_mp3.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_mp3.rs new file mode 100644 index 0000000..1bda999 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_mp3.rs @@ -0,0 +1,325 @@ +#![doc = "Sidecar module for class [`AudioStreamMp3`][crate::classes::AudioStreamMp3].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamMP3` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreammp3.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamMP3.`\n\nInherits [`AudioStream`][crate::classes::AudioStream].\n\nRelated symbols:\n\n* [`IAudioStreamMp3`][crate::classes::IAudioStreamMp3]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamMP3`](https://docs.godotengine.org/en/stable/classes/class_audiostreammp3.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamMp3::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamMp3 { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamMp3`][crate::classes::AudioStreamMp3].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamMP3` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreammp3.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamMp3: crate::obj::GodotClass < Base = AudioStreamMp3 > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate_playback(&self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + unimplemented !() + } + fn get_stream_name(&self,) -> GString { + unimplemented !() + } + fn get_length(&self,) -> f64 { + unimplemented !() + } + fn is_monophonic(&self,) -> bool { + unimplemented !() + } + fn get_bpm(&self,) -> f64 { + unimplemented !() + } + fn get_beat_count(&self,) -> i32 { + unimplemented !() + } + fn get_parameter_list(&self,) -> Array < Dictionary > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioStreamMp3 { + pub fn set_data(&mut self, data: &PackedByteArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(834usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "set_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_data(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(835usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "get_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(836usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "set_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_loop(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(837usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "has_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop_offset(&mut self, seconds: f64,) { + type CallSig = ((), f64); + let args = (seconds,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(838usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "set_loop_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_loop_offset(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(839usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "get_loop_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bpm(&mut self, bpm: f64,) { + type CallSig = ((), f64); + let args = (bpm,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(840usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "set_bpm", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bpm(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(841usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "get_bpm", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_beat_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(842usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "set_beat_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_beat_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(843usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "get_beat_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bar_beats(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(844usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "set_bar_beats", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bar_beats(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(845usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamMp3", "get_bar_beats", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamMp3 { + type Base = crate::classes::AudioStream; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamMP3")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamMp3 { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStream > for AudioStreamMp3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioStreamMp3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamMp3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamMp3 { + + } + impl crate::obj::cap::GodotDefault for AudioStreamMp3 { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamMp3 { + type Target = crate::classes::AudioStream; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamMp3 { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamMp3`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamMp3 { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamMp3 > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_ogg_vorbis.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_ogg_vorbis.rs new file mode 100644 index 0000000..d0f61eb --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_ogg_vorbis.rs @@ -0,0 +1,341 @@ +#![doc = "Sidecar module for class [`AudioStreamOggVorbis`][crate::classes::AudioStreamOggVorbis].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamOggVorbis` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamoggvorbis.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamOggVorbis.`\n\nInherits [`AudioStream`][crate::classes::AudioStream].\n\nRelated symbols:\n\n* [`IAudioStreamOggVorbis`][crate::classes::IAudioStreamOggVorbis]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamOggVorbis`](https://docs.godotengine.org/en/stable/classes/class_audiostreamoggvorbis.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamOggVorbis::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamOggVorbis { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamOggVorbis`][crate::classes::AudioStreamOggVorbis].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamOggVorbis` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamoggvorbis.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamOggVorbis: crate::obj::GodotClass < Base = AudioStreamOggVorbis > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate_playback(&self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + unimplemented !() + } + fn get_stream_name(&self,) -> GString { + unimplemented !() + } + fn get_length(&self,) -> f64 { + unimplemented !() + } + fn is_monophonic(&self,) -> bool { + unimplemented !() + } + fn get_bpm(&self,) -> f64 { + unimplemented !() + } + fn get_beat_count(&self,) -> i32 { + unimplemented !() + } + fn get_parameter_list(&self,) -> Array < Dictionary > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioStreamOggVorbis { + pub fn load_from_buffer(buffer: &PackedByteArray,) -> Option < Gd < crate::classes::AudioStreamOggVorbis > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::AudioStreamOggVorbis > >, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(846usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "load_from_buffer", std::ptr::null_mut(), None, args,) + } + } + pub fn load_from_file(path: impl AsArg < GString >,) -> Option < Gd < crate::classes::AudioStreamOggVorbis > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::AudioStreamOggVorbis > >, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(847usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "load_from_file", std::ptr::null_mut(), None, args,) + } + } + pub fn set_packet_sequence(&mut self, packet_sequence: impl AsObjectArg < crate::classes::OggPacketSequence >,) { + type CallSig = ((), ObjectArg < crate::classes::OggPacketSequence >); + let args = (packet_sequence.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(848usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "set_packet_sequence", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_packet_sequence(&self,) -> Option < Gd < crate::classes::OggPacketSequence > > { + type CallSig = (Option < Gd < crate::classes::OggPacketSequence > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(849usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "get_packet_sequence", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(850usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "set_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_loop(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(851usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "has_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop_offset(&mut self, seconds: f64,) { + type CallSig = ((), f64); + let args = (seconds,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(852usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "set_loop_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_loop_offset(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(853usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "get_loop_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bpm(&mut self, bpm: f64,) { + type CallSig = ((), f64); + let args = (bpm,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(854usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "set_bpm", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bpm(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(855usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "get_bpm", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_beat_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(856usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "set_beat_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_beat_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(857usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "get_beat_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bar_beats(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(858usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "set_bar_beats", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bar_beats(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(859usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamOggVorbis", "get_bar_beats", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamOggVorbis { + type Base = crate::classes::AudioStream; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamOggVorbis")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamOggVorbis { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStream > for AudioStreamOggVorbis { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioStreamOggVorbis { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamOggVorbis { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamOggVorbis { + + } + impl crate::obj::cap::GodotDefault for AudioStreamOggVorbis { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamOggVorbis { + type Target = crate::classes::AudioStream; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamOggVorbis { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamOggVorbis`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamOggVorbis { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamOggVorbis > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback.rs new file mode 100644 index 0000000..dc80a3e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback.rs @@ -0,0 +1,225 @@ +#![doc = "Sidecar module for class [`AudioStreamPlayback`][crate::classes::AudioStreamPlayback].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPlayback` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayback.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPlayback.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IAudioStreamPlayback`][crate::classes::IAudioStreamPlayback]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPlayback`](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayback.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamPlayback::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPlayback { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPlayback`][crate::classes::AudioStreamPlayback].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPlayback` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayback.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPlayback: crate::obj::GodotClass < Base = AudioStreamPlayback > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn start(&mut self, from_pos: f64,) { + unimplemented !() + } + fn stop(&mut self,) { + unimplemented !() + } + fn is_playing(&self,) -> bool { + unimplemented !() + } + fn get_loop_count(&self,) -> i32 { + unimplemented !() + } + fn get_playback_position(&self,) -> f64 { + unimplemented !() + } + fn seek(&mut self, position: f64,) { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn mix(&mut self, buffer: * mut AudioFrame, rate_scale: f32, frames: i32,) -> i32; + fn tag_used_streams(&mut self,) { + unimplemented !() + } + fn set_parameter(&mut self, name: StringName, value: Variant,) { + unimplemented !() + } + fn get_parameter(&self, name: StringName,) -> Variant { + unimplemented !() + } + } + impl AudioStreamPlayback { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamPlayback { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPlayback")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPlayback { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamPlayback { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPlayback { + + } + impl crate::obj::cap::GodotDefault for AudioStreamPlayback { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamPlayback { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPlayback { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPlayback`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPlayback { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlayback > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_interactive.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_interactive.rs new file mode 100644 index 0000000..e6df8db --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_interactive.rs @@ -0,0 +1,242 @@ +#![doc = "Sidecar module for class [`AudioStreamPlaybackInteractive`][crate::classes::AudioStreamPlaybackInteractive].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPlaybackInteractive` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackinteractive.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPlaybackInteractive.`\n\nInherits [`AudioStreamPlayback`][crate::classes::AudioStreamPlayback].\n\nRelated symbols:\n\n* [`IAudioStreamPlaybackInteractive`][crate::classes::IAudioStreamPlaybackInteractive]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPlaybackInteractive`](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackinteractive.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPlaybackInteractive { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPlaybackInteractive`][crate::classes::AudioStreamPlaybackInteractive].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPlaybackInteractive` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackinteractive.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPlaybackInteractive: crate::obj::GodotClass < Base = AudioStreamPlaybackInteractive > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn start(&mut self, from_pos: f64,) { + unimplemented !() + } + fn stop(&mut self,) { + unimplemented !() + } + fn is_playing(&self,) -> bool { + unimplemented !() + } + fn get_loop_count(&self,) -> i32 { + unimplemented !() + } + fn get_playback_position(&self,) -> f64 { + unimplemented !() + } + fn seek(&mut self, position: f64,) { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn mix(&mut self, buffer: * mut AudioFrame, rate_scale: f32, frames: i32,) -> i32; + fn tag_used_streams(&mut self,) { + unimplemented !() + } + fn set_parameter(&mut self, name: StringName, value: Variant,) { + unimplemented !() + } + fn get_parameter(&self, name: StringName,) -> Variant { + unimplemented !() + } + } + impl AudioStreamPlaybackInteractive { + pub fn switch_to_clip_by_name(&mut self, clip_name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (clip_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(860usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaybackInteractive", "switch_to_clip_by_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn switch_to_clip(&mut self, clip_index: i32,) { + type CallSig = ((), i32); + let args = (clip_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(861usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaybackInteractive", "switch_to_clip", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamPlaybackInteractive { + type Base = crate::classes::AudioStreamPlayback; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPlaybackInteractive")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPlaybackInteractive { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStreamPlayback > for AudioStreamPlaybackInteractive { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamPlaybackInteractive { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPlaybackInteractive { + + } + impl std::ops::Deref for AudioStreamPlaybackInteractive { + type Target = crate::classes::AudioStreamPlayback; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPlaybackInteractive { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPlaybackInteractive`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPlaybackInteractive { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlaybackInteractive > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlayback > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_ogg_vorbis.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_ogg_vorbis.rs new file mode 100644 index 0000000..c5f2d94 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_ogg_vorbis.rs @@ -0,0 +1,243 @@ +#![doc = "Sidecar module for class [`AudioStreamPlaybackOggVorbis`][crate::classes::AudioStreamPlaybackOggVorbis].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPlaybackOggVorbis` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackoggvorbis.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPlaybackOggVorbis.`\n\nInherits [`AudioStreamPlaybackResampled`][crate::classes::AudioStreamPlaybackResampled].\n\nRelated symbols:\n\n* [`IAudioStreamPlaybackOggVorbis`][crate::classes::IAudioStreamPlaybackOggVorbis]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPlaybackOggVorbis`](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackoggvorbis.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamPlaybackOggVorbis::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPlaybackOggVorbis { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPlaybackOggVorbis`][crate::classes::AudioStreamPlaybackOggVorbis].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPlaybackOggVorbis` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackoggvorbis.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPlaybackOggVorbis: crate::obj::GodotClass < Base = AudioStreamPlaybackOggVorbis > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn mix_resampled(&mut self, dst_buffer: * mut AudioFrame, frame_count: i32,) -> i32; + fn get_stream_sampling_rate(&self,) -> f32; + fn start(&mut self, from_pos: f64,) { + unimplemented !() + } + fn stop(&mut self,) { + unimplemented !() + } + fn is_playing(&self,) -> bool { + unimplemented !() + } + fn get_loop_count(&self,) -> i32 { + unimplemented !() + } + fn get_playback_position(&self,) -> f64 { + unimplemented !() + } + fn seek(&mut self, position: f64,) { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn mix(&mut self, buffer: * mut AudioFrame, rate_scale: f32, frames: i32,) -> i32; + fn tag_used_streams(&mut self,) { + unimplemented !() + } + fn set_parameter(&mut self, name: StringName, value: Variant,) { + unimplemented !() + } + fn get_parameter(&self, name: StringName,) -> Variant { + unimplemented !() + } + } + impl AudioStreamPlaybackOggVorbis { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamPlaybackOggVorbis { + type Base = crate::classes::AudioStreamPlaybackResampled; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPlaybackOggVorbis")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPlaybackOggVorbis { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStreamPlaybackResampled > for AudioStreamPlaybackOggVorbis { + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStreamPlayback > for AudioStreamPlaybackOggVorbis { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamPlaybackOggVorbis { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPlaybackOggVorbis { + + } + impl crate::obj::cap::GodotDefault for AudioStreamPlaybackOggVorbis { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamPlaybackOggVorbis { + type Target = crate::classes::AudioStreamPlaybackResampled; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPlaybackOggVorbis { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPlaybackOggVorbis`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPlaybackOggVorbis { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlaybackOggVorbis > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlaybackResampled > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlayback > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_playlist.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_playlist.rs new file mode 100644 index 0000000..9c65ccc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_playlist.rs @@ -0,0 +1,226 @@ +#![doc = "Sidecar module for class [`AudioStreamPlaybackPlaylist`][crate::classes::AudioStreamPlaybackPlaylist].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPlaybackPlaylist` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackplaylist.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPlaybackPlaylist.`\n\nInherits [`AudioStreamPlayback`][crate::classes::AudioStreamPlayback].\n\nRelated symbols:\n\n* [`IAudioStreamPlaybackPlaylist`][crate::classes::IAudioStreamPlaybackPlaylist]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPlaybackPlaylist`](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackplaylist.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPlaybackPlaylist { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPlaybackPlaylist`][crate::classes::AudioStreamPlaybackPlaylist].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPlaybackPlaylist` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackplaylist.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPlaybackPlaylist: crate::obj::GodotClass < Base = AudioStreamPlaybackPlaylist > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn start(&mut self, from_pos: f64,) { + unimplemented !() + } + fn stop(&mut self,) { + unimplemented !() + } + fn is_playing(&self,) -> bool { + unimplemented !() + } + fn get_loop_count(&self,) -> i32 { + unimplemented !() + } + fn get_playback_position(&self,) -> f64 { + unimplemented !() + } + fn seek(&mut self, position: f64,) { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn mix(&mut self, buffer: * mut AudioFrame, rate_scale: f32, frames: i32,) -> i32; + fn tag_used_streams(&mut self,) { + unimplemented !() + } + fn set_parameter(&mut self, name: StringName, value: Variant,) { + unimplemented !() + } + fn get_parameter(&self, name: StringName,) -> Variant { + unimplemented !() + } + } + impl AudioStreamPlaybackPlaylist { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamPlaybackPlaylist { + type Base = crate::classes::AudioStreamPlayback; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPlaybackPlaylist")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPlaybackPlaylist { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStreamPlayback > for AudioStreamPlaybackPlaylist { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamPlaybackPlaylist { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPlaybackPlaylist { + + } + impl std::ops::Deref for AudioStreamPlaybackPlaylist { + type Target = crate::classes::AudioStreamPlayback; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPlaybackPlaylist { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPlaybackPlaylist`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPlaybackPlaylist { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlaybackPlaylist > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlayback > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_polyphonic.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_polyphonic.rs new file mode 100644 index 0000000..4e2293b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_polyphonic.rs @@ -0,0 +1,333 @@ +#![doc = "Sidecar module for class [`AudioStreamPlaybackPolyphonic`][crate::classes::AudioStreamPlaybackPolyphonic].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPlaybackPolyphonic` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackpolyphonic.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPlaybackPolyphonic.`\n\nInherits [`AudioStreamPlayback`][crate::classes::AudioStreamPlayback].\n\nRelated symbols:\n\n* [`audio_stream_playback_polyphonic`][crate::classes::audio_stream_playback_polyphonic]: sidecar module with related enum/flag types\n* [`IAudioStreamPlaybackPolyphonic`][crate::classes::IAudioStreamPlaybackPolyphonic]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPlaybackPolyphonic`](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackpolyphonic.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPlaybackPolyphonic { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPlaybackPolyphonic`][crate::classes::AudioStreamPlaybackPolyphonic].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPlaybackPolyphonic` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackpolyphonic.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPlaybackPolyphonic: crate::obj::GodotClass < Base = AudioStreamPlaybackPolyphonic > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn start(&mut self, from_pos: f64,) { + unimplemented !() + } + fn stop(&mut self,) { + unimplemented !() + } + fn is_playing(&self,) -> bool { + unimplemented !() + } + fn get_loop_count(&self,) -> i32 { + unimplemented !() + } + fn get_playback_position(&self,) -> f64 { + unimplemented !() + } + fn seek(&mut self, position: f64,) { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn mix(&mut self, buffer: * mut AudioFrame, rate_scale: f32, frames: i32,) -> i32; + fn tag_used_streams(&mut self,) { + unimplemented !() + } + fn set_parameter(&mut self, name: StringName, value: Variant,) { + unimplemented !() + } + fn get_parameter(&self, name: StringName,) -> Variant { + unimplemented !() + } + } + impl AudioStreamPlaybackPolyphonic { + pub(crate) fn play_stream_full(&mut self, stream: ObjectArg < crate::classes::AudioStream >, from_offset: f32, volume_db: f32, pitch_scale: f32, playback_type: crate::classes::audio_server::PlaybackType, bus: CowArg < StringName >,) -> i64 { + type CallSig < 'a0, > = (i64, ObjectArg < crate::classes::AudioStream >, f32, f32, f32, crate::classes::audio_server::PlaybackType, CowArg < 'a0, StringName >); + let args = (stream, from_offset, volume_db, pitch_scale, playback_type, bus,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(862usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaybackPolyphonic", "play_stream", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::play_stream_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn play_stream(&mut self, stream: impl AsObjectArg < crate::classes::AudioStream >,) -> i64 { + self.play_stream_ex(stream,) . done() + } + #[inline] + pub fn play_stream_ex < 'a > (&'a mut self, stream: impl AsObjectArg < crate::classes::AudioStream >,) -> ExPlayStream < 'a > { + ExPlayStream::new(self, stream,) + } + pub fn set_stream_volume(&mut self, stream: i64, volume_db: f32,) { + type CallSig = ((), i64, f32); + let args = (stream, volume_db,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(863usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaybackPolyphonic", "set_stream_volume", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stream_pitch_scale(&mut self, stream: i64, pitch_scale: f32,) { + type CallSig = ((), i64, f32); + let args = (stream, pitch_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(864usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaybackPolyphonic", "set_stream_pitch_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_stream_playing(&self, stream: i64,) -> bool { + type CallSig = (bool, i64); + let args = (stream,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(865usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaybackPolyphonic", "is_stream_playing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn stop_stream(&mut self, stream: i64,) { + type CallSig = ((), i64); + let args = (stream,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(866usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaybackPolyphonic", "stop_stream", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const INVALID_ID: i32 = - 1i32; + + } + impl crate::obj::GodotClass for AudioStreamPlaybackPolyphonic { + type Base = crate::classes::AudioStreamPlayback; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPlaybackPolyphonic")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPlaybackPolyphonic { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStreamPlayback > for AudioStreamPlaybackPolyphonic { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamPlaybackPolyphonic { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPlaybackPolyphonic { + + } + impl std::ops::Deref for AudioStreamPlaybackPolyphonic { + type Target = crate::classes::AudioStreamPlayback; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPlaybackPolyphonic { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPlaybackPolyphonic`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPlaybackPolyphonic { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlaybackPolyphonic > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlayback > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AudioStreamPlaybackPolyphonic::play_stream_ex`][super::AudioStreamPlaybackPolyphonic::play_stream_ex]."] +#[must_use] +pub struct ExPlayStream < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AudioStreamPlaybackPolyphonic, stream: ObjectCow < crate::classes::AudioStream >, from_offset: f32, volume_db: f32, pitch_scale: f32, playback_type: crate::classes::audio_server::PlaybackType, bus: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPlayStream < 'a > { + fn new(surround_object: &'a mut re_export::AudioStreamPlaybackPolyphonic, stream: impl AsObjectArg < crate::classes::AudioStream >,) -> Self { + let from_offset = 0f32; + let volume_db = 0f32; + let pitch_scale = 1f32; + let playback_type = crate::obj::EngineEnum::from_ord(0); + let bus = StringName::from("Master"); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, stream: stream.consume_arg(), from_offset: from_offset, volume_db: volume_db, pitch_scale: pitch_scale, playback_type: playback_type, bus: CowArg::Owned(bus), + } + } + #[inline] + pub fn from_offset(self, from_offset: f32) -> Self { + Self { + from_offset: from_offset, .. self + } + } + #[inline] + pub fn volume_db(self, volume_db: f32) -> Self { + Self { + volume_db: volume_db, .. self + } + } + #[inline] + pub fn pitch_scale(self, pitch_scale: f32) -> Self { + Self { + pitch_scale: pitch_scale, .. self + } + } + #[inline] + pub fn playback_type(self, playback_type: crate::classes::audio_server::PlaybackType) -> Self { + Self { + playback_type: playback_type, .. self + } + } + #[inline] + pub fn bus(self, bus: impl AsArg < StringName > + 'a) -> Self { + Self { + bus: bus.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> i64 { + let Self { + _phantom, surround_object, stream, from_offset, volume_db, pitch_scale, playback_type, bus, + } + = self; + re_export::AudioStreamPlaybackPolyphonic::play_stream_full(surround_object, stream.cow_as_object_arg(), from_offset, volume_db, pitch_scale, playback_type, bus,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_resampled.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_resampled.rs new file mode 100644 index 0000000..4983244 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_resampled.rs @@ -0,0 +1,245 @@ +#![doc = "Sidecar module for class [`AudioStreamPlaybackResampled`][crate::classes::AudioStreamPlaybackResampled].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPlaybackResampled` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackresampled.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPlaybackResampled.`\n\nInherits [`AudioStreamPlayback`][crate::classes::AudioStreamPlayback].\n\nRelated symbols:\n\n* [`IAudioStreamPlaybackResampled`][crate::classes::IAudioStreamPlaybackResampled]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPlaybackResampled`](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackresampled.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamPlaybackResampled::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPlaybackResampled { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPlaybackResampled`][crate::classes::AudioStreamPlaybackResampled].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPlaybackResampled` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybackresampled.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPlaybackResampled: crate::obj::GodotClass < Base = AudioStreamPlaybackResampled > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn mix_resampled(&mut self, dst_buffer: * mut AudioFrame, frame_count: i32,) -> i32; + fn get_stream_sampling_rate(&self,) -> f32; + fn start(&mut self, from_pos: f64,) { + unimplemented !() + } + fn stop(&mut self,) { + unimplemented !() + } + fn is_playing(&self,) -> bool { + unimplemented !() + } + fn get_loop_count(&self,) -> i32 { + unimplemented !() + } + fn get_playback_position(&self,) -> f64 { + unimplemented !() + } + fn seek(&mut self, position: f64,) { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn mix(&mut self, buffer: * mut AudioFrame, rate_scale: f32, frames: i32,) -> i32; + fn tag_used_streams(&mut self,) { + unimplemented !() + } + fn set_parameter(&mut self, name: StringName, value: Variant,) { + unimplemented !() + } + fn get_parameter(&self, name: StringName,) -> Variant { + unimplemented !() + } + } + impl AudioStreamPlaybackResampled { + pub fn begin_resample(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(867usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaybackResampled", "begin_resample", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamPlaybackResampled { + type Base = crate::classes::AudioStreamPlayback; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPlaybackResampled")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPlaybackResampled { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStreamPlayback > for AudioStreamPlaybackResampled { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamPlaybackResampled { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPlaybackResampled { + + } + impl crate::obj::cap::GodotDefault for AudioStreamPlaybackResampled { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamPlaybackResampled { + type Target = crate::classes::AudioStreamPlayback; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPlaybackResampled { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPlaybackResampled`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPlaybackResampled { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlaybackResampled > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlayback > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_synchronized.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_synchronized.rs new file mode 100644 index 0000000..883d87b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playback_synchronized.rs @@ -0,0 +1,226 @@ +#![doc = "Sidecar module for class [`AudioStreamPlaybackSynchronized`][crate::classes::AudioStreamPlaybackSynchronized].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPlaybackSynchronized` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybacksynchronized.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPlaybackSynchronized.`\n\nInherits [`AudioStreamPlayback`][crate::classes::AudioStreamPlayback].\n\nRelated symbols:\n\n* [`IAudioStreamPlaybackSynchronized`][crate::classes::IAudioStreamPlaybackSynchronized]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPlaybackSynchronized`](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybacksynchronized.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPlaybackSynchronized { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPlaybackSynchronized`][crate::classes::AudioStreamPlaybackSynchronized].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPlaybackSynchronized` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaybacksynchronized.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPlaybackSynchronized: crate::obj::GodotClass < Base = AudioStreamPlaybackSynchronized > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn start(&mut self, from_pos: f64,) { + unimplemented !() + } + fn stop(&mut self,) { + unimplemented !() + } + fn is_playing(&self,) -> bool { + unimplemented !() + } + fn get_loop_count(&self,) -> i32 { + unimplemented !() + } + fn get_playback_position(&self,) -> f64 { + unimplemented !() + } + fn seek(&mut self, position: f64,) { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn mix(&mut self, buffer: * mut AudioFrame, rate_scale: f32, frames: i32,) -> i32; + fn tag_used_streams(&mut self,) { + unimplemented !() + } + fn set_parameter(&mut self, name: StringName, value: Variant,) { + unimplemented !() + } + fn get_parameter(&self, name: StringName,) -> Variant { + unimplemented !() + } + } + impl AudioStreamPlaybackSynchronized { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamPlaybackSynchronized { + type Base = crate::classes::AudioStreamPlayback; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPlaybackSynchronized")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPlaybackSynchronized { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStreamPlayback > for AudioStreamPlaybackSynchronized { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamPlaybackSynchronized { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPlaybackSynchronized { + + } + impl std::ops::Deref for AudioStreamPlaybackSynchronized { + type Target = crate::classes::AudioStreamPlayback; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPlaybackSynchronized { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPlaybackSynchronized`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPlaybackSynchronized { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlaybackSynchronized > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlayback > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_player.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_player.rs new file mode 100644 index 0000000..f02bf74 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_player.rs @@ -0,0 +1,535 @@ +#![doc = "Sidecar module for class [`AudioStreamPlayer`][crate::classes::AudioStreamPlayer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPlayer` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPlayer.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`audio_stream_player`][crate::classes::audio_stream_player]: sidecar module with related enum/flag types\n* [`IAudioStreamPlayer`][crate::classes::IAudioStreamPlayer]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPlayer`](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AudioStreamPlayer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPlayer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPlayer`][crate::classes::AudioStreamPlayer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPlayer` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPlayer: crate::obj::GodotClass < Base = AudioStreamPlayer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AudioStreamPlayer { + pub fn set_stream(&mut self, stream: impl AsObjectArg < crate::classes::AudioStream >,) { + type CallSig = ((), ObjectArg < crate::classes::AudioStream >); + let args = (stream.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(868usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "set_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream(&self,) -> Option < Gd < crate::classes::AudioStream > > { + type CallSig = (Option < Gd < crate::classes::AudioStream > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(869usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "get_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volume_db(&mut self, volume_db: f32,) { + type CallSig = ((), f32); + let args = (volume_db,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(870usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "set_volume_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volume_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(871usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "get_volume_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pitch_scale(&mut self, pitch_scale: f32,) { + type CallSig = ((), f32); + let args = (pitch_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(872usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "set_pitch_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pitch_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(873usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "get_pitch_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn play_full(&mut self, from_position: f32,) { + type CallSig = ((), f32); + let args = (from_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(874usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "play", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::play_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn play(&mut self,) { + self.play_ex() . done() + } + #[inline] + pub fn play_ex < 'a > (&'a mut self,) -> ExPlay < 'a > { + ExPlay::new(self,) + } + pub fn seek(&mut self, to_position: f32,) { + type CallSig = ((), f32); + let args = (to_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(875usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "seek", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn stop(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(876usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "stop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_playing(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(877usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "is_playing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playback_position(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(878usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "get_playback_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bus(&mut self, bus: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (bus.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(879usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "set_bus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(880usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "get_bus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autoplay(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(881usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "set_autoplay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_autoplay_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(882usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "is_autoplay_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mix_target(&mut self, mix_target: crate::classes::audio_stream_player::MixTarget,) { + type CallSig = ((), crate::classes::audio_stream_player::MixTarget); + let args = (mix_target,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(883usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "set_mix_target", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mix_target(&self,) -> crate::classes::audio_stream_player::MixTarget { + type CallSig = (crate::classes::audio_stream_player::MixTarget,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(884usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "get_mix_target", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stream_paused(&mut self, pause: bool,) { + type CallSig = ((), bool); + let args = (pause,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(885usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "set_stream_paused", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream_paused(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(886usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "get_stream_paused", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_polyphony(&mut self, max_polyphony: i32,) { + type CallSig = ((), i32); + let args = (max_polyphony,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(887usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "set_max_polyphony", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_polyphony(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(888usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "get_max_polyphony", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_stream_playback(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(889usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "has_stream_playback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream_playback(&mut self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + type CallSig = (Option < Gd < crate::classes::AudioStreamPlayback > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(890usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "get_stream_playback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_playback_type(&mut self, playback_type: crate::classes::audio_server::PlaybackType,) { + type CallSig = ((), crate::classes::audio_server::PlaybackType); + let args = (playback_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(891usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "set_playback_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playback_type(&self,) -> crate::classes::audio_server::PlaybackType { + type CallSig = (crate::classes::audio_server::PlaybackType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(892usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer", "get_playback_type", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamPlayer { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPlayer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPlayer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AudioStreamPlayer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPlayer { + + } + impl crate::obj::cap::GodotDefault for AudioStreamPlayer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamPlayer { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPlayer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPlayer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPlayer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlayer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AudioStreamPlayer::play_ex`][super::AudioStreamPlayer::play_ex]."] +#[must_use] +pub struct ExPlay < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AudioStreamPlayer, from_position: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPlay < 'a > { + fn new(surround_object: &'a mut re_export::AudioStreamPlayer,) -> Self { + let from_position = 0f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_position: from_position, + } + } + #[inline] + pub fn from_position(self, from_position: f32) -> Self { + Self { + from_position: from_position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, from_position, + } + = self; + re_export::AudioStreamPlayer::play_full(surround_object, from_position,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MixTarget { + ord: i32 +} +impl MixTarget { + #[doc(alias = "MIX_TARGET_STEREO")] + #[doc = "Godot enumerator name: `MIX_TARGET_STEREO`"] + pub const STEREO: MixTarget = MixTarget { + ord: 0i32 + }; + #[doc(alias = "MIX_TARGET_SURROUND")] + #[doc = "Godot enumerator name: `MIX_TARGET_SURROUND`"] + pub const SURROUND: MixTarget = MixTarget { + ord: 1i32 + }; + #[doc(alias = "MIX_TARGET_CENTER")] + #[doc = "Godot enumerator name: `MIX_TARGET_CENTER`"] + pub const CENTER: MixTarget = MixTarget { + ord: 2i32 + }; + +} +impl std::fmt::Debug for MixTarget { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MixTarget") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MixTarget { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STEREO => "STEREO", Self::SURROUND => "SURROUND", Self::CENTER => "CENTER", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STEREO => "MIX_TARGET_STEREO", Self::SURROUND => "MIX_TARGET_SURROUND", Self::CENTER => "MIX_TARGET_CENTER", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for MixTarget { + type Via = i32; + +} +impl crate::meta::ToGodot for MixTarget { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MixTarget { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_player_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_player_2d.rs new file mode 100644 index 0000000..cd92249 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_player_2d.rs @@ -0,0 +1,523 @@ +#![doc = "Sidecar module for class [`AudioStreamPlayer2D`][crate::classes::AudioStreamPlayer2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPlayer2D` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayer2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPlayer2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`audio_stream_player_2d`][crate::classes::audio_stream_player_2d]: sidecar module with related enum/flag types\n* [`IAudioStreamPlayer2D`][crate::classes::IAudioStreamPlayer2D]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPlayer2D`](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayer2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AudioStreamPlayer2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPlayer2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPlayer2D`][crate::classes::AudioStreamPlayer2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPlayer2D` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayer2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPlayer2D: crate::obj::GodotClass < Base = AudioStreamPlayer2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AudioStreamPlayer2D { + pub fn set_stream(&mut self, stream: impl AsObjectArg < crate::classes::AudioStream >,) { + type CallSig = ((), ObjectArg < crate::classes::AudioStream >); + let args = (stream.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(893usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream(&self,) -> Option < Gd < crate::classes::AudioStream > > { + type CallSig = (Option < Gd < crate::classes::AudioStream > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(894usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volume_db(&mut self, volume_db: f32,) { + type CallSig = ((), f32); + let args = (volume_db,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(895usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_volume_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volume_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(896usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_volume_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pitch_scale(&mut self, pitch_scale: f32,) { + type CallSig = ((), f32); + let args = (pitch_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(897usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_pitch_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pitch_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(898usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_pitch_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn play_full(&mut self, from_position: f32,) { + type CallSig = ((), f32); + let args = (from_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(899usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "play", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::play_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn play(&mut self,) { + self.play_ex() . done() + } + #[inline] + pub fn play_ex < 'a > (&'a mut self,) -> ExPlay < 'a > { + ExPlay::new(self,) + } + pub fn seek(&mut self, to_position: f32,) { + type CallSig = ((), f32); + let args = (to_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(900usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "seek", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn stop(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(901usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "stop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_playing(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(902usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "is_playing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playback_position(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(903usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_playback_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bus(&mut self, bus: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (bus.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(904usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_bus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(905usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_bus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autoplay(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(906usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_autoplay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_autoplay_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(907usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "is_autoplay_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_distance(&mut self, pixels: f32,) { + type CallSig = ((), f32); + let args = (pixels,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(908usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(909usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_attenuation(&mut self, curve: f32,) { + type CallSig = ((), f32); + let args = (curve,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(910usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_attenuation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_attenuation(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(911usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_attenuation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_area_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(912usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_area_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_area_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(913usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_area_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stream_paused(&mut self, pause: bool,) { + type CallSig = ((), bool); + let args = (pause,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(914usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_stream_paused", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream_paused(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(915usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_stream_paused", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_polyphony(&mut self, max_polyphony: i32,) { + type CallSig = ((), i32); + let args = (max_polyphony,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(916usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_max_polyphony", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_polyphony(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(917usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_max_polyphony", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_panning_strength(&mut self, panning_strength: f32,) { + type CallSig = ((), f32); + let args = (panning_strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(918usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_panning_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_panning_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(919usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_panning_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_stream_playback(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(920usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "has_stream_playback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream_playback(&mut self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + type CallSig = (Option < Gd < crate::classes::AudioStreamPlayback > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(921usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_stream_playback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_playback_type(&mut self, playback_type: crate::classes::audio_server::PlaybackType,) { + type CallSig = ((), crate::classes::audio_server::PlaybackType); + let args = (playback_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(922usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "set_playback_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playback_type(&self,) -> crate::classes::audio_server::PlaybackType { + type CallSig = (crate::classes::audio_server::PlaybackType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(923usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer2D", "get_playback_type", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamPlayer2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPlayer2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPlayer2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for AudioStreamPlayer2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for AudioStreamPlayer2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AudioStreamPlayer2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPlayer2D { + + } + impl crate::obj::cap::GodotDefault for AudioStreamPlayer2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamPlayer2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPlayer2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPlayer2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPlayer2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlayer2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AudioStreamPlayer2D::play_ex`][super::AudioStreamPlayer2D::play_ex]."] +#[must_use] +pub struct ExPlay < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AudioStreamPlayer2D, from_position: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPlay < 'a > { + fn new(surround_object: &'a mut re_export::AudioStreamPlayer2D,) -> Self { + let from_position = 0f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_position: from_position, + } + } + #[inline] + pub fn from_position(self, from_position: f32) -> Self { + Self { + from_position: from_position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, from_position, + } + = self; + re_export::AudioStreamPlayer2D::play_full(surround_object, from_position,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_player_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_player_3d.rs new file mode 100644 index 0000000..d53fab4 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_player_3d.rs @@ -0,0 +1,797 @@ +#![doc = "Sidecar module for class [`AudioStreamPlayer3D`][crate::classes::AudioStreamPlayer3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPlayer3D` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayer3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPlayer3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`audio_stream_player_3d`][crate::classes::audio_stream_player_3d]: sidecar module with related enum/flag types\n* [`IAudioStreamPlayer3D`][crate::classes::IAudioStreamPlayer3D]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPlayer3D`](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayer3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`AudioStreamPlayer3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPlayer3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPlayer3D`][crate::classes::AudioStreamPlayer3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPlayer3D` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamplayer3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPlayer3D: crate::obj::GodotClass < Base = AudioStreamPlayer3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl AudioStreamPlayer3D { + pub fn set_stream(&mut self, stream: impl AsObjectArg < crate::classes::AudioStream >,) { + type CallSig = ((), ObjectArg < crate::classes::AudioStream >); + let args = (stream.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(924usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream(&self,) -> Option < Gd < crate::classes::AudioStream > > { + type CallSig = (Option < Gd < crate::classes::AudioStream > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(925usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volume_db(&mut self, volume_db: f32,) { + type CallSig = ((), f32); + let args = (volume_db,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(926usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_volume_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volume_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(927usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_volume_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_unit_size(&mut self, unit_size: f32,) { + type CallSig = ((), f32); + let args = (unit_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(928usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_unit_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_unit_size(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(929usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_unit_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_db(&mut self, max_db: f32,) { + type CallSig = ((), f32); + let args = (max_db,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(930usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_max_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(931usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_max_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pitch_scale(&mut self, pitch_scale: f32,) { + type CallSig = ((), f32); + let args = (pitch_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(932usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_pitch_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pitch_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(933usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_pitch_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn play_full(&mut self, from_position: f32,) { + type CallSig = ((), f32); + let args = (from_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(934usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "play", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::play_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn play(&mut self,) { + self.play_ex() . done() + } + #[inline] + pub fn play_ex < 'a > (&'a mut self,) -> ExPlay < 'a > { + ExPlay::new(self,) + } + pub fn seek(&mut self, to_position: f32,) { + type CallSig = ((), f32); + let args = (to_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(935usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "seek", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn stop(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(936usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "stop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_playing(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(937usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "is_playing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playback_position(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(938usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_playback_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bus(&mut self, bus: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (bus.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(939usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_bus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bus(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(940usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_bus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autoplay(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(941usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_autoplay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_autoplay_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(942usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "is_autoplay_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_distance(&mut self, meters: f32,) { + type CallSig = ((), f32); + let args = (meters,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(943usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(944usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_area_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(945usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_area_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_area_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(946usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_area_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_angle(&mut self, degrees: f32,) { + type CallSig = ((), f32); + let args = (degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(947usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_emission_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_angle(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(948usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_emission_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_angle_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(949usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_emission_angle_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_emission_angle_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(950usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "is_emission_angle_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_angle_filter_attenuation_db(&mut self, db: f32,) { + type CallSig = ((), f32); + let args = (db,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(951usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_emission_angle_filter_attenuation_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_angle_filter_attenuation_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(952usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_emission_angle_filter_attenuation_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_attenuation_filter_cutoff_hz(&mut self, degrees: f32,) { + type CallSig = ((), f32); + let args = (degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(953usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_attenuation_filter_cutoff_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_attenuation_filter_cutoff_hz(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(954usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_attenuation_filter_cutoff_hz", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_attenuation_filter_db(&mut self, db: f32,) { + type CallSig = ((), f32); + let args = (db,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(955usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_attenuation_filter_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_attenuation_filter_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(956usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_attenuation_filter_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_attenuation_model(&mut self, model: crate::classes::audio_stream_player_3d::AttenuationModel,) { + type CallSig = ((), crate::classes::audio_stream_player_3d::AttenuationModel); + let args = (model,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(957usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_attenuation_model", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_attenuation_model(&self,) -> crate::classes::audio_stream_player_3d::AttenuationModel { + type CallSig = (crate::classes::audio_stream_player_3d::AttenuationModel,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(958usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_attenuation_model", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_doppler_tracking(&mut self, mode: crate::classes::audio_stream_player_3d::DopplerTracking,) { + type CallSig = ((), crate::classes::audio_stream_player_3d::DopplerTracking); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(959usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_doppler_tracking", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_doppler_tracking(&self,) -> crate::classes::audio_stream_player_3d::DopplerTracking { + type CallSig = (crate::classes::audio_stream_player_3d::DopplerTracking,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(960usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_doppler_tracking", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stream_paused(&mut self, pause: bool,) { + type CallSig = ((), bool); + let args = (pause,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(961usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_stream_paused", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream_paused(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(962usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_stream_paused", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_polyphony(&mut self, max_polyphony: i32,) { + type CallSig = ((), i32); + let args = (max_polyphony,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(963usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_max_polyphony", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_polyphony(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(964usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_max_polyphony", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_panning_strength(&mut self, panning_strength: f32,) { + type CallSig = ((), f32); + let args = (panning_strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(965usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_panning_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_panning_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(966usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_panning_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_stream_playback(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(967usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "has_stream_playback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream_playback(&mut self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + type CallSig = (Option < Gd < crate::classes::AudioStreamPlayback > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(968usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_stream_playback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_playback_type(&mut self, playback_type: crate::classes::audio_server::PlaybackType,) { + type CallSig = ((), crate::classes::audio_server::PlaybackType); + let args = (playback_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(969usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "set_playback_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playback_type(&self,) -> crate::classes::audio_server::PlaybackType { + type CallSig = (crate::classes::audio_server::PlaybackType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(970usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlayer3D", "get_playback_type", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamPlayer3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPlayer3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPlayer3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for AudioStreamPlayer3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for AudioStreamPlayer3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPlayer3D { + + } + impl crate::obj::cap::GodotDefault for AudioStreamPlayer3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamPlayer3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPlayer3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPlayer3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPlayer3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlayer3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AudioStreamPlayer3D::play_ex`][super::AudioStreamPlayer3D::play_ex]."] +#[must_use] +pub struct ExPlay < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AudioStreamPlayer3D, from_position: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPlay < 'a > { + fn new(surround_object: &'a mut re_export::AudioStreamPlayer3D,) -> Self { + let from_position = 0f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_position: from_position, + } + } + #[inline] + pub fn from_position(self, from_position: f32) -> Self { + Self { + from_position: from_position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, from_position, + } + = self; + re_export::AudioStreamPlayer3D::play_full(surround_object, from_position,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AttenuationModel { + ord: i32 +} +impl AttenuationModel { + #[doc(alias = "ATTENUATION_INVERSE_DISTANCE")] + #[doc = "Godot enumerator name: `ATTENUATION_INVERSE_DISTANCE`"] + pub const INVERSE_DISTANCE: AttenuationModel = AttenuationModel { + ord: 0i32 + }; + #[doc(alias = "ATTENUATION_INVERSE_SQUARE_DISTANCE")] + #[doc = "Godot enumerator name: `ATTENUATION_INVERSE_SQUARE_DISTANCE`"] + pub const INVERSE_SQUARE_DISTANCE: AttenuationModel = AttenuationModel { + ord: 1i32 + }; + #[doc(alias = "ATTENUATION_LOGARITHMIC")] + #[doc = "Godot enumerator name: `ATTENUATION_LOGARITHMIC`"] + pub const LOGARITHMIC: AttenuationModel = AttenuationModel { + ord: 2i32 + }; + #[doc(alias = "ATTENUATION_DISABLED")] + #[doc = "Godot enumerator name: `ATTENUATION_DISABLED`"] + pub const DISABLED: AttenuationModel = AttenuationModel { + ord: 3i32 + }; + +} +impl std::fmt::Debug for AttenuationModel { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AttenuationModel") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AttenuationModel { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INVERSE_DISTANCE => "INVERSE_DISTANCE", Self::INVERSE_SQUARE_DISTANCE => "INVERSE_SQUARE_DISTANCE", Self::LOGARITHMIC => "LOGARITHMIC", Self::DISABLED => "DISABLED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INVERSE_DISTANCE => "ATTENUATION_INVERSE_DISTANCE", Self::INVERSE_SQUARE_DISTANCE => "ATTENUATION_INVERSE_SQUARE_DISTANCE", Self::LOGARITHMIC => "ATTENUATION_LOGARITHMIC", Self::DISABLED => "ATTENUATION_DISABLED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AttenuationModel { + type Via = i32; + +} +impl crate::meta::ToGodot for AttenuationModel { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AttenuationModel { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DopplerTracking { + ord: i32 +} +impl DopplerTracking { + #[doc(alias = "DOPPLER_TRACKING_DISABLED")] + #[doc = "Godot enumerator name: `DOPPLER_TRACKING_DISABLED`"] + pub const DISABLED: DopplerTracking = DopplerTracking { + ord: 0i32 + }; + #[doc(alias = "DOPPLER_TRACKING_IDLE_STEP")] + #[doc = "Godot enumerator name: `DOPPLER_TRACKING_IDLE_STEP`"] + pub const IDLE_STEP: DopplerTracking = DopplerTracking { + ord: 1i32 + }; + #[doc(alias = "DOPPLER_TRACKING_PHYSICS_STEP")] + #[doc = "Godot enumerator name: `DOPPLER_TRACKING_PHYSICS_STEP`"] + pub const PHYSICS_STEP: DopplerTracking = DopplerTracking { + ord: 2i32 + }; + +} +impl std::fmt::Debug for DopplerTracking { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DopplerTracking") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DopplerTracking { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::IDLE_STEP => "IDLE_STEP", Self::PHYSICS_STEP => "PHYSICS_STEP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DOPPLER_TRACKING_DISABLED", Self::IDLE_STEP => "DOPPLER_TRACKING_IDLE_STEP", Self::PHYSICS_STEP => "DOPPLER_TRACKING_PHYSICS_STEP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DopplerTracking { + type Via = i32; + +} +impl crate::meta::ToGodot for DopplerTracking { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DopplerTracking { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playlist.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playlist.rs new file mode 100644 index 0000000..54424fc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_playlist.rs @@ -0,0 +1,319 @@ +#![doc = "Sidecar module for class [`AudioStreamPlaylist`][crate::classes::AudioStreamPlaylist].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPlaylist` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaylist.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPlaylist.`\n\nInherits [`AudioStream`][crate::classes::AudioStream].\n\nRelated symbols:\n\n* [`IAudioStreamPlaylist`][crate::classes::IAudioStreamPlaylist]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPlaylist`](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaylist.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamPlaylist::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPlaylist { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPlaylist`][crate::classes::AudioStreamPlaylist].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPlaylist` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamplaylist.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPlaylist: crate::obj::GodotClass < Base = AudioStreamPlaylist > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate_playback(&self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + unimplemented !() + } + fn get_stream_name(&self,) -> GString { + unimplemented !() + } + fn get_length(&self,) -> f64 { + unimplemented !() + } + fn is_monophonic(&self,) -> bool { + unimplemented !() + } + fn get_bpm(&self,) -> f64 { + unimplemented !() + } + fn get_beat_count(&self,) -> i32 { + unimplemented !() + } + fn get_parameter_list(&self,) -> Array < Dictionary > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioStreamPlaylist { + pub fn set_stream_count(&mut self, stream_count: i32,) { + type CallSig = ((), i32); + let args = (stream_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(971usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaylist", "set_stream_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(972usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaylist", "get_stream_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bpm(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(973usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaylist", "get_bpm", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_list_stream(&mut self, stream_index: i32, audio_stream: impl AsObjectArg < crate::classes::AudioStream >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::AudioStream >); + let args = (stream_index, audio_stream.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(974usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaylist", "set_list_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_list_stream(&self, stream_index: i32,) -> Option < Gd < crate::classes::AudioStream > > { + type CallSig = (Option < Gd < crate::classes::AudioStream > >, i32); + let args = (stream_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(975usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaylist", "get_list_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shuffle(&mut self, shuffle: bool,) { + type CallSig = ((), bool); + let args = (shuffle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(976usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaylist", "set_shuffle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shuffle(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(977usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaylist", "get_shuffle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fade_time(&mut self, dec: f32,) { + type CallSig = ((), f32); + let args = (dec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(978usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaylist", "set_fade_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fade_time(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(979usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaylist", "get_fade_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop(&mut self, loop_: bool,) { + type CallSig = ((), bool); + let args = (loop_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(980usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaylist", "set_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_loop(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(981usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPlaylist", "has_loop", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const MAX_STREAMS: i32 = 64i32; + + } + impl crate::obj::GodotClass for AudioStreamPlaylist { + type Base = crate::classes::AudioStream; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPlaylist")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPlaylist { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStream > for AudioStreamPlaylist { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioStreamPlaylist { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamPlaylist { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPlaylist { + + } + impl crate::obj::cap::GodotDefault for AudioStreamPlaylist { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamPlaylist { + type Target = crate::classes::AudioStream; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPlaylist { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPlaylist`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPlaylist { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPlaylist > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_polyphonic.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_polyphonic.rs new file mode 100644 index 0000000..aa416e7 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_polyphonic.rs @@ -0,0 +1,245 @@ +#![doc = "Sidecar module for class [`AudioStreamPolyphonic`][crate::classes::AudioStreamPolyphonic].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamPolyphonic` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreampolyphonic.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamPolyphonic.`\n\nInherits [`AudioStream`][crate::classes::AudioStream].\n\nRelated symbols:\n\n* [`IAudioStreamPolyphonic`][crate::classes::IAudioStreamPolyphonic]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamPolyphonic`](https://docs.godotengine.org/en/stable/classes/class_audiostreampolyphonic.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamPolyphonic::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamPolyphonic { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamPolyphonic`][crate::classes::AudioStreamPolyphonic].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamPolyphonic` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreampolyphonic.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamPolyphonic: crate::obj::GodotClass < Base = AudioStreamPolyphonic > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate_playback(&self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + unimplemented !() + } + fn get_stream_name(&self,) -> GString { + unimplemented !() + } + fn get_length(&self,) -> f64 { + unimplemented !() + } + fn is_monophonic(&self,) -> bool { + unimplemented !() + } + fn get_bpm(&self,) -> f64 { + unimplemented !() + } + fn get_beat_count(&self,) -> i32 { + unimplemented !() + } + fn get_parameter_list(&self,) -> Array < Dictionary > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioStreamPolyphonic { + pub fn set_polyphony(&mut self, voices: i32,) { + type CallSig = ((), i32); + let args = (voices,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(982usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPolyphonic", "set_polyphony", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_polyphony(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(983usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamPolyphonic", "get_polyphony", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamPolyphonic { + type Base = crate::classes::AudioStream; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamPolyphonic")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamPolyphonic { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStream > for AudioStreamPolyphonic { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioStreamPolyphonic { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamPolyphonic { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamPolyphonic { + + } + impl crate::obj::cap::GodotDefault for AudioStreamPolyphonic { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamPolyphonic { + type Target = crate::classes::AudioStream; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamPolyphonic { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamPolyphonic`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamPolyphonic { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamPolyphonic > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_randomizer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_randomizer.rs new file mode 100644 index 0000000..c59a750 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_randomizer.rs @@ -0,0 +1,461 @@ +#![doc = "Sidecar module for class [`AudioStreamRandomizer`][crate::classes::AudioStreamRandomizer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamRandomizer` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamrandomizer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamRandomizer.`\n\nInherits [`AudioStream`][crate::classes::AudioStream].\n\nRelated symbols:\n\n* [`audio_stream_randomizer`][crate::classes::audio_stream_randomizer]: sidecar module with related enum/flag types\n* [`IAudioStreamRandomizer`][crate::classes::IAudioStreamRandomizer]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamRandomizer`](https://docs.godotengine.org/en/stable/classes/class_audiostreamrandomizer.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamRandomizer::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamRandomizer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamRandomizer`][crate::classes::AudioStreamRandomizer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamRandomizer` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamrandomizer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamRandomizer: crate::obj::GodotClass < Base = AudioStreamRandomizer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate_playback(&self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + unimplemented !() + } + fn get_stream_name(&self,) -> GString { + unimplemented !() + } + fn get_length(&self,) -> f64 { + unimplemented !() + } + fn is_monophonic(&self,) -> bool { + unimplemented !() + } + fn get_bpm(&self,) -> f64 { + unimplemented !() + } + fn get_beat_count(&self,) -> i32 { + unimplemented !() + } + fn get_parameter_list(&self,) -> Array < Dictionary > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioStreamRandomizer { + pub(crate) fn add_stream_full(&mut self, index: i32, stream: ObjectArg < crate::classes::AudioStream >, weight: f32,) { + type CallSig = ((), i32, ObjectArg < crate::classes::AudioStream >, f32); + let args = (index, stream, weight,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(984usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "add_stream", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_stream_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_stream(&mut self, index: i32, stream: impl AsObjectArg < crate::classes::AudioStream >,) { + self.add_stream_ex(index, stream,) . done() + } + #[inline] + pub fn add_stream_ex < 'a > (&'a mut self, index: i32, stream: impl AsObjectArg < crate::classes::AudioStream >,) -> ExAddStream < 'a > { + ExAddStream::new(self, index, stream,) + } + pub fn move_stream(&mut self, index_from: i32, index_to: i32,) { + type CallSig = ((), i32, i32); + let args = (index_from, index_to,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(985usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "move_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_stream(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(986usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "remove_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stream(&mut self, index: i32, stream: impl AsObjectArg < crate::classes::AudioStream >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::AudioStream >); + let args = (index, stream.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(987usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "set_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream(&self, index: i32,) -> Option < Gd < crate::classes::AudioStream > > { + type CallSig = (Option < Gd < crate::classes::AudioStream > >, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(988usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "get_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stream_probability_weight(&mut self, index: i32, weight: f32,) { + type CallSig = ((), i32, f32); + let args = (index, weight,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(989usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "set_stream_probability_weight", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream_probability_weight(&self, index: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(990usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "get_stream_probability_weight", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_streams_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(991usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "set_streams_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_streams_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(992usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "get_streams_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_random_pitch(&mut self, scale: f32,) { + type CallSig = ((), f32); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(993usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "set_random_pitch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_random_pitch(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(994usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "get_random_pitch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_random_volume_offset_db(&mut self, db_offset: f32,) { + type CallSig = ((), f32); + let args = (db_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(995usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "set_random_volume_offset_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_random_volume_offset_db(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(996usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "get_random_volume_offset_db", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_playback_mode(&mut self, mode: crate::classes::audio_stream_randomizer::PlaybackMode,) { + type CallSig = ((), crate::classes::audio_stream_randomizer::PlaybackMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(997usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "set_playback_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playback_mode(&self,) -> crate::classes::audio_stream_randomizer::PlaybackMode { + type CallSig = (crate::classes::audio_stream_randomizer::PlaybackMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(998usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamRandomizer", "get_playback_mode", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamRandomizer { + type Base = crate::classes::AudioStream; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamRandomizer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamRandomizer { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStream > for AudioStreamRandomizer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioStreamRandomizer { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamRandomizer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamRandomizer { + + } + impl crate::obj::cap::GodotDefault for AudioStreamRandomizer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamRandomizer { + type Target = crate::classes::AudioStream; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamRandomizer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamRandomizer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamRandomizer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamRandomizer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`AudioStreamRandomizer::add_stream_ex`][super::AudioStreamRandomizer::add_stream_ex]."] +#[must_use] +pub struct ExAddStream < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::AudioStreamRandomizer, index: i32, stream: ObjectCow < crate::classes::AudioStream >, weight: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddStream < 'a > { + fn new(surround_object: &'a mut re_export::AudioStreamRandomizer, index: i32, stream: impl AsObjectArg < crate::classes::AudioStream >,) -> Self { + let weight = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, index: index, stream: stream.consume_arg(), weight: weight, + } + } + #[inline] + pub fn weight(self, weight: f32) -> Self { + Self { + weight: weight, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, index, stream, weight, + } + = self; + re_export::AudioStreamRandomizer::add_stream_full(surround_object, index, stream.cow_as_object_arg(), weight,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PlaybackMode { + ord: i32 +} +impl PlaybackMode { + #[doc(alias = "PLAYBACK_RANDOM_NO_REPEATS")] + #[doc = "Godot enumerator name: `PLAYBACK_RANDOM_NO_REPEATS`"] + pub const RANDOM_NO_REPEATS: PlaybackMode = PlaybackMode { + ord: 0i32 + }; + #[doc(alias = "PLAYBACK_RANDOM")] + #[doc = "Godot enumerator name: `PLAYBACK_RANDOM`"] + pub const RANDOM: PlaybackMode = PlaybackMode { + ord: 1i32 + }; + #[doc(alias = "PLAYBACK_SEQUENTIAL")] + #[doc = "Godot enumerator name: `PLAYBACK_SEQUENTIAL`"] + pub const SEQUENTIAL: PlaybackMode = PlaybackMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for PlaybackMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PlaybackMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PlaybackMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RANDOM_NO_REPEATS => "RANDOM_NO_REPEATS", Self::RANDOM => "RANDOM", Self::SEQUENTIAL => "SEQUENTIAL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RANDOM_NO_REPEATS => "PLAYBACK_RANDOM_NO_REPEATS", Self::RANDOM => "PLAYBACK_RANDOM", Self::SEQUENTIAL => "PLAYBACK_SEQUENTIAL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PlaybackMode { + type Via = i32; + +} +impl crate::meta::ToGodot for PlaybackMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PlaybackMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_synchronized.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_synchronized.rs new file mode 100644 index 0000000..c4d3f0c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_synchronized.rs @@ -0,0 +1,279 @@ +#![doc = "Sidecar module for class [`AudioStreamSynchronized`][crate::classes::AudioStreamSynchronized].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamSynchronized` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamsynchronized.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamSynchronized.`\n\nInherits [`AudioStream`][crate::classes::AudioStream].\n\nRelated symbols:\n\n* [`IAudioStreamSynchronized`][crate::classes::IAudioStreamSynchronized]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamSynchronized`](https://docs.godotengine.org/en/stable/classes/class_audiostreamsynchronized.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamSynchronized::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamSynchronized { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamSynchronized`][crate::classes::AudioStreamSynchronized].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamSynchronized` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamsynchronized.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamSynchronized: crate::obj::GodotClass < Base = AudioStreamSynchronized > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate_playback(&self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + unimplemented !() + } + fn get_stream_name(&self,) -> GString { + unimplemented !() + } + fn get_length(&self,) -> f64 { + unimplemented !() + } + fn is_monophonic(&self,) -> bool { + unimplemented !() + } + fn get_bpm(&self,) -> f64 { + unimplemented !() + } + fn get_beat_count(&self,) -> i32 { + unimplemented !() + } + fn get_parameter_list(&self,) -> Array < Dictionary > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioStreamSynchronized { + pub fn set_stream_count(&mut self, stream_count: i32,) { + type CallSig = ((), i32); + let args = (stream_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(999usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamSynchronized", "set_stream_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1000usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamSynchronized", "get_stream_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sync_stream(&mut self, stream_index: i32, audio_stream: impl AsObjectArg < crate::classes::AudioStream >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::AudioStream >); + let args = (stream_index, audio_stream.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1001usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamSynchronized", "set_sync_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sync_stream(&self, stream_index: i32,) -> Option < Gd < crate::classes::AudioStream > > { + type CallSig = (Option < Gd < crate::classes::AudioStream > >, i32); + let args = (stream_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1002usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamSynchronized", "get_sync_stream", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sync_stream_volume(&mut self, stream_index: i32, volume_db: f32,) { + type CallSig = ((), i32, f32); + let args = (stream_index, volume_db,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1003usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamSynchronized", "set_sync_stream_volume", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sync_stream_volume(&self, stream_index: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (stream_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1004usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamSynchronized", "get_sync_stream_volume", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const MAX_STREAMS: i32 = 32i32; + + } + impl crate::obj::GodotClass for AudioStreamSynchronized { + type Base = crate::classes::AudioStream; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamSynchronized")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamSynchronized { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStream > for AudioStreamSynchronized { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioStreamSynchronized { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamSynchronized { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamSynchronized { + + } + impl crate::obj::cap::GodotDefault for AudioStreamSynchronized { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamSynchronized { + type Target = crate::classes::AudioStream; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamSynchronized { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamSynchronized`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamSynchronized { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamSynchronized > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_wav.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_wav.rs new file mode 100644 index 0000000..2f2f6de --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/audio_stream_wav.rs @@ -0,0 +1,505 @@ +#![doc = "Sidecar module for class [`AudioStreamWav`][crate::classes::AudioStreamWav].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `AudioStreamWAV` enums](https://docs.godotengine.org/en/stable/classes/class_audiostreamwav.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `AudioStreamWAV.`\n\nInherits [`AudioStream`][crate::classes::AudioStream].\n\nRelated symbols:\n\n* [`audio_stream_wav`][crate::classes::audio_stream_wav]: sidecar module with related enum/flag types\n* [`IAudioStreamWav`][crate::classes::IAudioStreamWav]: virtual methods\n\n\nSee also [Godot docs for `AudioStreamWAV`](https://docs.godotengine.org/en/stable/classes/class_audiostreamwav.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`AudioStreamWav::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct AudioStreamWav { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`AudioStreamWav`][crate::classes::AudioStreamWav].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `AudioStreamWAV` methods](https://docs.godotengine.org/en/stable/classes/class_audiostreamwav.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IAudioStreamWav: crate::obj::GodotClass < Base = AudioStreamWav > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn instantiate_playback(&self,) -> Option < Gd < crate::classes::AudioStreamPlayback > > { + unimplemented !() + } + fn get_stream_name(&self,) -> GString { + unimplemented !() + } + fn get_length(&self,) -> f64 { + unimplemented !() + } + fn is_monophonic(&self,) -> bool { + unimplemented !() + } + fn get_bpm(&self,) -> f64 { + unimplemented !() + } + fn get_beat_count(&self,) -> i32 { + unimplemented !() + } + fn get_parameter_list(&self,) -> Array < Dictionary > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl AudioStreamWav { + pub fn set_data(&mut self, data: &PackedByteArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1005usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "set_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_data(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1006usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "get_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_format(&mut self, format: crate::classes::audio_stream_wav::Format,) { + type CallSig = ((), crate::classes::audio_stream_wav::Format); + let args = (format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1007usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "set_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_format(&self,) -> crate::classes::audio_stream_wav::Format { + type CallSig = (crate::classes::audio_stream_wav::Format,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1008usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop_mode(&mut self, loop_mode: crate::classes::audio_stream_wav::LoopMode,) { + type CallSig = ((), crate::classes::audio_stream_wav::LoopMode); + let args = (loop_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1009usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "set_loop_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_loop_mode(&self,) -> crate::classes::audio_stream_wav::LoopMode { + type CallSig = (crate::classes::audio_stream_wav::LoopMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1010usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "get_loop_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop_begin(&mut self, loop_begin: i32,) { + type CallSig = ((), i32); + let args = (loop_begin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1011usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "set_loop_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_loop_begin(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1012usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "get_loop_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop_end(&mut self, loop_end: i32,) { + type CallSig = ((), i32); + let args = (loop_end,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1013usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "set_loop_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_loop_end(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1014usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "get_loop_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mix_rate(&mut self, mix_rate: i32,) { + type CallSig = ((), i32); + let args = (mix_rate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1015usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "set_mix_rate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mix_rate(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1016usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "get_mix_rate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stereo(&mut self, stereo: bool,) { + type CallSig = ((), bool); + let args = (stereo,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1017usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "set_stereo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_stereo(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1018usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "is_stereo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn save_to_wav(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1019usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "AudioStreamWav", "save_to_wav", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for AudioStreamWav { + type Base = crate::classes::AudioStream; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"AudioStreamWAV")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for AudioStreamWav { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AudioStream > for AudioStreamWav { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for AudioStreamWav { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for AudioStreamWav { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for AudioStreamWav { + + } + impl crate::obj::cap::GodotDefault for AudioStreamWav { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for AudioStreamWav { + type Target = crate::classes::AudioStream; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for AudioStreamWav { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`AudioStreamWav`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_AudioStreamWav { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStreamWav > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AudioStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Format { + ord: i32 +} +impl Format { + pub const FORMAT_8_BITS: Format = Format { + ord: 0i32 + }; + pub const FORMAT_16_BITS: Format = Format { + ord: 1i32 + }; + #[doc(alias = "FORMAT_IMA_ADPCM")] + #[doc = "Godot enumerator name: `FORMAT_IMA_ADPCM`"] + pub const IMA_ADPCM: Format = Format { + ord: 2i32 + }; + #[doc(alias = "FORMAT_QOA")] + #[doc = "Godot enumerator name: `FORMAT_QOA`"] + pub const QOA: Format = Format { + ord: 3i32 + }; + +} +impl std::fmt::Debug for Format { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Format") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Format { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FORMAT_8_BITS => "FORMAT_8_BITS", Self::FORMAT_16_BITS => "FORMAT_16_BITS", Self::IMA_ADPCM => "IMA_ADPCM", Self::QOA => "QOA", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IMA_ADPCM => "FORMAT_IMA_ADPCM", Self::QOA => "FORMAT_QOA", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Format { + type Via = i32; + +} +impl crate::meta::ToGodot for Format { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Format { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LoopMode { + ord: i32 +} +impl LoopMode { + #[doc(alias = "LOOP_DISABLED")] + #[doc = "Godot enumerator name: `LOOP_DISABLED`"] + pub const DISABLED: LoopMode = LoopMode { + ord: 0i32 + }; + #[doc(alias = "LOOP_FORWARD")] + #[doc = "Godot enumerator name: `LOOP_FORWARD`"] + pub const FORWARD: LoopMode = LoopMode { + ord: 1i32 + }; + #[doc(alias = "LOOP_PINGPONG")] + #[doc = "Godot enumerator name: `LOOP_PINGPONG`"] + pub const PINGPONG: LoopMode = LoopMode { + ord: 2i32 + }; + #[doc(alias = "LOOP_BACKWARD")] + #[doc = "Godot enumerator name: `LOOP_BACKWARD`"] + pub const BACKWARD: LoopMode = LoopMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for LoopMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LoopMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LoopMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::FORWARD => "FORWARD", Self::PINGPONG => "PINGPONG", Self::BACKWARD => "BACKWARD", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "LOOP_DISABLED", Self::FORWARD => "LOOP_FORWARD", Self::PINGPONG => "LOOP_PINGPONG", Self::BACKWARD => "LOOP_BACKWARD", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LoopMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LoopMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LoopMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/back_buffer_copy.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/back_buffer_copy.rs new file mode 100644 index 0000000..e15b98d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/back_buffer_copy.rs @@ -0,0 +1,345 @@ +#![doc = "Sidecar module for class [`BackBufferCopy`][crate::classes::BackBufferCopy].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `BackBufferCopy` enums](https://docs.godotengine.org/en/stable/classes/class_backbuffercopy.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `BackBufferCopy.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`back_buffer_copy`][crate::classes::back_buffer_copy]: sidecar module with related enum/flag types\n* [`IBackBufferCopy`][crate::classes::IBackBufferCopy]: virtual methods\n\n\nSee also [Godot docs for `BackBufferCopy`](https://docs.godotengine.org/en/stable/classes/class_backbuffercopy.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`BackBufferCopy::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct BackBufferCopy { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`BackBufferCopy`][crate::classes::BackBufferCopy].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `BackBufferCopy` methods](https://docs.godotengine.org/en/stable/classes/class_backbuffercopy.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IBackBufferCopy: crate::obj::GodotClass < Base = BackBufferCopy > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl BackBufferCopy { + pub fn set_rect(&mut self, rect: Rect2,) { + type CallSig = ((), Rect2); + let args = (rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1020usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BackBufferCopy", "set_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rect(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1021usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BackBufferCopy", "get_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_copy_mode(&mut self, copy_mode: crate::classes::back_buffer_copy::CopyMode,) { + type CallSig = ((), crate::classes::back_buffer_copy::CopyMode); + let args = (copy_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1022usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BackBufferCopy", "set_copy_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_copy_mode(&self,) -> crate::classes::back_buffer_copy::CopyMode { + type CallSig = (crate::classes::back_buffer_copy::CopyMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1023usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BackBufferCopy", "get_copy_mode", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for BackBufferCopy { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"BackBufferCopy")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for BackBufferCopy { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for BackBufferCopy { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for BackBufferCopy { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for BackBufferCopy { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for BackBufferCopy { + + } + impl crate::obj::cap::GodotDefault for BackBufferCopy { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for BackBufferCopy { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for BackBufferCopy { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`BackBufferCopy`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_BackBufferCopy { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::BackBufferCopy > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CopyMode { + ord: i32 +} +impl CopyMode { + #[doc(alias = "COPY_MODE_DISABLED")] + #[doc = "Godot enumerator name: `COPY_MODE_DISABLED`"] + pub const DISABLED: CopyMode = CopyMode { + ord: 0i32 + }; + #[doc(alias = "COPY_MODE_RECT")] + #[doc = "Godot enumerator name: `COPY_MODE_RECT`"] + pub const RECT: CopyMode = CopyMode { + ord: 1i32 + }; + #[doc(alias = "COPY_MODE_VIEWPORT")] + #[doc = "Godot enumerator name: `COPY_MODE_VIEWPORT`"] + pub const VIEWPORT: CopyMode = CopyMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for CopyMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CopyMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CopyMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::RECT => "RECT", Self::VIEWPORT => "VIEWPORT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "COPY_MODE_DISABLED", Self::RECT => "COPY_MODE_RECT", Self::VIEWPORT => "COPY_MODE_VIEWPORT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CopyMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CopyMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CopyMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/base_button.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/base_button.rs new file mode 100644 index 0000000..ccbbbff --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/base_button.rs @@ -0,0 +1,610 @@ +#![doc = "Sidecar module for class [`BaseButton`][crate::classes::BaseButton].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `BaseButton` enums](https://docs.godotengine.org/en/stable/classes/class_basebutton.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `BaseButton.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`base_button`][crate::classes::base_button]: sidecar module with related enum/flag types\n* [`IBaseButton`][crate::classes::IBaseButton]: virtual methods\n\n\nSee also [Godot docs for `BaseButton`](https://docs.godotengine.org/en/stable/classes/class_basebutton.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`BaseButton::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct BaseButton { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`BaseButton`][crate::classes::BaseButton].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `BaseButton` methods](https://docs.godotengine.org/en/stable/classes/class_basebutton.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IBaseButton: crate::obj::GodotClass < Base = BaseButton > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn pressed(&mut self,) { + unimplemented !() + } + fn toggled(&mut self, toggled_on: bool,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl BaseButton { + pub fn set_pressed(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1024usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "set_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_pressed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1025usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "is_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pressed_no_signal(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1026usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "set_pressed_no_signal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hovered(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1027usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "is_hovered", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_toggle_mode(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1028usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "set_toggle_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_toggle_mode(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1029usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "is_toggle_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shortcut_in_tooltip(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1030usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "set_shortcut_in_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_shortcut_in_tooltip_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1031usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "is_shortcut_in_tooltip_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disabled(&mut self, disabled: bool,) { + type CallSig = ((), bool); + let args = (disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1032usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "set_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_disabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1033usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "is_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_action_mode(&mut self, mode: crate::classes::base_button::ActionMode,) { + type CallSig = ((), crate::classes::base_button::ActionMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1034usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "set_action_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_action_mode(&self,) -> crate::classes::base_button::ActionMode { + type CallSig = (crate::classes::base_button::ActionMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1035usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "get_action_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_button_mask(&mut self, mask: crate::global::MouseButtonMask,) { + type CallSig = ((), crate::global::MouseButtonMask); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1036usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "set_button_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_button_mask(&self,) -> crate::global::MouseButtonMask { + type CallSig = (crate::global::MouseButtonMask,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1037usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "get_button_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_draw_mode(&self,) -> crate::classes::base_button::DrawMode { + type CallSig = (crate::classes::base_button::DrawMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1038usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "get_draw_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_keep_pressed_outside(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1039usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "set_keep_pressed_outside", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_keep_pressed_outside(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1040usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "is_keep_pressed_outside", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shortcut_feedback(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1041usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "set_shortcut_feedback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_shortcut_feedback(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1042usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "is_shortcut_feedback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shortcut(&mut self, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) { + type CallSig = ((), ObjectArg < crate::classes::Shortcut >); + let args = (shortcut.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1043usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "set_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shortcut(&self,) -> Option < Gd < crate::classes::Shortcut > > { + type CallSig = (Option < Gd < crate::classes::Shortcut > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1044usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "get_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_button_group(&mut self, button_group: impl AsObjectArg < crate::classes::ButtonGroup >,) { + type CallSig = ((), ObjectArg < crate::classes::ButtonGroup >); + let args = (button_group.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1045usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "set_button_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_button_group(&self,) -> Option < Gd < crate::classes::ButtonGroup > > { + type CallSig = (Option < Gd < crate::classes::ButtonGroup > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1046usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseButton", "get_button_group", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for BaseButton { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"BaseButton")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for BaseButton { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for BaseButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for BaseButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for BaseButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for BaseButton { + + } + impl crate::obj::cap::GodotDefault for BaseButton { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for BaseButton { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for BaseButton { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`BaseButton`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_BaseButton { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::BaseButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DrawMode { + ord: i32 +} +impl DrawMode { + #[doc(alias = "DRAW_NORMAL")] + #[doc = "Godot enumerator name: `DRAW_NORMAL`"] + pub const NORMAL: DrawMode = DrawMode { + ord: 0i32 + }; + #[doc(alias = "DRAW_PRESSED")] + #[doc = "Godot enumerator name: `DRAW_PRESSED`"] + pub const PRESSED: DrawMode = DrawMode { + ord: 1i32 + }; + #[doc(alias = "DRAW_HOVER")] + #[doc = "Godot enumerator name: `DRAW_HOVER`"] + pub const HOVER: DrawMode = DrawMode { + ord: 2i32 + }; + #[doc(alias = "DRAW_DISABLED")] + #[doc = "Godot enumerator name: `DRAW_DISABLED`"] + pub const DISABLED: DrawMode = DrawMode { + ord: 3i32 + }; + #[doc(alias = "DRAW_HOVER_PRESSED")] + #[doc = "Godot enumerator name: `DRAW_HOVER_PRESSED`"] + pub const HOVER_PRESSED: DrawMode = DrawMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for DrawMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DrawMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DrawMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NORMAL => "NORMAL", Self::PRESSED => "PRESSED", Self::HOVER => "HOVER", Self::DISABLED => "DISABLED", Self::HOVER_PRESSED => "HOVER_PRESSED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NORMAL => "DRAW_NORMAL", Self::PRESSED => "DRAW_PRESSED", Self::HOVER => "DRAW_HOVER", Self::DISABLED => "DRAW_DISABLED", Self::HOVER_PRESSED => "DRAW_HOVER_PRESSED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DrawMode { + type Via = i32; + +} +impl crate::meta::ToGodot for DrawMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DrawMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ActionMode { + ord: i32 +} +impl ActionMode { + #[doc(alias = "ACTION_MODE_BUTTON_PRESS")] + #[doc = "Godot enumerator name: `ACTION_MODE_BUTTON_PRESS`"] + pub const PRESS: ActionMode = ActionMode { + ord: 0i32 + }; + #[doc(alias = "ACTION_MODE_BUTTON_RELEASE")] + #[doc = "Godot enumerator name: `ACTION_MODE_BUTTON_RELEASE`"] + pub const RELEASE: ActionMode = ActionMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for ActionMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ActionMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ActionMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PRESS => "PRESS", Self::RELEASE => "RELEASE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PRESS => "ACTION_MODE_BUTTON_PRESS", Self::RELEASE => "ACTION_MODE_BUTTON_RELEASE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ActionMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ActionMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ActionMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/base_material_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/base_material_3d.rs new file mode 100644 index 0000000..7e8de71 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/base_material_3d.rs @@ -0,0 +1,2894 @@ +#![doc = "Sidecar module for class [`BaseMaterial3D`][crate::classes::BaseMaterial3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `BaseMaterial3D` enums](https://docs.godotengine.org/en/stable/classes/class_basematerial3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `BaseMaterial3D.`\n\nInherits [`Material`][crate::classes::Material].\n\nRelated symbols:\n\n* [`base_material_3d`][crate::classes::base_material_3d]: sidecar module with related enum/flag types\n* [`IBaseMaterial3D`][crate::classes::IBaseMaterial3D]: virtual methods\n\n\nSee also [Godot docs for `BaseMaterial3D`](https://docs.godotengine.org/en/stable/classes/class_basematerial3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct BaseMaterial3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`BaseMaterial3D`][crate::classes::BaseMaterial3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `BaseMaterial3D` methods](https://docs.godotengine.org/en/stable/classes/class_basematerial3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IBaseMaterial3D: crate::obj::GodotClass < Base = BaseMaterial3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_shader_rid(&self,) -> Rid; + fn get_shader_mode(&self,) -> crate::classes::shader::Mode; + fn can_do_next_pass(&self,) -> bool { + unimplemented !() + } + fn can_use_render_priority(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl BaseMaterial3D { + pub fn set_albedo(&mut self, albedo: Color,) { + type CallSig = ((), Color); + let args = (albedo,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1047usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_albedo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_albedo(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1048usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_albedo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transparency(&mut self, transparency: crate::classes::base_material_3d::Transparency,) { + type CallSig = ((), crate::classes::base_material_3d::Transparency); + let args = (transparency,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1049usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_transparency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transparency(&self,) -> crate::classes::base_material_3d::Transparency { + type CallSig = (crate::classes::base_material_3d::Transparency,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1050usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_transparency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_antialiasing(&mut self, alpha_aa: crate::classes::base_material_3d::AlphaAntiAliasing,) { + type CallSig = ((), crate::classes::base_material_3d::AlphaAntiAliasing); + let args = (alpha_aa,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1051usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_alpha_antialiasing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_antialiasing(&self,) -> crate::classes::base_material_3d::AlphaAntiAliasing { + type CallSig = (crate::classes::base_material_3d::AlphaAntiAliasing,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1052usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_alpha_antialiasing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_antialiasing_edge(&mut self, edge: f32,) { + type CallSig = ((), f32); + let args = (edge,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1053usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_alpha_antialiasing_edge", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_antialiasing_edge(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1054usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_alpha_antialiasing_edge", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shading_mode(&mut self, shading_mode: crate::classes::base_material_3d::ShadingMode,) { + type CallSig = ((), crate::classes::base_material_3d::ShadingMode); + let args = (shading_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1055usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_shading_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shading_mode(&self,) -> crate::classes::base_material_3d::ShadingMode { + type CallSig = (crate::classes::base_material_3d::ShadingMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1056usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_shading_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_specular(&mut self, specular: f32,) { + type CallSig = ((), f32); + let args = (specular,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1057usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_specular", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_specular(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1058usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_specular", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_metallic(&mut self, metallic: f32,) { + type CallSig = ((), f32); + let args = (metallic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1059usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_metallic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_metallic(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1060usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_metallic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_roughness(&mut self, roughness: f32,) { + type CallSig = ((), f32); + let args = (roughness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1061usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_roughness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_roughness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1062usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_roughness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission(&mut self, emission: Color,) { + type CallSig = ((), Color); + let args = (emission,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1063usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_emission", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1064usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_emission", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_energy_multiplier(&mut self, emission_energy_multiplier: f32,) { + type CallSig = ((), f32); + let args = (emission_energy_multiplier,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1065usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_emission_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_energy_multiplier(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1066usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_emission_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_intensity(&mut self, emission_energy_multiplier: f32,) { + type CallSig = ((), f32); + let args = (emission_energy_multiplier,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1067usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_emission_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_intensity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1068usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_emission_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_normal_scale(&mut self, normal_scale: f32,) { + type CallSig = ((), f32); + let args = (normal_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1069usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_normal_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_normal_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1070usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_normal_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rim(&mut self, rim: f32,) { + type CallSig = ((), f32); + let args = (rim,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1071usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_rim", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rim(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1072usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_rim", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rim_tint(&mut self, rim_tint: f32,) { + type CallSig = ((), f32); + let args = (rim_tint,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1073usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_rim_tint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rim_tint(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1074usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_rim_tint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clearcoat(&mut self, clearcoat: f32,) { + type CallSig = ((), f32); + let args = (clearcoat,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1075usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_clearcoat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_clearcoat(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1076usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_clearcoat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clearcoat_roughness(&mut self, clearcoat_roughness: f32,) { + type CallSig = ((), f32); + let args = (clearcoat_roughness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1077usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_clearcoat_roughness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_clearcoat_roughness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1078usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_clearcoat_roughness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_anisotropy(&mut self, anisotropy: f32,) { + type CallSig = ((), f32); + let args = (anisotropy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1079usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_anisotropy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_anisotropy(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1080usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_anisotropy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_heightmap_scale(&mut self, heightmap_scale: f32,) { + type CallSig = ((), f32); + let args = (heightmap_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1081usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_heightmap_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_heightmap_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1082usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_heightmap_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_subsurface_scattering_strength(&mut self, strength: f32,) { + type CallSig = ((), f32); + let args = (strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1083usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_subsurface_scattering_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subsurface_scattering_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1084usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_subsurface_scattering_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transmittance_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1085usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_transmittance_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transmittance_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1086usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_transmittance_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transmittance_depth(&mut self, depth: f32,) { + type CallSig = ((), f32); + let args = (depth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1087usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_transmittance_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transmittance_depth(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1088usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_transmittance_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transmittance_boost(&mut self, boost: f32,) { + type CallSig = ((), f32); + let args = (boost,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1089usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_transmittance_boost", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transmittance_boost(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1090usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_transmittance_boost", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_backlight(&mut self, backlight: Color,) { + type CallSig = ((), Color); + let args = (backlight,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1091usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_backlight", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_backlight(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1092usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_backlight", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_refraction(&mut self, refraction: f32,) { + type CallSig = ((), f32); + let args = (refraction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1093usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_refraction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_refraction(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1094usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_refraction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_size(&mut self, point_size: f32,) { + type CallSig = ((), f32); + let args = (point_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1095usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_point_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_size(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1096usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_point_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_detail_uv(&mut self, detail_uv: crate::classes::base_material_3d::DetailUv,) { + type CallSig = ((), crate::classes::base_material_3d::DetailUv); + let args = (detail_uv,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1097usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_detail_uv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_detail_uv(&self,) -> crate::classes::base_material_3d::DetailUv { + type CallSig = (crate::classes::base_material_3d::DetailUv,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1098usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_detail_uv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_mode(&mut self, blend_mode: crate::classes::base_material_3d::BlendMode,) { + type CallSig = ((), crate::classes::base_material_3d::BlendMode); + let args = (blend_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1099usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_mode(&self,) -> crate::classes::base_material_3d::BlendMode { + type CallSig = (crate::classes::base_material_3d::BlendMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1100usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth_draw_mode(&mut self, depth_draw_mode: crate::classes::base_material_3d::DepthDrawMode,) { + type CallSig = ((), crate::classes::base_material_3d::DepthDrawMode); + let args = (depth_draw_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1101usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_depth_draw_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth_draw_mode(&self,) -> crate::classes::base_material_3d::DepthDrawMode { + type CallSig = (crate::classes::base_material_3d::DepthDrawMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1102usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_depth_draw_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cull_mode(&mut self, cull_mode: crate::classes::base_material_3d::CullMode,) { + type CallSig = ((), crate::classes::base_material_3d::CullMode); + let args = (cull_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1103usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_cull_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cull_mode(&self,) -> crate::classes::base_material_3d::CullMode { + type CallSig = (crate::classes::base_material_3d::CullMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1104usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_cull_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_diffuse_mode(&mut self, diffuse_mode: crate::classes::base_material_3d::DiffuseMode,) { + type CallSig = ((), crate::classes::base_material_3d::DiffuseMode); + let args = (diffuse_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1105usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_diffuse_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_diffuse_mode(&self,) -> crate::classes::base_material_3d::DiffuseMode { + type CallSig = (crate::classes::base_material_3d::DiffuseMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1106usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_diffuse_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_specular_mode(&mut self, specular_mode: crate::classes::base_material_3d::SpecularMode,) { + type CallSig = ((), crate::classes::base_material_3d::SpecularMode); + let args = (specular_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1107usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_specular_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_specular_mode(&self,) -> crate::classes::base_material_3d::SpecularMode { + type CallSig = (crate::classes::base_material_3d::SpecularMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1108usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_specular_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flag(&mut self, flag: crate::classes::base_material_3d::Flags, enable: bool,) { + type CallSig = ((), crate::classes::base_material_3d::Flags, bool); + let args = (flag, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1109usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_flag(&self, flag: crate::classes::base_material_3d::Flags,) -> bool { + type CallSig = (bool, crate::classes::base_material_3d::Flags); + let args = (flag,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1110usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_filter(&mut self, mode: crate::classes::base_material_3d::TextureFilter,) { + type CallSig = ((), crate::classes::base_material_3d::TextureFilter); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1111usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_texture_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_filter(&self,) -> crate::classes::base_material_3d::TextureFilter { + type CallSig = (crate::classes::base_material_3d::TextureFilter,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1112usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_texture_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_feature(&mut self, feature: crate::classes::base_material_3d::Feature, enable: bool,) { + type CallSig = ((), crate::classes::base_material_3d::Feature, bool); + let args = (feature, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1113usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_feature", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_feature(&self, feature: crate::classes::base_material_3d::Feature,) -> bool { + type CallSig = (bool, crate::classes::base_material_3d::Feature); + let args = (feature,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1114usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_feature", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture(&mut self, param: crate::classes::base_material_3d::TextureParam, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), crate::classes::base_material_3d::TextureParam, ObjectArg < crate::classes::Texture2D >); + let args = (param, texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1115usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self, param: crate::classes::base_material_3d::TextureParam,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >, crate::classes::base_material_3d::TextureParam); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1116usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_detail_blend_mode(&mut self, detail_blend_mode: crate::classes::base_material_3d::BlendMode,) { + type CallSig = ((), crate::classes::base_material_3d::BlendMode); + let args = (detail_blend_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1117usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_detail_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_detail_blend_mode(&self,) -> crate::classes::base_material_3d::BlendMode { + type CallSig = (crate::classes::base_material_3d::BlendMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1118usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_detail_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uv1_scale(&mut self, scale: Vector3,) { + type CallSig = ((), Vector3); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1119usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_uv1_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_uv1_scale(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1120usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_uv1_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uv1_offset(&mut self, offset: Vector3,) { + type CallSig = ((), Vector3); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1121usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_uv1_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_uv1_offset(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1122usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_uv1_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uv1_triplanar_blend_sharpness(&mut self, sharpness: f32,) { + type CallSig = ((), f32); + let args = (sharpness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1123usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_uv1_triplanar_blend_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_uv1_triplanar_blend_sharpness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1124usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_uv1_triplanar_blend_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uv2_scale(&mut self, scale: Vector3,) { + type CallSig = ((), Vector3); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1125usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_uv2_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_uv2_scale(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1126usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_uv2_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uv2_offset(&mut self, offset: Vector3,) { + type CallSig = ((), Vector3); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1127usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_uv2_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_uv2_offset(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1128usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_uv2_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uv2_triplanar_blend_sharpness(&mut self, sharpness: f32,) { + type CallSig = ((), f32); + let args = (sharpness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1129usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_uv2_triplanar_blend_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_uv2_triplanar_blend_sharpness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1130usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_uv2_triplanar_blend_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_billboard_mode(&mut self, mode: crate::classes::base_material_3d::BillboardMode,) { + type CallSig = ((), crate::classes::base_material_3d::BillboardMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1131usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_billboard_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_billboard_mode(&self,) -> crate::classes::base_material_3d::BillboardMode { + type CallSig = (crate::classes::base_material_3d::BillboardMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1132usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_billboard_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_particles_anim_h_frames(&mut self, frames: i32,) { + type CallSig = ((), i32); + let args = (frames,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1133usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_particles_anim_h_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_particles_anim_h_frames(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1134usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_particles_anim_h_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_particles_anim_v_frames(&mut self, frames: i32,) { + type CallSig = ((), i32); + let args = (frames,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1135usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_particles_anim_v_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_particles_anim_v_frames(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1136usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_particles_anim_v_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_particles_anim_loop(&mut self, loop_: bool,) { + type CallSig = ((), bool); + let args = (loop_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1137usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_particles_anim_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_particles_anim_loop(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1138usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_particles_anim_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_heightmap_deep_parallax(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1139usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_heightmap_deep_parallax", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_heightmap_deep_parallax_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1140usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "is_heightmap_deep_parallax_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_heightmap_deep_parallax_min_layers(&mut self, layer: i32,) { + type CallSig = ((), i32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1141usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_heightmap_deep_parallax_min_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_heightmap_deep_parallax_min_layers(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1142usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_heightmap_deep_parallax_min_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_heightmap_deep_parallax_max_layers(&mut self, layer: i32,) { + type CallSig = ((), i32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1143usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_heightmap_deep_parallax_max_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_heightmap_deep_parallax_max_layers(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1144usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_heightmap_deep_parallax_max_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_heightmap_deep_parallax_flip_tangent(&mut self, flip: bool,) { + type CallSig = ((), bool); + let args = (flip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1145usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_heightmap_deep_parallax_flip_tangent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_heightmap_deep_parallax_flip_tangent(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1146usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_heightmap_deep_parallax_flip_tangent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_heightmap_deep_parallax_flip_binormal(&mut self, flip: bool,) { + type CallSig = ((), bool); + let args = (flip,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1147usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_heightmap_deep_parallax_flip_binormal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_heightmap_deep_parallax_flip_binormal(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1148usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_heightmap_deep_parallax_flip_binormal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_grow(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1149usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_grow", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_grow(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1150usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_grow", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_operator(&mut self, operator: crate::classes::base_material_3d::EmissionOperator,) { + type CallSig = ((), crate::classes::base_material_3d::EmissionOperator); + let args = (operator,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1151usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_emission_operator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_operator(&self,) -> crate::classes::base_material_3d::EmissionOperator { + type CallSig = (crate::classes::base_material_3d::EmissionOperator,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1152usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_emission_operator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ao_light_affect(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1153usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_ao_light_affect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ao_light_affect(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1154usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_ao_light_affect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_scissor_threshold(&mut self, threshold: f32,) { + type CallSig = ((), f32); + let args = (threshold,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1155usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_alpha_scissor_threshold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_scissor_threshold(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1156usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_alpha_scissor_threshold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_hash_scale(&mut self, threshold: f32,) { + type CallSig = ((), f32); + let args = (threshold,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1157usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_alpha_hash_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_hash_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1158usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_alpha_hash_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_grow_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1159usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_grow_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_grow_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1160usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "is_grow_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_metallic_texture_channel(&mut self, channel: crate::classes::base_material_3d::TextureChannel,) { + type CallSig = ((), crate::classes::base_material_3d::TextureChannel); + let args = (channel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1161usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_metallic_texture_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_metallic_texture_channel(&self,) -> crate::classes::base_material_3d::TextureChannel { + type CallSig = (crate::classes::base_material_3d::TextureChannel,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1162usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_metallic_texture_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_roughness_texture_channel(&mut self, channel: crate::classes::base_material_3d::TextureChannel,) { + type CallSig = ((), crate::classes::base_material_3d::TextureChannel); + let args = (channel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1163usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_roughness_texture_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_roughness_texture_channel(&self,) -> crate::classes::base_material_3d::TextureChannel { + type CallSig = (crate::classes::base_material_3d::TextureChannel,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1164usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_roughness_texture_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ao_texture_channel(&mut self, channel: crate::classes::base_material_3d::TextureChannel,) { + type CallSig = ((), crate::classes::base_material_3d::TextureChannel); + let args = (channel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1165usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_ao_texture_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ao_texture_channel(&self,) -> crate::classes::base_material_3d::TextureChannel { + type CallSig = (crate::classes::base_material_3d::TextureChannel,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1166usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_ao_texture_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_refraction_texture_channel(&mut self, channel: crate::classes::base_material_3d::TextureChannel,) { + type CallSig = ((), crate::classes::base_material_3d::TextureChannel); + let args = (channel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1167usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_refraction_texture_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_refraction_texture_channel(&self,) -> crate::classes::base_material_3d::TextureChannel { + type CallSig = (crate::classes::base_material_3d::TextureChannel,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1168usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_refraction_texture_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_proximity_fade_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1169usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_proximity_fade_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_proximity_fade_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1170usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "is_proximity_fade_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_proximity_fade_distance(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1171usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_proximity_fade_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_proximity_fade_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1172usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_proximity_fade_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_msdf_pixel_range(&mut self, range: f32,) { + type CallSig = ((), f32); + let args = (range,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1173usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_msdf_pixel_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_msdf_pixel_range(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1174usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_msdf_pixel_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_msdf_outline_size(&mut self, size: f32,) { + type CallSig = ((), f32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1175usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_msdf_outline_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_msdf_outline_size(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1176usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_msdf_outline_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_distance_fade(&mut self, mode: crate::classes::base_material_3d::DistanceFadeMode,) { + type CallSig = ((), crate::classes::base_material_3d::DistanceFadeMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1177usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_distance_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_distance_fade(&self,) -> crate::classes::base_material_3d::DistanceFadeMode { + type CallSig = (crate::classes::base_material_3d::DistanceFadeMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1178usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_distance_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_distance_fade_max_distance(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1179usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_distance_fade_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_distance_fade_max_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1180usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_distance_fade_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_distance_fade_min_distance(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1181usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "set_distance_fade_min_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_distance_fade_min_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1182usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BaseMaterial3D", "get_distance_fade_min_distance", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for BaseMaterial3D { + type Base = crate::classes::Material; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"BaseMaterial3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for BaseMaterial3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Material > for BaseMaterial3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for BaseMaterial3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for BaseMaterial3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for BaseMaterial3D { + + } + impl std::ops::Deref for BaseMaterial3D { + type Target = crate::classes::Material; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for BaseMaterial3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`BaseMaterial3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_BaseMaterial3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::BaseMaterial3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Material > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextureParam { + ord: i32 +} +impl TextureParam { + #[doc(alias = "TEXTURE_ALBEDO")] + #[doc = "Godot enumerator name: `TEXTURE_ALBEDO`"] + pub const ALBEDO: TextureParam = TextureParam { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_METALLIC")] + #[doc = "Godot enumerator name: `TEXTURE_METALLIC`"] + pub const METALLIC: TextureParam = TextureParam { + ord: 1i32 + }; + #[doc(alias = "TEXTURE_ROUGHNESS")] + #[doc = "Godot enumerator name: `TEXTURE_ROUGHNESS`"] + pub const ROUGHNESS: TextureParam = TextureParam { + ord: 2i32 + }; + #[doc(alias = "TEXTURE_EMISSION")] + #[doc = "Godot enumerator name: `TEXTURE_EMISSION`"] + pub const EMISSION: TextureParam = TextureParam { + ord: 3i32 + }; + #[doc(alias = "TEXTURE_NORMAL")] + #[doc = "Godot enumerator name: `TEXTURE_NORMAL`"] + pub const NORMAL: TextureParam = TextureParam { + ord: 4i32 + }; + #[doc(alias = "TEXTURE_RIM")] + #[doc = "Godot enumerator name: `TEXTURE_RIM`"] + pub const RIM: TextureParam = TextureParam { + ord: 5i32 + }; + #[doc(alias = "TEXTURE_CLEARCOAT")] + #[doc = "Godot enumerator name: `TEXTURE_CLEARCOAT`"] + pub const CLEARCOAT: TextureParam = TextureParam { + ord: 6i32 + }; + #[doc(alias = "TEXTURE_FLOWMAP")] + #[doc = "Godot enumerator name: `TEXTURE_FLOWMAP`"] + pub const FLOWMAP: TextureParam = TextureParam { + ord: 7i32 + }; + #[doc(alias = "TEXTURE_AMBIENT_OCCLUSION")] + #[doc = "Godot enumerator name: `TEXTURE_AMBIENT_OCCLUSION`"] + pub const AMBIENT_OCCLUSION: TextureParam = TextureParam { + ord: 8i32 + }; + #[doc(alias = "TEXTURE_HEIGHTMAP")] + #[doc = "Godot enumerator name: `TEXTURE_HEIGHTMAP`"] + pub const HEIGHTMAP: TextureParam = TextureParam { + ord: 9i32 + }; + #[doc(alias = "TEXTURE_SUBSURFACE_SCATTERING")] + #[doc = "Godot enumerator name: `TEXTURE_SUBSURFACE_SCATTERING`"] + pub const SUBSURFACE_SCATTERING: TextureParam = TextureParam { + ord: 10i32 + }; + #[doc(alias = "TEXTURE_SUBSURFACE_TRANSMITTANCE")] + #[doc = "Godot enumerator name: `TEXTURE_SUBSURFACE_TRANSMITTANCE`"] + pub const SUBSURFACE_TRANSMITTANCE: TextureParam = TextureParam { + ord: 11i32 + }; + #[doc(alias = "TEXTURE_BACKLIGHT")] + #[doc = "Godot enumerator name: `TEXTURE_BACKLIGHT`"] + pub const BACKLIGHT: TextureParam = TextureParam { + ord: 12i32 + }; + #[doc(alias = "TEXTURE_REFRACTION")] + #[doc = "Godot enumerator name: `TEXTURE_REFRACTION`"] + pub const REFRACTION: TextureParam = TextureParam { + ord: 13i32 + }; + #[doc(alias = "TEXTURE_DETAIL_MASK")] + #[doc = "Godot enumerator name: `TEXTURE_DETAIL_MASK`"] + pub const DETAIL_MASK: TextureParam = TextureParam { + ord: 14i32 + }; + #[doc(alias = "TEXTURE_DETAIL_ALBEDO")] + #[doc = "Godot enumerator name: `TEXTURE_DETAIL_ALBEDO`"] + pub const DETAIL_ALBEDO: TextureParam = TextureParam { + ord: 15i32 + }; + #[doc(alias = "TEXTURE_DETAIL_NORMAL")] + #[doc = "Godot enumerator name: `TEXTURE_DETAIL_NORMAL`"] + pub const DETAIL_NORMAL: TextureParam = TextureParam { + ord: 16i32 + }; + #[doc(alias = "TEXTURE_ORM")] + #[doc = "Godot enumerator name: `TEXTURE_ORM`"] + pub const ORM: TextureParam = TextureParam { + ord: 17i32 + }; + #[doc(alias = "TEXTURE_MAX")] + #[doc = "Godot enumerator name: `TEXTURE_MAX`"] + pub const MAX: TextureParam = TextureParam { + ord: 18i32 + }; + +} +impl std::fmt::Debug for TextureParam { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextureParam") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextureParam { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALBEDO => "ALBEDO", Self::METALLIC => "METALLIC", Self::ROUGHNESS => "ROUGHNESS", Self::EMISSION => "EMISSION", Self::NORMAL => "NORMAL", Self::RIM => "RIM", Self::CLEARCOAT => "CLEARCOAT", Self::FLOWMAP => "FLOWMAP", Self::AMBIENT_OCCLUSION => "AMBIENT_OCCLUSION", Self::HEIGHTMAP => "HEIGHTMAP", Self::SUBSURFACE_SCATTERING => "SUBSURFACE_SCATTERING", Self::SUBSURFACE_TRANSMITTANCE => "SUBSURFACE_TRANSMITTANCE", Self::BACKLIGHT => "BACKLIGHT", Self::REFRACTION => "REFRACTION", Self::DETAIL_MASK => "DETAIL_MASK", Self::DETAIL_ALBEDO => "DETAIL_ALBEDO", Self::DETAIL_NORMAL => "DETAIL_NORMAL", Self::ORM => "ORM", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALBEDO => "TEXTURE_ALBEDO", Self::METALLIC => "TEXTURE_METALLIC", Self::ROUGHNESS => "TEXTURE_ROUGHNESS", Self::EMISSION => "TEXTURE_EMISSION", Self::NORMAL => "TEXTURE_NORMAL", Self::RIM => "TEXTURE_RIM", Self::CLEARCOAT => "TEXTURE_CLEARCOAT", Self::FLOWMAP => "TEXTURE_FLOWMAP", Self::AMBIENT_OCCLUSION => "TEXTURE_AMBIENT_OCCLUSION", Self::HEIGHTMAP => "TEXTURE_HEIGHTMAP", Self::SUBSURFACE_SCATTERING => "TEXTURE_SUBSURFACE_SCATTERING", Self::SUBSURFACE_TRANSMITTANCE => "TEXTURE_SUBSURFACE_TRANSMITTANCE", Self::BACKLIGHT => "TEXTURE_BACKLIGHT", Self::REFRACTION => "TEXTURE_REFRACTION", Self::DETAIL_MASK => "TEXTURE_DETAIL_MASK", Self::DETAIL_ALBEDO => "TEXTURE_DETAIL_ALBEDO", Self::DETAIL_NORMAL => "TEXTURE_DETAIL_NORMAL", Self::ORM => "TEXTURE_ORM", Self::MAX => "TEXTURE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for TextureParam { + const ENUMERATOR_COUNT: usize = 18usize; + +} +impl crate::meta::GodotConvert for TextureParam { + type Via = i32; + +} +impl crate::meta::ToGodot for TextureParam { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureParam { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextureFilter { + ord: i32 +} +impl TextureFilter { + #[doc(alias = "TEXTURE_FILTER_NEAREST")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_NEAREST`"] + pub const NEAREST: TextureFilter = TextureFilter { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_FILTER_LINEAR")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_LINEAR`"] + pub const LINEAR: TextureFilter = TextureFilter { + ord: 1i32 + }; + #[doc(alias = "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_NEAREST_WITH_MIPMAPS`"] + pub const NEAREST_WITH_MIPMAPS: TextureFilter = TextureFilter { + ord: 2i32 + }; + #[doc(alias = "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_LINEAR_WITH_MIPMAPS`"] + pub const LINEAR_WITH_MIPMAPS: TextureFilter = TextureFilter { + ord: 3i32 + }; + #[doc(alias = "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC`"] + pub const NEAREST_WITH_MIPMAPS_ANISOTROPIC: TextureFilter = TextureFilter { + ord: 4i32 + }; + #[doc(alias = "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC`"] + pub const LINEAR_WITH_MIPMAPS_ANISOTROPIC: TextureFilter = TextureFilter { + ord: 5i32 + }; + #[doc(alias = "TEXTURE_FILTER_MAX")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_MAX`"] + pub const MAX: TextureFilter = TextureFilter { + ord: 6i32 + }; + +} +impl std::fmt::Debug for TextureFilter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextureFilter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextureFilter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "NEAREST", Self::LINEAR => "LINEAR", Self::NEAREST_WITH_MIPMAPS => "NEAREST_WITH_MIPMAPS", Self::LINEAR_WITH_MIPMAPS => "LINEAR_WITH_MIPMAPS", Self::NEAREST_WITH_MIPMAPS_ANISOTROPIC => "NEAREST_WITH_MIPMAPS_ANISOTROPIC", Self::LINEAR_WITH_MIPMAPS_ANISOTROPIC => "LINEAR_WITH_MIPMAPS_ANISOTROPIC", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "TEXTURE_FILTER_NEAREST", Self::LINEAR => "TEXTURE_FILTER_LINEAR", Self::NEAREST_WITH_MIPMAPS => "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS", Self::LINEAR_WITH_MIPMAPS => "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS", Self::NEAREST_WITH_MIPMAPS_ANISOTROPIC => "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC", Self::LINEAR_WITH_MIPMAPS_ANISOTROPIC => "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC", Self::MAX => "TEXTURE_FILTER_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for TextureFilter { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for TextureFilter { + type Via = i32; + +} +impl crate::meta::ToGodot for TextureFilter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureFilter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `DetailUV`."] +pub struct DetailUv { + ord: i32 +} +impl DetailUv { + #[doc(alias = "DETAIL_UV_1")] + #[doc = "Godot enumerator name: `DETAIL_UV_1`"] + pub const UV_1: DetailUv = DetailUv { + ord: 0i32 + }; + #[doc(alias = "DETAIL_UV_2")] + #[doc = "Godot enumerator name: `DETAIL_UV_2`"] + pub const UV_2: DetailUv = DetailUv { + ord: 1i32 + }; + +} +impl std::fmt::Debug for DetailUv { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DetailUv") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DetailUv { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UV_1 => "UV_1", Self::UV_2 => "UV_2", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UV_1 => "DETAIL_UV_1", Self::UV_2 => "DETAIL_UV_2", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DetailUv { + type Via = i32; + +} +impl crate::meta::ToGodot for DetailUv { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DetailUv { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Transparency { + ord: i32 +} +impl Transparency { + #[doc(alias = "TRANSPARENCY_DISABLED")] + #[doc = "Godot enumerator name: `TRANSPARENCY_DISABLED`"] + pub const DISABLED: Transparency = Transparency { + ord: 0i32 + }; + #[doc(alias = "TRANSPARENCY_ALPHA")] + #[doc = "Godot enumerator name: `TRANSPARENCY_ALPHA`"] + pub const ALPHA: Transparency = Transparency { + ord: 1i32 + }; + #[doc(alias = "TRANSPARENCY_ALPHA_SCISSOR")] + #[doc = "Godot enumerator name: `TRANSPARENCY_ALPHA_SCISSOR`"] + pub const ALPHA_SCISSOR: Transparency = Transparency { + ord: 2i32 + }; + #[doc(alias = "TRANSPARENCY_ALPHA_HASH")] + #[doc = "Godot enumerator name: `TRANSPARENCY_ALPHA_HASH`"] + pub const ALPHA_HASH: Transparency = Transparency { + ord: 3i32 + }; + #[doc(alias = "TRANSPARENCY_ALPHA_DEPTH_PRE_PASS")] + #[doc = "Godot enumerator name: `TRANSPARENCY_ALPHA_DEPTH_PRE_PASS`"] + pub const ALPHA_DEPTH_PRE_PASS: Transparency = Transparency { + ord: 4i32 + }; + #[doc(alias = "TRANSPARENCY_MAX")] + #[doc = "Godot enumerator name: `TRANSPARENCY_MAX`"] + pub const MAX: Transparency = Transparency { + ord: 5i32 + }; + +} +impl std::fmt::Debug for Transparency { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Transparency") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Transparency { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ALPHA => "ALPHA", Self::ALPHA_SCISSOR => "ALPHA_SCISSOR", Self::ALPHA_HASH => "ALPHA_HASH", Self::ALPHA_DEPTH_PRE_PASS => "ALPHA_DEPTH_PRE_PASS", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "TRANSPARENCY_DISABLED", Self::ALPHA => "TRANSPARENCY_ALPHA", Self::ALPHA_SCISSOR => "TRANSPARENCY_ALPHA_SCISSOR", Self::ALPHA_HASH => "TRANSPARENCY_ALPHA_HASH", Self::ALPHA_DEPTH_PRE_PASS => "TRANSPARENCY_ALPHA_DEPTH_PRE_PASS", Self::MAX => "TRANSPARENCY_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Transparency { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for Transparency { + type Via = i32; + +} +impl crate::meta::ToGodot for Transparency { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Transparency { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShadingMode { + ord: i32 +} +impl ShadingMode { + #[doc(alias = "SHADING_MODE_UNSHADED")] + #[doc = "Godot enumerator name: `SHADING_MODE_UNSHADED`"] + pub const UNSHADED: ShadingMode = ShadingMode { + ord: 0i32 + }; + #[doc(alias = "SHADING_MODE_PER_PIXEL")] + #[doc = "Godot enumerator name: `SHADING_MODE_PER_PIXEL`"] + pub const PER_PIXEL: ShadingMode = ShadingMode { + ord: 1i32 + }; + #[doc(alias = "SHADING_MODE_PER_VERTEX")] + #[doc = "Godot enumerator name: `SHADING_MODE_PER_VERTEX`"] + pub const PER_VERTEX: ShadingMode = ShadingMode { + ord: 2i32 + }; + #[doc(alias = "SHADING_MODE_MAX")] + #[doc = "Godot enumerator name: `SHADING_MODE_MAX`"] + pub const MAX: ShadingMode = ShadingMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ShadingMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShadingMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShadingMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNSHADED => "UNSHADED", Self::PER_PIXEL => "PER_PIXEL", Self::PER_VERTEX => "PER_VERTEX", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNSHADED => "SHADING_MODE_UNSHADED", Self::PER_PIXEL => "SHADING_MODE_PER_PIXEL", Self::PER_VERTEX => "SHADING_MODE_PER_VERTEX", Self::MAX => "SHADING_MODE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ShadingMode { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for ShadingMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ShadingMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShadingMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Feature { + ord: i32 +} +impl Feature { + #[doc(alias = "FEATURE_EMISSION")] + #[doc = "Godot enumerator name: `FEATURE_EMISSION`"] + pub const EMISSION: Feature = Feature { + ord: 0i32 + }; + #[doc(alias = "FEATURE_NORMAL_MAPPING")] + #[doc = "Godot enumerator name: `FEATURE_NORMAL_MAPPING`"] + pub const NORMAL_MAPPING: Feature = Feature { + ord: 1i32 + }; + #[doc(alias = "FEATURE_RIM")] + #[doc = "Godot enumerator name: `FEATURE_RIM`"] + pub const RIM: Feature = Feature { + ord: 2i32 + }; + #[doc(alias = "FEATURE_CLEARCOAT")] + #[doc = "Godot enumerator name: `FEATURE_CLEARCOAT`"] + pub const CLEARCOAT: Feature = Feature { + ord: 3i32 + }; + #[doc(alias = "FEATURE_ANISOTROPY")] + #[doc = "Godot enumerator name: `FEATURE_ANISOTROPY`"] + pub const ANISOTROPY: Feature = Feature { + ord: 4i32 + }; + #[doc(alias = "FEATURE_AMBIENT_OCCLUSION")] + #[doc = "Godot enumerator name: `FEATURE_AMBIENT_OCCLUSION`"] + pub const AMBIENT_OCCLUSION: Feature = Feature { + ord: 5i32 + }; + #[doc(alias = "FEATURE_HEIGHT_MAPPING")] + #[doc = "Godot enumerator name: `FEATURE_HEIGHT_MAPPING`"] + pub const HEIGHT_MAPPING: Feature = Feature { + ord: 6i32 + }; + #[doc(alias = "FEATURE_SUBSURFACE_SCATTERING")] + #[doc = "Godot enumerator name: `FEATURE_SUBSURFACE_SCATTERING`"] + pub const SUBSURFACE_SCATTERING: Feature = Feature { + ord: 7i32 + }; + #[doc(alias = "FEATURE_SUBSURFACE_TRANSMITTANCE")] + #[doc = "Godot enumerator name: `FEATURE_SUBSURFACE_TRANSMITTANCE`"] + pub const SUBSURFACE_TRANSMITTANCE: Feature = Feature { + ord: 8i32 + }; + #[doc(alias = "FEATURE_BACKLIGHT")] + #[doc = "Godot enumerator name: `FEATURE_BACKLIGHT`"] + pub const BACKLIGHT: Feature = Feature { + ord: 9i32 + }; + #[doc(alias = "FEATURE_REFRACTION")] + #[doc = "Godot enumerator name: `FEATURE_REFRACTION`"] + pub const REFRACTION: Feature = Feature { + ord: 10i32 + }; + #[doc(alias = "FEATURE_DETAIL")] + #[doc = "Godot enumerator name: `FEATURE_DETAIL`"] + pub const DETAIL: Feature = Feature { + ord: 11i32 + }; + #[doc(alias = "FEATURE_MAX")] + #[doc = "Godot enumerator name: `FEATURE_MAX`"] + pub const MAX: Feature = Feature { + ord: 12i32 + }; + +} +impl std::fmt::Debug for Feature { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Feature") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Feature { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EMISSION => "EMISSION", Self::NORMAL_MAPPING => "NORMAL_MAPPING", Self::RIM => "RIM", Self::CLEARCOAT => "CLEARCOAT", Self::ANISOTROPY => "ANISOTROPY", Self::AMBIENT_OCCLUSION => "AMBIENT_OCCLUSION", Self::HEIGHT_MAPPING => "HEIGHT_MAPPING", Self::SUBSURFACE_SCATTERING => "SUBSURFACE_SCATTERING", Self::SUBSURFACE_TRANSMITTANCE => "SUBSURFACE_TRANSMITTANCE", Self::BACKLIGHT => "BACKLIGHT", Self::REFRACTION => "REFRACTION", Self::DETAIL => "DETAIL", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EMISSION => "FEATURE_EMISSION", Self::NORMAL_MAPPING => "FEATURE_NORMAL_MAPPING", Self::RIM => "FEATURE_RIM", Self::CLEARCOAT => "FEATURE_CLEARCOAT", Self::ANISOTROPY => "FEATURE_ANISOTROPY", Self::AMBIENT_OCCLUSION => "FEATURE_AMBIENT_OCCLUSION", Self::HEIGHT_MAPPING => "FEATURE_HEIGHT_MAPPING", Self::SUBSURFACE_SCATTERING => "FEATURE_SUBSURFACE_SCATTERING", Self::SUBSURFACE_TRANSMITTANCE => "FEATURE_SUBSURFACE_TRANSMITTANCE", Self::BACKLIGHT => "FEATURE_BACKLIGHT", Self::REFRACTION => "FEATURE_REFRACTION", Self::DETAIL => "FEATURE_DETAIL", Self::MAX => "FEATURE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Feature { + const ENUMERATOR_COUNT: usize = 12usize; + +} +impl crate::meta::GodotConvert for Feature { + type Via = i32; + +} +impl crate::meta::ToGodot for Feature { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Feature { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BlendMode { + ord: i32 +} +impl BlendMode { + #[doc(alias = "BLEND_MODE_MIX")] + #[doc = "Godot enumerator name: `BLEND_MODE_MIX`"] + pub const MIX: BlendMode = BlendMode { + ord: 0i32 + }; + #[doc(alias = "BLEND_MODE_ADD")] + #[doc = "Godot enumerator name: `BLEND_MODE_ADD`"] + pub const ADD: BlendMode = BlendMode { + ord: 1i32 + }; + #[doc(alias = "BLEND_MODE_SUB")] + #[doc = "Godot enumerator name: `BLEND_MODE_SUB`"] + pub const SUB: BlendMode = BlendMode { + ord: 2i32 + }; + #[doc(alias = "BLEND_MODE_MUL")] + #[doc = "Godot enumerator name: `BLEND_MODE_MUL`"] + pub const MUL: BlendMode = BlendMode { + ord: 3i32 + }; + #[doc(alias = "BLEND_MODE_PREMULT_ALPHA")] + #[doc = "Godot enumerator name: `BLEND_MODE_PREMULT_ALPHA`"] + pub const PREMULT_ALPHA: BlendMode = BlendMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for BlendMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BlendMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BlendMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MIX => "MIX", Self::ADD => "ADD", Self::SUB => "SUB", Self::MUL => "MUL", Self::PREMULT_ALPHA => "PREMULT_ALPHA", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MIX => "BLEND_MODE_MIX", Self::ADD => "BLEND_MODE_ADD", Self::SUB => "BLEND_MODE_SUB", Self::MUL => "BLEND_MODE_MUL", Self::PREMULT_ALPHA => "BLEND_MODE_PREMULT_ALPHA", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BlendMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BlendMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BlendMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AlphaAntiAliasing { + ord: i32 +} +impl AlphaAntiAliasing { + #[doc(alias = "ALPHA_ANTIALIASING_OFF")] + #[doc = "Godot enumerator name: `ALPHA_ANTIALIASING_OFF`"] + pub const OFF: AlphaAntiAliasing = AlphaAntiAliasing { + ord: 0i32 + }; + #[doc(alias = "ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE")] + #[doc = "Godot enumerator name: `ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE`"] + pub const ALPHA_TO_COVERAGE: AlphaAntiAliasing = AlphaAntiAliasing { + ord: 1i32 + }; + #[doc(alias = "ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE_AND_TO_ONE")] + #[doc = "Godot enumerator name: `ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE_AND_TO_ONE`"] + pub const ALPHA_TO_COVERAGE_AND_TO_ONE: AlphaAntiAliasing = AlphaAntiAliasing { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AlphaAntiAliasing { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AlphaAntiAliasing") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AlphaAntiAliasing { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OFF => "OFF", Self::ALPHA_TO_COVERAGE => "ALPHA_TO_COVERAGE", Self::ALPHA_TO_COVERAGE_AND_TO_ONE => "ALPHA_TO_COVERAGE_AND_TO_ONE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OFF => "ALPHA_ANTIALIASING_OFF", Self::ALPHA_TO_COVERAGE => "ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE", Self::ALPHA_TO_COVERAGE_AND_TO_ONE => "ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE_AND_TO_ONE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AlphaAntiAliasing { + type Via = i32; + +} +impl crate::meta::ToGodot for AlphaAntiAliasing { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AlphaAntiAliasing { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DepthDrawMode { + ord: i32 +} +impl DepthDrawMode { + #[doc(alias = "DEPTH_DRAW_OPAQUE_ONLY")] + #[doc = "Godot enumerator name: `DEPTH_DRAW_OPAQUE_ONLY`"] + pub const OPAQUE_ONLY: DepthDrawMode = DepthDrawMode { + ord: 0i32 + }; + #[doc(alias = "DEPTH_DRAW_ALWAYS")] + #[doc = "Godot enumerator name: `DEPTH_DRAW_ALWAYS`"] + pub const ALWAYS: DepthDrawMode = DepthDrawMode { + ord: 1i32 + }; + #[doc(alias = "DEPTH_DRAW_DISABLED")] + #[doc = "Godot enumerator name: `DEPTH_DRAW_DISABLED`"] + pub const DISABLED: DepthDrawMode = DepthDrawMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for DepthDrawMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DepthDrawMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DepthDrawMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OPAQUE_ONLY => "OPAQUE_ONLY", Self::ALWAYS => "ALWAYS", Self::DISABLED => "DISABLED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OPAQUE_ONLY => "DEPTH_DRAW_OPAQUE_ONLY", Self::ALWAYS => "DEPTH_DRAW_ALWAYS", Self::DISABLED => "DEPTH_DRAW_DISABLED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DepthDrawMode { + type Via = i32; + +} +impl crate::meta::ToGodot for DepthDrawMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DepthDrawMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CullMode { + ord: i32 +} +impl CullMode { + #[doc(alias = "CULL_BACK")] + #[doc = "Godot enumerator name: `CULL_BACK`"] + pub const BACK: CullMode = CullMode { + ord: 0i32 + }; + #[doc(alias = "CULL_FRONT")] + #[doc = "Godot enumerator name: `CULL_FRONT`"] + pub const FRONT: CullMode = CullMode { + ord: 1i32 + }; + #[doc(alias = "CULL_DISABLED")] + #[doc = "Godot enumerator name: `CULL_DISABLED`"] + pub const DISABLED: CullMode = CullMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for CullMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CullMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CullMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BACK => "BACK", Self::FRONT => "FRONT", Self::DISABLED => "DISABLED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BACK => "CULL_BACK", Self::FRONT => "CULL_FRONT", Self::DISABLED => "CULL_DISABLED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CullMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CullMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CullMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Flags { + ord: i32 +} +impl Flags { + #[doc(alias = "FLAG_DISABLE_DEPTH_TEST")] + #[doc = "Godot enumerator name: `FLAG_DISABLE_DEPTH_TEST`"] + pub const DISABLE_DEPTH_TEST: Flags = Flags { + ord: 0i32 + }; + #[doc(alias = "FLAG_ALBEDO_FROM_VERTEX_COLOR")] + #[doc = "Godot enumerator name: `FLAG_ALBEDO_FROM_VERTEX_COLOR`"] + pub const ALBEDO_FROM_VERTEX_COLOR: Flags = Flags { + ord: 1i32 + }; + #[doc(alias = "FLAG_SRGB_VERTEX_COLOR")] + #[doc = "Godot enumerator name: `FLAG_SRGB_VERTEX_COLOR`"] + pub const SRGB_VERTEX_COLOR: Flags = Flags { + ord: 2i32 + }; + #[doc(alias = "FLAG_USE_POINT_SIZE")] + #[doc = "Godot enumerator name: `FLAG_USE_POINT_SIZE`"] + pub const USE_POINT_SIZE: Flags = Flags { + ord: 3i32 + }; + #[doc(alias = "FLAG_FIXED_SIZE")] + #[doc = "Godot enumerator name: `FLAG_FIXED_SIZE`"] + pub const FIXED_SIZE: Flags = Flags { + ord: 4i32 + }; + #[doc(alias = "FLAG_BILLBOARD_KEEP_SCALE")] + #[doc = "Godot enumerator name: `FLAG_BILLBOARD_KEEP_SCALE`"] + pub const BILLBOARD_KEEP_SCALE: Flags = Flags { + ord: 5i32 + }; + #[doc(alias = "FLAG_UV1_USE_TRIPLANAR")] + #[doc = "Godot enumerator name: `FLAG_UV1_USE_TRIPLANAR`"] + pub const UV1_USE_TRIPLANAR: Flags = Flags { + ord: 6i32 + }; + #[doc(alias = "FLAG_UV2_USE_TRIPLANAR")] + #[doc = "Godot enumerator name: `FLAG_UV2_USE_TRIPLANAR`"] + pub const UV2_USE_TRIPLANAR: Flags = Flags { + ord: 7i32 + }; + #[doc(alias = "FLAG_UV1_USE_WORLD_TRIPLANAR")] + #[doc = "Godot enumerator name: `FLAG_UV1_USE_WORLD_TRIPLANAR`"] + pub const UV1_USE_WORLD_TRIPLANAR: Flags = Flags { + ord: 8i32 + }; + #[doc(alias = "FLAG_UV2_USE_WORLD_TRIPLANAR")] + #[doc = "Godot enumerator name: `FLAG_UV2_USE_WORLD_TRIPLANAR`"] + pub const UV2_USE_WORLD_TRIPLANAR: Flags = Flags { + ord: 9i32 + }; + #[doc(alias = "FLAG_AO_ON_UV2")] + #[doc = "Godot enumerator name: `FLAG_AO_ON_UV2`"] + pub const AO_ON_UV2: Flags = Flags { + ord: 10i32 + }; + #[doc(alias = "FLAG_EMISSION_ON_UV2")] + #[doc = "Godot enumerator name: `FLAG_EMISSION_ON_UV2`"] + pub const EMISSION_ON_UV2: Flags = Flags { + ord: 11i32 + }; + #[doc(alias = "FLAG_ALBEDO_TEXTURE_FORCE_SRGB")] + #[doc = "Godot enumerator name: `FLAG_ALBEDO_TEXTURE_FORCE_SRGB`"] + pub const ALBEDO_TEXTURE_FORCE_SRGB: Flags = Flags { + ord: 12i32 + }; + #[doc(alias = "FLAG_DONT_RECEIVE_SHADOWS")] + #[doc = "Godot enumerator name: `FLAG_DONT_RECEIVE_SHADOWS`"] + pub const DONT_RECEIVE_SHADOWS: Flags = Flags { + ord: 13i32 + }; + #[doc(alias = "FLAG_DISABLE_AMBIENT_LIGHT")] + #[doc = "Godot enumerator name: `FLAG_DISABLE_AMBIENT_LIGHT`"] + pub const DISABLE_AMBIENT_LIGHT: Flags = Flags { + ord: 14i32 + }; + #[doc(alias = "FLAG_USE_SHADOW_TO_OPACITY")] + #[doc = "Godot enumerator name: `FLAG_USE_SHADOW_TO_OPACITY`"] + pub const USE_SHADOW_TO_OPACITY: Flags = Flags { + ord: 15i32 + }; + #[doc(alias = "FLAG_USE_TEXTURE_REPEAT")] + #[doc = "Godot enumerator name: `FLAG_USE_TEXTURE_REPEAT`"] + pub const USE_TEXTURE_REPEAT: Flags = Flags { + ord: 16i32 + }; + #[doc(alias = "FLAG_INVERT_HEIGHTMAP")] + #[doc = "Godot enumerator name: `FLAG_INVERT_HEIGHTMAP`"] + pub const INVERT_HEIGHTMAP: Flags = Flags { + ord: 17i32 + }; + #[doc(alias = "FLAG_SUBSURFACE_MODE_SKIN")] + #[doc = "Godot enumerator name: `FLAG_SUBSURFACE_MODE_SKIN`"] + pub const SUBSURFACE_MODE_SKIN: Flags = Flags { + ord: 18i32 + }; + #[doc(alias = "FLAG_PARTICLE_TRAILS_MODE")] + #[doc = "Godot enumerator name: `FLAG_PARTICLE_TRAILS_MODE`"] + pub const PARTICLE_TRAILS_MODE: Flags = Flags { + ord: 19i32 + }; + #[doc(alias = "FLAG_ALBEDO_TEXTURE_MSDF")] + #[doc = "Godot enumerator name: `FLAG_ALBEDO_TEXTURE_MSDF`"] + pub const ALBEDO_TEXTURE_MSDF: Flags = Flags { + ord: 20i32 + }; + #[doc(alias = "FLAG_DISABLE_FOG")] + #[doc = "Godot enumerator name: `FLAG_DISABLE_FOG`"] + pub const DISABLE_FOG: Flags = Flags { + ord: 21i32 + }; + #[doc(alias = "FLAG_MAX")] + #[doc = "Godot enumerator name: `FLAG_MAX`"] + pub const MAX: Flags = Flags { + ord: 22i32 + }; + +} +impl std::fmt::Debug for Flags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Flags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Flags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLE_DEPTH_TEST => "DISABLE_DEPTH_TEST", Self::ALBEDO_FROM_VERTEX_COLOR => "ALBEDO_FROM_VERTEX_COLOR", Self::SRGB_VERTEX_COLOR => "SRGB_VERTEX_COLOR", Self::USE_POINT_SIZE => "USE_POINT_SIZE", Self::FIXED_SIZE => "FIXED_SIZE", Self::BILLBOARD_KEEP_SCALE => "BILLBOARD_KEEP_SCALE", Self::UV1_USE_TRIPLANAR => "UV1_USE_TRIPLANAR", Self::UV2_USE_TRIPLANAR => "UV2_USE_TRIPLANAR", Self::UV1_USE_WORLD_TRIPLANAR => "UV1_USE_WORLD_TRIPLANAR", Self::UV2_USE_WORLD_TRIPLANAR => "UV2_USE_WORLD_TRIPLANAR", Self::AO_ON_UV2 => "AO_ON_UV2", Self::EMISSION_ON_UV2 => "EMISSION_ON_UV2", Self::ALBEDO_TEXTURE_FORCE_SRGB => "ALBEDO_TEXTURE_FORCE_SRGB", Self::DONT_RECEIVE_SHADOWS => "DONT_RECEIVE_SHADOWS", Self::DISABLE_AMBIENT_LIGHT => "DISABLE_AMBIENT_LIGHT", Self::USE_SHADOW_TO_OPACITY => "USE_SHADOW_TO_OPACITY", Self::USE_TEXTURE_REPEAT => "USE_TEXTURE_REPEAT", Self::INVERT_HEIGHTMAP => "INVERT_HEIGHTMAP", Self::SUBSURFACE_MODE_SKIN => "SUBSURFACE_MODE_SKIN", Self::PARTICLE_TRAILS_MODE => "PARTICLE_TRAILS_MODE", Self::ALBEDO_TEXTURE_MSDF => "ALBEDO_TEXTURE_MSDF", Self::DISABLE_FOG => "DISABLE_FOG", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLE_DEPTH_TEST => "FLAG_DISABLE_DEPTH_TEST", Self::ALBEDO_FROM_VERTEX_COLOR => "FLAG_ALBEDO_FROM_VERTEX_COLOR", Self::SRGB_VERTEX_COLOR => "FLAG_SRGB_VERTEX_COLOR", Self::USE_POINT_SIZE => "FLAG_USE_POINT_SIZE", Self::FIXED_SIZE => "FLAG_FIXED_SIZE", Self::BILLBOARD_KEEP_SCALE => "FLAG_BILLBOARD_KEEP_SCALE", Self::UV1_USE_TRIPLANAR => "FLAG_UV1_USE_TRIPLANAR", Self::UV2_USE_TRIPLANAR => "FLAG_UV2_USE_TRIPLANAR", Self::UV1_USE_WORLD_TRIPLANAR => "FLAG_UV1_USE_WORLD_TRIPLANAR", Self::UV2_USE_WORLD_TRIPLANAR => "FLAG_UV2_USE_WORLD_TRIPLANAR", Self::AO_ON_UV2 => "FLAG_AO_ON_UV2", Self::EMISSION_ON_UV2 => "FLAG_EMISSION_ON_UV2", Self::ALBEDO_TEXTURE_FORCE_SRGB => "FLAG_ALBEDO_TEXTURE_FORCE_SRGB", Self::DONT_RECEIVE_SHADOWS => "FLAG_DONT_RECEIVE_SHADOWS", Self::DISABLE_AMBIENT_LIGHT => "FLAG_DISABLE_AMBIENT_LIGHT", Self::USE_SHADOW_TO_OPACITY => "FLAG_USE_SHADOW_TO_OPACITY", Self::USE_TEXTURE_REPEAT => "FLAG_USE_TEXTURE_REPEAT", Self::INVERT_HEIGHTMAP => "FLAG_INVERT_HEIGHTMAP", Self::SUBSURFACE_MODE_SKIN => "FLAG_SUBSURFACE_MODE_SKIN", Self::PARTICLE_TRAILS_MODE => "FLAG_PARTICLE_TRAILS_MODE", Self::ALBEDO_TEXTURE_MSDF => "FLAG_ALBEDO_TEXTURE_MSDF", Self::DISABLE_FOG => "FLAG_DISABLE_FOG", Self::MAX => "FLAG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Flags { + const ENUMERATOR_COUNT: usize = 22usize; + +} +impl crate::meta::GodotConvert for Flags { + type Via = i32; + +} +impl crate::meta::ToGodot for Flags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Flags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DiffuseMode { + ord: i32 +} +impl DiffuseMode { + #[doc(alias = "DIFFUSE_BURLEY")] + #[doc = "Godot enumerator name: `DIFFUSE_BURLEY`"] + pub const BURLEY: DiffuseMode = DiffuseMode { + ord: 0i32 + }; + #[doc(alias = "DIFFUSE_LAMBERT")] + #[doc = "Godot enumerator name: `DIFFUSE_LAMBERT`"] + pub const LAMBERT: DiffuseMode = DiffuseMode { + ord: 1i32 + }; + #[doc(alias = "DIFFUSE_LAMBERT_WRAP")] + #[doc = "Godot enumerator name: `DIFFUSE_LAMBERT_WRAP`"] + pub const LAMBERT_WRAP: DiffuseMode = DiffuseMode { + ord: 2i32 + }; + #[doc(alias = "DIFFUSE_TOON")] + #[doc = "Godot enumerator name: `DIFFUSE_TOON`"] + pub const TOON: DiffuseMode = DiffuseMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for DiffuseMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DiffuseMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DiffuseMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BURLEY => "BURLEY", Self::LAMBERT => "LAMBERT", Self::LAMBERT_WRAP => "LAMBERT_WRAP", Self::TOON => "TOON", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BURLEY => "DIFFUSE_BURLEY", Self::LAMBERT => "DIFFUSE_LAMBERT", Self::LAMBERT_WRAP => "DIFFUSE_LAMBERT_WRAP", Self::TOON => "DIFFUSE_TOON", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DiffuseMode { + type Via = i32; + +} +impl crate::meta::ToGodot for DiffuseMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DiffuseMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SpecularMode { + ord: i32 +} +impl SpecularMode { + #[doc(alias = "SPECULAR_SCHLICK_GGX")] + #[doc = "Godot enumerator name: `SPECULAR_SCHLICK_GGX`"] + pub const SCHLICK_GGX: SpecularMode = SpecularMode { + ord: 0i32 + }; + #[doc(alias = "SPECULAR_TOON")] + #[doc = "Godot enumerator name: `SPECULAR_TOON`"] + pub const TOON: SpecularMode = SpecularMode { + ord: 1i32 + }; + #[doc(alias = "SPECULAR_DISABLED")] + #[doc = "Godot enumerator name: `SPECULAR_DISABLED`"] + pub const DISABLED: SpecularMode = SpecularMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for SpecularMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SpecularMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SpecularMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCHLICK_GGX => "SCHLICK_GGX", Self::TOON => "TOON", Self::DISABLED => "DISABLED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCHLICK_GGX => "SPECULAR_SCHLICK_GGX", Self::TOON => "SPECULAR_TOON", Self::DISABLED => "SPECULAR_DISABLED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SpecularMode { + type Via = i32; + +} +impl crate::meta::ToGodot for SpecularMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SpecularMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BillboardMode { + ord: i32 +} +impl BillboardMode { + #[doc(alias = "BILLBOARD_DISABLED")] + #[doc = "Godot enumerator name: `BILLBOARD_DISABLED`"] + pub const DISABLED: BillboardMode = BillboardMode { + ord: 0i32 + }; + #[doc(alias = "BILLBOARD_ENABLED")] + #[doc = "Godot enumerator name: `BILLBOARD_ENABLED`"] + pub const ENABLED: BillboardMode = BillboardMode { + ord: 1i32 + }; + #[doc(alias = "BILLBOARD_FIXED_Y")] + #[doc = "Godot enumerator name: `BILLBOARD_FIXED_Y`"] + pub const FIXED_Y: BillboardMode = BillboardMode { + ord: 2i32 + }; + #[doc(alias = "BILLBOARD_PARTICLES")] + #[doc = "Godot enumerator name: `BILLBOARD_PARTICLES`"] + pub const PARTICLES: BillboardMode = BillboardMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for BillboardMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BillboardMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BillboardMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ENABLED => "ENABLED", Self::FIXED_Y => "FIXED_Y", Self::PARTICLES => "PARTICLES", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "BILLBOARD_DISABLED", Self::ENABLED => "BILLBOARD_ENABLED", Self::FIXED_Y => "BILLBOARD_FIXED_Y", Self::PARTICLES => "BILLBOARD_PARTICLES", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BillboardMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BillboardMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BillboardMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextureChannel { + ord: i32 +} +impl TextureChannel { + #[doc(alias = "TEXTURE_CHANNEL_RED")] + #[doc = "Godot enumerator name: `TEXTURE_CHANNEL_RED`"] + pub const RED: TextureChannel = TextureChannel { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_CHANNEL_GREEN")] + #[doc = "Godot enumerator name: `TEXTURE_CHANNEL_GREEN`"] + pub const GREEN: TextureChannel = TextureChannel { + ord: 1i32 + }; + #[doc(alias = "TEXTURE_CHANNEL_BLUE")] + #[doc = "Godot enumerator name: `TEXTURE_CHANNEL_BLUE`"] + pub const BLUE: TextureChannel = TextureChannel { + ord: 2i32 + }; + #[doc(alias = "TEXTURE_CHANNEL_ALPHA")] + #[doc = "Godot enumerator name: `TEXTURE_CHANNEL_ALPHA`"] + pub const ALPHA: TextureChannel = TextureChannel { + ord: 3i32 + }; + #[doc(alias = "TEXTURE_CHANNEL_GRAYSCALE")] + #[doc = "Godot enumerator name: `TEXTURE_CHANNEL_GRAYSCALE`"] + pub const GRAYSCALE: TextureChannel = TextureChannel { + ord: 4i32 + }; + +} +impl std::fmt::Debug for TextureChannel { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextureChannel") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextureChannel { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RED => "RED", Self::GREEN => "GREEN", Self::BLUE => "BLUE", Self::ALPHA => "ALPHA", Self::GRAYSCALE => "GRAYSCALE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RED => "TEXTURE_CHANNEL_RED", Self::GREEN => "TEXTURE_CHANNEL_GREEN", Self::BLUE => "TEXTURE_CHANNEL_BLUE", Self::ALPHA => "TEXTURE_CHANNEL_ALPHA", Self::GRAYSCALE => "TEXTURE_CHANNEL_GRAYSCALE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TextureChannel { + type Via = i32; + +} +impl crate::meta::ToGodot for TextureChannel { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureChannel { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EmissionOperator { + ord: i32 +} +impl EmissionOperator { + #[doc(alias = "EMISSION_OP_ADD")] + #[doc = "Godot enumerator name: `EMISSION_OP_ADD`"] + pub const ADD: EmissionOperator = EmissionOperator { + ord: 0i32 + }; + #[doc(alias = "EMISSION_OP_MULTIPLY")] + #[doc = "Godot enumerator name: `EMISSION_OP_MULTIPLY`"] + pub const MULTIPLY: EmissionOperator = EmissionOperator { + ord: 1i32 + }; + +} +impl std::fmt::Debug for EmissionOperator { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EmissionOperator") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EmissionOperator { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD => "ADD", Self::MULTIPLY => "MULTIPLY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD => "EMISSION_OP_ADD", Self::MULTIPLY => "EMISSION_OP_MULTIPLY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EmissionOperator { + type Via = i32; + +} +impl crate::meta::ToGodot for EmissionOperator { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EmissionOperator { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DistanceFadeMode { + ord: i32 +} +impl DistanceFadeMode { + #[doc(alias = "DISTANCE_FADE_DISABLED")] + #[doc = "Godot enumerator name: `DISTANCE_FADE_DISABLED`"] + pub const DISABLED: DistanceFadeMode = DistanceFadeMode { + ord: 0i32 + }; + #[doc(alias = "DISTANCE_FADE_PIXEL_ALPHA")] + #[doc = "Godot enumerator name: `DISTANCE_FADE_PIXEL_ALPHA`"] + pub const PIXEL_ALPHA: DistanceFadeMode = DistanceFadeMode { + ord: 1i32 + }; + #[doc(alias = "DISTANCE_FADE_PIXEL_DITHER")] + #[doc = "Godot enumerator name: `DISTANCE_FADE_PIXEL_DITHER`"] + pub const PIXEL_DITHER: DistanceFadeMode = DistanceFadeMode { + ord: 2i32 + }; + #[doc(alias = "DISTANCE_FADE_OBJECT_DITHER")] + #[doc = "Godot enumerator name: `DISTANCE_FADE_OBJECT_DITHER`"] + pub const OBJECT_DITHER: DistanceFadeMode = DistanceFadeMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for DistanceFadeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DistanceFadeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DistanceFadeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::PIXEL_ALPHA => "PIXEL_ALPHA", Self::PIXEL_DITHER => "PIXEL_DITHER", Self::OBJECT_DITHER => "OBJECT_DITHER", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISTANCE_FADE_DISABLED", Self::PIXEL_ALPHA => "DISTANCE_FADE_PIXEL_ALPHA", Self::PIXEL_DITHER => "DISTANCE_FADE_PIXEL_DITHER", Self::OBJECT_DITHER => "DISTANCE_FADE_OBJECT_DITHER", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DistanceFadeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for DistanceFadeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DistanceFadeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bit_map.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bit_map.rs new file mode 100644 index 0000000..e0e3857 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bit_map.rs @@ -0,0 +1,380 @@ +#![doc = "Sidecar module for class [`BitMap`][crate::classes::BitMap].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `BitMap` enums](https://docs.godotengine.org/en/stable/classes/class_bitmap.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `BitMap.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`bit_map`][crate::classes::bit_map]: sidecar module with related enum/flag types\n* [`IBitMap`][crate::classes::IBitMap]: virtual methods\n\n\nSee also [Godot docs for `BitMap`](https://docs.godotengine.org/en/stable/classes/class_bitmap.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`BitMap::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct BitMap { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`BitMap`][crate::classes::BitMap].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `BitMap` methods](https://docs.godotengine.org/en/stable/classes/class_bitmap.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IBitMap: crate::obj::GodotClass < Base = BitMap > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl BitMap { + pub fn create(&mut self, size: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1183usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "create", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn create_from_image_alpha_full(&mut self, image: ObjectArg < crate::classes::Image >, threshold: f32,) { + type CallSig = ((), ObjectArg < crate::classes::Image >, f32); + let args = (image, threshold,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1184usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "create_from_image_alpha", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_from_image_alpha_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_from_image_alpha(&mut self, image: impl AsObjectArg < crate::classes::Image >,) { + self.create_from_image_alpha_ex(image,) . done() + } + #[inline] + pub fn create_from_image_alpha_ex < 'a > (&'a mut self, image: impl AsObjectArg < crate::classes::Image >,) -> ExCreateFromImageAlpha < 'a > { + ExCreateFromImageAlpha::new(self, image,) + } + pub fn set_bitv(&mut self, position: Vector2i, bit: bool,) { + type CallSig = ((), Vector2i, bool); + let args = (position, bit,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1185usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "set_bitv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bit(&mut self, x: i32, y: i32, bit: bool,) { + type CallSig = ((), i32, i32, bool); + let args = (x, y, bit,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1186usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "set_bit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bitv(&self, position: Vector2i,) -> bool { + type CallSig = (bool, Vector2i); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1187usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "get_bitv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bit(&self, x: i32, y: i32,) -> bool { + type CallSig = (bool, i32, i32); + let args = (x, y,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1188usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "get_bit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bit_rect(&mut self, rect: Rect2i, bit: bool,) { + type CallSig = ((), Rect2i, bool); + let args = (rect, bit,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1189usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "set_bit_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_true_bit_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1190usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "get_true_bit_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1191usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn resize(&mut self, new_size: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (new_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1192usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "resize", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn grow_mask(&mut self, pixels: i32, rect: Rect2i,) { + type CallSig = ((), i32, Rect2i); + let args = (pixels, rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1193usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "grow_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn convert_to_image(&self,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1194usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "convert_to_image", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn opaque_to_polygons_full(&self, rect: Rect2i, epsilon: f32,) -> Array < PackedVector2Array > { + type CallSig = (Array < PackedVector2Array >, Rect2i, f32); + let args = (rect, epsilon,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1195usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BitMap", "opaque_to_polygons", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::opaque_to_polygons_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn opaque_to_polygons(&self, rect: Rect2i,) -> Array < PackedVector2Array > { + self.opaque_to_polygons_ex(rect,) . done() + } + #[inline] + pub fn opaque_to_polygons_ex < 'a > (&'a self, rect: Rect2i,) -> ExOpaqueToPolygons < 'a > { + ExOpaqueToPolygons::new(self, rect,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for BitMap { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"BitMap")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for BitMap { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for BitMap { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for BitMap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for BitMap { + + } + impl crate::obj::cap::GodotDefault for BitMap { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for BitMap { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for BitMap { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`BitMap`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_BitMap { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::BitMap > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`BitMap::create_from_image_alpha_ex`][super::BitMap::create_from_image_alpha_ex]."] +#[must_use] +pub struct ExCreateFromImageAlpha < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::BitMap, image: ObjectCow < crate::classes::Image >, threshold: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateFromImageAlpha < 'a > { + fn new(surround_object: &'a mut re_export::BitMap, image: impl AsObjectArg < crate::classes::Image >,) -> Self { + let threshold = 0.1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, image: image.consume_arg(), threshold: threshold, + } + } + #[inline] + pub fn threshold(self, threshold: f32) -> Self { + Self { + threshold: threshold, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, image, threshold, + } + = self; + re_export::BitMap::create_from_image_alpha_full(surround_object, image.cow_as_object_arg(), threshold,) + } +} +#[doc = "Default-param extender for [`BitMap::opaque_to_polygons_ex`][super::BitMap::opaque_to_polygons_ex]."] +#[must_use] +pub struct ExOpaqueToPolygons < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::BitMap, rect: Rect2i, epsilon: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExOpaqueToPolygons < 'a > { + fn new(surround_object: &'a re_export::BitMap, rect: Rect2i,) -> Self { + let epsilon = 2f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rect: rect, epsilon: epsilon, + } + } + #[inline] + pub fn epsilon(self, epsilon: f32) -> Self { + Self { + epsilon: epsilon, .. self + } + } + #[inline] + pub fn done(self) -> Array < PackedVector2Array > { + let Self { + _phantom, surround_object, rect, epsilon, + } + = self; + re_export::BitMap::opaque_to_polygons_full(surround_object, rect, epsilon,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bone_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bone_2d.rs new file mode 100644 index 0000000..ff5e9aa --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bone_2d.rs @@ -0,0 +1,326 @@ +#![doc = "Sidecar module for class [`Bone2D`][crate::classes::Bone2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Bone2D` enums](https://docs.godotengine.org/en/stable/classes/class_bone2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Bone2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IBone2D`][crate::classes::IBone2D]: virtual methods\n\n\nSee also [Godot docs for `Bone2D`](https://docs.godotengine.org/en/stable/classes/class_bone2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Bone2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Bone2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Bone2D`][crate::classes::Bone2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Bone2D` methods](https://docs.godotengine.org/en/stable/classes/class_bone2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IBone2D: crate::obj::GodotClass < Base = Bone2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Bone2D { + pub fn set_rest(&mut self, rest: Transform2D,) { + type CallSig = ((), Transform2D); + let args = (rest,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1196usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Bone2D", "set_rest", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rest(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1197usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Bone2D", "get_rest", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn apply_rest(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1198usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Bone2D", "apply_rest", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skeleton_rest(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1199usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Bone2D", "get_skeleton_rest", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_index_in_skeleton(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1200usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Bone2D", "get_index_in_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autocalculate_length_and_angle(&mut self, auto_calculate: bool,) { + type CallSig = ((), bool); + let args = (auto_calculate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1201usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Bone2D", "set_autocalculate_length_and_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_autocalculate_length_and_angle(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1202usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Bone2D", "get_autocalculate_length_and_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_length(&mut self, length: f32,) { + type CallSig = ((), f32); + let args = (length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1203usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Bone2D", "set_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1204usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Bone2D", "get_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bone_angle(&mut self, angle: f32,) { + type CallSig = ((), f32); + let args = (angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1205usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Bone2D", "set_bone_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone_angle(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1206usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Bone2D", "get_bone_angle", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Bone2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Bone2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Bone2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for Bone2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Bone2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Bone2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Bone2D { + + } + impl crate::obj::cap::GodotDefault for Bone2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Bone2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Bone2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Bone2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Bone2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Bone2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bone_attachment_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bone_attachment_3d.rs new file mode 100644 index 0000000..3309aad --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bone_attachment_3d.rs @@ -0,0 +1,317 @@ +#![doc = "Sidecar module for class [`BoneAttachment3D`][crate::classes::BoneAttachment3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `BoneAttachment3D` enums](https://docs.godotengine.org/en/stable/classes/class_boneattachment3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `BoneAttachment3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`IBoneAttachment3D`][crate::classes::IBoneAttachment3D]: virtual methods\n\n\nSee also [Godot docs for `BoneAttachment3D`](https://docs.godotengine.org/en/stable/classes/class_boneattachment3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`BoneAttachment3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct BoneAttachment3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`BoneAttachment3D`][crate::classes::BoneAttachment3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `BoneAttachment3D` methods](https://docs.godotengine.org/en/stable/classes/class_boneattachment3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IBoneAttachment3D: crate::obj::GodotClass < Base = BoneAttachment3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl BoneAttachment3D { + pub fn set_bone_name(&mut self, bone_name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (bone_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1207usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneAttachment3D", "set_bone_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1208usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneAttachment3D", "get_bone_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bone_idx(&mut self, bone_idx: i32,) { + type CallSig = ((), i32); + let args = (bone_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1209usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneAttachment3D", "set_bone_idx", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone_idx(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1210usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneAttachment3D", "get_bone_idx", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn on_skeleton_update(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1211usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneAttachment3D", "on_skeleton_update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_override_pose(&mut self, override_pose: bool,) { + type CallSig = ((), bool); + let args = (override_pose,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1212usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneAttachment3D", "set_override_pose", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_override_pose(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1213usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneAttachment3D", "get_override_pose", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_external_skeleton(&mut self, use_external_skeleton: bool,) { + type CallSig = ((), bool); + let args = (use_external_skeleton,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1214usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneAttachment3D", "set_use_external_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_external_skeleton(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1215usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneAttachment3D", "get_use_external_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_external_skeleton(&mut self, external_skeleton: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (external_skeleton.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1216usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneAttachment3D", "set_external_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_external_skeleton(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1217usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneAttachment3D", "get_external_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for BoneAttachment3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"BoneAttachment3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for BoneAttachment3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for BoneAttachment3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for BoneAttachment3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for BoneAttachment3D { + + } + impl crate::obj::cap::GodotDefault for BoneAttachment3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for BoneAttachment3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for BoneAttachment3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`BoneAttachment3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_BoneAttachment3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::BoneAttachment3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bone_map.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bone_map.rs new file mode 100644 index 0000000..477c561 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/bone_map.rs @@ -0,0 +1,242 @@ +#![doc = "Sidecar module for class [`BoneMap`][crate::classes::BoneMap].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `BoneMap` enums](https://docs.godotengine.org/en/stable/classes/class_bonemap.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `BoneMap.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IBoneMap`][crate::classes::IBoneMap]: virtual methods\n\n\nSee also [Godot docs for `BoneMap`](https://docs.godotengine.org/en/stable/classes/class_bonemap.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`BoneMap::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct BoneMap { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`BoneMap`][crate::classes::BoneMap].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `BoneMap` methods](https://docs.godotengine.org/en/stable/classes/class_bonemap.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IBoneMap: crate::obj::GodotClass < Base = BoneMap > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl BoneMap { + pub fn get_profile(&self,) -> Option < Gd < crate::classes::SkeletonProfile > > { + type CallSig = (Option < Gd < crate::classes::SkeletonProfile > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1218usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneMap", "get_profile", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_profile(&mut self, profile: impl AsObjectArg < crate::classes::SkeletonProfile >,) { + type CallSig = ((), ObjectArg < crate::classes::SkeletonProfile >); + let args = (profile.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1219usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneMap", "set_profile", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skeleton_bone_name(&self, profile_bone_name: impl AsArg < StringName >,) -> StringName { + type CallSig < 'a0, > = (StringName, CowArg < 'a0, StringName >); + let args = (profile_bone_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1220usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneMap", "get_skeleton_bone_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skeleton_bone_name(&mut self, profile_bone_name: impl AsArg < StringName >, skeleton_bone_name: impl AsArg < StringName >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (profile_bone_name.into_arg(), skeleton_bone_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1221usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneMap", "set_skeleton_bone_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_profile_bone_name(&self, skeleton_bone_name: impl AsArg < StringName >,) -> StringName { + type CallSig < 'a0, > = (StringName, CowArg < 'a0, StringName >); + let args = (skeleton_bone_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1222usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoneMap", "find_profile_bone_name", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for BoneMap { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"BoneMap")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for BoneMap { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for BoneMap { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for BoneMap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for BoneMap { + + } + impl crate::obj::cap::GodotDefault for BoneMap { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for BoneMap { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for BoneMap { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`BoneMap`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_BoneMap { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::BoneMap > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_container.rs new file mode 100644 index 0000000..a6041bd --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_container.rs @@ -0,0 +1,392 @@ +#![doc = "Sidecar module for class [`BoxContainer`][crate::classes::BoxContainer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `BoxContainer` enums](https://docs.godotengine.org/en/stable/classes/class_boxcontainer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `BoxContainer.`\n\nInherits [`Container`][crate::classes::Container].\n\nRelated symbols:\n\n* [`box_container`][crate::classes::box_container]: sidecar module with related enum/flag types\n* [`IBoxContainer`][crate::classes::IBoxContainer]: virtual methods\n\n\nSee also [Godot docs for `BoxContainer`](https://docs.godotengine.org/en/stable/classes/class_boxcontainer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`BoxContainer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct BoxContainer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`BoxContainer`][crate::classes::BoxContainer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `BoxContainer` methods](https://docs.godotengine.org/en/stable/classes/class_boxcontainer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IBoxContainer: crate::obj::GodotClass < Base = BoxContainer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl BoxContainer { + pub fn add_spacer(&mut self, begin: bool,) -> Option < Gd < crate::classes::Control > > { + type CallSig = (Option < Gd < crate::classes::Control > >, bool); + let args = (begin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1223usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxContainer", "add_spacer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alignment(&mut self, alignment: crate::classes::box_container::AlignmentMode,) { + type CallSig = ((), crate::classes::box_container::AlignmentMode); + let args = (alignment,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1224usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxContainer", "set_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alignment(&self,) -> crate::classes::box_container::AlignmentMode { + type CallSig = (crate::classes::box_container::AlignmentMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1225usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxContainer", "get_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertical(&mut self, vertical: bool,) { + type CallSig = ((), bool); + let args = (vertical,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1226usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxContainer", "set_vertical", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_vertical(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1227usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxContainer", "is_vertical", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for BoxContainer { + type Base = crate::classes::Container; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"BoxContainer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for BoxContainer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for BoxContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for BoxContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for BoxContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for BoxContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for BoxContainer { + + } + impl crate::obj::cap::GodotDefault for BoxContainer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for BoxContainer { + type Target = crate::classes::Container; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for BoxContainer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`BoxContainer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_BoxContainer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::BoxContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AlignmentMode { + ord: i32 +} +impl AlignmentMode { + #[doc(alias = "ALIGNMENT_BEGIN")] + #[doc = "Godot enumerator name: `ALIGNMENT_BEGIN`"] + pub const BEGIN: AlignmentMode = AlignmentMode { + ord: 0i32 + }; + #[doc(alias = "ALIGNMENT_CENTER")] + #[doc = "Godot enumerator name: `ALIGNMENT_CENTER`"] + pub const CENTER: AlignmentMode = AlignmentMode { + ord: 1i32 + }; + #[doc(alias = "ALIGNMENT_END")] + #[doc = "Godot enumerator name: `ALIGNMENT_END`"] + pub const END: AlignmentMode = AlignmentMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AlignmentMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AlignmentMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AlignmentMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN => "BEGIN", Self::CENTER => "CENTER", Self::END => "END", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN => "ALIGNMENT_BEGIN", Self::CENTER => "ALIGNMENT_CENTER", Self::END => "ALIGNMENT_END", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AlignmentMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AlignmentMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AlignmentMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_mesh.rs new file mode 100644 index 0000000..b434614 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_mesh.rs @@ -0,0 +1,295 @@ +#![doc = "Sidecar module for class [`BoxMesh`][crate::classes::BoxMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `BoxMesh` enums](https://docs.godotengine.org/en/stable/classes/class_boxmesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `BoxMesh.`\n\nInherits [`PrimitiveMesh`][crate::classes::PrimitiveMesh].\n\nRelated symbols:\n\n* [`IBoxMesh`][crate::classes::IBoxMesh]: virtual methods\n\n\nSee also [Godot docs for `BoxMesh`](https://docs.godotengine.org/en/stable/classes/class_boxmesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`BoxMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct BoxMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`BoxMesh`][crate::classes::BoxMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `BoxMesh` methods](https://docs.godotengine.org/en/stable/classes/class_boxmesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IBoxMesh: crate::obj::GodotClass < Base = BoxMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn create_mesh_array(&self,) -> VariantArray { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl BoxMesh { + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1228usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxMesh", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1229usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxMesh", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_subdivide_width(&mut self, subdivide: i32,) { + type CallSig = ((), i32); + let args = (subdivide,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1230usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxMesh", "set_subdivide_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subdivide_width(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1231usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxMesh", "get_subdivide_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_subdivide_height(&mut self, divisions: i32,) { + type CallSig = ((), i32); + let args = (divisions,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1232usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxMesh", "set_subdivide_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subdivide_height(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1233usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxMesh", "get_subdivide_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_subdivide_depth(&mut self, divisions: i32,) { + type CallSig = ((), i32); + let args = (divisions,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1234usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxMesh", "set_subdivide_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subdivide_depth(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1235usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxMesh", "get_subdivide_depth", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for BoxMesh { + type Base = crate::classes::PrimitiveMesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"BoxMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for BoxMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PrimitiveMesh > for BoxMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for BoxMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for BoxMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for BoxMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for BoxMesh { + + } + impl crate::obj::cap::GodotDefault for BoxMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for BoxMesh { + type Target = crate::classes::PrimitiveMesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for BoxMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`BoxMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_BoxMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::BoxMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PrimitiveMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_occluder_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_occluder_3d.rs new file mode 100644 index 0000000..0ea3d24 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_occluder_3d.rs @@ -0,0 +1,224 @@ +#![doc = "Sidecar module for class [`BoxOccluder3D`][crate::classes::BoxOccluder3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `BoxOccluder3D` enums](https://docs.godotengine.org/en/stable/classes/class_boxoccluder3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `BoxOccluder3D.`\n\nInherits [`Occluder3D`][crate::classes::Occluder3D].\n\nRelated symbols:\n\n* [`IBoxOccluder3D`][crate::classes::IBoxOccluder3D]: virtual methods\n\n\nSee also [Godot docs for `BoxOccluder3D`](https://docs.godotengine.org/en/stable/classes/class_boxoccluder3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`BoxOccluder3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct BoxOccluder3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`BoxOccluder3D`][crate::classes::BoxOccluder3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `BoxOccluder3D` methods](https://docs.godotengine.org/en/stable/classes/class_boxoccluder3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IBoxOccluder3D: crate::obj::GodotClass < Base = BoxOccluder3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl BoxOccluder3D { + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1236usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxOccluder3D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1237usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxOccluder3D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for BoxOccluder3D { + type Base = crate::classes::Occluder3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"BoxOccluder3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for BoxOccluder3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Occluder3D > for BoxOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for BoxOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for BoxOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for BoxOccluder3D { + + } + impl crate::obj::cap::GodotDefault for BoxOccluder3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for BoxOccluder3D { + type Target = crate::classes::Occluder3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for BoxOccluder3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`BoxOccluder3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_BoxOccluder3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::BoxOccluder3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Occluder3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_shape_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_shape_3d.rs new file mode 100644 index 0000000..ea1ac37 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/box_shape_3d.rs @@ -0,0 +1,224 @@ +#![doc = "Sidecar module for class [`BoxShape3D`][crate::classes::BoxShape3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `BoxShape3D` enums](https://docs.godotengine.org/en/stable/classes/class_boxshape3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `BoxShape3D.`\n\nInherits [`Shape3D`][crate::classes::Shape3D].\n\nRelated symbols:\n\n* [`IBoxShape3D`][crate::classes::IBoxShape3D]: virtual methods\n\n\nSee also [Godot docs for `BoxShape3D`](https://docs.godotengine.org/en/stable/classes/class_boxshape3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`BoxShape3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct BoxShape3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`BoxShape3D`][crate::classes::BoxShape3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `BoxShape3D` methods](https://docs.godotengine.org/en/stable/classes/class_boxshape3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IBoxShape3D: crate::obj::GodotClass < Base = BoxShape3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl BoxShape3D { + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1238usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxShape3D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1239usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "BoxShape3D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for BoxShape3D { + type Base = crate::classes::Shape3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"BoxShape3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for BoxShape3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Shape3D > for BoxShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for BoxShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for BoxShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for BoxShape3D { + + } + impl crate::obj::cap::GodotDefault for BoxShape3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for BoxShape3D { + type Target = crate::classes::Shape3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for BoxShape3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`BoxShape3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_BoxShape3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::BoxShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Shape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/button.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/button.rs new file mode 100644 index 0000000..1d266fa --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/button.rs @@ -0,0 +1,469 @@ +#![doc = "Sidecar module for class [`Button`][crate::classes::Button].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Button` enums](https://docs.godotengine.org/en/stable/classes/class_button.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Button.`\n\nInherits [`BaseButton`][crate::classes::BaseButton].\n\nRelated symbols:\n\n* [`IButton`][crate::classes::IButton]: virtual methods\n\n\nSee also [Godot docs for `Button`](https://docs.godotengine.org/en/stable/classes/class_button.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Button::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Button { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Button`][crate::classes::Button].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Button` methods](https://docs.godotengine.org/en/stable/classes/class_button.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IButton: crate::obj::GodotClass < Base = Button > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn pressed(&mut self,) { + unimplemented !() + } + fn toggled(&mut self, toggled_on: bool,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Button { + pub fn set_text(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1240usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1241usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "get_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text_overrun_behavior(&mut self, overrun_behavior: crate::classes::text_server::OverrunBehavior,) { + type CallSig = ((), crate::classes::text_server::OverrunBehavior); + let args = (overrun_behavior,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1242usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_text_overrun_behavior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_overrun_behavior(&self,) -> crate::classes::text_server::OverrunBehavior { + type CallSig = (crate::classes::text_server::OverrunBehavior,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1243usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "get_text_overrun_behavior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autowrap_mode(&mut self, autowrap_mode: crate::classes::text_server::AutowrapMode,) { + type CallSig = ((), crate::classes::text_server::AutowrapMode); + let args = (autowrap_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1244usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_autowrap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_autowrap_mode(&self,) -> crate::classes::text_server::AutowrapMode { + type CallSig = (crate::classes::text_server::AutowrapMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1245usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "get_autowrap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text_direction(&mut self, direction: crate::classes::control::TextDirection,) { + type CallSig = ((), crate::classes::control::TextDirection); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1246usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_direction(&self,) -> crate::classes::control::TextDirection { + type CallSig = (crate::classes::control::TextDirection,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1247usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "get_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_language(&mut self, language: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1248usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_language(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1249usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "get_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_button_icon(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1250usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_button_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_button_icon(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1251usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "get_button_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flat(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1252usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_flat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_flat(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1253usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "is_flat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clip_text(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1254usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_clip_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_clip_text(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1255usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "get_clip_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text_alignment(&mut self, alignment: crate::global::HorizontalAlignment,) { + type CallSig = ((), crate::global::HorizontalAlignment); + let args = (alignment,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1256usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_text_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_alignment(&self,) -> crate::global::HorizontalAlignment { + type CallSig = (crate::global::HorizontalAlignment,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1257usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "get_text_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_icon_alignment(&mut self, icon_alignment: crate::global::HorizontalAlignment,) { + type CallSig = ((), crate::global::HorizontalAlignment); + let args = (icon_alignment,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1258usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_icon_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_icon_alignment(&self,) -> crate::global::HorizontalAlignment { + type CallSig = (crate::global::HorizontalAlignment,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1259usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "get_icon_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertical_icon_alignment(&mut self, vertical_icon_alignment: crate::global::VerticalAlignment,) { + type CallSig = ((), crate::global::VerticalAlignment); + let args = (vertical_icon_alignment,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1260usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_vertical_icon_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertical_icon_alignment(&self,) -> crate::global::VerticalAlignment { + type CallSig = (crate::global::VerticalAlignment,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1261usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "get_vertical_icon_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_expand_icon(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1262usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "set_expand_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_expand_icon(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1263usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Button", "is_expand_icon", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Button { + type Base = crate::classes::BaseButton; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Button")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Button { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::BaseButton > for Button { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for Button { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Button { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Button { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Button { + + } + impl crate::obj::cap::GodotDefault for Button { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Button { + type Target = crate::classes::BaseButton; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Button { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Button`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Button { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Button > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BaseButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/button_group.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/button_group.rs new file mode 100644 index 0000000..9f32aaf --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/button_group.rs @@ -0,0 +1,234 @@ +#![doc = "Sidecar module for class [`ButtonGroup`][crate::classes::ButtonGroup].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ButtonGroup` enums](https://docs.godotengine.org/en/stable/classes/class_buttongroup.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ButtonGroup.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IButtonGroup`][crate::classes::IButtonGroup]: virtual methods\n\n\nSee also [Godot docs for `ButtonGroup`](https://docs.godotengine.org/en/stable/classes/class_buttongroup.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ButtonGroup::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ButtonGroup { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ButtonGroup`][crate::classes::ButtonGroup].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ButtonGroup` methods](https://docs.godotengine.org/en/stable/classes/class_buttongroup.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IButtonGroup: crate::obj::GodotClass < Base = ButtonGroup > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ButtonGroup { + pub fn get_pressed_button(&mut self,) -> Option < Gd < crate::classes::BaseButton > > { + type CallSig = (Option < Gd < crate::classes::BaseButton > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1264usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ButtonGroup", "get_pressed_button", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_buttons(&mut self,) -> Array < Gd < crate::classes::BaseButton > > { + type CallSig = (Array < Gd < crate::classes::BaseButton > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1265usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ButtonGroup", "get_buttons", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_unpress(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1266usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ButtonGroup", "set_allow_unpress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_allow_unpress(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1267usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ButtonGroup", "is_allow_unpress", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ButtonGroup { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ButtonGroup")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ButtonGroup { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ButtonGroup { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ButtonGroup { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ButtonGroup { + + } + impl crate::obj::cap::GodotDefault for ButtonGroup { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ButtonGroup { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ButtonGroup { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ButtonGroup`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ButtonGroup { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ButtonGroup > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/callback_tweener.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/callback_tweener.rs new file mode 100644 index 0000000..6815679 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/callback_tweener.rs @@ -0,0 +1,207 @@ +#![doc = "Sidecar module for class [`CallbackTweener`][crate::classes::CallbackTweener].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CallbackTweener` enums](https://docs.godotengine.org/en/stable/classes/class_callbacktweener.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CallbackTweener.`\n\nInherits [`Tweener`][crate::classes::Tweener].\n\nRelated symbols:\n\n* [`ICallbackTweener`][crate::classes::ICallbackTweener]: virtual methods\n\n\nSee also [Godot docs for `CallbackTweener`](https://docs.godotengine.org/en/stable/classes/class_callbacktweener.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CallbackTweener::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CallbackTweener { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CallbackTweener`][crate::classes::CallbackTweener].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CallbackTweener` methods](https://docs.godotengine.org/en/stable/classes/class_callbacktweener.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICallbackTweener: crate::obj::GodotClass < Base = CallbackTweener > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl CallbackTweener { + pub fn set_delay(&mut self, delay: f64,) -> Option < Gd < crate::classes::CallbackTweener > > { + type CallSig = (Option < Gd < crate::classes::CallbackTweener > >, f64); + let args = (delay,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1514usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CallbackTweener", "set_delay", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CallbackTweener { + type Base = crate::classes::Tweener; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CallbackTweener")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CallbackTweener { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Tweener > for CallbackTweener { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CallbackTweener { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CallbackTweener { + + } + impl crate::obj::cap::GodotDefault for CallbackTweener { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CallbackTweener { + type Target = crate::classes::Tweener; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CallbackTweener { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CallbackTweener`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CallbackTweener { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CallbackTweener > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Tweener > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_2d.rs new file mode 100644 index 0000000..03da707 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_2d.rs @@ -0,0 +1,770 @@ +#![doc = "Sidecar module for class [`Camera2D`][crate::classes::Camera2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Camera2D` enums](https://docs.godotengine.org/en/stable/classes/class_camera2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Camera2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`camera_2d`][crate::classes::camera_2d]: sidecar module with related enum/flag types\n* [`ICamera2D`][crate::classes::ICamera2D]: virtual methods\n\n\nSee also [Godot docs for `Camera2D`](https://docs.godotengine.org/en/stable/classes/class_camera2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Camera2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Camera2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Camera2D`][crate::classes::Camera2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Camera2D` methods](https://docs.godotengine.org/en/stable/classes/class_camera2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICamera2D: crate::obj::GodotClass < Base = Camera2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Camera2D { + pub fn set_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1515usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1516usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_anchor_mode(&mut self, anchor_mode: crate::classes::camera_2d::AnchorMode,) { + type CallSig = ((), crate::classes::camera_2d::AnchorMode); + let args = (anchor_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1517usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_anchor_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_anchor_mode(&self,) -> crate::classes::camera_2d::AnchorMode { + type CallSig = (crate::classes::camera_2d::AnchorMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1518usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_anchor_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ignore_rotation(&mut self, ignore: bool,) { + type CallSig = ((), bool); + let args = (ignore,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1519usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_ignore_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_ignoring_rotation(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1520usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "is_ignoring_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_callback(&mut self, mode: crate::classes::camera_2d::Camera2DProcessCallback,) { + type CallSig = ((), crate::classes::camera_2d::Camera2DProcessCallback); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1521usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_process_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_callback(&self,) -> crate::classes::camera_2d::Camera2DProcessCallback { + type CallSig = (crate::classes::camera_2d::Camera2DProcessCallback,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1522usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_process_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1523usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1524usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "is_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_current(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1525usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "make_current", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_current(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1526usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "is_current", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_limit(&mut self, margin: crate::global::Side, limit: i32,) { + type CallSig = ((), crate::global::Side, i32); + let args = (margin, limit,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1527usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_limit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_limit(&self, margin: crate::global::Side,) -> i32 { + type CallSig = (i32, crate::global::Side); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1528usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_limit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_limit_smoothing_enabled(&mut self, limit_smoothing_enabled: bool,) { + type CallSig = ((), bool); + let args = (limit_smoothing_enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1529usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_limit_smoothing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_limit_smoothing_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1530usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "is_limit_smoothing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_drag_vertical_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1531usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_drag_vertical_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_drag_vertical_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1532usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "is_drag_vertical_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_drag_horizontal_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1533usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_drag_horizontal_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_drag_horizontal_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1534usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "is_drag_horizontal_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_drag_vertical_offset(&mut self, offset: f32,) { + type CallSig = ((), f32); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1535usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_drag_vertical_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_drag_vertical_offset(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1536usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_drag_vertical_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_drag_horizontal_offset(&mut self, offset: f32,) { + type CallSig = ((), f32); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1537usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_drag_horizontal_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_drag_horizontal_offset(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1538usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_drag_horizontal_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_drag_margin(&mut self, margin: crate::global::Side, drag_margin: f32,) { + type CallSig = ((), crate::global::Side, f32); + let args = (margin, drag_margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1539usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_drag_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_drag_margin(&self, margin: crate::global::Side,) -> f32 { + type CallSig = (f32, crate::global::Side); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1540usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_drag_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_target_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1541usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_target_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_screen_center_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1542usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_screen_center_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_zoom(&mut self, zoom: Vector2,) { + type CallSig = ((), Vector2); + let args = (zoom,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1543usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_zoom", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_zoom(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1544usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_zoom", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_custom_viewport(&mut self, viewport: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (viewport.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1545usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_custom_viewport", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_custom_viewport(&self,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1546usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_custom_viewport", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_position_smoothing_speed(&mut self, position_smoothing_speed: f32,) { + type CallSig = ((), f32); + let args = (position_smoothing_speed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1547usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_position_smoothing_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position_smoothing_speed(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1548usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_position_smoothing_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_position_smoothing_enabled(&mut self, position_smoothing_speed: bool,) { + type CallSig = ((), bool); + let args = (position_smoothing_speed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1549usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_position_smoothing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_position_smoothing_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1550usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "is_position_smoothing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation_smoothing_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1551usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_rotation_smoothing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_rotation_smoothing_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1552usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "is_rotation_smoothing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation_smoothing_speed(&mut self, speed: f32,) { + type CallSig = ((), f32); + let args = (speed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1553usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_rotation_smoothing_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation_smoothing_speed(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1554usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "get_rotation_smoothing_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_update_scroll(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1555usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "force_update_scroll", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reset_smoothing(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1556usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "reset_smoothing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn align(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1557usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "align", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_screen_drawing_enabled(&mut self, screen_drawing_enabled: bool,) { + type CallSig = ((), bool); + let args = (screen_drawing_enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1558usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_screen_drawing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_screen_drawing_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1559usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "is_screen_drawing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_limit_drawing_enabled(&mut self, limit_drawing_enabled: bool,) { + type CallSig = ((), bool); + let args = (limit_drawing_enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1560usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_limit_drawing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_limit_drawing_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1561usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "is_limit_drawing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_margin_drawing_enabled(&mut self, margin_drawing_enabled: bool,) { + type CallSig = ((), bool); + let args = (margin_drawing_enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1562usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "set_margin_drawing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_margin_drawing_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1563usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera2D", "is_margin_drawing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Camera2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Camera2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Camera2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for Camera2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Camera2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Camera2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Camera2D { + + } + impl crate::obj::cap::GodotDefault for Camera2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Camera2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Camera2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Camera2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Camera2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Camera2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AnchorMode { + ord: i32 +} +impl AnchorMode { + #[doc(alias = "ANCHOR_MODE_FIXED_TOP_LEFT")] + #[doc = "Godot enumerator name: `ANCHOR_MODE_FIXED_TOP_LEFT`"] + pub const FIXED_TOP_LEFT: AnchorMode = AnchorMode { + ord: 0i32 + }; + #[doc(alias = "ANCHOR_MODE_DRAG_CENTER")] + #[doc = "Godot enumerator name: `ANCHOR_MODE_DRAG_CENTER`"] + pub const DRAG_CENTER: AnchorMode = AnchorMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for AnchorMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AnchorMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AnchorMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FIXED_TOP_LEFT => "FIXED_TOP_LEFT", Self::DRAG_CENTER => "DRAG_CENTER", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FIXED_TOP_LEFT => "ANCHOR_MODE_FIXED_TOP_LEFT", Self::DRAG_CENTER => "ANCHOR_MODE_DRAG_CENTER", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AnchorMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AnchorMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AnchorMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Camera2DProcessCallback { + ord: i32 +} +impl Camera2DProcessCallback { + #[doc(alias = "CAMERA2D_PROCESS_PHYSICS")] + #[doc = "Godot enumerator name: `CAMERA2D_PROCESS_PHYSICS`"] + pub const PHYSICS: Camera2DProcessCallback = Camera2DProcessCallback { + ord: 0i32 + }; + #[doc(alias = "CAMERA2D_PROCESS_IDLE")] + #[doc = "Godot enumerator name: `CAMERA2D_PROCESS_IDLE`"] + pub const IDLE: Camera2DProcessCallback = Camera2DProcessCallback { + ord: 1i32 + }; + +} +impl std::fmt::Debug for Camera2DProcessCallback { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Camera2DProcessCallback") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Camera2DProcessCallback { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PHYSICS => "PHYSICS", Self::IDLE => "IDLE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PHYSICS => "CAMERA2D_PROCESS_PHYSICS", Self::IDLE => "CAMERA2D_PROCESS_IDLE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Camera2DProcessCallback { + type Via = i32; + +} +impl crate::meta::ToGodot for Camera2DProcessCallback { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Camera2DProcessCallback { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_3d.rs new file mode 100644 index 0000000..12b80e2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_3d.rs @@ -0,0 +1,862 @@ +#![doc = "Sidecar module for class [`Camera3D`][crate::classes::Camera3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Camera3D` enums](https://docs.godotengine.org/en/stable/classes/class_camera3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Camera3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`camera_3d`][crate::classes::camera_3d]: sidecar module with related enum/flag types\n* [`ICamera3D`][crate::classes::ICamera3D]: virtual methods\n\n\nSee also [Godot docs for `Camera3D`](https://docs.godotengine.org/en/stable/classes/class_camera3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Camera3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Camera3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Camera3D`][crate::classes::Camera3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Camera3D` methods](https://docs.godotengine.org/en/stable/classes/class_camera3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICamera3D: crate::obj::GodotClass < Base = Camera3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Camera3D { + pub fn project_ray_normal(&self, screen_point: Vector2,) -> Vector3 { + type CallSig = (Vector3, Vector2); + let args = (screen_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1564usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "project_ray_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn project_local_ray_normal(&self, screen_point: Vector2,) -> Vector3 { + type CallSig = (Vector3, Vector2); + let args = (screen_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1565usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "project_local_ray_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn project_ray_origin(&self, screen_point: Vector2,) -> Vector3 { + type CallSig = (Vector3, Vector2); + let args = (screen_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1566usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "project_ray_origin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unproject_position(&self, world_point: Vector3,) -> Vector2 { + type CallSig = (Vector2, Vector3); + let args = (world_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1567usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "unproject_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_position_behind(&self, world_point: Vector3,) -> bool { + type CallSig = (bool, Vector3); + let args = (world_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1568usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "is_position_behind", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn project_position(&self, screen_point: Vector2, z_depth: f32,) -> Vector3 { + type CallSig = (Vector3, Vector2, f32); + let args = (screen_point, z_depth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1569usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "project_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_perspective(&mut self, fov: f32, z_near: f32, z_far: f32,) { + type CallSig = ((), f32, f32, f32); + let args = (fov, z_near, z_far,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1570usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_perspective", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_orthogonal(&mut self, size: f32, z_near: f32, z_far: f32,) { + type CallSig = ((), f32, f32, f32); + let args = (size, z_near, z_far,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1571usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_orthogonal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frustum(&mut self, size: f32, offset: Vector2, z_near: f32, z_far: f32,) { + type CallSig = ((), f32, Vector2, f32, f32); + let args = (size, offset, z_near, z_far,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1572usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_frustum", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_current(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1573usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "make_current", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn clear_current_full(&mut self, enable_next: bool,) { + type CallSig = ((), bool); + let args = (enable_next,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1574usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "clear_current", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::clear_current_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn clear_current(&mut self,) { + self.clear_current_ex() . done() + } + #[inline] + pub fn clear_current_ex < 'a > (&'a mut self,) -> ExClearCurrent < 'a > { + ExClearCurrent::new(self,) + } + pub fn set_current(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1575usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_current", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_current(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1576usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "is_current", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_camera_transform(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1577usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_camera_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_camera_projection(&self,) -> Projection { + type CallSig = (Projection,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1578usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_camera_projection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fov(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1579usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_fov", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frustum_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1580usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_frustum_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1581usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_far(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1582usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_far", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_near(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1583usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_near", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fov(&mut self, fov: f32,) { + type CallSig = ((), f32); + let args = (fov,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1584usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_fov", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frustum_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1585usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_frustum_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_size(&mut self, size: f32,) { + type CallSig = ((), f32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1586usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_far(&mut self, far: f32,) { + type CallSig = ((), f32); + let args = (far,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1587usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_far", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_near(&mut self, near: f32,) { + type CallSig = ((), f32); + let args = (near,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1588usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_near", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_projection(&self,) -> crate::classes::camera_3d::ProjectionType { + type CallSig = (crate::classes::camera_3d::ProjectionType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1589usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_projection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_projection(&mut self, mode: crate::classes::camera_3d::ProjectionType,) { + type CallSig = ((), crate::classes::camera_3d::ProjectionType); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1590usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_projection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_h_offset(&mut self, offset: f32,) { + type CallSig = ((), f32); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1591usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_h_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_h_offset(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1592usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_h_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_v_offset(&mut self, offset: f32,) { + type CallSig = ((), f32); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1593usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_v_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_v_offset(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1594usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_v_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cull_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1595usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cull_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1596usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_environment(&mut self, env: impl AsObjectArg < crate::classes::Environment >,) { + type CallSig = ((), ObjectArg < crate::classes::Environment >); + let args = (env.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1597usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_environment(&self,) -> Option < Gd < crate::classes::Environment > > { + type CallSig = (Option < Gd < crate::classes::Environment > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1598usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_attributes(&mut self, env: impl AsObjectArg < crate::classes::CameraAttributes >,) { + type CallSig = ((), ObjectArg < crate::classes::CameraAttributes >); + let args = (env.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1599usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_attributes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_attributes(&self,) -> Option < Gd < crate::classes::CameraAttributes > > { + type CallSig = (Option < Gd < crate::classes::CameraAttributes > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1600usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_attributes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_keep_aspect_mode(&mut self, mode: crate::classes::camera_3d::KeepAspect,) { + type CallSig = ((), crate::classes::camera_3d::KeepAspect); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1601usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_keep_aspect_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_keep_aspect_mode(&self,) -> crate::classes::camera_3d::KeepAspect { + type CallSig = (crate::classes::camera_3d::KeepAspect,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1602usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_keep_aspect_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_doppler_tracking(&mut self, mode: crate::classes::camera_3d::DopplerTracking,) { + type CallSig = ((), crate::classes::camera_3d::DopplerTracking); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1603usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_doppler_tracking", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_doppler_tracking(&self,) -> crate::classes::camera_3d::DopplerTracking { + type CallSig = (crate::classes::camera_3d::DopplerTracking,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1604usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_doppler_tracking", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frustum(&self,) -> Array < Plane > { + type CallSig = (Array < Plane >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1605usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_frustum", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_position_in_frustum(&self, world_point: Vector3,) -> bool { + type CallSig = (bool, Vector3); + let args = (world_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1606usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "is_position_in_frustum", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_camera_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1607usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_camera_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pyramid_shape_rid(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1608usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_pyramid_shape_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cull_mask_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1609usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "set_cull_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cull_mask_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1610usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Camera3D", "get_cull_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Camera3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Camera3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Camera3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for Camera3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Camera3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Camera3D { + + } + impl crate::obj::cap::GodotDefault for Camera3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Camera3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Camera3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Camera3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Camera3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Camera3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Camera3D::clear_current_ex`][super::Camera3D::clear_current_ex]."] +#[must_use] +pub struct ExClearCurrent < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Camera3D, enable_next: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClearCurrent < 'a > { + fn new(surround_object: &'a mut re_export::Camera3D,) -> Self { + let enable_next = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, enable_next: enable_next, + } + } + #[inline] + pub fn enable_next(self, enable_next: bool) -> Self { + Self { + enable_next: enable_next, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, enable_next, + } + = self; + re_export::Camera3D::clear_current_full(surround_object, enable_next,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ProjectionType { + ord: i32 +} +impl ProjectionType { + #[doc(alias = "PROJECTION_PERSPECTIVE")] + #[doc = "Godot enumerator name: `PROJECTION_PERSPECTIVE`"] + pub const PERSPECTIVE: ProjectionType = ProjectionType { + ord: 0i32 + }; + #[doc(alias = "PROJECTION_ORTHOGONAL")] + #[doc = "Godot enumerator name: `PROJECTION_ORTHOGONAL`"] + pub const ORTHOGONAL: ProjectionType = ProjectionType { + ord: 1i32 + }; + #[doc(alias = "PROJECTION_FRUSTUM")] + #[doc = "Godot enumerator name: `PROJECTION_FRUSTUM`"] + pub const FRUSTUM: ProjectionType = ProjectionType { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ProjectionType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ProjectionType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ProjectionType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PERSPECTIVE => "PERSPECTIVE", Self::ORTHOGONAL => "ORTHOGONAL", Self::FRUSTUM => "FRUSTUM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PERSPECTIVE => "PROJECTION_PERSPECTIVE", Self::ORTHOGONAL => "PROJECTION_ORTHOGONAL", Self::FRUSTUM => "PROJECTION_FRUSTUM", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ProjectionType { + type Via = i32; + +} +impl crate::meta::ToGodot for ProjectionType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ProjectionType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct KeepAspect { + ord: i32 +} +impl KeepAspect { + #[doc(alias = "KEEP_WIDTH")] + #[doc = "Godot enumerator name: `KEEP_WIDTH`"] + pub const WIDTH: KeepAspect = KeepAspect { + ord: 0i32 + }; + #[doc(alias = "KEEP_HEIGHT")] + #[doc = "Godot enumerator name: `KEEP_HEIGHT`"] + pub const HEIGHT: KeepAspect = KeepAspect { + ord: 1i32 + }; + +} +impl std::fmt::Debug for KeepAspect { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("KeepAspect") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for KeepAspect { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WIDTH => "WIDTH", Self::HEIGHT => "HEIGHT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WIDTH => "KEEP_WIDTH", Self::HEIGHT => "KEEP_HEIGHT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for KeepAspect { + type Via = i32; + +} +impl crate::meta::ToGodot for KeepAspect { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for KeepAspect { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DopplerTracking { + ord: i32 +} +impl DopplerTracking { + #[doc(alias = "DOPPLER_TRACKING_DISABLED")] + #[doc = "Godot enumerator name: `DOPPLER_TRACKING_DISABLED`"] + pub const DISABLED: DopplerTracking = DopplerTracking { + ord: 0i32 + }; + #[doc(alias = "DOPPLER_TRACKING_IDLE_STEP")] + #[doc = "Godot enumerator name: `DOPPLER_TRACKING_IDLE_STEP`"] + pub const IDLE_STEP: DopplerTracking = DopplerTracking { + ord: 1i32 + }; + #[doc(alias = "DOPPLER_TRACKING_PHYSICS_STEP")] + #[doc = "Godot enumerator name: `DOPPLER_TRACKING_PHYSICS_STEP`"] + pub const PHYSICS_STEP: DopplerTracking = DopplerTracking { + ord: 2i32 + }; + +} +impl std::fmt::Debug for DopplerTracking { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DopplerTracking") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DopplerTracking { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::IDLE_STEP => "IDLE_STEP", Self::PHYSICS_STEP => "PHYSICS_STEP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DOPPLER_TRACKING_DISABLED", Self::IDLE_STEP => "DOPPLER_TRACKING_IDLE_STEP", Self::PHYSICS_STEP => "DOPPLER_TRACKING_PHYSICS_STEP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DopplerTracking { + type Via = i32; + +} +impl crate::meta::ToGodot for DopplerTracking { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DopplerTracking { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_attributes.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_attributes.rs new file mode 100644 index 0000000..4770092 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_attributes.rs @@ -0,0 +1,282 @@ +#![doc = "Sidecar module for class [`CameraAttributes`][crate::classes::CameraAttributes].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CameraAttributes` enums](https://docs.godotengine.org/en/stable/classes/class_cameraattributes.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CameraAttributes.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`ICameraAttributes`][crate::classes::ICameraAttributes]: virtual methods\n\n\nSee also [Godot docs for `CameraAttributes`](https://docs.godotengine.org/en/stable/classes/class_cameraattributes.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CameraAttributes::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CameraAttributes { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CameraAttributes`][crate::classes::CameraAttributes].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CameraAttributes` methods](https://docs.godotengine.org/en/stable/classes/class_cameraattributes.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICameraAttributes: crate::obj::GodotClass < Base = CameraAttributes > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CameraAttributes { + pub fn set_exposure_multiplier(&mut self, multiplier: f32,) { + type CallSig = ((), f32); + let args = (multiplier,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1611usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributes", "set_exposure_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exposure_multiplier(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1612usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributes", "get_exposure_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exposure_sensitivity(&mut self, sensitivity: f32,) { + type CallSig = ((), f32); + let args = (sensitivity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1613usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributes", "set_exposure_sensitivity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exposure_sensitivity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1614usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributes", "get_exposure_sensitivity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_exposure_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1615usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributes", "set_auto_exposure_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_auto_exposure_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1616usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributes", "is_auto_exposure_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_exposure_speed(&mut self, exposure_speed: f32,) { + type CallSig = ((), f32); + let args = (exposure_speed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1617usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributes", "set_auto_exposure_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_exposure_speed(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1618usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributes", "get_auto_exposure_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_exposure_scale(&mut self, exposure_grey: f32,) { + type CallSig = ((), f32); + let args = (exposure_grey,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1619usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributes", "set_auto_exposure_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_exposure_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1620usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributes", "get_auto_exposure_scale", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CameraAttributes { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CameraAttributes")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CameraAttributes { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CameraAttributes { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CameraAttributes { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CameraAttributes { + + } + impl crate::obj::cap::GodotDefault for CameraAttributes { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CameraAttributes { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CameraAttributes { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CameraAttributes`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CameraAttributes { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CameraAttributes > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_attributes_physical.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_attributes_physical.rs new file mode 100644 index 0000000..667a36d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_attributes_physical.rs @@ -0,0 +1,344 @@ +#![doc = "Sidecar module for class [`CameraAttributesPhysical`][crate::classes::CameraAttributesPhysical].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CameraAttributesPhysical` enums](https://docs.godotengine.org/en/stable/classes/class_cameraattributesphysical.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CameraAttributesPhysical.`\n\nInherits [`CameraAttributes`][crate::classes::CameraAttributes].\n\nRelated symbols:\n\n* [`ICameraAttributesPhysical`][crate::classes::ICameraAttributesPhysical]: virtual methods\n\n\nSee also [Godot docs for `CameraAttributesPhysical`](https://docs.godotengine.org/en/stable/classes/class_cameraattributesphysical.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CameraAttributesPhysical::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CameraAttributesPhysical { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CameraAttributesPhysical`][crate::classes::CameraAttributesPhysical].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CameraAttributesPhysical` methods](https://docs.godotengine.org/en/stable/classes/class_cameraattributesphysical.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICameraAttributesPhysical: crate::obj::GodotClass < Base = CameraAttributesPhysical > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CameraAttributesPhysical { + pub fn set_aperture(&mut self, aperture: f32,) { + type CallSig = ((), f32); + let args = (aperture,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1621usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "set_aperture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_aperture(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1622usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "get_aperture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shutter_speed(&mut self, shutter_speed: f32,) { + type CallSig = ((), f32); + let args = (shutter_speed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1623usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "set_shutter_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shutter_speed(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1624usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "get_shutter_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_focal_length(&mut self, focal_length: f32,) { + type CallSig = ((), f32); + let args = (focal_length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1625usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "set_focal_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_focal_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1626usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "get_focal_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_focus_distance(&mut self, focus_distance: f32,) { + type CallSig = ((), f32); + let args = (focus_distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1627usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "set_focus_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_focus_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1628usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "get_focus_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_near(&mut self, near: f32,) { + type CallSig = ((), f32); + let args = (near,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1629usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "set_near", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_near(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1630usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "get_near", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_far(&mut self, far: f32,) { + type CallSig = ((), f32); + let args = (far,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1631usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "set_far", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_far(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1632usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "get_far", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fov(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1633usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "get_fov", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_exposure_max_exposure_value(&mut self, exposure_value_max: f32,) { + type CallSig = ((), f32); + let args = (exposure_value_max,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1634usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "set_auto_exposure_max_exposure_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_exposure_max_exposure_value(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1635usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "get_auto_exposure_max_exposure_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_exposure_min_exposure_value(&mut self, exposure_value_min: f32,) { + type CallSig = ((), f32); + let args = (exposure_value_min,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1636usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "set_auto_exposure_min_exposure_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_exposure_min_exposure_value(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1637usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPhysical", "get_auto_exposure_min_exposure_value", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CameraAttributesPhysical { + type Base = crate::classes::CameraAttributes; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CameraAttributesPhysical")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CameraAttributesPhysical { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CameraAttributes > for CameraAttributesPhysical { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CameraAttributesPhysical { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CameraAttributesPhysical { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CameraAttributesPhysical { + + } + impl crate::obj::cap::GodotDefault for CameraAttributesPhysical { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CameraAttributesPhysical { + type Target = crate::classes::CameraAttributes; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CameraAttributesPhysical { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CameraAttributesPhysical`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CameraAttributesPhysical { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CameraAttributesPhysical > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CameraAttributes > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_attributes_practical.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_attributes_practical.rs new file mode 100644 index 0000000..4d7e2d5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_attributes_practical.rs @@ -0,0 +1,352 @@ +#![doc = "Sidecar module for class [`CameraAttributesPractical`][crate::classes::CameraAttributesPractical].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CameraAttributesPractical` enums](https://docs.godotengine.org/en/stable/classes/class_cameraattributespractical.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CameraAttributesPractical.`\n\nInherits [`CameraAttributes`][crate::classes::CameraAttributes].\n\nRelated symbols:\n\n* [`ICameraAttributesPractical`][crate::classes::ICameraAttributesPractical]: virtual methods\n\n\nSee also [Godot docs for `CameraAttributesPractical`](https://docs.godotengine.org/en/stable/classes/class_cameraattributespractical.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CameraAttributesPractical::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CameraAttributesPractical { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CameraAttributesPractical`][crate::classes::CameraAttributesPractical].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CameraAttributesPractical` methods](https://docs.godotengine.org/en/stable/classes/class_cameraattributespractical.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICameraAttributesPractical: crate::obj::GodotClass < Base = CameraAttributesPractical > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CameraAttributesPractical { + pub fn set_dof_blur_far_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1638usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "set_dof_blur_far_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_dof_blur_far_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1639usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "is_dof_blur_far_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dof_blur_far_distance(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1640usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "set_dof_blur_far_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_dof_blur_far_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1641usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "get_dof_blur_far_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dof_blur_far_transition(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1642usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "set_dof_blur_far_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_dof_blur_far_transition(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1643usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "get_dof_blur_far_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dof_blur_near_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1644usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "set_dof_blur_near_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_dof_blur_near_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1645usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "is_dof_blur_near_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dof_blur_near_distance(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1646usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "set_dof_blur_near_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_dof_blur_near_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1647usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "get_dof_blur_near_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dof_blur_near_transition(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1648usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "set_dof_blur_near_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_dof_blur_near_transition(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1649usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "get_dof_blur_near_transition", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dof_blur_amount(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1650usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "set_dof_blur_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_dof_blur_amount(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1651usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "get_dof_blur_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_exposure_max_sensitivity(&mut self, max_sensitivity: f32,) { + type CallSig = ((), f32); + let args = (max_sensitivity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1652usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "set_auto_exposure_max_sensitivity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_exposure_max_sensitivity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1653usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "get_auto_exposure_max_sensitivity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_exposure_min_sensitivity(&mut self, min_sensitivity: f32,) { + type CallSig = ((), f32); + let args = (min_sensitivity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1654usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "set_auto_exposure_min_sensitivity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_exposure_min_sensitivity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1655usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraAttributesPractical", "get_auto_exposure_min_sensitivity", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CameraAttributesPractical { + type Base = crate::classes::CameraAttributes; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CameraAttributesPractical")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CameraAttributesPractical { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CameraAttributes > for CameraAttributesPractical { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CameraAttributesPractical { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CameraAttributesPractical { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CameraAttributesPractical { + + } + impl crate::obj::cap::GodotDefault for CameraAttributesPractical { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CameraAttributesPractical { + type Target = crate::classes::CameraAttributes; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CameraAttributesPractical { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CameraAttributesPractical`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CameraAttributesPractical { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CameraAttributesPractical > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CameraAttributes > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_feed.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_feed.rs new file mode 100644 index 0000000..ec63a4f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_feed.rs @@ -0,0 +1,412 @@ +#![doc = "Sidecar module for class [`CameraFeed`][crate::classes::CameraFeed].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CameraFeed` enums](https://docs.godotengine.org/en/stable/classes/class_camerafeed.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CameraFeed.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`camera_feed`][crate::classes::camera_feed]: sidecar module with related enum/flag types\n* [`ICameraFeed`][crate::classes::ICameraFeed]: virtual methods\n\n\nSee also [Godot docs for `CameraFeed`](https://docs.godotengine.org/en/stable/classes/class_camerafeed.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CameraFeed::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CameraFeed { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CameraFeed`][crate::classes::CameraFeed].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CameraFeed` methods](https://docs.godotengine.org/en/stable/classes/class_camerafeed.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICameraFeed: crate::obj::GodotClass < Base = CameraFeed > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl CameraFeed { + pub fn get_id(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1656usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraFeed", "get_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_active(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1657usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraFeed", "is_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_active(&mut self, active: bool,) { + type CallSig = ((), bool); + let args = (active,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1658usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraFeed", "set_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1659usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraFeed", "get_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position(&self,) -> crate::classes::camera_feed::FeedPosition { + type CallSig = (crate::classes::camera_feed::FeedPosition,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1660usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraFeed", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transform(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1661usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraFeed", "get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transform(&mut self, transform: Transform2D,) { + type CallSig = ((), Transform2D); + let args = (transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1662usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraFeed", "set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_datatype(&self,) -> crate::classes::camera_feed::FeedDataType { + type CallSig = (crate::classes::camera_feed::FeedDataType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1663usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraFeed", "get_datatype", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CameraFeed { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CameraFeed")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CameraFeed { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CameraFeed { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CameraFeed { + + } + impl crate::obj::cap::GodotDefault for CameraFeed { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CameraFeed { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CameraFeed { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CameraFeed`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CameraFeed { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CameraFeed > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FeedDataType { + ord: i32 +} +impl FeedDataType { + #[doc(alias = "FEED_NOIMAGE")] + #[doc = "Godot enumerator name: `FEED_NOIMAGE`"] + pub const NOIMAGE: FeedDataType = FeedDataType { + ord: 0i32 + }; + #[doc(alias = "FEED_RGB")] + #[doc = "Godot enumerator name: `FEED_RGB`"] + pub const RGB: FeedDataType = FeedDataType { + ord: 1i32 + }; + #[doc(alias = "FEED_YCBCR")] + #[doc = "Godot enumerator name: `FEED_YCBCR`"] + pub const YCBCR: FeedDataType = FeedDataType { + ord: 2i32 + }; + #[doc(alias = "FEED_YCBCR_SEP")] + #[doc = "Godot enumerator name: `FEED_YCBCR_SEP`"] + pub const YCBCR_SEP: FeedDataType = FeedDataType { + ord: 3i32 + }; + +} +impl std::fmt::Debug for FeedDataType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FeedDataType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FeedDataType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NOIMAGE => "NOIMAGE", Self::RGB => "RGB", Self::YCBCR => "YCBCR", Self::YCBCR_SEP => "YCBCR_SEP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NOIMAGE => "FEED_NOIMAGE", Self::RGB => "FEED_RGB", Self::YCBCR => "FEED_YCBCR", Self::YCBCR_SEP => "FEED_YCBCR_SEP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FeedDataType { + type Via = i32; + +} +impl crate::meta::ToGodot for FeedDataType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FeedDataType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FeedPosition { + ord: i32 +} +impl FeedPosition { + #[doc(alias = "FEED_UNSPECIFIED")] + #[doc = "Godot enumerator name: `FEED_UNSPECIFIED`"] + pub const UNSPECIFIED: FeedPosition = FeedPosition { + ord: 0i32 + }; + #[doc(alias = "FEED_FRONT")] + #[doc = "Godot enumerator name: `FEED_FRONT`"] + pub const FRONT: FeedPosition = FeedPosition { + ord: 1i32 + }; + #[doc(alias = "FEED_BACK")] + #[doc = "Godot enumerator name: `FEED_BACK`"] + pub const BACK: FeedPosition = FeedPosition { + ord: 2i32 + }; + +} +impl std::fmt::Debug for FeedPosition { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FeedPosition") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FeedPosition { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNSPECIFIED => "UNSPECIFIED", Self::FRONT => "FRONT", Self::BACK => "BACK", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNSPECIFIED => "FEED_UNSPECIFIED", Self::FRONT => "FEED_FRONT", Self::BACK => "FEED_BACK", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FeedPosition { + type Via = i32; + +} +impl crate::meta::ToGodot for FeedPosition { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FeedPosition { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_server.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_server.rs new file mode 100644 index 0000000..360eec5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_server.rs @@ -0,0 +1,309 @@ +#![doc = "Sidecar module for class [`CameraServer`][crate::classes::CameraServer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CameraServer` enums](https://docs.godotengine.org/en/stable/classes/class_cameraserver.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CameraServer.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`camera_server`][crate::classes::camera_server]: sidecar module with related enum/flag types\n* [`ICameraServer`][crate::classes::ICameraServer]: virtual methods\n\n\nSee also [Godot docs for `CameraServer`](https://docs.godotengine.org/en/stable/classes/class_cameraserver.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`CameraServer::singleton()`][CameraServer::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct CameraServer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CameraServer`][crate::classes::CameraServer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CameraServer` methods](https://docs.godotengine.org/en/stable/classes/class_cameraserver.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICameraServer: crate::obj::GodotClass < Base = CameraServer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl CameraServer { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"CameraServer"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn get_feed(&mut self, index: i32,) -> Option < Gd < crate::classes::CameraFeed > > { + type CallSig = (Option < Gd < crate::classes::CameraFeed > >, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(49usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraServer", "get_feed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_feed_count(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(50usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraServer", "get_feed_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn feeds(&mut self,) -> Array < Gd < crate::classes::CameraFeed > > { + type CallSig = (Array < Gd < crate::classes::CameraFeed > >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(51usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraServer", "feeds", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_feed(&mut self, feed: impl AsObjectArg < crate::classes::CameraFeed >,) { + type CallSig = ((), ObjectArg < crate::classes::CameraFeed >); + let args = (feed.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(52usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraServer", "add_feed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_feed(&mut self, feed: impl AsObjectArg < crate::classes::CameraFeed >,) { + type CallSig = ((), ObjectArg < crate::classes::CameraFeed >); + let args = (feed.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(53usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraServer", "remove_feed", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CameraServer { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CameraServer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for CameraServer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CameraServer { + + } + impl std::ops::Deref for CameraServer { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CameraServer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CameraServer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CameraServer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CameraServer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FeedImage { + ord: i32 +} +impl FeedImage { + #[doc(alias = "FEED_RGBA_IMAGE")] + #[doc = "Godot enumerator name: `FEED_RGBA_IMAGE`"] + pub const RGBA_IMAGE: FeedImage = FeedImage { + ord: 0i32 + }; + #[doc(alias = "FEED_YCBCR_IMAGE")] + #[doc = "Godot enumerator name: `FEED_YCBCR_IMAGE`"] + pub const YCBCR_IMAGE: FeedImage = FeedImage { + ord: 0i32 + }; + #[doc(alias = "FEED_Y_IMAGE")] + #[doc = "Godot enumerator name: `FEED_Y_IMAGE`"] + pub const Y_IMAGE: FeedImage = FeedImage { + ord: 0i32 + }; + #[doc(alias = "FEED_CBCR_IMAGE")] + #[doc = "Godot enumerator name: `FEED_CBCR_IMAGE`"] + pub const CBCR_IMAGE: FeedImage = FeedImage { + ord: 1i32 + }; + +} +impl std::fmt::Debug for FeedImage { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FeedImage") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FeedImage { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RGBA_IMAGE => "RGBA_IMAGE", Self::YCBCR_IMAGE => "YCBCR_IMAGE", Self::Y_IMAGE => "Y_IMAGE", Self::CBCR_IMAGE => "CBCR_IMAGE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RGBA_IMAGE => "FEED_RGBA_IMAGE", Self::YCBCR_IMAGE => "FEED_YCBCR_IMAGE", Self::Y_IMAGE => "FEED_Y_IMAGE", Self::CBCR_IMAGE => "FEED_CBCR_IMAGE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FeedImage { + type Via = i32; + +} +impl crate::meta::ToGodot for FeedImage { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FeedImage { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_texture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_texture.rs new file mode 100644 index 0000000..54f88c8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/camera_texture.rs @@ -0,0 +1,279 @@ +#![doc = "Sidecar module for class [`CameraTexture`][crate::classes::CameraTexture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CameraTexture` enums](https://docs.godotengine.org/en/stable/classes/class_cameratexture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CameraTexture.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`ICameraTexture`][crate::classes::ICameraTexture]: virtual methods\n\n\nSee also [Godot docs for `CameraTexture`](https://docs.godotengine.org/en/stable/classes/class_cameratexture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CameraTexture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CameraTexture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CameraTexture`][crate::classes::CameraTexture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CameraTexture` methods](https://docs.godotengine.org/en/stable/classes/class_cameratexture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICameraTexture: crate::obj::GodotClass < Base = CameraTexture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CameraTexture { + pub fn set_camera_feed_id(&mut self, feed_id: i32,) { + type CallSig = ((), i32); + let args = (feed_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1664usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraTexture", "set_camera_feed_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_camera_feed_id(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1665usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraTexture", "get_camera_feed_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_which_feed(&mut self, which_feed: crate::classes::camera_server::FeedImage,) { + type CallSig = ((), crate::classes::camera_server::FeedImage); + let args = (which_feed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1666usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraTexture", "set_which_feed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_which_feed(&self,) -> crate::classes::camera_server::FeedImage { + type CallSig = (crate::classes::camera_server::FeedImage,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1667usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraTexture", "get_which_feed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_camera_active(&mut self, active: bool,) { + type CallSig = ((), bool); + let args = (active,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1668usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraTexture", "set_camera_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_camera_active(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1669usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CameraTexture", "get_camera_active", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CameraTexture { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CameraTexture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CameraTexture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for CameraTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for CameraTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CameraTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CameraTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CameraTexture { + + } + impl crate::obj::cap::GodotDefault for CameraTexture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CameraTexture { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CameraTexture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CameraTexture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CameraTexture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CameraTexture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_group.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_group.rs new file mode 100644 index 0000000..6ac894a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_group.rs @@ -0,0 +1,286 @@ +#![doc = "Sidecar module for class [`CanvasGroup`][crate::classes::CanvasGroup].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CanvasGroup` enums](https://docs.godotengine.org/en/stable/classes/class_canvasgroup.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CanvasGroup.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`ICanvasGroup`][crate::classes::ICanvasGroup]: virtual methods\n\n\nSee also [Godot docs for `CanvasGroup`](https://docs.godotengine.org/en/stable/classes/class_canvasgroup.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CanvasGroup::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CanvasGroup { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CanvasGroup`][crate::classes::CanvasGroup].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CanvasGroup` methods](https://docs.godotengine.org/en/stable/classes/class_canvasgroup.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICanvasGroup: crate::obj::GodotClass < Base = CanvasGroup > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CanvasGroup { + pub fn set_fit_margin(&mut self, fit_margin: f32,) { + type CallSig = ((), f32); + let args = (fit_margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1670usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasGroup", "set_fit_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fit_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1671usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasGroup", "get_fit_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clear_margin(&mut self, clear_margin: f32,) { + type CallSig = ((), f32); + let args = (clear_margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1672usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasGroup", "set_clear_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_clear_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1673usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasGroup", "get_clear_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_mipmaps(&mut self, use_mipmaps: bool,) { + type CallSig = ((), bool); + let args = (use_mipmaps,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1674usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasGroup", "set_use_mipmaps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_mipmaps(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1675usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasGroup", "is_using_mipmaps", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CanvasGroup { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CanvasGroup")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CanvasGroup { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for CanvasGroup { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for CanvasGroup { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CanvasGroup { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CanvasGroup { + + } + impl crate::obj::cap::GodotDefault for CanvasGroup { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CanvasGroup { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CanvasGroup { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CanvasGroup`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CanvasGroup { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasGroup > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_item.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_item.rs new file mode 100644 index 0000000..ea541da --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_item.rs @@ -0,0 +1,2611 @@ +#![doc = "Sidecar module for class [`CanvasItem`][crate::classes::CanvasItem].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CanvasItem` enums](https://docs.godotengine.org/en/stable/classes/class_canvasitem.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CanvasItem.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`canvas_item`][crate::classes::canvas_item]: sidecar module with related enum/flag types\n* [`ICanvasItem`][crate::classes::ICanvasItem]: virtual methods\n* [`CanvasItemNotification`][crate::classes::notify::CanvasItemNotification]: notification type\n\n\nSee also [Godot docs for `CanvasItem`](https://docs.godotengine.org/en/stable/classes/class_canvasitem.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct CanvasItem { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CanvasItem`][crate::classes::CanvasItem].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CanvasItem` methods](https://docs.godotengine.org/en/stable/classes/class_canvasitem.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICanvasItem: crate::obj::GodotClass < Base = CanvasItem > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + #[doc = "Notification type for class [`CanvasItem`][crate::classes::CanvasItem]."] + #[doc = r""] + #[doc = r" Makes it easier to keep an overview all possible notification variants for a given class, including"] + #[doc = r" notifications defined in base classes."] + #[doc = r""] + #[doc = r" Contains the [`Unknown`][Self::Unknown] variant for forward compatibility."] + #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] + #[repr(i32)] + #[allow(non_camel_case_types)] + pub enum CanvasItemNotification { + TRANSFORM_CHANGED = 2000i32, LOCAL_TRANSFORM_CHANGED = 35i32, DRAW = 30i32, VISIBILITY_CHANGED = 31i32, ENTER_CANVAS = 32i32, EXIT_CANVAS = 33i32, WORLD_2D_CHANGED = 36i32, ENTER_TREE = 10i32, EXIT_TREE = 11i32, MOVED_IN_PARENT = 12i32, READY = 13i32, PAUSED = 14i32, UNPAUSED = 15i32, PHYSICS_PROCESS = 16i32, PROCESS = 17i32, PARENTED = 18i32, UNPARENTED = 19i32, SCENE_INSTANTIATED = 20i32, DRAG_BEGIN = 21i32, DRAG_END = 22i32, PATH_RENAMED = 23i32, CHILD_ORDER_CHANGED = 24i32, INTERNAL_PROCESS = 25i32, INTERNAL_PHYSICS_PROCESS = 26i32, POST_ENTER_TREE = 27i32, DISABLED = 28i32, ENABLED = 29i32, RESET_PHYSICS_INTERPOLATION = 2001i32, EDITOR_PRE_SAVE = 9001i32, EDITOR_POST_SAVE = 9002i32, WM_MOUSE_ENTER = 1002i32, WM_MOUSE_EXIT = 1003i32, WM_WINDOW_FOCUS_IN = 1004i32, WM_WINDOW_FOCUS_OUT = 1005i32, WM_CLOSE_REQUEST = 1006i32, WM_GO_BACK_REQUEST = 1007i32, WM_SIZE_CHANGED = 1008i32, WM_DPI_CHANGE = 1009i32, VP_MOUSE_ENTER = 1010i32, VP_MOUSE_EXIT = 1011i32, OS_MEMORY_WARNING = 2009i32, TRANSLATION_CHANGED = 2010i32, WM_ABOUT = 2011i32, CRASH = 2012i32, OS_IME_UPDATE = 2013i32, APPLICATION_RESUMED = 2014i32, APPLICATION_PAUSED = 2015i32, APPLICATION_FOCUS_IN = 2016i32, APPLICATION_FOCUS_OUT = 2017i32, TEXT_SERVER_CHANGED = 2018i32, POSTINITIALIZE = 0i32, PREDELETE = 1i32, EXTENSION_RELOADED = 2i32, #[doc = r" Since Godot represents notifications as integers, it's always possible that a notification outside the known types"] + #[doc = r" is received. For example, the user can manually issue notifications through `Object::notify()`."] + #[doc = r""] + #[doc = r" This is also necessary if you develop an extension on a Godot version and want to be forward-compatible with newer"] + #[doc = r" versions. If Godot adds new notifications, they will be unknown to your extension, but you can still handle them."] + Unknown(i32), + } + impl From < i32 > for CanvasItemNotification { + #[doc = r" Always succeeds, mapping unknown integers to the `Unknown` variant."] + fn from(enumerator: i32) -> Self { + match enumerator { + 2000i32 => Self::TRANSFORM_CHANGED, 35i32 => Self::LOCAL_TRANSFORM_CHANGED, 30i32 => Self::DRAW, 31i32 => Self::VISIBILITY_CHANGED, 32i32 => Self::ENTER_CANVAS, 33i32 => Self::EXIT_CANVAS, 36i32 => Self::WORLD_2D_CHANGED, 10i32 => Self::ENTER_TREE, 11i32 => Self::EXIT_TREE, 12i32 => Self::MOVED_IN_PARENT, 13i32 => Self::READY, 14i32 => Self::PAUSED, 15i32 => Self::UNPAUSED, 16i32 => Self::PHYSICS_PROCESS, 17i32 => Self::PROCESS, 18i32 => Self::PARENTED, 19i32 => Self::UNPARENTED, 20i32 => Self::SCENE_INSTANTIATED, 21i32 => Self::DRAG_BEGIN, 22i32 => Self::DRAG_END, 23i32 => Self::PATH_RENAMED, 24i32 => Self::CHILD_ORDER_CHANGED, 25i32 => Self::INTERNAL_PROCESS, 26i32 => Self::INTERNAL_PHYSICS_PROCESS, 27i32 => Self::POST_ENTER_TREE, 28i32 => Self::DISABLED, 29i32 => Self::ENABLED, 2001i32 => Self::RESET_PHYSICS_INTERPOLATION, 9001i32 => Self::EDITOR_PRE_SAVE, 9002i32 => Self::EDITOR_POST_SAVE, 1002i32 => Self::WM_MOUSE_ENTER, 1003i32 => Self::WM_MOUSE_EXIT, 1004i32 => Self::WM_WINDOW_FOCUS_IN, 1005i32 => Self::WM_WINDOW_FOCUS_OUT, 1006i32 => Self::WM_CLOSE_REQUEST, 1007i32 => Self::WM_GO_BACK_REQUEST, 1008i32 => Self::WM_SIZE_CHANGED, 1009i32 => Self::WM_DPI_CHANGE, 1010i32 => Self::VP_MOUSE_ENTER, 1011i32 => Self::VP_MOUSE_EXIT, 2009i32 => Self::OS_MEMORY_WARNING, 2010i32 => Self::TRANSLATION_CHANGED, 2011i32 => Self::WM_ABOUT, 2012i32 => Self::CRASH, 2013i32 => Self::OS_IME_UPDATE, 2014i32 => Self::APPLICATION_RESUMED, 2015i32 => Self::APPLICATION_PAUSED, 2016i32 => Self::APPLICATION_FOCUS_IN, 2017i32 => Self::APPLICATION_FOCUS_OUT, 2018i32 => Self::TEXT_SERVER_CHANGED, 0i32 => Self::POSTINITIALIZE, 1i32 => Self::PREDELETE, 2i32 => Self::EXTENSION_RELOADED, other_int => Self::Unknown(other_int), + } + } + } + impl From < CanvasItemNotification > for i32 { + fn from(notification: CanvasItemNotification) -> i32 { + match notification { + CanvasItemNotification::TRANSFORM_CHANGED => 2000i32, CanvasItemNotification::LOCAL_TRANSFORM_CHANGED => 35i32, CanvasItemNotification::DRAW => 30i32, CanvasItemNotification::VISIBILITY_CHANGED => 31i32, CanvasItemNotification::ENTER_CANVAS => 32i32, CanvasItemNotification::EXIT_CANVAS => 33i32, CanvasItemNotification::WORLD_2D_CHANGED => 36i32, CanvasItemNotification::ENTER_TREE => 10i32, CanvasItemNotification::EXIT_TREE => 11i32, CanvasItemNotification::MOVED_IN_PARENT => 12i32, CanvasItemNotification::READY => 13i32, CanvasItemNotification::PAUSED => 14i32, CanvasItemNotification::UNPAUSED => 15i32, CanvasItemNotification::PHYSICS_PROCESS => 16i32, CanvasItemNotification::PROCESS => 17i32, CanvasItemNotification::PARENTED => 18i32, CanvasItemNotification::UNPARENTED => 19i32, CanvasItemNotification::SCENE_INSTANTIATED => 20i32, CanvasItemNotification::DRAG_BEGIN => 21i32, CanvasItemNotification::DRAG_END => 22i32, CanvasItemNotification::PATH_RENAMED => 23i32, CanvasItemNotification::CHILD_ORDER_CHANGED => 24i32, CanvasItemNotification::INTERNAL_PROCESS => 25i32, CanvasItemNotification::INTERNAL_PHYSICS_PROCESS => 26i32, CanvasItemNotification::POST_ENTER_TREE => 27i32, CanvasItemNotification::DISABLED => 28i32, CanvasItemNotification::ENABLED => 29i32, CanvasItemNotification::RESET_PHYSICS_INTERPOLATION => 2001i32, CanvasItemNotification::EDITOR_PRE_SAVE => 9001i32, CanvasItemNotification::EDITOR_POST_SAVE => 9002i32, CanvasItemNotification::WM_MOUSE_ENTER => 1002i32, CanvasItemNotification::WM_MOUSE_EXIT => 1003i32, CanvasItemNotification::WM_WINDOW_FOCUS_IN => 1004i32, CanvasItemNotification::WM_WINDOW_FOCUS_OUT => 1005i32, CanvasItemNotification::WM_CLOSE_REQUEST => 1006i32, CanvasItemNotification::WM_GO_BACK_REQUEST => 1007i32, CanvasItemNotification::WM_SIZE_CHANGED => 1008i32, CanvasItemNotification::WM_DPI_CHANGE => 1009i32, CanvasItemNotification::VP_MOUSE_ENTER => 1010i32, CanvasItemNotification::VP_MOUSE_EXIT => 1011i32, CanvasItemNotification::OS_MEMORY_WARNING => 2009i32, CanvasItemNotification::TRANSLATION_CHANGED => 2010i32, CanvasItemNotification::WM_ABOUT => 2011i32, CanvasItemNotification::CRASH => 2012i32, CanvasItemNotification::OS_IME_UPDATE => 2013i32, CanvasItemNotification::APPLICATION_RESUMED => 2014i32, CanvasItemNotification::APPLICATION_PAUSED => 2015i32, CanvasItemNotification::APPLICATION_FOCUS_IN => 2016i32, CanvasItemNotification::APPLICATION_FOCUS_OUT => 2017i32, CanvasItemNotification::TEXT_SERVER_CHANGED => 2018i32, CanvasItemNotification::POSTINITIALIZE => 0i32, CanvasItemNotification::PREDELETE => 1i32, CanvasItemNotification::EXTENSION_RELOADED => 2i32, CanvasItemNotification::Unknown(int) => int, + } + } + } + impl CanvasItem { + pub fn get_canvas_item(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1676usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_canvas_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visible(&mut self, visible: bool,) { + type CallSig = ((), bool); + let args = (visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1677usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_visible(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1678usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "is_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_visible_in_tree(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1679usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "is_visible_in_tree", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn show(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1680usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "show", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn hide(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1681usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "hide", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn queue_redraw(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1682usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "queue_redraw", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn move_to_front(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1683usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "move_to_front", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_as_top_level(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1684usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_as_top_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_set_as_top_level(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1685usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "is_set_as_top_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_light_mask(&mut self, light_mask: i32,) { + type CallSig = ((), i32); + let args = (light_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1686usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_light_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_light_mask(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1687usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_light_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_modulate(&mut self, modulate: Color,) { + type CallSig = ((), Color); + let args = (modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1688usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_modulate(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1689usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_self_modulate(&mut self, self_modulate: Color,) { + type CallSig = ((), Color); + let args = (self_modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1690usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_self_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_self_modulate(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1691usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_self_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_z_index(&mut self, z_index: i32,) { + type CallSig = ((), i32); + let args = (z_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1692usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_z_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_z_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1693usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_z_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_z_as_relative(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1694usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_z_as_relative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_z_relative(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1695usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "is_z_relative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_y_sort_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1696usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_y_sort_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_y_sort_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1697usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "is_y_sort_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_behind_parent(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1698usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_draw_behind_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_draw_behind_parent_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1699usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "is_draw_behind_parent_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn draw_line_full(&mut self, from: Vector2, to: Vector2, color: Color, width: f32, antialiased: bool,) { + type CallSig = ((), Vector2, Vector2, Color, f32, bool); + let args = (from, to, color, width, antialiased,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1700usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_line", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_line_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_line(&mut self, from: Vector2, to: Vector2, color: Color,) { + self.draw_line_ex(from, to, color,) . done() + } + #[inline] + pub fn draw_line_ex < 'a > (&'a mut self, from: Vector2, to: Vector2, color: Color,) -> ExDrawLine < 'a > { + ExDrawLine::new(self, from, to, color,) + } + pub(crate) fn draw_dashed_line_full(&mut self, from: Vector2, to: Vector2, color: Color, width: f32, dash: f32, aligned: bool, antialiased: bool,) { + type CallSig = ((), Vector2, Vector2, Color, f32, f32, bool, bool); + let args = (from, to, color, width, dash, aligned, antialiased,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1701usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_dashed_line", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_dashed_line_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_dashed_line(&mut self, from: Vector2, to: Vector2, color: Color,) { + self.draw_dashed_line_ex(from, to, color,) . done() + } + #[inline] + pub fn draw_dashed_line_ex < 'a > (&'a mut self, from: Vector2, to: Vector2, color: Color,) -> ExDrawDashedLine < 'a > { + ExDrawDashedLine::new(self, from, to, color,) + } + pub(crate) fn draw_polyline_full(&mut self, points: RefArg < PackedVector2Array >, color: Color, width: f32, antialiased: bool,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >, Color, f32, bool); + let args = (points, color, width, antialiased,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1702usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_polyline", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_polyline_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_polyline(&mut self, points: &PackedVector2Array, color: Color,) { + self.draw_polyline_ex(points, color,) . done() + } + #[inline] + pub fn draw_polyline_ex < 'a > (&'a mut self, points: &'a PackedVector2Array, color: Color,) -> ExDrawPolyline < 'a > { + ExDrawPolyline::new(self, points, color,) + } + pub(crate) fn draw_polyline_colors_full(&mut self, points: RefArg < PackedVector2Array >, colors: RefArg < PackedColorArray >, width: f32, antialiased: bool,) { + type CallSig < 'a0, 'a1, > = ((), RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedColorArray >, f32, bool); + let args = (points, colors, width, antialiased,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1703usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_polyline_colors", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_polyline_colors_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_polyline_colors(&mut self, points: &PackedVector2Array, colors: &PackedColorArray,) { + self.draw_polyline_colors_ex(points, colors,) . done() + } + #[inline] + pub fn draw_polyline_colors_ex < 'a > (&'a mut self, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> ExDrawPolylineColors < 'a > { + ExDrawPolylineColors::new(self, points, colors,) + } + pub(crate) fn draw_arc_full(&mut self, center: Vector2, radius: f32, start_angle: f32, end_angle: f32, point_count: i32, color: Color, width: f32, antialiased: bool,) { + type CallSig = ((), Vector2, f32, f32, f32, i32, Color, f32, bool); + let args = (center, radius, start_angle, end_angle, point_count, color, width, antialiased,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1704usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_arc", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_arc_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_arc(&mut self, center: Vector2, radius: f32, start_angle: f32, end_angle: f32, point_count: i32, color: Color,) { + self.draw_arc_ex(center, radius, start_angle, end_angle, point_count, color,) . done() + } + #[inline] + pub fn draw_arc_ex < 'a > (&'a mut self, center: Vector2, radius: f32, start_angle: f32, end_angle: f32, point_count: i32, color: Color,) -> ExDrawArc < 'a > { + ExDrawArc::new(self, center, radius, start_angle, end_angle, point_count, color,) + } + pub(crate) fn draw_multiline_full(&mut self, points: RefArg < PackedVector2Array >, color: Color, width: f32, antialiased: bool,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >, Color, f32, bool); + let args = (points, color, width, antialiased,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1705usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_multiline", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_multiline_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_multiline(&mut self, points: &PackedVector2Array, color: Color,) { + self.draw_multiline_ex(points, color,) . done() + } + #[inline] + pub fn draw_multiline_ex < 'a > (&'a mut self, points: &'a PackedVector2Array, color: Color,) -> ExDrawMultiline < 'a > { + ExDrawMultiline::new(self, points, color,) + } + pub(crate) fn draw_multiline_colors_full(&mut self, points: RefArg < PackedVector2Array >, colors: RefArg < PackedColorArray >, width: f32, antialiased: bool,) { + type CallSig < 'a0, 'a1, > = ((), RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedColorArray >, f32, bool); + let args = (points, colors, width, antialiased,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1706usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_multiline_colors", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_multiline_colors_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_multiline_colors(&mut self, points: &PackedVector2Array, colors: &PackedColorArray,) { + self.draw_multiline_colors_ex(points, colors,) . done() + } + #[inline] + pub fn draw_multiline_colors_ex < 'a > (&'a mut self, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> ExDrawMultilineColors < 'a > { + ExDrawMultilineColors::new(self, points, colors,) + } + pub(crate) fn draw_rect_full(&mut self, rect: Rect2, color: Color, filled: bool, width: f32, antialiased: bool,) { + type CallSig = ((), Rect2, Color, bool, f32, bool); + let args = (rect, color, filled, width, antialiased,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1707usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_rect", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_rect_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_rect(&mut self, rect: Rect2, color: Color,) { + self.draw_rect_ex(rect, color,) . done() + } + #[inline] + pub fn draw_rect_ex < 'a > (&'a mut self, rect: Rect2, color: Color,) -> ExDrawRect < 'a > { + ExDrawRect::new(self, rect, color,) + } + pub(crate) fn draw_circle_full(&mut self, position: Vector2, radius: f32, color: Color, filled: bool, width: f32, antialiased: bool,) { + type CallSig = ((), Vector2, f32, Color, bool, f32, bool); + let args = (position, radius, color, filled, width, antialiased,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1708usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_circle", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_circle_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_circle(&mut self, position: Vector2, radius: f32, color: Color,) { + self.draw_circle_ex(position, radius, color,) . done() + } + #[inline] + pub fn draw_circle_ex < 'a > (&'a mut self, position: Vector2, radius: f32, color: Color,) -> ExDrawCircle < 'a > { + ExDrawCircle::new(self, position, radius, color,) + } + pub(crate) fn draw_texture_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, position: Vector2, modulate: Color,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >, Vector2, Color); + let args = (texture, position, modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1709usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_texture", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_texture_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, position: Vector2,) { + self.draw_texture_ex(texture, position,) . done() + } + #[inline] + pub fn draw_texture_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, position: Vector2,) -> ExDrawTexture < 'a > { + ExDrawTexture::new(self, texture, position,) + } + pub(crate) fn draw_texture_rect_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >, Rect2, bool, Color, bool); + let args = (texture, rect, tile, modulate, transpose,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1710usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_texture_rect", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_texture_rect_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_texture_rect(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, tile: bool,) { + self.draw_texture_rect_ex(texture, rect, tile,) . done() + } + #[inline] + pub fn draw_texture_rect_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, tile: bool,) -> ExDrawTextureRect < 'a > { + ExDrawTextureRect::new(self, texture, rect, tile,) + } + pub(crate) fn draw_texture_rect_region_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >, Rect2, Rect2, Color, bool, bool); + let args = (texture, rect, src_rect, modulate, transpose, clip_uv,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1711usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_texture_rect_region", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_texture_rect_region_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_texture_rect_region(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2,) { + self.draw_texture_rect_region_ex(texture, rect, src_rect,) . done() + } + #[inline] + pub fn draw_texture_rect_region_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2,) -> ExDrawTextureRectRegion < 'a > { + ExDrawTextureRectRegion::new(self, texture, rect, src_rect,) + } + pub(crate) fn draw_msdf_texture_rect_region_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2, modulate: Color, outline: f64, pixel_range: f64, scale: f64,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >, Rect2, Rect2, Color, f64, f64, f64); + let args = (texture, rect, src_rect, modulate, outline, pixel_range, scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1712usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_msdf_texture_rect_region", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_msdf_texture_rect_region_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_msdf_texture_rect_region(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2,) { + self.draw_msdf_texture_rect_region_ex(texture, rect, src_rect,) . done() + } + #[inline] + pub fn draw_msdf_texture_rect_region_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2,) -> ExDrawMsdfTextureRectRegion < 'a > { + ExDrawMsdfTextureRectRegion::new(self, texture, rect, src_rect,) + } + pub(crate) fn draw_lcd_texture_rect_region_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2, modulate: Color,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >, Rect2, Rect2, Color); + let args = (texture, rect, src_rect, modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1713usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_lcd_texture_rect_region", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_lcd_texture_rect_region_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_lcd_texture_rect_region(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2,) { + self.draw_lcd_texture_rect_region_ex(texture, rect, src_rect,) . done() + } + #[inline] + pub fn draw_lcd_texture_rect_region_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2,) -> ExDrawLcdTextureRectRegion < 'a > { + ExDrawLcdTextureRectRegion::new(self, texture, rect, src_rect,) + } + pub fn draw_style_box(&mut self, style_box: impl AsObjectArg < crate::classes::StyleBox >, rect: Rect2,) { + type CallSig = ((), ObjectArg < crate::classes::StyleBox >, Rect2); + let args = (style_box.as_object_arg(), rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1714usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_style_box", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn draw_primitive_full(&mut self, points: RefArg < PackedVector2Array >, colors: RefArg < PackedColorArray >, uvs: RefArg < PackedVector2Array >, texture: ObjectArg < crate::classes::Texture2D >,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedColorArray >, RefArg < 'a2, PackedVector2Array >, ObjectArg < crate::classes::Texture2D >); + let args = (points, colors, uvs, texture,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1715usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_primitive", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_primitive_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_primitive(&mut self, points: &PackedVector2Array, colors: &PackedColorArray, uvs: &PackedVector2Array,) { + self.draw_primitive_ex(points, colors, uvs,) . done() + } + #[inline] + pub fn draw_primitive_ex < 'a > (&'a mut self, points: &'a PackedVector2Array, colors: &'a PackedColorArray, uvs: &'a PackedVector2Array,) -> ExDrawPrimitive < 'a > { + ExDrawPrimitive::new(self, points, colors, uvs,) + } + pub(crate) fn draw_polygon_full(&mut self, points: RefArg < PackedVector2Array >, colors: RefArg < PackedColorArray >, uvs: RefArg < PackedVector2Array >, texture: ObjectArg < crate::classes::Texture2D >,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedColorArray >, RefArg < 'a2, PackedVector2Array >, ObjectArg < crate::classes::Texture2D >); + let args = (points, colors, uvs, texture,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1716usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_polygon_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_polygon(&mut self, points: &PackedVector2Array, colors: &PackedColorArray,) { + self.draw_polygon_ex(points, colors,) . done() + } + #[inline] + pub fn draw_polygon_ex < 'a > (&'a mut self, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> ExDrawPolygon < 'a > { + ExDrawPolygon::new(self, points, colors,) + } + pub(crate) fn draw_colored_polygon_full(&mut self, points: RefArg < PackedVector2Array >, color: Color, uvs: RefArg < PackedVector2Array >, texture: ObjectArg < crate::classes::Texture2D >,) { + type CallSig < 'a0, 'a1, > = ((), RefArg < 'a0, PackedVector2Array >, Color, RefArg < 'a1, PackedVector2Array >, ObjectArg < crate::classes::Texture2D >); + let args = (points, color, uvs, texture,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1717usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_colored_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_colored_polygon_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_colored_polygon(&mut self, points: &PackedVector2Array, color: Color,) { + self.draw_colored_polygon_ex(points, color,) . done() + } + #[inline] + pub fn draw_colored_polygon_ex < 'a > (&'a mut self, points: &'a PackedVector2Array, color: Color,) -> ExDrawColoredPolygon < 'a > { + ExDrawColoredPolygon::new(self, points, color,) + } + pub(crate) fn draw_string_full(&self, font: ObjectArg < crate::classes::Font >, pos: Vector2, text: CowArg < GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, modulate: Color, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Font >, Vector2, CowArg < 'a0, GString >, crate::global::HorizontalAlignment, f32, i32, Color, crate::classes::text_server::JustificationFlag, crate::classes::text_server::Direction, crate::classes::text_server::Orientation); + let args = (font, pos, text, alignment, width, font_size, modulate, justification_flags, direction, orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1718usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_string", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_string_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_string(&self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString >,) { + self.draw_string_ex(font, pos, text,) . done() + } + #[inline] + pub fn draw_string_ex < 'a > (&'a self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString > + 'a,) -> ExDrawString < 'a > { + ExDrawString::new(self, font, pos, text,) + } + pub(crate) fn draw_multiline_string_full(&self, font: ObjectArg < crate::classes::Font >, pos: Vector2, text: CowArg < GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, max_lines: i32, modulate: Color, brk_flags: crate::classes::text_server::LineBreakFlag, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Font >, Vector2, CowArg < 'a0, GString >, crate::global::HorizontalAlignment, f32, i32, i32, Color, crate::classes::text_server::LineBreakFlag, crate::classes::text_server::JustificationFlag, crate::classes::text_server::Direction, crate::classes::text_server::Orientation); + let args = (font, pos, text, alignment, width, font_size, max_lines, modulate, brk_flags, justification_flags, direction, orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1719usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_multiline_string", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_multiline_string_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_multiline_string(&self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString >,) { + self.draw_multiline_string_ex(font, pos, text,) . done() + } + #[inline] + pub fn draw_multiline_string_ex < 'a > (&'a self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString > + 'a,) -> ExDrawMultilineString < 'a > { + ExDrawMultilineString::new(self, font, pos, text,) + } + pub(crate) fn draw_string_outline_full(&self, font: ObjectArg < crate::classes::Font >, pos: Vector2, text: CowArg < GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, size: i32, modulate: Color, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Font >, Vector2, CowArg < 'a0, GString >, crate::global::HorizontalAlignment, f32, i32, i32, Color, crate::classes::text_server::JustificationFlag, crate::classes::text_server::Direction, crate::classes::text_server::Orientation); + let args = (font, pos, text, alignment, width, font_size, size, modulate, justification_flags, direction, orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1720usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_string_outline", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_string_outline_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_string_outline(&self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString >,) { + self.draw_string_outline_ex(font, pos, text,) . done() + } + #[inline] + pub fn draw_string_outline_ex < 'a > (&'a self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString > + 'a,) -> ExDrawStringOutline < 'a > { + ExDrawStringOutline::new(self, font, pos, text,) + } + pub(crate) fn draw_multiline_string_outline_full(&self, font: ObjectArg < crate::classes::Font >, pos: Vector2, text: CowArg < GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, max_lines: i32, size: i32, modulate: Color, brk_flags: crate::classes::text_server::LineBreakFlag, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Font >, Vector2, CowArg < 'a0, GString >, crate::global::HorizontalAlignment, f32, i32, i32, i32, Color, crate::classes::text_server::LineBreakFlag, crate::classes::text_server::JustificationFlag, crate::classes::text_server::Direction, crate::classes::text_server::Orientation); + let args = (font, pos, text, alignment, width, font_size, max_lines, size, modulate, brk_flags, justification_flags, direction, orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1721usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_multiline_string_outline", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_multiline_string_outline_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_multiline_string_outline(&self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString >,) { + self.draw_multiline_string_outline_ex(font, pos, text,) . done() + } + #[inline] + pub fn draw_multiline_string_outline_ex < 'a > (&'a self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString > + 'a,) -> ExDrawMultilineStringOutline < 'a > { + ExDrawMultilineStringOutline::new(self, font, pos, text,) + } + pub(crate) fn draw_char_full(&self, font: ObjectArg < crate::classes::Font >, pos: Vector2, char: CowArg < GString >, font_size: i32, modulate: Color,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Font >, Vector2, CowArg < 'a0, GString >, i32, Color); + let args = (font, pos, char, font_size, modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1722usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_char", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_char_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_char(&self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, char: impl AsArg < GString >,) { + self.draw_char_ex(font, pos, char,) . done() + } + #[inline] + pub fn draw_char_ex < 'a > (&'a self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, char: impl AsArg < GString > + 'a,) -> ExDrawChar < 'a > { + ExDrawChar::new(self, font, pos, char,) + } + pub(crate) fn draw_char_outline_full(&self, font: ObjectArg < crate::classes::Font >, pos: Vector2, char: CowArg < GString >, font_size: i32, size: i32, modulate: Color,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Font >, Vector2, CowArg < 'a0, GString >, i32, i32, Color); + let args = (font, pos, char, font_size, size, modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1723usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_char_outline", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_char_outline_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_char_outline(&self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, char: impl AsArg < GString >,) { + self.draw_char_outline_ex(font, pos, char,) . done() + } + #[inline] + pub fn draw_char_outline_ex < 'a > (&'a self, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, char: impl AsArg < GString > + 'a,) -> ExDrawCharOutline < 'a > { + ExDrawCharOutline::new(self, font, pos, char,) + } + pub(crate) fn draw_mesh_full(&mut self, mesh: ObjectArg < crate::classes::Mesh >, texture: ObjectArg < crate::classes::Texture2D >, transform: Transform2D, modulate: Color,) { + type CallSig = ((), ObjectArg < crate::classes::Mesh >, ObjectArg < crate::classes::Texture2D >, Transform2D, Color); + let args = (mesh, texture, transform, modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1724usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_mesh_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_mesh(&mut self, mesh: impl AsObjectArg < crate::classes::Mesh >, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + self.draw_mesh_ex(mesh, texture,) . done() + } + #[inline] + pub fn draw_mesh_ex < 'a > (&'a mut self, mesh: impl AsObjectArg < crate::classes::Mesh >, texture: impl AsObjectArg < crate::classes::Texture2D >,) -> ExDrawMesh < 'a > { + ExDrawMesh::new(self, mesh, texture,) + } + pub fn draw_multimesh(&mut self, multimesh: impl AsObjectArg < crate::classes::MultiMesh >, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::MultiMesh >, ObjectArg < crate::classes::Texture2D >); + let args = (multimesh.as_object_arg(), texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1725usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_multimesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn draw_set_transform_full(&mut self, position: Vector2, rotation: f32, scale: Vector2,) { + type CallSig = ((), Vector2, f32, Vector2); + let args = (position, rotation, scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1726usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_set_transform_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_set_transform(&mut self, position: Vector2,) { + self.draw_set_transform_ex(position,) . done() + } + #[inline] + pub fn draw_set_transform_ex < 'a > (&'a mut self, position: Vector2,) -> ExDrawSetTransform < 'a > { + ExDrawSetTransform::new(self, position,) + } + pub fn draw_set_transform_matrix(&mut self, xform: Transform2D,) { + type CallSig = ((), Transform2D); + let args = (xform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1727usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_set_transform_matrix", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn draw_animation_slice_full(&mut self, animation_length: f64, slice_begin: f64, slice_end: f64, offset: f64,) { + type CallSig = ((), f64, f64, f64, f64); + let args = (animation_length, slice_begin, slice_end, offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1728usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_animation_slice", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_animation_slice_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_animation_slice(&mut self, animation_length: f64, slice_begin: f64, slice_end: f64,) { + self.draw_animation_slice_ex(animation_length, slice_begin, slice_end,) . done() + } + #[inline] + pub fn draw_animation_slice_ex < 'a > (&'a mut self, animation_length: f64, slice_begin: f64, slice_end: f64,) -> ExDrawAnimationSlice < 'a > { + ExDrawAnimationSlice::new(self, animation_length, slice_begin, slice_end,) + } + pub fn draw_end_animation(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1729usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "draw_end_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transform(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1730usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_transform(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1731usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_global_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_transform_with_canvas(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1732usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_global_transform_with_canvas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_viewport_transform(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1733usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_viewport_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_viewport_rect(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1734usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_viewport_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_canvas_transform(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1735usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_canvas_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_screen_transform(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1736usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_screen_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_local_mouse_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1737usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_local_mouse_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_mouse_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1738usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_global_mouse_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_canvas(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1739usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_canvas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_canvas_layer_node(&self,) -> Option < Gd < crate::classes::CanvasLayer > > { + type CallSig = (Option < Gd < crate::classes::CanvasLayer > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1740usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_canvas_layer_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_world_2d(&self,) -> Option < Gd < crate::classes::World2D > > { + type CallSig = (Option < Gd < crate::classes::World2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1741usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_world_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1742usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1743usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_parent_material(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1744usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_use_parent_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_parent_material(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1745usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_use_parent_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_notify_local_transform(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1746usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_notify_local_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_local_transform_notification_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1747usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "is_local_transform_notification_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_notify_transform(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1748usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_notify_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_transform_notification_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1749usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "is_transform_notification_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_update_transform(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1750usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "force_update_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_canvas_position_local(&self, screen_point: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (screen_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1751usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "make_canvas_position_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_input_local(&self, event: impl AsObjectArg < crate::classes::InputEvent >,) -> Option < Gd < crate::classes::InputEvent > > { + type CallSig = (Option < Gd < crate::classes::InputEvent > >, ObjectArg < crate::classes::InputEvent >); + let args = (event.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1752usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "make_input_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_layer(&mut self, layer: u32,) { + type CallSig = ((), u32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1753usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_visibility_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_layer(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1754usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_visibility_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_layer_bit(&mut self, layer: u32, enabled: bool,) { + type CallSig = ((), u32, bool); + let args = (layer, enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1755usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_visibility_layer_bit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_layer_bit(&self, layer: u32,) -> bool { + type CallSig = (bool, u32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1756usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_visibility_layer_bit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_filter(&mut self, mode: crate::classes::canvas_item::TextureFilter,) { + type CallSig = ((), crate::classes::canvas_item::TextureFilter); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1757usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_texture_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_filter(&self,) -> crate::classes::canvas_item::TextureFilter { + type CallSig = (crate::classes::canvas_item::TextureFilter,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1758usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_texture_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_repeat(&mut self, mode: crate::classes::canvas_item::TextureRepeat,) { + type CallSig = ((), crate::classes::canvas_item::TextureRepeat); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1759usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_texture_repeat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_repeat(&self,) -> crate::classes::canvas_item::TextureRepeat { + type CallSig = (crate::classes::canvas_item::TextureRepeat,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1760usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_texture_repeat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clip_children_mode(&mut self, mode: crate::classes::canvas_item::ClipChildrenMode,) { + type CallSig = ((), crate::classes::canvas_item::ClipChildrenMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1761usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "set_clip_children_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_clip_children_mode(&self,) -> crate::classes::canvas_item::ClipChildrenMode { + type CallSig = (crate::classes::canvas_item::ClipChildrenMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1762usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItem", "get_clip_children_mode", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" ⚠️ Sends a Godot notification to all classes inherited by the object."] + #[doc = r""] + #[doc = r" Triggers calls to `on_notification()`, and depending on the notification, also to Godot's lifecycle callbacks such as `ready()`."] + #[doc = r""] + #[doc = r" Starts from the highest ancestor (the `Object` class) and goes down the hierarchy."] + #[doc = r" See also [Godot docs for `Object::notification()`](https://docs.godotengine.org/en/latest/classes/class_object.html#id3)."] + #[doc = r""] + #[doc = r" # Panics"] + #[doc = r""] + #[doc = r" If you call this method on a user-defined object while holding a `GdRef` or `GdMut` guard on the instance, you will encounter"] + #[doc = r" a panic. The reason is that the receiving virtual method `on_notification()` acquires a `GdMut` lock dynamically, which must"] + #[doc = r" be exclusive."] + pub fn notify(&mut self, what: CanvasItemNotification) { + self.notification(i32::from(what), false); + + } + #[doc = r" ⚠️ Like [`Self::notify()`], but starts at the most-derived class and goes up the hierarchy."] + #[doc = r""] + #[doc = r" See docs of that method, including the panics."] + pub fn notify_reversed(&mut self, what: CanvasItemNotification) { + self.notification(i32::from(what), true); + + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub(crate) const NOTIFICATION_TRANSFORM_CHANGED: i32 = 2000i32; + pub(crate) const NOTIFICATION_LOCAL_TRANSFORM_CHANGED: i32 = 35i32; + pub(crate) const NOTIFICATION_DRAW: i32 = 30i32; + pub(crate) const NOTIFICATION_VISIBILITY_CHANGED: i32 = 31i32; + pub(crate) const NOTIFICATION_ENTER_CANVAS: i32 = 32i32; + pub(crate) const NOTIFICATION_EXIT_CANVAS: i32 = 33i32; + pub(crate) const NOTIFICATION_WORLD_2D_CHANGED: i32 = 36i32; + + } + impl crate::obj::GodotClass for CanvasItem { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CanvasItem")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CanvasItem { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CanvasItem { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CanvasItem { + + } + impl std::ops::Deref for CanvasItem { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CanvasItem { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CanvasItem`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CanvasItem { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_line_ex`][super::CanvasItem::draw_line_ex]."] +#[must_use] +pub struct ExDrawLine < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, from: Vector2, to: Vector2, color: Color, width: f32, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawLine < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, from: Vector2, to: Vector2, color: Color,) -> Self { + let width = - 1f32; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from: from, to: to, color: color, width: width, antialiased: antialiased, + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, from, to, color, width, antialiased, + } + = self; + re_export::CanvasItem::draw_line_full(surround_object, from, to, color, width, antialiased,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_dashed_line_ex`][super::CanvasItem::draw_dashed_line_ex]."] +#[must_use] +pub struct ExDrawDashedLine < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, from: Vector2, to: Vector2, color: Color, width: f32, dash: f32, aligned: bool, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawDashedLine < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, from: Vector2, to: Vector2, color: Color,) -> Self { + let width = - 1f32; + let dash = 2f32; + let aligned = true; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from: from, to: to, color: color, width: width, dash: dash, aligned: aligned, antialiased: antialiased, + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn dash(self, dash: f32) -> Self { + Self { + dash: dash, .. self + } + } + #[inline] + pub fn aligned(self, aligned: bool) -> Self { + Self { + aligned: aligned, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, from, to, color, width, dash, aligned, antialiased, + } + = self; + re_export::CanvasItem::draw_dashed_line_full(surround_object, from, to, color, width, dash, aligned, antialiased,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_polyline_ex`][super::CanvasItem::draw_polyline_ex]."] +#[must_use] +pub struct ExDrawPolyline < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, points: CowArg < 'a, PackedVector2Array >, color: Color, width: f32, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawPolyline < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, points: &'a PackedVector2Array, color: Color,) -> Self { + let width = - 1f32; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, points: CowArg::Borrowed(points), color: color, width: width, antialiased: antialiased, + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, points, color, width, antialiased, + } + = self; + re_export::CanvasItem::draw_polyline_full(surround_object, points.cow_as_arg(), color, width, antialiased,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_polyline_colors_ex`][super::CanvasItem::draw_polyline_colors_ex]."] +#[must_use] +pub struct ExDrawPolylineColors < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, points: CowArg < 'a, PackedVector2Array >, colors: CowArg < 'a, PackedColorArray >, width: f32, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawPolylineColors < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> Self { + let width = - 1f32; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, points: CowArg::Borrowed(points), colors: CowArg::Borrowed(colors), width: width, antialiased: antialiased, + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, points, colors, width, antialiased, + } + = self; + re_export::CanvasItem::draw_polyline_colors_full(surround_object, points.cow_as_arg(), colors.cow_as_arg(), width, antialiased,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_arc_ex`][super::CanvasItem::draw_arc_ex]."] +#[must_use] +pub struct ExDrawArc < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, center: Vector2, radius: f32, start_angle: f32, end_angle: f32, point_count: i32, color: Color, width: f32, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawArc < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, center: Vector2, radius: f32, start_angle: f32, end_angle: f32, point_count: i32, color: Color,) -> Self { + let width = - 1f32; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, center: center, radius: radius, start_angle: start_angle, end_angle: end_angle, point_count: point_count, color: color, width: width, antialiased: antialiased, + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, center, radius, start_angle, end_angle, point_count, color, width, antialiased, + } + = self; + re_export::CanvasItem::draw_arc_full(surround_object, center, radius, start_angle, end_angle, point_count, color, width, antialiased,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_multiline_ex`][super::CanvasItem::draw_multiline_ex]."] +#[must_use] +pub struct ExDrawMultiline < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, points: CowArg < 'a, PackedVector2Array >, color: Color, width: f32, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawMultiline < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, points: &'a PackedVector2Array, color: Color,) -> Self { + let width = - 1f32; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, points: CowArg::Borrowed(points), color: color, width: width, antialiased: antialiased, + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, points, color, width, antialiased, + } + = self; + re_export::CanvasItem::draw_multiline_full(surround_object, points.cow_as_arg(), color, width, antialiased,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_multiline_colors_ex`][super::CanvasItem::draw_multiline_colors_ex]."] +#[must_use] +pub struct ExDrawMultilineColors < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, points: CowArg < 'a, PackedVector2Array >, colors: CowArg < 'a, PackedColorArray >, width: f32, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawMultilineColors < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> Self { + let width = - 1f32; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, points: CowArg::Borrowed(points), colors: CowArg::Borrowed(colors), width: width, antialiased: antialiased, + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, points, colors, width, antialiased, + } + = self; + re_export::CanvasItem::draw_multiline_colors_full(surround_object, points.cow_as_arg(), colors.cow_as_arg(), width, antialiased,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_rect_ex`][super::CanvasItem::draw_rect_ex]."] +#[must_use] +pub struct ExDrawRect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, rect: Rect2, color: Color, filled: bool, width: f32, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawRect < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, rect: Rect2, color: Color,) -> Self { + let filled = true; + let width = - 1f32; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rect: rect, color: color, filled: filled, width: width, antialiased: antialiased, + } + } + #[inline] + pub fn filled(self, filled: bool) -> Self { + Self { + filled: filled, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, rect, color, filled, width, antialiased, + } + = self; + re_export::CanvasItem::draw_rect_full(surround_object, rect, color, filled, width, antialiased,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_circle_ex`][super::CanvasItem::draw_circle_ex]."] +#[must_use] +pub struct ExDrawCircle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, position: Vector2, radius: f32, color: Color, filled: bool, width: f32, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawCircle < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, position: Vector2, radius: f32, color: Color,) -> Self { + let filled = true; + let width = - 1f32; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, radius: radius, color: color, filled: filled, width: width, antialiased: antialiased, + } + } + #[inline] + pub fn filled(self, filled: bool) -> Self { + Self { + filled: filled, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, radius, color, filled, width, antialiased, + } + = self; + re_export::CanvasItem::draw_circle_full(surround_object, position, radius, color, filled, width, antialiased,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_texture_ex`][super::CanvasItem::draw_texture_ex]."] +#[must_use] +pub struct ExDrawTexture < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, texture: ObjectCow < crate::classes::Texture2D >, position: Vector2, modulate: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawTexture < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, texture: impl AsObjectArg < crate::classes::Texture2D >, position: Vector2,) -> Self { + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), position: position, modulate: modulate, + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, position, modulate, + } + = self; + re_export::CanvasItem::draw_texture_full(surround_object, texture.cow_as_object_arg(), position, modulate,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_texture_rect_ex`][super::CanvasItem::draw_texture_rect_ex]."] +#[must_use] +pub struct ExDrawTextureRect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, texture: ObjectCow < crate::classes::Texture2D >, rect: Rect2, tile: bool, modulate: Color, transpose: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawTextureRect < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, tile: bool,) -> Self { + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let transpose = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), rect: rect, tile: tile, modulate: modulate, transpose: transpose, + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn transpose(self, transpose: bool) -> Self { + Self { + transpose: transpose, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, rect, tile, modulate, transpose, + } + = self; + re_export::CanvasItem::draw_texture_rect_full(surround_object, texture.cow_as_object_arg(), rect, tile, modulate, transpose,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_texture_rect_region_ex`][super::CanvasItem::draw_texture_rect_region_ex]."] +#[must_use] +pub struct ExDrawTextureRectRegion < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, texture: ObjectCow < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawTextureRectRegion < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2,) -> Self { + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let transpose = false; + let clip_uv = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), rect: rect, src_rect: src_rect, modulate: modulate, transpose: transpose, clip_uv: clip_uv, + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn transpose(self, transpose: bool) -> Self { + Self { + transpose: transpose, .. self + } + } + #[inline] + pub fn clip_uv(self, clip_uv: bool) -> Self { + Self { + clip_uv: clip_uv, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, rect, src_rect, modulate, transpose, clip_uv, + } + = self; + re_export::CanvasItem::draw_texture_rect_region_full(surround_object, texture.cow_as_object_arg(), rect, src_rect, modulate, transpose, clip_uv,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_msdf_texture_rect_region_ex`][super::CanvasItem::draw_msdf_texture_rect_region_ex]."] +#[must_use] +pub struct ExDrawMsdfTextureRectRegion < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, texture: ObjectCow < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2, modulate: Color, outline: f64, pixel_range: f64, scale: f64, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawMsdfTextureRectRegion < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2,) -> Self { + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let outline = 0f64; + let pixel_range = 4f64; + let scale = 1f64; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), rect: rect, src_rect: src_rect, modulate: modulate, outline: outline, pixel_range: pixel_range, scale: scale, + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn outline(self, outline: f64) -> Self { + Self { + outline: outline, .. self + } + } + #[inline] + pub fn pixel_range(self, pixel_range: f64) -> Self { + Self { + pixel_range: pixel_range, .. self + } + } + #[inline] + pub fn scale(self, scale: f64) -> Self { + Self { + scale: scale, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, rect, src_rect, modulate, outline, pixel_range, scale, + } + = self; + re_export::CanvasItem::draw_msdf_texture_rect_region_full(surround_object, texture.cow_as_object_arg(), rect, src_rect, modulate, outline, pixel_range, scale,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_lcd_texture_rect_region_ex`][super::CanvasItem::draw_lcd_texture_rect_region_ex]."] +#[must_use] +pub struct ExDrawLcdTextureRectRegion < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, texture: ObjectCow < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2, modulate: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawLcdTextureRectRegion < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, texture: impl AsObjectArg < crate::classes::Texture2D >, rect: Rect2, src_rect: Rect2,) -> Self { + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), rect: rect, src_rect: src_rect, modulate: modulate, + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, rect, src_rect, modulate, + } + = self; + re_export::CanvasItem::draw_lcd_texture_rect_region_full(surround_object, texture.cow_as_object_arg(), rect, src_rect, modulate,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_primitive_ex`][super::CanvasItem::draw_primitive_ex]."] +#[must_use] +pub struct ExDrawPrimitive < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, points: CowArg < 'a, PackedVector2Array >, colors: CowArg < 'a, PackedColorArray >, uvs: CowArg < 'a, PackedVector2Array >, texture: ObjectCow < crate::classes::Texture2D >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawPrimitive < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, points: &'a PackedVector2Array, colors: &'a PackedColorArray, uvs: &'a PackedVector2Array,) -> Self { + let texture = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, points: CowArg::Borrowed(points), colors: CowArg::Borrowed(colors), uvs: CowArg::Borrowed(uvs), texture: texture.consume_arg(), + } + } + #[inline] + pub fn texture(self, texture: impl AsObjectArg < crate::classes::Texture2D >) -> Self { + Self { + texture: texture.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, points, colors, uvs, texture, + } + = self; + re_export::CanvasItem::draw_primitive_full(surround_object, points.cow_as_arg(), colors.cow_as_arg(), uvs.cow_as_arg(), texture.cow_as_object_arg(),) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_polygon_ex`][super::CanvasItem::draw_polygon_ex]."] +#[must_use] +pub struct ExDrawPolygon < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, points: CowArg < 'a, PackedVector2Array >, colors: CowArg < 'a, PackedColorArray >, uvs: CowArg < 'a, PackedVector2Array >, texture: ObjectCow < crate::classes::Texture2D >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawPolygon < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> Self { + let uvs = PackedVector2Array::new(); + let texture = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, points: CowArg::Borrowed(points), colors: CowArg::Borrowed(colors), uvs: CowArg::Owned(uvs), texture: texture.consume_arg(), + } + } + #[inline] + pub fn uvs(self, uvs: &'a PackedVector2Array) -> Self { + Self { + uvs: CowArg::Borrowed(uvs), .. self + } + } + #[inline] + pub fn texture(self, texture: impl AsObjectArg < crate::classes::Texture2D >) -> Self { + Self { + texture: texture.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, points, colors, uvs, texture, + } + = self; + re_export::CanvasItem::draw_polygon_full(surround_object, points.cow_as_arg(), colors.cow_as_arg(), uvs.cow_as_arg(), texture.cow_as_object_arg(),) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_colored_polygon_ex`][super::CanvasItem::draw_colored_polygon_ex]."] +#[must_use] +pub struct ExDrawColoredPolygon < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, points: CowArg < 'a, PackedVector2Array >, color: Color, uvs: CowArg < 'a, PackedVector2Array >, texture: ObjectCow < crate::classes::Texture2D >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawColoredPolygon < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, points: &'a PackedVector2Array, color: Color,) -> Self { + let uvs = PackedVector2Array::new(); + let texture = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, points: CowArg::Borrowed(points), color: color, uvs: CowArg::Owned(uvs), texture: texture.consume_arg(), + } + } + #[inline] + pub fn uvs(self, uvs: &'a PackedVector2Array) -> Self { + Self { + uvs: CowArg::Borrowed(uvs), .. self + } + } + #[inline] + pub fn texture(self, texture: impl AsObjectArg < crate::classes::Texture2D >) -> Self { + Self { + texture: texture.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, points, color, uvs, texture, + } + = self; + re_export::CanvasItem::draw_colored_polygon_full(surround_object, points.cow_as_arg(), color, uvs.cow_as_arg(), texture.cow_as_object_arg(),) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_string_ex`][super::CanvasItem::draw_string_ex]."] +#[must_use] +pub struct ExDrawString < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::CanvasItem, font: ObjectCow < crate::classes::Font >, pos: Vector2, text: CowArg < 'a, GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, modulate: Color, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawString < 'a > { + fn new(surround_object: &'a re_export::CanvasItem, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString > + 'a,) -> Self { + let alignment = crate::obj::EngineEnum::from_ord(0); + let width = - 1f32; + let font_size = 16i32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let justification_flags = crate::obj::EngineBitfield::from_ord(3); + let direction = crate::obj::EngineEnum::from_ord(0); + let orientation = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font: font.consume_arg(), pos: pos, text: text.into_arg(), alignment: alignment, width: width, font_size: font_size, modulate: modulate, justification_flags: justification_flags, direction: direction, orientation: orientation, + } + } + #[inline] + pub fn alignment(self, alignment: crate::global::HorizontalAlignment) -> Self { + Self { + alignment: alignment, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn justification_flags(self, justification_flags: crate::classes::text_server::JustificationFlag) -> Self { + Self { + justification_flags: justification_flags, .. self + } + } + #[inline] + pub fn direction(self, direction: crate::classes::text_server::Direction) -> Self { + Self { + direction: direction, .. self + } + } + #[inline] + pub fn orientation(self, orientation: crate::classes::text_server::Orientation) -> Self { + Self { + orientation: orientation, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, font, pos, text, alignment, width, font_size, modulate, justification_flags, direction, orientation, + } + = self; + re_export::CanvasItem::draw_string_full(surround_object, font.cow_as_object_arg(), pos, text, alignment, width, font_size, modulate, justification_flags, direction, orientation,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_multiline_string_ex`][super::CanvasItem::draw_multiline_string_ex]."] +#[must_use] +pub struct ExDrawMultilineString < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::CanvasItem, font: ObjectCow < crate::classes::Font >, pos: Vector2, text: CowArg < 'a, GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, max_lines: i32, modulate: Color, brk_flags: crate::classes::text_server::LineBreakFlag, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawMultilineString < 'a > { + fn new(surround_object: &'a re_export::CanvasItem, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString > + 'a,) -> Self { + let alignment = crate::obj::EngineEnum::from_ord(0); + let width = - 1f32; + let font_size = 16i32; + let max_lines = - 1i32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let brk_flags = crate::obj::EngineBitfield::from_ord(3); + let justification_flags = crate::obj::EngineBitfield::from_ord(3); + let direction = crate::obj::EngineEnum::from_ord(0); + let orientation = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font: font.consume_arg(), pos: pos, text: text.into_arg(), alignment: alignment, width: width, font_size: font_size, max_lines: max_lines, modulate: modulate, brk_flags: brk_flags, justification_flags: justification_flags, direction: direction, orientation: orientation, + } + } + #[inline] + pub fn alignment(self, alignment: crate::global::HorizontalAlignment) -> Self { + Self { + alignment: alignment, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn max_lines(self, max_lines: i32) -> Self { + Self { + max_lines: max_lines, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn brk_flags(self, brk_flags: crate::classes::text_server::LineBreakFlag) -> Self { + Self { + brk_flags: brk_flags, .. self + } + } + #[inline] + pub fn justification_flags(self, justification_flags: crate::classes::text_server::JustificationFlag) -> Self { + Self { + justification_flags: justification_flags, .. self + } + } + #[inline] + pub fn direction(self, direction: crate::classes::text_server::Direction) -> Self { + Self { + direction: direction, .. self + } + } + #[inline] + pub fn orientation(self, orientation: crate::classes::text_server::Orientation) -> Self { + Self { + orientation: orientation, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, font, pos, text, alignment, width, font_size, max_lines, modulate, brk_flags, justification_flags, direction, orientation, + } + = self; + re_export::CanvasItem::draw_multiline_string_full(surround_object, font.cow_as_object_arg(), pos, text, alignment, width, font_size, max_lines, modulate, brk_flags, justification_flags, direction, orientation,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_string_outline_ex`][super::CanvasItem::draw_string_outline_ex]."] +#[must_use] +pub struct ExDrawStringOutline < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::CanvasItem, font: ObjectCow < crate::classes::Font >, pos: Vector2, text: CowArg < 'a, GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, size: i32, modulate: Color, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawStringOutline < 'a > { + fn new(surround_object: &'a re_export::CanvasItem, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString > + 'a,) -> Self { + let alignment = crate::obj::EngineEnum::from_ord(0); + let width = - 1f32; + let font_size = 16i32; + let size = 1i32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let justification_flags = crate::obj::EngineBitfield::from_ord(3); + let direction = crate::obj::EngineEnum::from_ord(0); + let orientation = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font: font.consume_arg(), pos: pos, text: text.into_arg(), alignment: alignment, width: width, font_size: font_size, size: size, modulate: modulate, justification_flags: justification_flags, direction: direction, orientation: orientation, + } + } + #[inline] + pub fn alignment(self, alignment: crate::global::HorizontalAlignment) -> Self { + Self { + alignment: alignment, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn size(self, size: i32) -> Self { + Self { + size: size, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn justification_flags(self, justification_flags: crate::classes::text_server::JustificationFlag) -> Self { + Self { + justification_flags: justification_flags, .. self + } + } + #[inline] + pub fn direction(self, direction: crate::classes::text_server::Direction) -> Self { + Self { + direction: direction, .. self + } + } + #[inline] + pub fn orientation(self, orientation: crate::classes::text_server::Orientation) -> Self { + Self { + orientation: orientation, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, font, pos, text, alignment, width, font_size, size, modulate, justification_flags, direction, orientation, + } + = self; + re_export::CanvasItem::draw_string_outline_full(surround_object, font.cow_as_object_arg(), pos, text, alignment, width, font_size, size, modulate, justification_flags, direction, orientation,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_multiline_string_outline_ex`][super::CanvasItem::draw_multiline_string_outline_ex]."] +#[must_use] +pub struct ExDrawMultilineStringOutline < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::CanvasItem, font: ObjectCow < crate::classes::Font >, pos: Vector2, text: CowArg < 'a, GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, max_lines: i32, size: i32, modulate: Color, brk_flags: crate::classes::text_server::LineBreakFlag, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawMultilineStringOutline < 'a > { + fn new(surround_object: &'a re_export::CanvasItem, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, text: impl AsArg < GString > + 'a,) -> Self { + let alignment = crate::obj::EngineEnum::from_ord(0); + let width = - 1f32; + let font_size = 16i32; + let max_lines = - 1i32; + let size = 1i32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let brk_flags = crate::obj::EngineBitfield::from_ord(3); + let justification_flags = crate::obj::EngineBitfield::from_ord(3); + let direction = crate::obj::EngineEnum::from_ord(0); + let orientation = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font: font.consume_arg(), pos: pos, text: text.into_arg(), alignment: alignment, width: width, font_size: font_size, max_lines: max_lines, size: size, modulate: modulate, brk_flags: brk_flags, justification_flags: justification_flags, direction: direction, orientation: orientation, + } + } + #[inline] + pub fn alignment(self, alignment: crate::global::HorizontalAlignment) -> Self { + Self { + alignment: alignment, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn max_lines(self, max_lines: i32) -> Self { + Self { + max_lines: max_lines, .. self + } + } + #[inline] + pub fn size(self, size: i32) -> Self { + Self { + size: size, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn brk_flags(self, brk_flags: crate::classes::text_server::LineBreakFlag) -> Self { + Self { + brk_flags: brk_flags, .. self + } + } + #[inline] + pub fn justification_flags(self, justification_flags: crate::classes::text_server::JustificationFlag) -> Self { + Self { + justification_flags: justification_flags, .. self + } + } + #[inline] + pub fn direction(self, direction: crate::classes::text_server::Direction) -> Self { + Self { + direction: direction, .. self + } + } + #[inline] + pub fn orientation(self, orientation: crate::classes::text_server::Orientation) -> Self { + Self { + orientation: orientation, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, font, pos, text, alignment, width, font_size, max_lines, size, modulate, brk_flags, justification_flags, direction, orientation, + } + = self; + re_export::CanvasItem::draw_multiline_string_outline_full(surround_object, font.cow_as_object_arg(), pos, text, alignment, width, font_size, max_lines, size, modulate, brk_flags, justification_flags, direction, orientation,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_char_ex`][super::CanvasItem::draw_char_ex]."] +#[must_use] +pub struct ExDrawChar < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::CanvasItem, font: ObjectCow < crate::classes::Font >, pos: Vector2, char: CowArg < 'a, GString >, font_size: i32, modulate: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawChar < 'a > { + fn new(surround_object: &'a re_export::CanvasItem, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, char: impl AsArg < GString > + 'a,) -> Self { + let font_size = 16i32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font: font.consume_arg(), pos: pos, char: char.into_arg(), font_size: font_size, modulate: modulate, + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, font, pos, char, font_size, modulate, + } + = self; + re_export::CanvasItem::draw_char_full(surround_object, font.cow_as_object_arg(), pos, char, font_size, modulate,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_char_outline_ex`][super::CanvasItem::draw_char_outline_ex]."] +#[must_use] +pub struct ExDrawCharOutline < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::CanvasItem, font: ObjectCow < crate::classes::Font >, pos: Vector2, char: CowArg < 'a, GString >, font_size: i32, size: i32, modulate: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawCharOutline < 'a > { + fn new(surround_object: &'a re_export::CanvasItem, font: impl AsObjectArg < crate::classes::Font >, pos: Vector2, char: impl AsArg < GString > + 'a,) -> Self { + let font_size = 16i32; + let size = - 1i32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font: font.consume_arg(), pos: pos, char: char.into_arg(), font_size: font_size, size: size, modulate: modulate, + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn size(self, size: i32) -> Self { + Self { + size: size, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, font, pos, char, font_size, size, modulate, + } + = self; + re_export::CanvasItem::draw_char_outline_full(surround_object, font.cow_as_object_arg(), pos, char, font_size, size, modulate,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_mesh_ex`][super::CanvasItem::draw_mesh_ex]."] +#[must_use] +pub struct ExDrawMesh < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, mesh: ObjectCow < crate::classes::Mesh >, texture: ObjectCow < crate::classes::Texture2D >, transform: Transform2D, modulate: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawMesh < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, mesh: impl AsObjectArg < crate::classes::Mesh >, texture: impl AsObjectArg < crate::classes::Texture2D >,) -> Self { + let transform = Transform2D::__internal_codegen(1 as _, 0 as _, 0 as _, 1 as _, 0 as _, 0 as _); + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, mesh: mesh.consume_arg(), texture: texture.consume_arg(), transform: transform, modulate: modulate, + } + } + #[inline] + pub fn transform(self, transform: Transform2D) -> Self { + Self { + transform: transform, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, mesh, texture, transform, modulate, + } + = self; + re_export::CanvasItem::draw_mesh_full(surround_object, mesh.cow_as_object_arg(), texture.cow_as_object_arg(), transform, modulate,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_set_transform_ex`][super::CanvasItem::draw_set_transform_ex]."] +#[must_use] +pub struct ExDrawSetTransform < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, position: Vector2, rotation: f32, scale: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawSetTransform < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, position: Vector2,) -> Self { + let rotation = 0f32; + let scale = Vector2::new(1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, rotation: rotation, scale: scale, + } + } + #[inline] + pub fn rotation(self, rotation: f32) -> Self { + Self { + rotation: rotation, .. self + } + } + #[inline] + pub fn scale(self, scale: Vector2) -> Self { + Self { + scale: scale, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, rotation, scale, + } + = self; + re_export::CanvasItem::draw_set_transform_full(surround_object, position, rotation, scale,) + } +} +#[doc = "Default-param extender for [`CanvasItem::draw_animation_slice_ex`][super::CanvasItem::draw_animation_slice_ex]."] +#[must_use] +pub struct ExDrawAnimationSlice < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CanvasItem, animation_length: f64, slice_begin: f64, slice_end: f64, offset: f64, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawAnimationSlice < 'a > { + fn new(surround_object: &'a mut re_export::CanvasItem, animation_length: f64, slice_begin: f64, slice_end: f64,) -> Self { + let offset = 0f64; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, animation_length: animation_length, slice_begin: slice_begin, slice_end: slice_end, offset: offset, + } + } + #[inline] + pub fn offset(self, offset: f64) -> Self { + Self { + offset: offset, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, animation_length, slice_begin, slice_end, offset, + } + = self; + re_export::CanvasItem::draw_animation_slice_full(surround_object, animation_length, slice_begin, slice_end, offset,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextureFilter { + ord: i32 +} +impl TextureFilter { + #[doc(alias = "TEXTURE_FILTER_PARENT_NODE")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_PARENT_NODE`"] + pub const PARENT_NODE: TextureFilter = TextureFilter { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_FILTER_NEAREST")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_NEAREST`"] + pub const NEAREST: TextureFilter = TextureFilter { + ord: 1i32 + }; + #[doc(alias = "TEXTURE_FILTER_LINEAR")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_LINEAR`"] + pub const LINEAR: TextureFilter = TextureFilter { + ord: 2i32 + }; + #[doc(alias = "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_NEAREST_WITH_MIPMAPS`"] + pub const NEAREST_WITH_MIPMAPS: TextureFilter = TextureFilter { + ord: 3i32 + }; + #[doc(alias = "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_LINEAR_WITH_MIPMAPS`"] + pub const LINEAR_WITH_MIPMAPS: TextureFilter = TextureFilter { + ord: 4i32 + }; + #[doc(alias = "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC`"] + pub const NEAREST_WITH_MIPMAPS_ANISOTROPIC: TextureFilter = TextureFilter { + ord: 5i32 + }; + #[doc(alias = "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC`"] + pub const LINEAR_WITH_MIPMAPS_ANISOTROPIC: TextureFilter = TextureFilter { + ord: 6i32 + }; + #[doc(alias = "TEXTURE_FILTER_MAX")] + #[doc = "Godot enumerator name: `TEXTURE_FILTER_MAX`"] + pub const MAX: TextureFilter = TextureFilter { + ord: 7i32 + }; + +} +impl std::fmt::Debug for TextureFilter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextureFilter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextureFilter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PARENT_NODE => "PARENT_NODE", Self::NEAREST => "NEAREST", Self::LINEAR => "LINEAR", Self::NEAREST_WITH_MIPMAPS => "NEAREST_WITH_MIPMAPS", Self::LINEAR_WITH_MIPMAPS => "LINEAR_WITH_MIPMAPS", Self::NEAREST_WITH_MIPMAPS_ANISOTROPIC => "NEAREST_WITH_MIPMAPS_ANISOTROPIC", Self::LINEAR_WITH_MIPMAPS_ANISOTROPIC => "LINEAR_WITH_MIPMAPS_ANISOTROPIC", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PARENT_NODE => "TEXTURE_FILTER_PARENT_NODE", Self::NEAREST => "TEXTURE_FILTER_NEAREST", Self::LINEAR => "TEXTURE_FILTER_LINEAR", Self::NEAREST_WITH_MIPMAPS => "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS", Self::LINEAR_WITH_MIPMAPS => "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS", Self::NEAREST_WITH_MIPMAPS_ANISOTROPIC => "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC", Self::LINEAR_WITH_MIPMAPS_ANISOTROPIC => "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC", Self::MAX => "TEXTURE_FILTER_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for TextureFilter { + const ENUMERATOR_COUNT: usize = 7usize; + +} +impl crate::meta::GodotConvert for TextureFilter { + type Via = i32; + +} +impl crate::meta::ToGodot for TextureFilter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureFilter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextureRepeat { + ord: i32 +} +impl TextureRepeat { + #[doc(alias = "TEXTURE_REPEAT_PARENT_NODE")] + #[doc = "Godot enumerator name: `TEXTURE_REPEAT_PARENT_NODE`"] + pub const PARENT_NODE: TextureRepeat = TextureRepeat { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_REPEAT_DISABLED")] + #[doc = "Godot enumerator name: `TEXTURE_REPEAT_DISABLED`"] + pub const DISABLED: TextureRepeat = TextureRepeat { + ord: 1i32 + }; + #[doc(alias = "TEXTURE_REPEAT_ENABLED")] + #[doc = "Godot enumerator name: `TEXTURE_REPEAT_ENABLED`"] + pub const ENABLED: TextureRepeat = TextureRepeat { + ord: 2i32 + }; + #[doc(alias = "TEXTURE_REPEAT_MIRROR")] + #[doc = "Godot enumerator name: `TEXTURE_REPEAT_MIRROR`"] + pub const MIRROR: TextureRepeat = TextureRepeat { + ord: 3i32 + }; + #[doc(alias = "TEXTURE_REPEAT_MAX")] + #[doc = "Godot enumerator name: `TEXTURE_REPEAT_MAX`"] + pub const MAX: TextureRepeat = TextureRepeat { + ord: 4i32 + }; + +} +impl std::fmt::Debug for TextureRepeat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextureRepeat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextureRepeat { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PARENT_NODE => "PARENT_NODE", Self::DISABLED => "DISABLED", Self::ENABLED => "ENABLED", Self::MIRROR => "MIRROR", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PARENT_NODE => "TEXTURE_REPEAT_PARENT_NODE", Self::DISABLED => "TEXTURE_REPEAT_DISABLED", Self::ENABLED => "TEXTURE_REPEAT_ENABLED", Self::MIRROR => "TEXTURE_REPEAT_MIRROR", Self::MAX => "TEXTURE_REPEAT_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for TextureRepeat { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for TextureRepeat { + type Via = i32; + +} +impl crate::meta::ToGodot for TextureRepeat { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureRepeat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ClipChildrenMode { + ord: i32 +} +impl ClipChildrenMode { + #[doc(alias = "CLIP_CHILDREN_DISABLED")] + #[doc = "Godot enumerator name: `CLIP_CHILDREN_DISABLED`"] + pub const DISABLED: ClipChildrenMode = ClipChildrenMode { + ord: 0i32 + }; + #[doc(alias = "CLIP_CHILDREN_ONLY")] + #[doc = "Godot enumerator name: `CLIP_CHILDREN_ONLY`"] + pub const ONLY: ClipChildrenMode = ClipChildrenMode { + ord: 1i32 + }; + #[doc(alias = "CLIP_CHILDREN_AND_DRAW")] + #[doc = "Godot enumerator name: `CLIP_CHILDREN_AND_DRAW`"] + pub const AND_DRAW: ClipChildrenMode = ClipChildrenMode { + ord: 2i32 + }; + #[doc(alias = "CLIP_CHILDREN_MAX")] + #[doc = "Godot enumerator name: `CLIP_CHILDREN_MAX`"] + pub const MAX: ClipChildrenMode = ClipChildrenMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ClipChildrenMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ClipChildrenMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ClipChildrenMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ONLY => "ONLY", Self::AND_DRAW => "AND_DRAW", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "CLIP_CHILDREN_DISABLED", Self::ONLY => "CLIP_CHILDREN_ONLY", Self::AND_DRAW => "CLIP_CHILDREN_AND_DRAW", Self::MAX => "CLIP_CHILDREN_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ClipChildrenMode { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for ClipChildrenMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ClipChildrenMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ClipChildrenMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_item_material.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_item_material.rs new file mode 100644 index 0000000..e915265 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_item_material.rs @@ -0,0 +1,472 @@ +#![doc = "Sidecar module for class [`CanvasItemMaterial`][crate::classes::CanvasItemMaterial].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CanvasItemMaterial` enums](https://docs.godotengine.org/en/stable/classes/class_canvasitemmaterial.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CanvasItemMaterial.`\n\nInherits [`Material`][crate::classes::Material].\n\nRelated symbols:\n\n* [`canvas_item_material`][crate::classes::canvas_item_material]: sidecar module with related enum/flag types\n* [`ICanvasItemMaterial`][crate::classes::ICanvasItemMaterial]: virtual methods\n\n\nSee also [Godot docs for `CanvasItemMaterial`](https://docs.godotengine.org/en/stable/classes/class_canvasitemmaterial.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CanvasItemMaterial::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CanvasItemMaterial { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CanvasItemMaterial`][crate::classes::CanvasItemMaterial].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CanvasItemMaterial` methods](https://docs.godotengine.org/en/stable/classes/class_canvasitemmaterial.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICanvasItemMaterial: crate::obj::GodotClass < Base = CanvasItemMaterial > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_shader_rid(&self,) -> Rid; + fn get_shader_mode(&self,) -> crate::classes::shader::Mode; + fn can_do_next_pass(&self,) -> bool { + unimplemented !() + } + fn can_use_render_priority(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CanvasItemMaterial { + pub fn set_blend_mode(&mut self, blend_mode: crate::classes::canvas_item_material::BlendMode,) { + type CallSig = ((), crate::classes::canvas_item_material::BlendMode); + let args = (blend_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1763usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "set_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_mode(&self,) -> crate::classes::canvas_item_material::BlendMode { + type CallSig = (crate::classes::canvas_item_material::BlendMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1764usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "get_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_light_mode(&mut self, light_mode: crate::classes::canvas_item_material::LightMode,) { + type CallSig = ((), crate::classes::canvas_item_material::LightMode); + let args = (light_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1765usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "set_light_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_light_mode(&self,) -> crate::classes::canvas_item_material::LightMode { + type CallSig = (crate::classes::canvas_item_material::LightMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1766usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "get_light_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_particles_animation(&mut self, particles_anim: bool,) { + type CallSig = ((), bool); + let args = (particles_anim,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1767usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "set_particles_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_particles_animation(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1768usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "get_particles_animation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_particles_anim_h_frames(&mut self, frames: i32,) { + type CallSig = ((), i32); + let args = (frames,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1769usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "set_particles_anim_h_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_particles_anim_h_frames(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1770usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "get_particles_anim_h_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_particles_anim_v_frames(&mut self, frames: i32,) { + type CallSig = ((), i32); + let args = (frames,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1771usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "set_particles_anim_v_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_particles_anim_v_frames(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1772usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "get_particles_anim_v_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_particles_anim_loop(&mut self, loop_: bool,) { + type CallSig = ((), bool); + let args = (loop_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1773usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "set_particles_anim_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_particles_anim_loop(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1774usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasItemMaterial", "get_particles_anim_loop", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CanvasItemMaterial { + type Base = crate::classes::Material; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CanvasItemMaterial")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CanvasItemMaterial { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Material > for CanvasItemMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CanvasItemMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CanvasItemMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CanvasItemMaterial { + + } + impl crate::obj::cap::GodotDefault for CanvasItemMaterial { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CanvasItemMaterial { + type Target = crate::classes::Material; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CanvasItemMaterial { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CanvasItemMaterial`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CanvasItemMaterial { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItemMaterial > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Material > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BlendMode { + ord: i32 +} +impl BlendMode { + #[doc(alias = "BLEND_MODE_MIX")] + #[doc = "Godot enumerator name: `BLEND_MODE_MIX`"] + pub const MIX: BlendMode = BlendMode { + ord: 0i32 + }; + #[doc(alias = "BLEND_MODE_ADD")] + #[doc = "Godot enumerator name: `BLEND_MODE_ADD`"] + pub const ADD: BlendMode = BlendMode { + ord: 1i32 + }; + #[doc(alias = "BLEND_MODE_SUB")] + #[doc = "Godot enumerator name: `BLEND_MODE_SUB`"] + pub const SUB: BlendMode = BlendMode { + ord: 2i32 + }; + #[doc(alias = "BLEND_MODE_MUL")] + #[doc = "Godot enumerator name: `BLEND_MODE_MUL`"] + pub const MUL: BlendMode = BlendMode { + ord: 3i32 + }; + #[doc(alias = "BLEND_MODE_PREMULT_ALPHA")] + #[doc = "Godot enumerator name: `BLEND_MODE_PREMULT_ALPHA`"] + pub const PREMULT_ALPHA: BlendMode = BlendMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for BlendMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BlendMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BlendMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MIX => "MIX", Self::ADD => "ADD", Self::SUB => "SUB", Self::MUL => "MUL", Self::PREMULT_ALPHA => "PREMULT_ALPHA", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MIX => "BLEND_MODE_MIX", Self::ADD => "BLEND_MODE_ADD", Self::SUB => "BLEND_MODE_SUB", Self::MUL => "BLEND_MODE_MUL", Self::PREMULT_ALPHA => "BLEND_MODE_PREMULT_ALPHA", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BlendMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BlendMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BlendMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LightMode { + ord: i32 +} +impl LightMode { + #[doc(alias = "LIGHT_MODE_NORMAL")] + #[doc = "Godot enumerator name: `LIGHT_MODE_NORMAL`"] + pub const NORMAL: LightMode = LightMode { + ord: 0i32 + }; + #[doc(alias = "LIGHT_MODE_UNSHADED")] + #[doc = "Godot enumerator name: `LIGHT_MODE_UNSHADED`"] + pub const UNSHADED: LightMode = LightMode { + ord: 1i32 + }; + #[doc(alias = "LIGHT_MODE_LIGHT_ONLY")] + #[doc = "Godot enumerator name: `LIGHT_MODE_LIGHT_ONLY`"] + pub const LIGHT_ONLY: LightMode = LightMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for LightMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LightMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LightMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NORMAL => "NORMAL", Self::UNSHADED => "UNSHADED", Self::LIGHT_ONLY => "LIGHT_ONLY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NORMAL => "LIGHT_MODE_NORMAL", Self::UNSHADED => "LIGHT_MODE_UNSHADED", Self::LIGHT_ONLY => "LIGHT_MODE_LIGHT_ONLY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LightMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LightMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LightMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_layer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_layer.rs new file mode 100644 index 0000000..b105486 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_layer.rs @@ -0,0 +1,399 @@ +#![doc = "Sidecar module for class [`CanvasLayer`][crate::classes::CanvasLayer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CanvasLayer` enums](https://docs.godotengine.org/en/stable/classes/class_canvaslayer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CanvasLayer.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`ICanvasLayer`][crate::classes::ICanvasLayer]: virtual methods\n\n\nSee also [Godot docs for `CanvasLayer`](https://docs.godotengine.org/en/stable/classes/class_canvaslayer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CanvasLayer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CanvasLayer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CanvasLayer`][crate::classes::CanvasLayer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CanvasLayer` methods](https://docs.godotengine.org/en/stable/classes/class_canvaslayer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICanvasLayer: crate::obj::GodotClass < Base = CanvasLayer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CanvasLayer { + pub fn set_layer(&mut self, layer: i32,) { + type CallSig = ((), i32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1775usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "set_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_layer(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1776usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "get_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visible(&mut self, visible: bool,) { + type CallSig = ((), bool); + let args = (visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1777usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "set_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_visible(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1778usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "is_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn show(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1779usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "show", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn hide(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1780usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "hide", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transform(&mut self, transform: Transform2D,) { + type CallSig = ((), Transform2D); + let args = (transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1781usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transform(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1782usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_final_transform(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1783usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "get_final_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1784usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "set_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1785usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "get_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation(&mut self, radians: f32,) { + type CallSig = ((), f32); + let args = (radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1786usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "set_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1787usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "get_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scale(&mut self, scale: Vector2,) { + type CallSig = ((), Vector2); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1788usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "set_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scale(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1789usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "get_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_follow_viewport(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1790usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "set_follow_viewport", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_following_viewport(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1791usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "is_following_viewport", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_follow_viewport_scale(&mut self, scale: f32,) { + type CallSig = ((), f32); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1792usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "set_follow_viewport_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_follow_viewport_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1793usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "get_follow_viewport_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_custom_viewport(&mut self, viewport: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (viewport.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1794usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "set_custom_viewport", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_custom_viewport(&self,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1795usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "get_custom_viewport", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_canvas(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1796usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasLayer", "get_canvas", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CanvasLayer { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CanvasLayer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CanvasLayer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CanvasLayer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CanvasLayer { + + } + impl crate::obj::cap::GodotDefault for CanvasLayer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CanvasLayer { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CanvasLayer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CanvasLayer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CanvasLayer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasLayer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_modulate.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_modulate.rs new file mode 100644 index 0000000..7a0b6d1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_modulate.rs @@ -0,0 +1,254 @@ +#![doc = "Sidecar module for class [`CanvasModulate`][crate::classes::CanvasModulate].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CanvasModulate` enums](https://docs.godotengine.org/en/stable/classes/class_canvasmodulate.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CanvasModulate.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`ICanvasModulate`][crate::classes::ICanvasModulate]: virtual methods\n\n\nSee also [Godot docs for `CanvasModulate`](https://docs.godotengine.org/en/stable/classes/class_canvasmodulate.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CanvasModulate::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CanvasModulate { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CanvasModulate`][crate::classes::CanvasModulate].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CanvasModulate` methods](https://docs.godotengine.org/en/stable/classes/class_canvasmodulate.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICanvasModulate: crate::obj::GodotClass < Base = CanvasModulate > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CanvasModulate { + pub fn set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1797usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasModulate", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1798usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasModulate", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CanvasModulate { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CanvasModulate")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CanvasModulate { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for CanvasModulate { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for CanvasModulate { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CanvasModulate { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CanvasModulate { + + } + impl crate::obj::cap::GodotDefault for CanvasModulate { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CanvasModulate { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CanvasModulate { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CanvasModulate`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CanvasModulate { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasModulate > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_texture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_texture.rs new file mode 100644 index 0000000..78e9e6d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/canvas_texture.rs @@ -0,0 +1,343 @@ +#![doc = "Sidecar module for class [`CanvasTexture`][crate::classes::CanvasTexture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CanvasTexture` enums](https://docs.godotengine.org/en/stable/classes/class_canvastexture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CanvasTexture.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`ICanvasTexture`][crate::classes::ICanvasTexture]: virtual methods\n\n\nSee also [Godot docs for `CanvasTexture`](https://docs.godotengine.org/en/stable/classes/class_canvastexture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CanvasTexture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CanvasTexture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CanvasTexture`][crate::classes::CanvasTexture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CanvasTexture` methods](https://docs.godotengine.org/en/stable/classes/class_canvastexture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICanvasTexture: crate::obj::GodotClass < Base = CanvasTexture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CanvasTexture { + pub fn set_diffuse_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1799usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "set_diffuse_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_diffuse_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1800usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "get_diffuse_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_normal_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1801usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "set_normal_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_normal_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1802usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "get_normal_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_specular_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1803usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "set_specular_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_specular_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1804usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "get_specular_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_specular_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1805usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "set_specular_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_specular_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1806usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "get_specular_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_specular_shininess(&mut self, shininess: f32,) { + type CallSig = ((), f32); + let args = (shininess,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1807usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "set_specular_shininess", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_specular_shininess(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1808usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "get_specular_shininess", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_filter(&mut self, filter: crate::classes::canvas_item::TextureFilter,) { + type CallSig = ((), crate::classes::canvas_item::TextureFilter); + let args = (filter,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1809usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "set_texture_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_filter(&self,) -> crate::classes::canvas_item::TextureFilter { + type CallSig = (crate::classes::canvas_item::TextureFilter,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1810usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "get_texture_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_repeat(&mut self, repeat: crate::classes::canvas_item::TextureRepeat,) { + type CallSig = ((), crate::classes::canvas_item::TextureRepeat); + let args = (repeat,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1811usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "set_texture_repeat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_repeat(&self,) -> crate::classes::canvas_item::TextureRepeat { + type CallSig = (crate::classes::canvas_item::TextureRepeat,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1812usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CanvasTexture", "get_texture_repeat", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CanvasTexture { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CanvasTexture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CanvasTexture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for CanvasTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for CanvasTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CanvasTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CanvasTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CanvasTexture { + + } + impl crate::obj::cap::GodotDefault for CanvasTexture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CanvasTexture { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CanvasTexture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CanvasTexture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CanvasTexture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasTexture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/capsule_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/capsule_mesh.rs new file mode 100644 index 0000000..9faa997 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/capsule_mesh.rs @@ -0,0 +1,295 @@ +#![doc = "Sidecar module for class [`CapsuleMesh`][crate::classes::CapsuleMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CapsuleMesh` enums](https://docs.godotengine.org/en/stable/classes/class_capsulemesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CapsuleMesh.`\n\nInherits [`PrimitiveMesh`][crate::classes::PrimitiveMesh].\n\nRelated symbols:\n\n* [`ICapsuleMesh`][crate::classes::ICapsuleMesh]: virtual methods\n\n\nSee also [Godot docs for `CapsuleMesh`](https://docs.godotengine.org/en/stable/classes/class_capsulemesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CapsuleMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CapsuleMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CapsuleMesh`][crate::classes::CapsuleMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CapsuleMesh` methods](https://docs.godotengine.org/en/stable/classes/class_capsulemesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICapsuleMesh: crate::obj::GodotClass < Base = CapsuleMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn create_mesh_array(&self,) -> VariantArray { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CapsuleMesh { + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1813usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleMesh", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1814usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleMesh", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: f32,) { + type CallSig = ((), f32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1815usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleMesh", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1816usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleMesh", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_radial_segments(&mut self, segments: i32,) { + type CallSig = ((), i32); + let args = (segments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1817usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleMesh", "set_radial_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radial_segments(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1818usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleMesh", "get_radial_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rings(&mut self, rings: i32,) { + type CallSig = ((), i32); + let args = (rings,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1819usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleMesh", "set_rings", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rings(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1820usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleMesh", "get_rings", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CapsuleMesh { + type Base = crate::classes::PrimitiveMesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CapsuleMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CapsuleMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PrimitiveMesh > for CapsuleMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for CapsuleMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CapsuleMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CapsuleMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CapsuleMesh { + + } + impl crate::obj::cap::GodotDefault for CapsuleMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CapsuleMesh { + type Target = crate::classes::PrimitiveMesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CapsuleMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CapsuleMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CapsuleMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CapsuleMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PrimitiveMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/capsule_shape_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/capsule_shape_2d.rs new file mode 100644 index 0000000..951359f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/capsule_shape_2d.rs @@ -0,0 +1,240 @@ +#![doc = "Sidecar module for class [`CapsuleShape2D`][crate::classes::CapsuleShape2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CapsuleShape2D` enums](https://docs.godotengine.org/en/stable/classes/class_capsuleshape2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CapsuleShape2D.`\n\nInherits [`Shape2D`][crate::classes::Shape2D].\n\nRelated symbols:\n\n* [`ICapsuleShape2D`][crate::classes::ICapsuleShape2D]: virtual methods\n\n\nSee also [Godot docs for `CapsuleShape2D`](https://docs.godotengine.org/en/stable/classes/class_capsuleshape2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CapsuleShape2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CapsuleShape2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CapsuleShape2D`][crate::classes::CapsuleShape2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CapsuleShape2D` methods](https://docs.godotengine.org/en/stable/classes/class_capsuleshape2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICapsuleShape2D: crate::obj::GodotClass < Base = CapsuleShape2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CapsuleShape2D { + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1821usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleShape2D", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1822usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleShape2D", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: f32,) { + type CallSig = ((), f32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1823usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleShape2D", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1824usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleShape2D", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CapsuleShape2D { + type Base = crate::classes::Shape2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CapsuleShape2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CapsuleShape2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Shape2D > for CapsuleShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CapsuleShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CapsuleShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CapsuleShape2D { + + } + impl crate::obj::cap::GodotDefault for CapsuleShape2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CapsuleShape2D { + type Target = crate::classes::Shape2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CapsuleShape2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CapsuleShape2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CapsuleShape2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CapsuleShape2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Shape2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/capsule_shape_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/capsule_shape_3d.rs new file mode 100644 index 0000000..35bb489 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/capsule_shape_3d.rs @@ -0,0 +1,240 @@ +#![doc = "Sidecar module for class [`CapsuleShape3D`][crate::classes::CapsuleShape3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CapsuleShape3D` enums](https://docs.godotengine.org/en/stable/classes/class_capsuleshape3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CapsuleShape3D.`\n\nInherits [`Shape3D`][crate::classes::Shape3D].\n\nRelated symbols:\n\n* [`ICapsuleShape3D`][crate::classes::ICapsuleShape3D]: virtual methods\n\n\nSee also [Godot docs for `CapsuleShape3D`](https://docs.godotengine.org/en/stable/classes/class_capsuleshape3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CapsuleShape3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CapsuleShape3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CapsuleShape3D`][crate::classes::CapsuleShape3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CapsuleShape3D` methods](https://docs.godotengine.org/en/stable/classes/class_capsuleshape3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICapsuleShape3D: crate::obj::GodotClass < Base = CapsuleShape3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CapsuleShape3D { + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1825usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleShape3D", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1826usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleShape3D", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: f32,) { + type CallSig = ((), f32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1827usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleShape3D", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1828usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CapsuleShape3D", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CapsuleShape3D { + type Base = crate::classes::Shape3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CapsuleShape3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CapsuleShape3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Shape3D > for CapsuleShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CapsuleShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CapsuleShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CapsuleShape3D { + + } + impl crate::obj::cap::GodotDefault for CapsuleShape3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CapsuleShape3D { + type Target = crate::classes::Shape3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CapsuleShape3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CapsuleShape3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CapsuleShape3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CapsuleShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Shape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/center_container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/center_container.rs new file mode 100644 index 0000000..6414bdc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/center_container.rs @@ -0,0 +1,293 @@ +#![doc = "Sidecar module for class [`CenterContainer`][crate::classes::CenterContainer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CenterContainer` enums](https://docs.godotengine.org/en/stable/classes/class_centercontainer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CenterContainer.`\n\nInherits [`Container`][crate::classes::Container].\n\nRelated symbols:\n\n* [`ICenterContainer`][crate::classes::ICenterContainer]: virtual methods\n\n\nSee also [Godot docs for `CenterContainer`](https://docs.godotengine.org/en/stable/classes/class_centercontainer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CenterContainer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CenterContainer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CenterContainer`][crate::classes::CenterContainer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CenterContainer` methods](https://docs.godotengine.org/en/stable/classes/class_centercontainer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICenterContainer: crate::obj::GodotClass < Base = CenterContainer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CenterContainer { + pub fn set_use_top_left(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1829usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CenterContainer", "set_use_top_left", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_top_left(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1830usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CenterContainer", "is_using_top_left", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CenterContainer { + type Base = crate::classes::Container; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CenterContainer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CenterContainer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for CenterContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for CenterContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for CenterContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CenterContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CenterContainer { + + } + impl crate::obj::cap::GodotDefault for CenterContainer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CenterContainer { + type Target = crate::classes::Container; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CenterContainer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CenterContainer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CenterContainer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CenterContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/char_fx_transform.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/char_fx_transform.rs new file mode 100644 index 0000000..324124d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/char_fx_transform.rs @@ -0,0 +1,401 @@ +#![doc = "Sidecar module for class [`CharFxTransform`][crate::classes::CharFxTransform].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CharFXTransform` enums](https://docs.godotengine.org/en/stable/classes/class_charfxtransform.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CharFXTransform.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`ICharFxTransform`][crate::classes::ICharFxTransform]: virtual methods\n\n\nSee also [Godot docs for `CharFXTransform`](https://docs.godotengine.org/en/stable/classes/class_charfxtransform.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CharFxTransform::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CharFxTransform { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CharFxTransform`][crate::classes::CharFxTransform].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CharFXTransform` methods](https://docs.godotengine.org/en/stable/classes/class_charfxtransform.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICharFxTransform: crate::obj::GodotClass < Base = CharFxTransform > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl CharFxTransform { + pub fn get_transform(&mut self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1831usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transform(&mut self, transform: Transform2D,) { + type CallSig = ((), Transform2D); + let args = (transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1832usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_range(&mut self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1833usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "get_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_range(&mut self, range: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (range,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1834usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_elapsed_time(&mut self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1835usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "get_elapsed_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_elapsed_time(&mut self, time: f64,) { + type CallSig = ((), f64); + let args = (time,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1836usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_elapsed_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_visible(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1837usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "is_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility(&mut self, visibility: bool,) { + type CallSig = ((), bool); + let args = (visibility,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1838usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_visibility", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_outline(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1839usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "is_outline", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_outline(&mut self, outline: bool,) { + type CallSig = ((), bool); + let args = (outline,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1840usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_outline", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset(&mut self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1841usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "get_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1842usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&mut self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1843usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1844usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_environment(&mut self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1845usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "get_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_environment(&mut self, environment: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(environment),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1846usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glyph_index(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1847usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "get_glyph_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glyph_index(&mut self, glyph_index: u32,) { + type CallSig = ((), u32); + let args = (glyph_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1848usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_glyph_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_relative_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1849usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "get_relative_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_relative_index(&mut self, relative_index: i32,) { + type CallSig = ((), i32); + let args = (relative_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1850usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_relative_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glyph_count(&self,) -> u8 { + type CallSig = (u8,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1851usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "get_glyph_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glyph_count(&mut self, glyph_count: u8,) { + type CallSig = ((), u8); + let args = (glyph_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1852usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_glyph_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glyph_flags(&self,) -> u16 { + type CallSig = (u16,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1853usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "get_glyph_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glyph_flags(&mut self, glyph_flags: u16,) { + type CallSig = ((), u16); + let args = (glyph_flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1854usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_glyph_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_font(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1855usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "get_font", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_font(&mut self, font: Rid,) { + type CallSig = ((), Rid); + let args = (font,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1856usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharFxTransform", "set_font", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CharFxTransform { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CharFXTransform")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CharFxTransform { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CharFxTransform { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CharFxTransform { + + } + impl crate::obj::cap::GodotDefault for CharFxTransform { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CharFxTransform { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CharFxTransform { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CharFxTransform`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CharFxTransform { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CharFxTransform > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/character_body_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/character_body_2d.rs new file mode 100644 index 0000000..cdadb51 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/character_body_2d.rs @@ -0,0 +1,831 @@ +#![doc = "Sidecar module for class [`CharacterBody2D`][crate::classes::CharacterBody2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CharacterBody2D` enums](https://docs.godotengine.org/en/stable/classes/class_characterbody2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CharacterBody2D.`\n\nInherits [`PhysicsBody2D`][crate::classes::PhysicsBody2D].\n\nRelated symbols:\n\n* [`character_body_2d`][crate::classes::character_body_2d]: sidecar module with related enum/flag types\n* [`ICharacterBody2D`][crate::classes::ICharacterBody2D]: virtual methods\n\n\nSee also [Godot docs for `CharacterBody2D`](https://docs.godotengine.org/en/stable/classes/class_characterbody2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CharacterBody2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CharacterBody2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CharacterBody2D`][crate::classes::CharacterBody2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CharacterBody2D` methods](https://docs.godotengine.org/en/stable/classes/class_characterbody2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICharacterBody2D: crate::obj::GodotClass < Base = CharacterBody2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn input_event(&mut self, viewport: Gd < crate::classes::Viewport >, event: Gd < crate::classes::InputEvent >, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn mouse_shape_enter(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn mouse_shape_exit(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CharacterBody2D { + pub fn move_and_slide(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1857usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "move_and_slide", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn apply_floor_snap(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1858usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "apply_floor_snap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_velocity(&mut self, velocity: Vector2,) { + type CallSig = ((), Vector2); + let args = (velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1859usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_velocity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1860usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_safe_margin(&mut self, margin: f32,) { + type CallSig = ((), f32); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1861usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_safe_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_safe_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1862usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_safe_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_floor_stop_on_slope_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1863usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "is_floor_stop_on_slope_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_floor_stop_on_slope_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1864usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_floor_stop_on_slope_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_floor_constant_speed_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1865usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_floor_constant_speed_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_floor_constant_speed_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1866usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "is_floor_constant_speed_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_floor_block_on_wall_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1867usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_floor_block_on_wall_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_floor_block_on_wall_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1868usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "is_floor_block_on_wall_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_slide_on_ceiling_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1869usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_slide_on_ceiling_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_slide_on_ceiling_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1870usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "is_slide_on_ceiling_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_platform_floor_layers(&mut self, exclude_layer: u32,) { + type CallSig = ((), u32); + let args = (exclude_layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1871usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_platform_floor_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_platform_floor_layers(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1872usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_platform_floor_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_platform_wall_layers(&mut self, exclude_layer: u32,) { + type CallSig = ((), u32); + let args = (exclude_layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1873usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_platform_wall_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_platform_wall_layers(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1874usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_platform_wall_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_slides(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1875usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_max_slides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_slides(&mut self, max_slides: i32,) { + type CallSig = ((), i32); + let args = (max_slides,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1876usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_max_slides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_floor_max_angle(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1877usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_floor_max_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_floor_max_angle(&mut self, radians: f32,) { + type CallSig = ((), f32); + let args = (radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1878usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_floor_max_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_floor_snap_length(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1879usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_floor_snap_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_floor_snap_length(&mut self, floor_snap_length: f32,) { + type CallSig = ((), f32); + let args = (floor_snap_length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1880usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_floor_snap_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wall_min_slide_angle(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1881usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_wall_min_slide_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_wall_min_slide_angle(&mut self, radians: f32,) { + type CallSig = ((), f32); + let args = (radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1882usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_wall_min_slide_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_up_direction(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1883usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_up_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_up_direction(&mut self, up_direction: Vector2,) { + type CallSig = ((), Vector2); + let args = (up_direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1884usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_up_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_motion_mode(&mut self, mode: crate::classes::character_body_2d::MotionMode,) { + type CallSig = ((), crate::classes::character_body_2d::MotionMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1885usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_motion_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_motion_mode(&self,) -> crate::classes::character_body_2d::MotionMode { + type CallSig = (crate::classes::character_body_2d::MotionMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1886usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_motion_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_platform_on_leave(&mut self, on_leave_apply_velocity: crate::classes::character_body_2d::PlatformOnLeave,) { + type CallSig = ((), crate::classes::character_body_2d::PlatformOnLeave); + let args = (on_leave_apply_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1887usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "set_platform_on_leave", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_platform_on_leave(&self,) -> crate::classes::character_body_2d::PlatformOnLeave { + type CallSig = (crate::classes::character_body_2d::PlatformOnLeave,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1888usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_platform_on_leave", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_floor(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1889usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "is_on_floor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_floor_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1890usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "is_on_floor_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_ceiling(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1891usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "is_on_ceiling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_ceiling_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1892usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "is_on_ceiling_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_wall(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1893usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "is_on_wall", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_wall_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1894usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "is_on_wall_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_floor_normal(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1895usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_floor_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wall_normal(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1896usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_wall_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_last_motion(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1897usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_last_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position_delta(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1898usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_position_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_real_velocity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1899usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_real_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_floor_angle_full(&self, up_direction: Vector2,) -> f32 { + type CallSig = (f32, Vector2); + let args = (up_direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1900usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_floor_angle", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_floor_angle_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_floor_angle(&self,) -> f32 { + self.get_floor_angle_ex() . done() + } + #[inline] + pub fn get_floor_angle_ex < 'a > (&'a self,) -> ExGetFloorAngle < 'a > { + ExGetFloorAngle::new(self,) + } + pub fn get_platform_velocity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1901usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_platform_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_slide_collision_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1902usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_slide_collision_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_slide_collision(&mut self, slide_idx: i32,) -> Option < Gd < crate::classes::KinematicCollision2D > > { + type CallSig = (Option < Gd < crate::classes::KinematicCollision2D > >, i32); + let args = (slide_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1903usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_slide_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_last_slide_collision(&mut self,) -> Option < Gd < crate::classes::KinematicCollision2D > > { + type CallSig = (Option < Gd < crate::classes::KinematicCollision2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1904usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody2D", "get_last_slide_collision", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CharacterBody2D { + type Base = crate::classes::PhysicsBody2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CharacterBody2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CharacterBody2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsBody2D > for CharacterBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject2D > for CharacterBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for CharacterBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for CharacterBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CharacterBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CharacterBody2D { + + } + impl crate::obj::cap::GodotDefault for CharacterBody2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CharacterBody2D { + type Target = crate::classes::PhysicsBody2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CharacterBody2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CharacterBody2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CharacterBody2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CharacterBody2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsBody2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`CharacterBody2D::get_floor_angle_ex`][super::CharacterBody2D::get_floor_angle_ex]."] +#[must_use] +pub struct ExGetFloorAngle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::CharacterBody2D, up_direction: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetFloorAngle < 'a > { + fn new(surround_object: &'a re_export::CharacterBody2D,) -> Self { + let up_direction = Vector2::new(0 as _, - 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, up_direction: up_direction, + } + } + #[inline] + pub fn up_direction(self, up_direction: Vector2) -> Self { + Self { + up_direction: up_direction, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, up_direction, + } + = self; + re_export::CharacterBody2D::get_floor_angle_full(surround_object, up_direction,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MotionMode { + ord: i32 +} +impl MotionMode { + #[doc(alias = "MOTION_MODE_GROUNDED")] + #[doc = "Godot enumerator name: `MOTION_MODE_GROUNDED`"] + pub const GROUNDED: MotionMode = MotionMode { + ord: 0i32 + }; + #[doc(alias = "MOTION_MODE_FLOATING")] + #[doc = "Godot enumerator name: `MOTION_MODE_FLOATING`"] + pub const FLOATING: MotionMode = MotionMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for MotionMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MotionMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MotionMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GROUNDED => "GROUNDED", Self::FLOATING => "FLOATING", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GROUNDED => "MOTION_MODE_GROUNDED", Self::FLOATING => "MOTION_MODE_FLOATING", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for MotionMode { + type Via = i32; + +} +impl crate::meta::ToGodot for MotionMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MotionMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PlatformOnLeave { + ord: i32 +} +impl PlatformOnLeave { + #[doc(alias = "PLATFORM_ON_LEAVE_ADD_VELOCITY")] + #[doc = "Godot enumerator name: `PLATFORM_ON_LEAVE_ADD_VELOCITY`"] + pub const ADD_VELOCITY: PlatformOnLeave = PlatformOnLeave { + ord: 0i32 + }; + #[doc(alias = "PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY")] + #[doc = "Godot enumerator name: `PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY`"] + pub const ADD_UPWARD_VELOCITY: PlatformOnLeave = PlatformOnLeave { + ord: 1i32 + }; + #[doc(alias = "PLATFORM_ON_LEAVE_DO_NOTHING")] + #[doc = "Godot enumerator name: `PLATFORM_ON_LEAVE_DO_NOTHING`"] + pub const DO_NOTHING: PlatformOnLeave = PlatformOnLeave { + ord: 2i32 + }; + +} +impl std::fmt::Debug for PlatformOnLeave { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PlatformOnLeave") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PlatformOnLeave { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD_VELOCITY => "ADD_VELOCITY", Self::ADD_UPWARD_VELOCITY => "ADD_UPWARD_VELOCITY", Self::DO_NOTHING => "DO_NOTHING", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD_VELOCITY => "PLATFORM_ON_LEAVE_ADD_VELOCITY", Self::ADD_UPWARD_VELOCITY => "PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY", Self::DO_NOTHING => "PLATFORM_ON_LEAVE_DO_NOTHING", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PlatformOnLeave { + type Via = i32; + +} +impl crate::meta::ToGodot for PlatformOnLeave { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PlatformOnLeave { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/character_body_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/character_body_3d.rs new file mode 100644 index 0000000..a0c0226 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/character_body_3d.rs @@ -0,0 +1,824 @@ +#![doc = "Sidecar module for class [`CharacterBody3D`][crate::classes::CharacterBody3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CharacterBody3D` enums](https://docs.godotengine.org/en/stable/classes/class_characterbody3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CharacterBody3D.`\n\nInherits [`PhysicsBody3D`][crate::classes::PhysicsBody3D].\n\nRelated symbols:\n\n* [`character_body_3d`][crate::classes::character_body_3d]: sidecar module with related enum/flag types\n* [`ICharacterBody3D`][crate::classes::ICharacterBody3D]: virtual methods\n\n\nSee also [Godot docs for `CharacterBody3D`](https://docs.godotengine.org/en/stable/classes/class_characterbody3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CharacterBody3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CharacterBody3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CharacterBody3D`][crate::classes::CharacterBody3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CharacterBody3D` methods](https://docs.godotengine.org/en/stable/classes/class_characterbody3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICharacterBody3D: crate::obj::GodotClass < Base = CharacterBody3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn input_event(&mut self, camera: Option < Gd < crate::classes::Camera3D > >, event: Option < Gd < crate::classes::InputEvent > >, event_position: Vector3, normal: Vector3, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CharacterBody3D { + pub fn move_and_slide(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1905usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "move_and_slide", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn apply_floor_snap(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1906usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "apply_floor_snap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_velocity(&mut self, velocity: Vector3,) { + type CallSig = ((), Vector3); + let args = (velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1907usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1908usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_safe_margin(&mut self, margin: f32,) { + type CallSig = ((), f32); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1909usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_safe_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_safe_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1910usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_safe_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_floor_stop_on_slope_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1911usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "is_floor_stop_on_slope_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_floor_stop_on_slope_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1912usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_floor_stop_on_slope_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_floor_constant_speed_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1913usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_floor_constant_speed_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_floor_constant_speed_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1914usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "is_floor_constant_speed_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_floor_block_on_wall_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1915usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_floor_block_on_wall_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_floor_block_on_wall_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1916usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "is_floor_block_on_wall_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_slide_on_ceiling_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1917usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_slide_on_ceiling_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_slide_on_ceiling_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1918usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "is_slide_on_ceiling_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_platform_floor_layers(&mut self, exclude_layer: u32,) { + type CallSig = ((), u32); + let args = (exclude_layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1919usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_platform_floor_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_platform_floor_layers(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1920usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_platform_floor_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_platform_wall_layers(&mut self, exclude_layer: u32,) { + type CallSig = ((), u32); + let args = (exclude_layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1921usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_platform_wall_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_platform_wall_layers(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1922usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_platform_wall_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_slides(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1923usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_max_slides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_slides(&mut self, max_slides: i32,) { + type CallSig = ((), i32); + let args = (max_slides,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1924usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_max_slides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_floor_max_angle(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1925usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_floor_max_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_floor_max_angle(&mut self, radians: f32,) { + type CallSig = ((), f32); + let args = (radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1926usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_floor_max_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_floor_snap_length(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1927usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_floor_snap_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_floor_snap_length(&mut self, floor_snap_length: f32,) { + type CallSig = ((), f32); + let args = (floor_snap_length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1928usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_floor_snap_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wall_min_slide_angle(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1929usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_wall_min_slide_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_wall_min_slide_angle(&mut self, radians: f32,) { + type CallSig = ((), f32); + let args = (radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1930usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_wall_min_slide_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_up_direction(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1931usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_up_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_up_direction(&mut self, up_direction: Vector3,) { + type CallSig = ((), Vector3); + let args = (up_direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1932usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_up_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_motion_mode(&mut self, mode: crate::classes::character_body_3d::MotionMode,) { + type CallSig = ((), crate::classes::character_body_3d::MotionMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1933usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_motion_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_motion_mode(&self,) -> crate::classes::character_body_3d::MotionMode { + type CallSig = (crate::classes::character_body_3d::MotionMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1934usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_motion_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_platform_on_leave(&mut self, on_leave_apply_velocity: crate::classes::character_body_3d::PlatformOnLeave,) { + type CallSig = ((), crate::classes::character_body_3d::PlatformOnLeave); + let args = (on_leave_apply_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1935usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "set_platform_on_leave", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_platform_on_leave(&self,) -> crate::classes::character_body_3d::PlatformOnLeave { + type CallSig = (crate::classes::character_body_3d::PlatformOnLeave,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1936usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_platform_on_leave", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_floor(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1937usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "is_on_floor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_floor_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1938usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "is_on_floor_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_ceiling(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1939usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "is_on_ceiling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_ceiling_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1940usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "is_on_ceiling_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_wall(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1941usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "is_on_wall", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_wall_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1942usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "is_on_wall_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_floor_normal(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1943usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_floor_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wall_normal(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1944usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_wall_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_last_motion(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1945usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_last_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position_delta(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1946usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_position_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_real_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1947usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_real_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_floor_angle_full(&self, up_direction: Vector3,) -> f32 { + type CallSig = (f32, Vector3); + let args = (up_direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1948usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_floor_angle", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_floor_angle_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_floor_angle(&self,) -> f32 { + self.get_floor_angle_ex() . done() + } + #[inline] + pub fn get_floor_angle_ex < 'a > (&'a self,) -> ExGetFloorAngle < 'a > { + ExGetFloorAngle::new(self,) + } + pub fn get_platform_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1949usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_platform_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_platform_angular_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1950usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_platform_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_slide_collision_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1951usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_slide_collision_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_slide_collision(&mut self, slide_idx: i32,) -> Option < Gd < crate::classes::KinematicCollision3D > > { + type CallSig = (Option < Gd < crate::classes::KinematicCollision3D > >, i32); + let args = (slide_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1952usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_slide_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_last_slide_collision(&mut self,) -> Option < Gd < crate::classes::KinematicCollision3D > > { + type CallSig = (Option < Gd < crate::classes::KinematicCollision3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1953usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CharacterBody3D", "get_last_slide_collision", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CharacterBody3D { + type Base = crate::classes::PhysicsBody3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CharacterBody3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CharacterBody3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsBody3D > for CharacterBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject3D > for CharacterBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CharacterBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CharacterBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CharacterBody3D { + + } + impl crate::obj::cap::GodotDefault for CharacterBody3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CharacterBody3D { + type Target = crate::classes::PhysicsBody3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CharacterBody3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CharacterBody3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CharacterBody3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CharacterBody3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsBody3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`CharacterBody3D::get_floor_angle_ex`][super::CharacterBody3D::get_floor_angle_ex]."] +#[must_use] +pub struct ExGetFloorAngle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::CharacterBody3D, up_direction: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetFloorAngle < 'a > { + fn new(surround_object: &'a re_export::CharacterBody3D,) -> Self { + let up_direction = Vector3::new(0 as _, 1 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, up_direction: up_direction, + } + } + #[inline] + pub fn up_direction(self, up_direction: Vector3) -> Self { + Self { + up_direction: up_direction, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, up_direction, + } + = self; + re_export::CharacterBody3D::get_floor_angle_full(surround_object, up_direction,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MotionMode { + ord: i32 +} +impl MotionMode { + #[doc(alias = "MOTION_MODE_GROUNDED")] + #[doc = "Godot enumerator name: `MOTION_MODE_GROUNDED`"] + pub const GROUNDED: MotionMode = MotionMode { + ord: 0i32 + }; + #[doc(alias = "MOTION_MODE_FLOATING")] + #[doc = "Godot enumerator name: `MOTION_MODE_FLOATING`"] + pub const FLOATING: MotionMode = MotionMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for MotionMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MotionMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MotionMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GROUNDED => "GROUNDED", Self::FLOATING => "FLOATING", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GROUNDED => "MOTION_MODE_GROUNDED", Self::FLOATING => "MOTION_MODE_FLOATING", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for MotionMode { + type Via = i32; + +} +impl crate::meta::ToGodot for MotionMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MotionMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PlatformOnLeave { + ord: i32 +} +impl PlatformOnLeave { + #[doc(alias = "PLATFORM_ON_LEAVE_ADD_VELOCITY")] + #[doc = "Godot enumerator name: `PLATFORM_ON_LEAVE_ADD_VELOCITY`"] + pub const ADD_VELOCITY: PlatformOnLeave = PlatformOnLeave { + ord: 0i32 + }; + #[doc(alias = "PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY")] + #[doc = "Godot enumerator name: `PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY`"] + pub const ADD_UPWARD_VELOCITY: PlatformOnLeave = PlatformOnLeave { + ord: 1i32 + }; + #[doc(alias = "PLATFORM_ON_LEAVE_DO_NOTHING")] + #[doc = "Godot enumerator name: `PLATFORM_ON_LEAVE_DO_NOTHING`"] + pub const DO_NOTHING: PlatformOnLeave = PlatformOnLeave { + ord: 2i32 + }; + +} +impl std::fmt::Debug for PlatformOnLeave { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PlatformOnLeave") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PlatformOnLeave { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD_VELOCITY => "ADD_VELOCITY", Self::ADD_UPWARD_VELOCITY => "ADD_UPWARD_VELOCITY", Self::DO_NOTHING => "DO_NOTHING", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD_VELOCITY => "PLATFORM_ON_LEAVE_ADD_VELOCITY", Self::ADD_UPWARD_VELOCITY => "PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY", Self::DO_NOTHING => "PLATFORM_ON_LEAVE_DO_NOTHING", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PlatformOnLeave { + type Via = i32; + +} +impl crate::meta::ToGodot for PlatformOnLeave { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PlatformOnLeave { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/check_box.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/check_box.rs new file mode 100644 index 0000000..41b6d58 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/check_box.rs @@ -0,0 +1,283 @@ +#![doc = "Sidecar module for class [`CheckBox`][crate::classes::CheckBox].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CheckBox` enums](https://docs.godotengine.org/en/stable/classes/class_checkbox.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CheckBox.`\n\nInherits [`Button`][crate::classes::Button].\n\nRelated symbols:\n\n* [`ICheckBox`][crate::classes::ICheckBox]: virtual methods\n\n\nSee also [Godot docs for `CheckBox`](https://docs.godotengine.org/en/stable/classes/class_checkbox.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CheckBox::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CheckBox { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CheckBox`][crate::classes::CheckBox].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CheckBox` methods](https://docs.godotengine.org/en/stable/classes/class_checkbox.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICheckBox: crate::obj::GodotClass < Base = CheckBox > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn pressed(&mut self,) { + unimplemented !() + } + fn toggled(&mut self, toggled_on: bool,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CheckBox { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CheckBox { + type Base = crate::classes::Button; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CheckBox")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CheckBox { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Button > for CheckBox { + + } + unsafe impl crate::obj::Inherits < crate::classes::BaseButton > for CheckBox { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for CheckBox { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for CheckBox { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CheckBox { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CheckBox { + + } + impl crate::obj::cap::GodotDefault for CheckBox { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CheckBox { + type Target = crate::classes::Button; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CheckBox { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CheckBox`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CheckBox { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CheckBox > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Button > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BaseButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/check_button.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/check_button.rs new file mode 100644 index 0000000..b77e158 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/check_button.rs @@ -0,0 +1,283 @@ +#![doc = "Sidecar module for class [`CheckButton`][crate::classes::CheckButton].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CheckButton` enums](https://docs.godotengine.org/en/stable/classes/class_checkbutton.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CheckButton.`\n\nInherits [`Button`][crate::classes::Button].\n\nRelated symbols:\n\n* [`ICheckButton`][crate::classes::ICheckButton]: virtual methods\n\n\nSee also [Godot docs for `CheckButton`](https://docs.godotengine.org/en/stable/classes/class_checkbutton.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CheckButton::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CheckButton { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CheckButton`][crate::classes::CheckButton].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CheckButton` methods](https://docs.godotengine.org/en/stable/classes/class_checkbutton.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICheckButton: crate::obj::GodotClass < Base = CheckButton > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn pressed(&mut self,) { + unimplemented !() + } + fn toggled(&mut self, toggled_on: bool,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CheckButton { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CheckButton { + type Base = crate::classes::Button; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CheckButton")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CheckButton { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Button > for CheckButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::BaseButton > for CheckButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for CheckButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for CheckButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CheckButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CheckButton { + + } + impl crate::obj::cap::GodotDefault for CheckButton { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CheckButton { + type Target = crate::classes::Button; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CheckButton { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CheckButton`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CheckButton { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CheckButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Button > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BaseButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/circle_shape_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/circle_shape_2d.rs new file mode 100644 index 0000000..fa77056 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/circle_shape_2d.rs @@ -0,0 +1,224 @@ +#![doc = "Sidecar module for class [`CircleShape2D`][crate::classes::CircleShape2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CircleShape2D` enums](https://docs.godotengine.org/en/stable/classes/class_circleshape2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CircleShape2D.`\n\nInherits [`Shape2D`][crate::classes::Shape2D].\n\nRelated symbols:\n\n* [`ICircleShape2D`][crate::classes::ICircleShape2D]: virtual methods\n\n\nSee also [Godot docs for `CircleShape2D`](https://docs.godotengine.org/en/stable/classes/class_circleshape2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CircleShape2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CircleShape2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CircleShape2D`][crate::classes::CircleShape2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CircleShape2D` methods](https://docs.godotengine.org/en/stable/classes/class_circleshape2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICircleShape2D: crate::obj::GodotClass < Base = CircleShape2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CircleShape2D { + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1954usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CircleShape2D", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1955usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CircleShape2D", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CircleShape2D { + type Base = crate::classes::Shape2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CircleShape2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CircleShape2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Shape2D > for CircleShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CircleShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CircleShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CircleShape2D { + + } + impl crate::obj::cap::GodotDefault for CircleShape2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CircleShape2D { + type Target = crate::classes::Shape2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CircleShape2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CircleShape2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CircleShape2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CircleShape2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Shape2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/class_db.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/class_db.rs new file mode 100644 index 0000000..617e455 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/class_db.rs @@ -0,0 +1,804 @@ +#![doc = "Sidecar module for class [`ClassDb`][crate::classes::ClassDb].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ClassDB` enums](https://docs.godotengine.org/en/stable/classes/class_classdb.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ClassDB.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`class_db`][crate::classes::class_db]: sidecar module with related enum/flag types\n* [`IClassDb`][crate::classes::IClassDb]: virtual methods\n\n\nSee also [Godot docs for `ClassDB`](https://docs.godotengine.org/en/stable/classes/class_classdb.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`ClassDb::singleton()`][ClassDb::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct ClassDb { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ClassDb`][crate::classes::ClassDb].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ClassDB` methods](https://docs.godotengine.org/en/stable/classes/class_classdb.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IClassDb: crate::obj::GodotClass < Base = ClassDb > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ClassDb { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"ClassDB"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn get_class_list(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1956usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "get_class_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inheriters_from_class(&self, class: impl AsArg < StringName >,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, StringName >); + let args = (class.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1957usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "get_inheriters_from_class", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_parent_class(&self, class: impl AsArg < StringName >,) -> StringName { + type CallSig < 'a0, > = (StringName, CowArg < 'a0, StringName >); + let args = (class.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1958usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "get_parent_class", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn class_exists(&self, class: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (class.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1959usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_exists", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_parent_class(&self, class: impl AsArg < StringName >, inherits: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (class.into_arg(), inherits.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1960usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "is_parent_class", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn can_instantiate(&self, class: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (class.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1961usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "can_instantiate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instantiate(&self, class: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (class.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1962usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "instantiate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn class_has_signal(&self, class: impl AsArg < StringName >, signal: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (class.into_arg(), signal.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1963usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_has_signal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn class_get_signal(&self, class: impl AsArg < StringName >, signal: impl AsArg < StringName >,) -> Dictionary { + type CallSig < 'a0, 'a1, > = (Dictionary, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (class.into_arg(), signal.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1964usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_signal", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn class_get_signal_list_full(&self, class: CowArg < StringName >, no_inheritance: bool,) -> Array < Dictionary > { + type CallSig < 'a0, > = (Array < Dictionary >, CowArg < 'a0, StringName >, bool); + let args = (class, no_inheritance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1965usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_signal_list", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::class_get_signal_list_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn class_get_signal_list(&self, class: impl AsArg < StringName >,) -> Array < Dictionary > { + self.class_get_signal_list_ex(class,) . done() + } + #[inline] + pub fn class_get_signal_list_ex < 'a > (&'a self, class: impl AsArg < StringName > + 'a,) -> ExClassGetSignalList < 'a > { + ExClassGetSignalList::new(self, class,) + } + pub(crate) fn class_get_property_list_full(&self, class: CowArg < StringName >, no_inheritance: bool,) -> Array < Dictionary > { + type CallSig < 'a0, > = (Array < Dictionary >, CowArg < 'a0, StringName >, bool); + let args = (class, no_inheritance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1966usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_property_list", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::class_get_property_list_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn class_get_property_list(&self, class: impl AsArg < StringName >,) -> Array < Dictionary > { + self.class_get_property_list_ex(class,) . done() + } + #[inline] + pub fn class_get_property_list_ex < 'a > (&'a self, class: impl AsArg < StringName > + 'a,) -> ExClassGetPropertyList < 'a > { + ExClassGetPropertyList::new(self, class,) + } + pub fn class_get_property(&self, object: impl AsObjectArg < crate::classes::Object >, property: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, ObjectArg < crate::classes::Object >, CowArg < 'a0, StringName >); + let args = (object.as_object_arg(), property.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1967usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_property", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn class_set_property(&self, object: impl AsObjectArg < crate::classes::Object >, property: impl AsArg < StringName >, value: &Variant,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, ObjectArg < crate::classes::Object >, CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (object.as_object_arg(), property.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1968usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_set_property", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn class_get_property_default_value(&self, class: impl AsArg < StringName >, property: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, 'a1, > = (Variant, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (class.into_arg(), property.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1969usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_property_default_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn class_has_method_full(&self, class: CowArg < StringName >, method: CowArg < StringName >, no_inheritance: bool,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, bool); + let args = (class, method, no_inheritance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1970usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_has_method", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::class_has_method_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn class_has_method(&self, class: impl AsArg < StringName >, method: impl AsArg < StringName >,) -> bool { + self.class_has_method_ex(class, method,) . done() + } + #[inline] + pub fn class_has_method_ex < 'a > (&'a self, class: impl AsArg < StringName > + 'a, method: impl AsArg < StringName > + 'a,) -> ExClassHasMethod < 'a > { + ExClassHasMethod::new(self, class, method,) + } + pub(crate) fn class_get_method_argument_count_full(&self, class: CowArg < StringName >, method: CowArg < StringName >, no_inheritance: bool,) -> i32 { + type CallSig < 'a0, 'a1, > = (i32, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, bool); + let args = (class, method, no_inheritance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1971usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_method_argument_count", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::class_get_method_argument_count_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn class_get_method_argument_count(&self, class: impl AsArg < StringName >, method: impl AsArg < StringName >,) -> i32 { + self.class_get_method_argument_count_ex(class, method,) . done() + } + #[inline] + pub fn class_get_method_argument_count_ex < 'a > (&'a self, class: impl AsArg < StringName > + 'a, method: impl AsArg < StringName > + 'a,) -> ExClassGetMethodArgumentCount < 'a > { + ExClassGetMethodArgumentCount::new(self, class, method,) + } + pub(crate) fn class_get_method_list_full(&self, class: CowArg < StringName >, no_inheritance: bool,) -> Array < Dictionary > { + type CallSig < 'a0, > = (Array < Dictionary >, CowArg < 'a0, StringName >, bool); + let args = (class, no_inheritance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1972usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_method_list", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::class_get_method_list_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn class_get_method_list(&self, class: impl AsArg < StringName >,) -> Array < Dictionary > { + self.class_get_method_list_ex(class,) . done() + } + #[inline] + pub fn class_get_method_list_ex < 'a > (&'a self, class: impl AsArg < StringName > + 'a,) -> ExClassGetMethodList < 'a > { + ExClassGetMethodList::new(self, class,) + } + pub(crate) fn class_get_integer_constant_list_full(&self, class: CowArg < StringName >, no_inheritance: bool,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, StringName >, bool); + let args = (class, no_inheritance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1973usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_integer_constant_list", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::class_get_integer_constant_list_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn class_get_integer_constant_list(&self, class: impl AsArg < StringName >,) -> PackedStringArray { + self.class_get_integer_constant_list_ex(class,) . done() + } + #[inline] + pub fn class_get_integer_constant_list_ex < 'a > (&'a self, class: impl AsArg < StringName > + 'a,) -> ExClassGetIntegerConstantList < 'a > { + ExClassGetIntegerConstantList::new(self, class,) + } + pub fn class_has_integer_constant(&self, class: impl AsArg < StringName >, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (class.into_arg(), name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1974usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_has_integer_constant", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn class_get_integer_constant(&self, class: impl AsArg < StringName >, name: impl AsArg < StringName >,) -> i64 { + type CallSig < 'a0, 'a1, > = (i64, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (class.into_arg(), name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1975usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_integer_constant", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn class_has_enum_full(&self, class: CowArg < StringName >, name: CowArg < StringName >, no_inheritance: bool,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, bool); + let args = (class, name, no_inheritance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1976usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_has_enum", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::class_has_enum_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn class_has_enum(&self, class: impl AsArg < StringName >, name: impl AsArg < StringName >,) -> bool { + self.class_has_enum_ex(class, name,) . done() + } + #[inline] + pub fn class_has_enum_ex < 'a > (&'a self, class: impl AsArg < StringName > + 'a, name: impl AsArg < StringName > + 'a,) -> ExClassHasEnum < 'a > { + ExClassHasEnum::new(self, class, name,) + } + pub(crate) fn class_get_enum_list_full(&self, class: CowArg < StringName >, no_inheritance: bool,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, StringName >, bool); + let args = (class, no_inheritance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1977usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_enum_list", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::class_get_enum_list_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn class_get_enum_list(&self, class: impl AsArg < StringName >,) -> PackedStringArray { + self.class_get_enum_list_ex(class,) . done() + } + #[inline] + pub fn class_get_enum_list_ex < 'a > (&'a self, class: impl AsArg < StringName > + 'a,) -> ExClassGetEnumList < 'a > { + ExClassGetEnumList::new(self, class,) + } + pub(crate) fn class_get_enum_constants_full(&self, class: CowArg < StringName >, enum_: CowArg < StringName >, no_inheritance: bool,) -> PackedStringArray { + type CallSig < 'a0, 'a1, > = (PackedStringArray, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, bool); + let args = (class, enum_, no_inheritance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1978usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_enum_constants", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::class_get_enum_constants_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn class_get_enum_constants(&self, class: impl AsArg < StringName >, enum_: impl AsArg < StringName >,) -> PackedStringArray { + self.class_get_enum_constants_ex(class, enum_,) . done() + } + #[inline] + pub fn class_get_enum_constants_ex < 'a > (&'a self, class: impl AsArg < StringName > + 'a, enum_: impl AsArg < StringName > + 'a,) -> ExClassGetEnumConstants < 'a > { + ExClassGetEnumConstants::new(self, class, enum_,) + } + pub(crate) fn class_get_integer_constant_enum_full(&self, class: CowArg < StringName >, name: CowArg < StringName >, no_inheritance: bool,) -> StringName { + type CallSig < 'a0, 'a1, > = (StringName, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, bool); + let args = (class, name, no_inheritance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1979usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "class_get_integer_constant_enum", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::class_get_integer_constant_enum_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn class_get_integer_constant_enum(&self, class: impl AsArg < StringName >, name: impl AsArg < StringName >,) -> StringName { + self.class_get_integer_constant_enum_ex(class, name,) . done() + } + #[inline] + pub fn class_get_integer_constant_enum_ex < 'a > (&'a self, class: impl AsArg < StringName > + 'a, name: impl AsArg < StringName > + 'a,) -> ExClassGetIntegerConstantEnum < 'a > { + ExClassGetIntegerConstantEnum::new(self, class, name,) + } + pub(crate) fn is_class_enum_bitfield_full(&self, class: CowArg < StringName >, enum_: CowArg < StringName >, no_inheritance: bool,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, bool); + let args = (class, enum_, no_inheritance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1980usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "is_class_enum_bitfield", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::is_class_enum_bitfield_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn is_class_enum_bitfield(&self, class: impl AsArg < StringName >, enum_: impl AsArg < StringName >,) -> bool { + self.is_class_enum_bitfield_ex(class, enum_,) . done() + } + #[inline] + pub fn is_class_enum_bitfield_ex < 'a > (&'a self, class: impl AsArg < StringName > + 'a, enum_: impl AsArg < StringName > + 'a,) -> ExIsClassEnumBitfield < 'a > { + ExIsClassEnumBitfield::new(self, class, enum_,) + } + pub fn is_class_enabled(&self, class: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (class.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1981usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ClassDb", "is_class_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ClassDb { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ClassDB")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ClassDb { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ClassDb { + + } + impl std::ops::Deref for ClassDb { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ClassDb { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ClassDb`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ClassDb { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ClassDb > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ClassDb::class_get_signal_list_ex`][super::ClassDb::class_get_signal_list_ex]."] +#[must_use] +pub struct ExClassGetSignalList < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ClassDb, class: CowArg < 'a, StringName >, no_inheritance: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClassGetSignalList < 'a > { + fn new(surround_object: &'a re_export::ClassDb, class: impl AsArg < StringName > + 'a,) -> Self { + let no_inheritance = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, class: class.into_arg(), no_inheritance: no_inheritance, + } + } + #[inline] + pub fn no_inheritance(self, no_inheritance: bool) -> Self { + Self { + no_inheritance: no_inheritance, .. self + } + } + #[inline] + pub fn done(self) -> Array < Dictionary > { + let Self { + _phantom, surround_object, class, no_inheritance, + } + = self; + re_export::ClassDb::class_get_signal_list_full(surround_object, class, no_inheritance,) + } +} +#[doc = "Default-param extender for [`ClassDb::class_get_property_list_ex`][super::ClassDb::class_get_property_list_ex]."] +#[must_use] +pub struct ExClassGetPropertyList < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ClassDb, class: CowArg < 'a, StringName >, no_inheritance: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClassGetPropertyList < 'a > { + fn new(surround_object: &'a re_export::ClassDb, class: impl AsArg < StringName > + 'a,) -> Self { + let no_inheritance = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, class: class.into_arg(), no_inheritance: no_inheritance, + } + } + #[inline] + pub fn no_inheritance(self, no_inheritance: bool) -> Self { + Self { + no_inheritance: no_inheritance, .. self + } + } + #[inline] + pub fn done(self) -> Array < Dictionary > { + let Self { + _phantom, surround_object, class, no_inheritance, + } + = self; + re_export::ClassDb::class_get_property_list_full(surround_object, class, no_inheritance,) + } +} +#[doc = "Default-param extender for [`ClassDb::class_has_method_ex`][super::ClassDb::class_has_method_ex]."] +#[must_use] +pub struct ExClassHasMethod < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ClassDb, class: CowArg < 'a, StringName >, method: CowArg < 'a, StringName >, no_inheritance: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClassHasMethod < 'a > { + fn new(surround_object: &'a re_export::ClassDb, class: impl AsArg < StringName > + 'a, method: impl AsArg < StringName > + 'a,) -> Self { + let no_inheritance = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, class: class.into_arg(), method: method.into_arg(), no_inheritance: no_inheritance, + } + } + #[inline] + pub fn no_inheritance(self, no_inheritance: bool) -> Self { + Self { + no_inheritance: no_inheritance, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, class, method, no_inheritance, + } + = self; + re_export::ClassDb::class_has_method_full(surround_object, class, method, no_inheritance,) + } +} +#[doc = "Default-param extender for [`ClassDb::class_get_method_argument_count_ex`][super::ClassDb::class_get_method_argument_count_ex]."] +#[must_use] +pub struct ExClassGetMethodArgumentCount < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ClassDb, class: CowArg < 'a, StringName >, method: CowArg < 'a, StringName >, no_inheritance: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClassGetMethodArgumentCount < 'a > { + fn new(surround_object: &'a re_export::ClassDb, class: impl AsArg < StringName > + 'a, method: impl AsArg < StringName > + 'a,) -> Self { + let no_inheritance = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, class: class.into_arg(), method: method.into_arg(), no_inheritance: no_inheritance, + } + } + #[inline] + pub fn no_inheritance(self, no_inheritance: bool) -> Self { + Self { + no_inheritance: no_inheritance, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, class, method, no_inheritance, + } + = self; + re_export::ClassDb::class_get_method_argument_count_full(surround_object, class, method, no_inheritance,) + } +} +#[doc = "Default-param extender for [`ClassDb::class_get_method_list_ex`][super::ClassDb::class_get_method_list_ex]."] +#[must_use] +pub struct ExClassGetMethodList < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ClassDb, class: CowArg < 'a, StringName >, no_inheritance: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClassGetMethodList < 'a > { + fn new(surround_object: &'a re_export::ClassDb, class: impl AsArg < StringName > + 'a,) -> Self { + let no_inheritance = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, class: class.into_arg(), no_inheritance: no_inheritance, + } + } + #[inline] + pub fn no_inheritance(self, no_inheritance: bool) -> Self { + Self { + no_inheritance: no_inheritance, .. self + } + } + #[inline] + pub fn done(self) -> Array < Dictionary > { + let Self { + _phantom, surround_object, class, no_inheritance, + } + = self; + re_export::ClassDb::class_get_method_list_full(surround_object, class, no_inheritance,) + } +} +#[doc = "Default-param extender for [`ClassDb::class_get_integer_constant_list_ex`][super::ClassDb::class_get_integer_constant_list_ex]."] +#[must_use] +pub struct ExClassGetIntegerConstantList < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ClassDb, class: CowArg < 'a, StringName >, no_inheritance: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClassGetIntegerConstantList < 'a > { + fn new(surround_object: &'a re_export::ClassDb, class: impl AsArg < StringName > + 'a,) -> Self { + let no_inheritance = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, class: class.into_arg(), no_inheritance: no_inheritance, + } + } + #[inline] + pub fn no_inheritance(self, no_inheritance: bool) -> Self { + Self { + no_inheritance: no_inheritance, .. self + } + } + #[inline] + pub fn done(self) -> PackedStringArray { + let Self { + _phantom, surround_object, class, no_inheritance, + } + = self; + re_export::ClassDb::class_get_integer_constant_list_full(surround_object, class, no_inheritance,) + } +} +#[doc = "Default-param extender for [`ClassDb::class_has_enum_ex`][super::ClassDb::class_has_enum_ex]."] +#[must_use] +pub struct ExClassHasEnum < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ClassDb, class: CowArg < 'a, StringName >, name: CowArg < 'a, StringName >, no_inheritance: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClassHasEnum < 'a > { + fn new(surround_object: &'a re_export::ClassDb, class: impl AsArg < StringName > + 'a, name: impl AsArg < StringName > + 'a,) -> Self { + let no_inheritance = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, class: class.into_arg(), name: name.into_arg(), no_inheritance: no_inheritance, + } + } + #[inline] + pub fn no_inheritance(self, no_inheritance: bool) -> Self { + Self { + no_inheritance: no_inheritance, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, class, name, no_inheritance, + } + = self; + re_export::ClassDb::class_has_enum_full(surround_object, class, name, no_inheritance,) + } +} +#[doc = "Default-param extender for [`ClassDb::class_get_enum_list_ex`][super::ClassDb::class_get_enum_list_ex]."] +#[must_use] +pub struct ExClassGetEnumList < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ClassDb, class: CowArg < 'a, StringName >, no_inheritance: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClassGetEnumList < 'a > { + fn new(surround_object: &'a re_export::ClassDb, class: impl AsArg < StringName > + 'a,) -> Self { + let no_inheritance = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, class: class.into_arg(), no_inheritance: no_inheritance, + } + } + #[inline] + pub fn no_inheritance(self, no_inheritance: bool) -> Self { + Self { + no_inheritance: no_inheritance, .. self + } + } + #[inline] + pub fn done(self) -> PackedStringArray { + let Self { + _phantom, surround_object, class, no_inheritance, + } + = self; + re_export::ClassDb::class_get_enum_list_full(surround_object, class, no_inheritance,) + } +} +#[doc = "Default-param extender for [`ClassDb::class_get_enum_constants_ex`][super::ClassDb::class_get_enum_constants_ex]."] +#[must_use] +pub struct ExClassGetEnumConstants < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ClassDb, class: CowArg < 'a, StringName >, enum_: CowArg < 'a, StringName >, no_inheritance: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClassGetEnumConstants < 'a > { + fn new(surround_object: &'a re_export::ClassDb, class: impl AsArg < StringName > + 'a, enum_: impl AsArg < StringName > + 'a,) -> Self { + let no_inheritance = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, class: class.into_arg(), enum_: enum_.into_arg(), no_inheritance: no_inheritance, + } + } + #[inline] + pub fn no_inheritance(self, no_inheritance: bool) -> Self { + Self { + no_inheritance: no_inheritance, .. self + } + } + #[inline] + pub fn done(self) -> PackedStringArray { + let Self { + _phantom, surround_object, class, enum_, no_inheritance, + } + = self; + re_export::ClassDb::class_get_enum_constants_full(surround_object, class, enum_, no_inheritance,) + } +} +#[doc = "Default-param extender for [`ClassDb::class_get_integer_constant_enum_ex`][super::ClassDb::class_get_integer_constant_enum_ex]."] +#[must_use] +pub struct ExClassGetIntegerConstantEnum < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ClassDb, class: CowArg < 'a, StringName >, name: CowArg < 'a, StringName >, no_inheritance: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClassGetIntegerConstantEnum < 'a > { + fn new(surround_object: &'a re_export::ClassDb, class: impl AsArg < StringName > + 'a, name: impl AsArg < StringName > + 'a,) -> Self { + let no_inheritance = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, class: class.into_arg(), name: name.into_arg(), no_inheritance: no_inheritance, + } + } + #[inline] + pub fn no_inheritance(self, no_inheritance: bool) -> Self { + Self { + no_inheritance: no_inheritance, .. self + } + } + #[inline] + pub fn done(self) -> StringName { + let Self { + _phantom, surround_object, class, name, no_inheritance, + } + = self; + re_export::ClassDb::class_get_integer_constant_enum_full(surround_object, class, name, no_inheritance,) + } +} +#[doc = "Default-param extender for [`ClassDb::is_class_enum_bitfield_ex`][super::ClassDb::is_class_enum_bitfield_ex]."] +#[must_use] +pub struct ExIsClassEnumBitfield < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ClassDb, class: CowArg < 'a, StringName >, enum_: CowArg < 'a, StringName >, no_inheritance: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIsClassEnumBitfield < 'a > { + fn new(surround_object: &'a re_export::ClassDb, class: impl AsArg < StringName > + 'a, enum_: impl AsArg < StringName > + 'a,) -> Self { + let no_inheritance = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, class: class.into_arg(), enum_: enum_.into_arg(), no_inheritance: no_inheritance, + } + } + #[inline] + pub fn no_inheritance(self, no_inheritance: bool) -> Self { + Self { + no_inheritance: no_inheritance, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, class, enum_, no_inheritance, + } + = self; + re_export::ClassDb::is_class_enum_bitfield_full(surround_object, class, enum_, no_inheritance,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/code_edit.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/code_edit.rs new file mode 100644 index 0000000..ec0ccf0 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/code_edit.rs @@ -0,0 +1,1728 @@ +#![doc = "Sidecar module for class [`CodeEdit`][crate::classes::CodeEdit].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CodeEdit` enums](https://docs.godotengine.org/en/stable/classes/class_codeedit.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CodeEdit.`\n\nInherits [`TextEdit`][crate::classes::TextEdit].\n\nRelated symbols:\n\n* [`code_edit`][crate::classes::code_edit]: sidecar module with related enum/flag types\n* [`ICodeEdit`][crate::classes::ICodeEdit]: virtual methods\n\n\nSee also [Godot docs for `CodeEdit`](https://docs.godotengine.org/en/stable/classes/class_codeedit.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CodeEdit::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CodeEdit { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CodeEdit`][crate::classes::CodeEdit].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CodeEdit` methods](https://docs.godotengine.org/en/stable/classes/class_codeedit.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICodeEdit: crate::obj::GodotClass < Base = CodeEdit > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn confirm_code_completion(&mut self, replace: bool,) { + unimplemented !() + } + fn request_code_completion(&mut self, force: bool,) { + unimplemented !() + } + fn filter_code_completion_candidates(&self, candidates: Array < Dictionary >,) -> Array < Dictionary > { + unimplemented !() + } + fn handle_unicode_input(&mut self, unicode_char: i32, caret_index: i32,) { + unimplemented !() + } + fn backspace(&mut self, caret_index: i32,) { + unimplemented !() + } + fn cut(&mut self, caret_index: i32,) { + unimplemented !() + } + fn copy(&mut self, caret_index: i32,) { + unimplemented !() + } + fn paste(&mut self, caret_index: i32,) { + unimplemented !() + } + fn paste_primary_clipboard(&mut self, caret_index: i32,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CodeEdit { + pub fn set_indent_size(&mut self, size: i32,) { + type CallSig = ((), i32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1982usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_indent_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_indent_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1983usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_indent_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_indent_using_spaces(&mut self, use_spaces: bool,) { + type CallSig = ((), bool); + let args = (use_spaces,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1984usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_indent_using_spaces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_indent_using_spaces(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1985usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_indent_using_spaces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_indent_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1986usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_auto_indent_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_auto_indent_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1987usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_auto_indent_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_indent_prefixes(&mut self, prefixes: &Array < GString >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < GString > >); + let args = (RefArg::new(prefixes),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1988usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_auto_indent_prefixes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_indent_prefixes(&self,) -> Array < GString > { + type CallSig = (Array < GString >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1989usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_auto_indent_prefixes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn do_indent(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1990usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "do_indent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn indent_lines(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1991usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "indent_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unindent_lines(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1992usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "unindent_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn convert_indent_full(&mut self, from_line: i32, to_line: i32,) { + type CallSig = ((), i32, i32); + let args = (from_line, to_line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1993usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "convert_indent", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::convert_indent_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn convert_indent(&mut self,) { + self.convert_indent_ex() . done() + } + #[inline] + pub fn convert_indent_ex < 'a > (&'a mut self,) -> ExConvertIndent < 'a > { + ExConvertIndent::new(self,) + } + pub fn set_auto_brace_completion_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1994usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_auto_brace_completion_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_auto_brace_completion_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1995usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_auto_brace_completion_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_highlight_matching_braces_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1996usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_highlight_matching_braces_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_highlight_matching_braces_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1997usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_highlight_matching_braces_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_auto_brace_completion_pair(&mut self, start_key: impl AsArg < GString >, end_key: impl AsArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (start_key.into_arg(), end_key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1998usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "add_auto_brace_completion_pair", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_brace_completion_pairs(&mut self, pairs: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(pairs),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1999usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_auto_brace_completion_pairs", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_brace_completion_pairs(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2000usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_auto_brace_completion_pairs", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_auto_brace_completion_open_key(&self, open_key: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (open_key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2001usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "has_auto_brace_completion_open_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_auto_brace_completion_close_key(&self, close_key: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (close_key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2002usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "has_auto_brace_completion_close_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_brace_completion_close_key(&self, open_key: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (open_key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2003usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_auto_brace_completion_close_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_breakpoints_gutter(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2004usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_draw_breakpoints_gutter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_drawing_breakpoints_gutter(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2005usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_drawing_breakpoints_gutter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_bookmarks_gutter(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2006usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_draw_bookmarks_gutter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_drawing_bookmarks_gutter(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2007usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_drawing_bookmarks_gutter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_executing_lines_gutter(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2008usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_draw_executing_lines_gutter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_drawing_executing_lines_gutter(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2009usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_drawing_executing_lines_gutter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_line_as_breakpoint(&mut self, line: i32, breakpointed: bool,) { + type CallSig = ((), i32, bool); + let args = (line, breakpointed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2010usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_line_as_breakpoint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_line_breakpointed(&self, line: i32,) -> bool { + type CallSig = (bool, i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2011usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_line_breakpointed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_breakpointed_lines(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2012usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "clear_breakpointed_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_breakpointed_lines(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2013usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_breakpointed_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_line_as_bookmarked(&mut self, line: i32, bookmarked: bool,) { + type CallSig = ((), i32, bool); + let args = (line, bookmarked,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2014usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_line_as_bookmarked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_line_bookmarked(&self, line: i32,) -> bool { + type CallSig = (bool, i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2015usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_line_bookmarked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_bookmarked_lines(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2016usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "clear_bookmarked_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bookmarked_lines(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2017usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_bookmarked_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_line_as_executing(&mut self, line: i32, executing: bool,) { + type CallSig = ((), i32, bool); + let args = (line, executing,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2018usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_line_as_executing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_line_executing(&self, line: i32,) -> bool { + type CallSig = (bool, i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2019usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_line_executing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_executing_lines(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2020usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "clear_executing_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_executing_lines(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2021usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_executing_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_line_numbers(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2022usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_draw_line_numbers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_draw_line_numbers_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2023usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_draw_line_numbers_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_line_numbers_zero_padded(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2024usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_line_numbers_zero_padded", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_line_numbers_zero_padded(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2025usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_line_numbers_zero_padded", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_fold_gutter(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2026usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_draw_fold_gutter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_drawing_fold_gutter(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2027usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_drawing_fold_gutter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_line_folding_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2028usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_line_folding_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_line_folding_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2029usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_line_folding_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn can_fold_line(&self, line: i32,) -> bool { + type CallSig = (bool, i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2030usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "can_fold_line", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn fold_line(&mut self, line: i32,) { + type CallSig = ((), i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2031usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "fold_line", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unfold_line(&mut self, line: i32,) { + type CallSig = ((), i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2032usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "unfold_line", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn fold_all_lines(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2033usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "fold_all_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unfold_all_lines(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2034usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "unfold_all_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn toggle_foldable_line(&mut self, line: i32,) { + type CallSig = ((), i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2035usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "toggle_foldable_line", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn toggle_foldable_lines_at_carets(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2036usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "toggle_foldable_lines_at_carets", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_line_folded(&self, line: i32,) -> bool { + type CallSig = (bool, i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2037usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_line_folded", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_folded_lines(&self,) -> Array < i64 > { + type CallSig = (Array < i64 >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2038usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_folded_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_code_region(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2039usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "create_code_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_code_region_start_tag(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2040usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_code_region_start_tag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_code_region_end_tag(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2041usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_code_region_end_tag", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_code_region_tags_full(&mut self, start: CowArg < GString >, end: CowArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (start, end,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2042usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_code_region_tags", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_code_region_tags_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_code_region_tags(&mut self,) { + self.set_code_region_tags_ex() . done() + } + #[inline] + pub fn set_code_region_tags_ex < 'a > (&'a mut self,) -> ExSetCodeRegionTags < 'a > { + ExSetCodeRegionTags::new(self,) + } + pub fn is_line_code_region_start(&self, line: i32,) -> bool { + type CallSig = (bool, i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2043usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_line_code_region_start", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_line_code_region_end(&self, line: i32,) -> bool { + type CallSig = (bool, i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2044usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_line_code_region_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_string_delimiter_full(&mut self, start_key: CowArg < GString >, end_key: CowArg < GString >, line_only: bool,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, bool); + let args = (start_key, end_key, line_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2045usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "add_string_delimiter", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_string_delimiter_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_string_delimiter(&mut self, start_key: impl AsArg < GString >, end_key: impl AsArg < GString >,) { + self.add_string_delimiter_ex(start_key, end_key,) . done() + } + #[inline] + pub fn add_string_delimiter_ex < 'a > (&'a mut self, start_key: impl AsArg < GString > + 'a, end_key: impl AsArg < GString > + 'a,) -> ExAddStringDelimiter < 'a > { + ExAddStringDelimiter::new(self, start_key, end_key,) + } + pub fn remove_string_delimiter(&mut self, start_key: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (start_key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2046usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "remove_string_delimiter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_string_delimiter(&self, start_key: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (start_key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2047usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "has_string_delimiter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_string_delimiters(&mut self, string_delimiters: &Array < GString >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < GString > >); + let args = (RefArg::new(string_delimiters),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2048usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_string_delimiters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_string_delimiters(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2049usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "clear_string_delimiters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_string_delimiters(&self,) -> Array < GString > { + type CallSig = (Array < GString >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2050usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_string_delimiters", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn is_in_string_full(&self, line: i32, column: i32,) -> i32 { + type CallSig = (i32, i32, i32); + let args = (line, column,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2051usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_in_string", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::is_in_string_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn is_in_string(&self, line: i32,) -> i32 { + self.is_in_string_ex(line,) . done() + } + #[inline] + pub fn is_in_string_ex < 'a > (&'a self, line: i32,) -> ExIsInString < 'a > { + ExIsInString::new(self, line,) + } + pub(crate) fn add_comment_delimiter_full(&mut self, start_key: CowArg < GString >, end_key: CowArg < GString >, line_only: bool,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, bool); + let args = (start_key, end_key, line_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2052usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "add_comment_delimiter", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_comment_delimiter_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_comment_delimiter(&mut self, start_key: impl AsArg < GString >, end_key: impl AsArg < GString >,) { + self.add_comment_delimiter_ex(start_key, end_key,) . done() + } + #[inline] + pub fn add_comment_delimiter_ex < 'a > (&'a mut self, start_key: impl AsArg < GString > + 'a, end_key: impl AsArg < GString > + 'a,) -> ExAddCommentDelimiter < 'a > { + ExAddCommentDelimiter::new(self, start_key, end_key,) + } + pub fn remove_comment_delimiter(&mut self, start_key: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (start_key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2053usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "remove_comment_delimiter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_comment_delimiter(&self, start_key: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (start_key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2054usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "has_comment_delimiter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_comment_delimiters(&mut self, comment_delimiters: &Array < GString >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < GString > >); + let args = (RefArg::new(comment_delimiters),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2055usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_comment_delimiters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_comment_delimiters(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2056usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "clear_comment_delimiters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_comment_delimiters(&self,) -> Array < GString > { + type CallSig = (Array < GString >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2057usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_comment_delimiters", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn is_in_comment_full(&self, line: i32, column: i32,) -> i32 { + type CallSig = (i32, i32, i32); + let args = (line, column,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2058usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_in_comment", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::is_in_comment_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn is_in_comment(&self, line: i32,) -> i32 { + self.is_in_comment_ex(line,) . done() + } + #[inline] + pub fn is_in_comment_ex < 'a > (&'a self, line: i32,) -> ExIsInComment < 'a > { + ExIsInComment::new(self, line,) + } + pub fn get_delimiter_start_key(&self, delimiter_index: i32,) -> GString { + type CallSig = (GString, i32); + let args = (delimiter_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2059usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_delimiter_start_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_delimiter_end_key(&self, delimiter_index: i32,) -> GString { + type CallSig = (GString, i32); + let args = (delimiter_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2060usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_delimiter_end_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_delimiter_start_position(&self, line: i32, column: i32,) -> Vector2 { + type CallSig = (Vector2, i32, i32); + let args = (line, column,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2061usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_delimiter_start_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_delimiter_end_position(&self, line: i32, column: i32,) -> Vector2 { + type CallSig = (Vector2, i32, i32); + let args = (line, column,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2062usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_delimiter_end_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_code_hint(&mut self, code_hint: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (code_hint.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2063usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_code_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_code_hint_draw_below(&mut self, draw_below: bool,) { + type CallSig = ((), bool); + let args = (draw_below,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2064usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_code_hint_draw_below", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_for_code_completion(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2065usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_text_for_code_completion", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn request_code_completion_full(&mut self, force: bool,) { + type CallSig = ((), bool); + let args = (force,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2066usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "request_code_completion", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::request_code_completion_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn request_code_completion(&mut self,) { + self.request_code_completion_ex() . done() + } + #[inline] + pub fn request_code_completion_ex < 'a > (&'a mut self,) -> ExRequestCodeCompletion < 'a > { + ExRequestCodeCompletion::new(self,) + } + pub(crate) fn add_code_completion_option_full(&mut self, type_: crate::classes::code_edit::CodeCompletionKind, display_text: CowArg < GString >, insert_text: CowArg < GString >, text_color: Color, icon: ObjectArg < crate::classes::Resource >, value: RefArg < Variant >, location: i32,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), crate::classes::code_edit::CodeCompletionKind, CowArg < 'a0, GString >, CowArg < 'a1, GString >, Color, ObjectArg < crate::classes::Resource >, RefArg < 'a2, Variant >, i32); + let args = (type_, display_text, insert_text, text_color, icon, value, location,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2067usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "add_code_completion_option", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_code_completion_option_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_code_completion_option(&mut self, type_: crate::classes::code_edit::CodeCompletionKind, display_text: impl AsArg < GString >, insert_text: impl AsArg < GString >,) { + self.add_code_completion_option_ex(type_, display_text, insert_text,) . done() + } + #[inline] + pub fn add_code_completion_option_ex < 'a > (&'a mut self, type_: crate::classes::code_edit::CodeCompletionKind, display_text: impl AsArg < GString > + 'a, insert_text: impl AsArg < GString > + 'a,) -> ExAddCodeCompletionOption < 'a > { + ExAddCodeCompletionOption::new(self, type_, display_text, insert_text,) + } + pub fn update_code_completion_options(&mut self, force: bool,) { + type CallSig = ((), bool); + let args = (force,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2068usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "update_code_completion_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_code_completion_options(&self,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2069usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_code_completion_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_code_completion_option(&self, index: i32,) -> Dictionary { + type CallSig = (Dictionary, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2070usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_code_completion_option", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_code_completion_selected_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2071usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_code_completion_selected_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_code_completion_selected_index(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2072usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_code_completion_selected_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn confirm_code_completion_full(&mut self, replace: bool,) { + type CallSig = ((), bool); + let args = (replace,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2073usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "confirm_code_completion", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::confirm_code_completion_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn confirm_code_completion(&mut self,) { + self.confirm_code_completion_ex() . done() + } + #[inline] + pub fn confirm_code_completion_ex < 'a > (&'a mut self,) -> ExConfirmCodeCompletion < 'a > { + ExConfirmCodeCompletion::new(self,) + } + pub fn cancel_code_completion(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2074usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "cancel_code_completion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_code_completion_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2075usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_code_completion_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_code_completion_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2076usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_code_completion_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_code_completion_prefixes(&mut self, prefixes: &Array < GString >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < GString > >); + let args = (RefArg::new(prefixes),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2077usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_code_completion_prefixes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_code_completion_prefixes(&self,) -> Array < GString > { + type CallSig = (Array < GString >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2078usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_code_completion_prefixes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_line_length_guidelines(&mut self, guideline_columns: &Array < i64 >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < i64 > >); + let args = (RefArg::new(guideline_columns),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2079usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_line_length_guidelines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_line_length_guidelines(&self,) -> Array < i64 > { + type CallSig = (Array < i64 >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2080usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_line_length_guidelines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_symbol_lookup_on_click_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2081usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_symbol_lookup_on_click_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_symbol_lookup_on_click_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2082usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "is_symbol_lookup_on_click_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_for_symbol_lookup(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2083usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_text_for_symbol_lookup", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_with_cursor_char(&self, line: i32, column: i32,) -> GString { + type CallSig = (GString, i32, i32); + let args = (line, column,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2084usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "get_text_with_cursor_char", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_symbol_lookup_word_as_valid(&mut self, valid: bool,) { + type CallSig = ((), bool); + let args = (valid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2085usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "set_symbol_lookup_word_as_valid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn move_lines_up(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2086usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "move_lines_up", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn move_lines_down(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2087usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "move_lines_down", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn delete_lines(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2088usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "delete_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn duplicate_selection(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2089usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "duplicate_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn duplicate_lines(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2090usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeEdit", "duplicate_lines", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CodeEdit { + type Base = crate::classes::TextEdit; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CodeEdit")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CodeEdit { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::TextEdit > for CodeEdit { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for CodeEdit { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for CodeEdit { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CodeEdit { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CodeEdit { + + } + impl crate::obj::cap::GodotDefault for CodeEdit { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CodeEdit { + type Target = crate::classes::TextEdit; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CodeEdit { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CodeEdit`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CodeEdit { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CodeEdit > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextEdit > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`CodeEdit::convert_indent_ex`][super::CodeEdit::convert_indent_ex]."] +#[must_use] +pub struct ExConvertIndent < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CodeEdit, from_line: i32, to_line: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExConvertIndent < 'a > { + fn new(surround_object: &'a mut re_export::CodeEdit,) -> Self { + let from_line = - 1i32; + let to_line = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_line: from_line, to_line: to_line, + } + } + #[inline] + pub fn from_line(self, from_line: i32) -> Self { + Self { + from_line: from_line, .. self + } + } + #[inline] + pub fn to_line(self, to_line: i32) -> Self { + Self { + to_line: to_line, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, from_line, to_line, + } + = self; + re_export::CodeEdit::convert_indent_full(surround_object, from_line, to_line,) + } +} +#[doc = "Default-param extender for [`CodeEdit::set_code_region_tags_ex`][super::CodeEdit::set_code_region_tags_ex]."] +#[must_use] +pub struct ExSetCodeRegionTags < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CodeEdit, start: CowArg < 'a, GString >, end: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetCodeRegionTags < 'a > { + fn new(surround_object: &'a mut re_export::CodeEdit,) -> Self { + let start = GString::from("region"); + let end = GString::from("endregion"); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, start: CowArg::Owned(start), end: CowArg::Owned(end), + } + } + #[inline] + pub fn start(self, start: impl AsArg < GString > + 'a) -> Self { + Self { + start: start.into_arg(), .. self + } + } + #[inline] + pub fn end(self, end: impl AsArg < GString > + 'a) -> Self { + Self { + end: end.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, start, end, + } + = self; + re_export::CodeEdit::set_code_region_tags_full(surround_object, start, end,) + } +} +#[doc = "Default-param extender for [`CodeEdit::add_string_delimiter_ex`][super::CodeEdit::add_string_delimiter_ex]."] +#[must_use] +pub struct ExAddStringDelimiter < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CodeEdit, start_key: CowArg < 'a, GString >, end_key: CowArg < 'a, GString >, line_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddStringDelimiter < 'a > { + fn new(surround_object: &'a mut re_export::CodeEdit, start_key: impl AsArg < GString > + 'a, end_key: impl AsArg < GString > + 'a,) -> Self { + let line_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, start_key: start_key.into_arg(), end_key: end_key.into_arg(), line_only: line_only, + } + } + #[inline] + pub fn line_only(self, line_only: bool) -> Self { + Self { + line_only: line_only, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, start_key, end_key, line_only, + } + = self; + re_export::CodeEdit::add_string_delimiter_full(surround_object, start_key, end_key, line_only,) + } +} +#[doc = "Default-param extender for [`CodeEdit::is_in_string_ex`][super::CodeEdit::is_in_string_ex]."] +#[must_use] +pub struct ExIsInString < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::CodeEdit, line: i32, column: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIsInString < 'a > { + fn new(surround_object: &'a re_export::CodeEdit, line: i32,) -> Self { + let column = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, line: line, column: column, + } + } + #[inline] + pub fn column(self, column: i32) -> Self { + Self { + column: column, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, line, column, + } + = self; + re_export::CodeEdit::is_in_string_full(surround_object, line, column,) + } +} +#[doc = "Default-param extender for [`CodeEdit::add_comment_delimiter_ex`][super::CodeEdit::add_comment_delimiter_ex]."] +#[must_use] +pub struct ExAddCommentDelimiter < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CodeEdit, start_key: CowArg < 'a, GString >, end_key: CowArg < 'a, GString >, line_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddCommentDelimiter < 'a > { + fn new(surround_object: &'a mut re_export::CodeEdit, start_key: impl AsArg < GString > + 'a, end_key: impl AsArg < GString > + 'a,) -> Self { + let line_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, start_key: start_key.into_arg(), end_key: end_key.into_arg(), line_only: line_only, + } + } + #[inline] + pub fn line_only(self, line_only: bool) -> Self { + Self { + line_only: line_only, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, start_key, end_key, line_only, + } + = self; + re_export::CodeEdit::add_comment_delimiter_full(surround_object, start_key, end_key, line_only,) + } +} +#[doc = "Default-param extender for [`CodeEdit::is_in_comment_ex`][super::CodeEdit::is_in_comment_ex]."] +#[must_use] +pub struct ExIsInComment < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::CodeEdit, line: i32, column: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIsInComment < 'a > { + fn new(surround_object: &'a re_export::CodeEdit, line: i32,) -> Self { + let column = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, line: line, column: column, + } + } + #[inline] + pub fn column(self, column: i32) -> Self { + Self { + column: column, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, line, column, + } + = self; + re_export::CodeEdit::is_in_comment_full(surround_object, line, column,) + } +} +#[doc = "Default-param extender for [`CodeEdit::request_code_completion_ex`][super::CodeEdit::request_code_completion_ex]."] +#[must_use] +pub struct ExRequestCodeCompletion < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CodeEdit, force: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExRequestCodeCompletion < 'a > { + fn new(surround_object: &'a mut re_export::CodeEdit,) -> Self { + let force = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, + } + } + #[inline] + pub fn force(self, force: bool) -> Self { + Self { + force: force, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, + } + = self; + re_export::CodeEdit::request_code_completion_full(surround_object, force,) + } +} +#[doc = "Default-param extender for [`CodeEdit::add_code_completion_option_ex`][super::CodeEdit::add_code_completion_option_ex]."] +#[must_use] +pub struct ExAddCodeCompletionOption < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CodeEdit, type_: crate::classes::code_edit::CodeCompletionKind, display_text: CowArg < 'a, GString >, insert_text: CowArg < 'a, GString >, text_color: Color, icon: ObjectCow < crate::classes::Resource >, value: CowArg < 'a, Variant >, location: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddCodeCompletionOption < 'a > { + fn new(surround_object: &'a mut re_export::CodeEdit, type_: crate::classes::code_edit::CodeCompletionKind, display_text: impl AsArg < GString > + 'a, insert_text: impl AsArg < GString > + 'a,) -> Self { + let text_color = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let icon = Gd::null_arg(); + let value = Variant::nil(); + let location = 1024i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, type_: type_, display_text: display_text.into_arg(), insert_text: insert_text.into_arg(), text_color: text_color, icon: icon.consume_arg(), value: CowArg::Owned(value), location: location, + } + } + #[inline] + pub fn text_color(self, text_color: Color) -> Self { + Self { + text_color: text_color, .. self + } + } + #[inline] + pub fn icon(self, icon: impl AsObjectArg < crate::classes::Resource >) -> Self { + Self { + icon: icon.consume_arg(), .. self + } + } + #[inline] + pub fn value(self, value: &'a Variant) -> Self { + Self { + value: CowArg::Borrowed(value), .. self + } + } + #[inline] + pub fn location(self, location: i32) -> Self { + Self { + location: location, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, type_, display_text, insert_text, text_color, icon, value, location, + } + = self; + re_export::CodeEdit::add_code_completion_option_full(surround_object, type_, display_text, insert_text, text_color, icon.cow_as_object_arg(), value.cow_as_arg(), location,) + } +} +#[doc = "Default-param extender for [`CodeEdit::confirm_code_completion_ex`][super::CodeEdit::confirm_code_completion_ex]."] +#[must_use] +pub struct ExConfirmCodeCompletion < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CodeEdit, replace: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExConfirmCodeCompletion < 'a > { + fn new(surround_object: &'a mut re_export::CodeEdit,) -> Self { + let replace = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, replace: replace, + } + } + #[inline] + pub fn replace(self, replace: bool) -> Self { + Self { + replace: replace, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, replace, + } + = self; + re_export::CodeEdit::confirm_code_completion_full(surround_object, replace,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CodeCompletionKind { + ord: i32 +} +impl CodeCompletionKind { + #[doc(alias = "KIND_CLASS")] + #[doc = "Godot enumerator name: `KIND_CLASS`"] + pub const CLASS: CodeCompletionKind = CodeCompletionKind { + ord: 0i32 + }; + #[doc(alias = "KIND_FUNCTION")] + #[doc = "Godot enumerator name: `KIND_FUNCTION`"] + pub const FUNCTION: CodeCompletionKind = CodeCompletionKind { + ord: 1i32 + }; + #[doc(alias = "KIND_SIGNAL")] + #[doc = "Godot enumerator name: `KIND_SIGNAL`"] + pub const SIGNAL: CodeCompletionKind = CodeCompletionKind { + ord: 2i32 + }; + #[doc(alias = "KIND_VARIABLE")] + #[doc = "Godot enumerator name: `KIND_VARIABLE`"] + pub const VARIABLE: CodeCompletionKind = CodeCompletionKind { + ord: 3i32 + }; + #[doc(alias = "KIND_MEMBER")] + #[doc = "Godot enumerator name: `KIND_MEMBER`"] + pub const MEMBER: CodeCompletionKind = CodeCompletionKind { + ord: 4i32 + }; + #[doc(alias = "KIND_ENUM")] + #[doc = "Godot enumerator name: `KIND_ENUM`"] + pub const ENUM: CodeCompletionKind = CodeCompletionKind { + ord: 5i32 + }; + #[doc(alias = "KIND_CONSTANT")] + #[doc = "Godot enumerator name: `KIND_CONSTANT`"] + pub const CONSTANT: CodeCompletionKind = CodeCompletionKind { + ord: 6i32 + }; + #[doc(alias = "KIND_NODE_PATH")] + #[doc = "Godot enumerator name: `KIND_NODE_PATH`"] + pub const NODE_PATH: CodeCompletionKind = CodeCompletionKind { + ord: 7i32 + }; + #[doc(alias = "KIND_FILE_PATH")] + #[doc = "Godot enumerator name: `KIND_FILE_PATH`"] + pub const FILE_PATH: CodeCompletionKind = CodeCompletionKind { + ord: 8i32 + }; + #[doc(alias = "KIND_PLAIN_TEXT")] + #[doc = "Godot enumerator name: `KIND_PLAIN_TEXT`"] + pub const PLAIN_TEXT: CodeCompletionKind = CodeCompletionKind { + ord: 9i32 + }; + +} +impl std::fmt::Debug for CodeCompletionKind { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CodeCompletionKind") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CodeCompletionKind { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLASS => "CLASS", Self::FUNCTION => "FUNCTION", Self::SIGNAL => "SIGNAL", Self::VARIABLE => "VARIABLE", Self::MEMBER => "MEMBER", Self::ENUM => "ENUM", Self::CONSTANT => "CONSTANT", Self::NODE_PATH => "NODE_PATH", Self::FILE_PATH => "FILE_PATH", Self::PLAIN_TEXT => "PLAIN_TEXT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLASS => "KIND_CLASS", Self::FUNCTION => "KIND_FUNCTION", Self::SIGNAL => "KIND_SIGNAL", Self::VARIABLE => "KIND_VARIABLE", Self::MEMBER => "KIND_MEMBER", Self::ENUM => "KIND_ENUM", Self::CONSTANT => "KIND_CONSTANT", Self::NODE_PATH => "KIND_NODE_PATH", Self::FILE_PATH => "KIND_FILE_PATH", Self::PLAIN_TEXT => "KIND_PLAIN_TEXT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CodeCompletionKind { + type Via = i32; + +} +impl crate::meta::ToGodot for CodeCompletionKind { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CodeCompletionKind { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CodeCompletionLocation { + ord: i32 +} +impl CodeCompletionLocation { + #[doc(alias = "LOCATION_LOCAL")] + #[doc = "Godot enumerator name: `LOCATION_LOCAL`"] + pub const LOCAL: CodeCompletionLocation = CodeCompletionLocation { + ord: 0i32 + }; + #[doc(alias = "LOCATION_PARENT_MASK")] + #[doc = "Godot enumerator name: `LOCATION_PARENT_MASK`"] + pub const PARENT_MASK: CodeCompletionLocation = CodeCompletionLocation { + ord: 256i32 + }; + #[doc(alias = "LOCATION_OTHER_USER_CODE")] + #[doc = "Godot enumerator name: `LOCATION_OTHER_USER_CODE`"] + pub const OTHER_USER_CODE: CodeCompletionLocation = CodeCompletionLocation { + ord: 512i32 + }; + #[doc(alias = "LOCATION_OTHER")] + #[doc = "Godot enumerator name: `LOCATION_OTHER`"] + pub const OTHER: CodeCompletionLocation = CodeCompletionLocation { + ord: 1024i32 + }; + +} +impl std::fmt::Debug for CodeCompletionLocation { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CodeCompletionLocation") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CodeCompletionLocation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 256i32 | ord @ 512i32 | ord @ 1024i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOCAL => "LOCAL", Self::PARENT_MASK => "PARENT_MASK", Self::OTHER_USER_CODE => "OTHER_USER_CODE", Self::OTHER => "OTHER", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOCAL => "LOCATION_LOCAL", Self::PARENT_MASK => "LOCATION_PARENT_MASK", Self::OTHER_USER_CODE => "LOCATION_OTHER_USER_CODE", Self::OTHER => "LOCATION_OTHER", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CodeCompletionLocation { + type Via = i32; + +} +impl crate::meta::ToGodot for CodeCompletionLocation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CodeCompletionLocation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/code_highlighter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/code_highlighter.rs new file mode 100644 index 0000000..8a14392 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/code_highlighter.rs @@ -0,0 +1,478 @@ +#![doc = "Sidecar module for class [`CodeHighlighter`][crate::classes::CodeHighlighter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CodeHighlighter` enums](https://docs.godotengine.org/en/stable/classes/class_codehighlighter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CodeHighlighter.`\n\nInherits [`SyntaxHighlighter`][crate::classes::SyntaxHighlighter].\n\nRelated symbols:\n\n* [`code_highlighter`][crate::classes::code_highlighter]: sidecar module with related enum/flag types\n* [`ICodeHighlighter`][crate::classes::ICodeHighlighter]: virtual methods\n\n\nSee also [Godot docs for `CodeHighlighter`](https://docs.godotengine.org/en/stable/classes/class_codehighlighter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CodeHighlighter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CodeHighlighter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CodeHighlighter`][crate::classes::CodeHighlighter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CodeHighlighter` methods](https://docs.godotengine.org/en/stable/classes/class_codehighlighter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICodeHighlighter: crate::obj::GodotClass < Base = CodeHighlighter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_line_syntax_highlighting(&self, line: i32,) -> Dictionary { + unimplemented !() + } + fn clear_highlighting_cache(&mut self,) { + unimplemented !() + } + fn update_cache(&mut self,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CodeHighlighter { + pub fn add_keyword_color(&mut self, keyword: impl AsArg < GString >, color: Color,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, Color); + let args = (keyword.into_arg(), color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2091usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "add_keyword_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_keyword_color(&mut self, keyword: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (keyword.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2092usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "remove_keyword_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_keyword_color(&self, keyword: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (keyword.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2093usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "has_keyword_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_keyword_color(&self, keyword: impl AsArg < GString >,) -> Color { + type CallSig < 'a0, > = (Color, CowArg < 'a0, GString >); + let args = (keyword.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2094usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "get_keyword_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_keyword_colors(&mut self, keywords: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(keywords),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2095usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "set_keyword_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_keyword_colors(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2096usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "clear_keyword_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_keyword_colors(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2097usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "get_keyword_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_member_keyword_color(&mut self, member_keyword: impl AsArg < GString >, color: Color,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, Color); + let args = (member_keyword.into_arg(), color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2098usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "add_member_keyword_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_member_keyword_color(&mut self, member_keyword: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (member_keyword.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2099usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "remove_member_keyword_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_member_keyword_color(&self, member_keyword: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (member_keyword.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2100usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "has_member_keyword_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_member_keyword_color(&self, member_keyword: impl AsArg < GString >,) -> Color { + type CallSig < 'a0, > = (Color, CowArg < 'a0, GString >); + let args = (member_keyword.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2101usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "get_member_keyword_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_member_keyword_colors(&mut self, member_keyword: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(member_keyword),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2102usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "set_member_keyword_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_member_keyword_colors(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2103usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "clear_member_keyword_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_member_keyword_colors(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2104usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "get_member_keyword_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_color_region_full(&mut self, start_key: CowArg < GString >, end_key: CowArg < GString >, color: Color, line_only: bool,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, Color, bool); + let args = (start_key, end_key, color, line_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2105usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "add_color_region", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_color_region_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_color_region(&mut self, start_key: impl AsArg < GString >, end_key: impl AsArg < GString >, color: Color,) { + self.add_color_region_ex(start_key, end_key, color,) . done() + } + #[inline] + pub fn add_color_region_ex < 'a > (&'a mut self, start_key: impl AsArg < GString > + 'a, end_key: impl AsArg < GString > + 'a, color: Color,) -> ExAddColorRegion < 'a > { + ExAddColorRegion::new(self, start_key, end_key, color,) + } + pub fn remove_color_region(&mut self, start_key: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (start_key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2106usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "remove_color_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_color_region(&self, start_key: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (start_key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2107usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "has_color_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color_regions(&mut self, color_regions: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(color_regions),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2108usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "set_color_regions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_color_regions(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2109usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "clear_color_regions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_regions(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2110usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "get_color_regions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_function_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2111usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "set_function_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_function_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2112usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "get_function_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_number_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2113usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "set_number_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_number_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2114usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "get_number_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_symbol_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2115usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "set_symbol_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_symbol_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2116usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "get_symbol_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_member_variable_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2117usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "set_member_variable_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_member_variable_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2118usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CodeHighlighter", "get_member_variable_color", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CodeHighlighter { + type Base = crate::classes::SyntaxHighlighter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CodeHighlighter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CodeHighlighter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::SyntaxHighlighter > for CodeHighlighter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CodeHighlighter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CodeHighlighter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CodeHighlighter { + + } + impl crate::obj::cap::GodotDefault for CodeHighlighter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CodeHighlighter { + type Target = crate::classes::SyntaxHighlighter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CodeHighlighter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CodeHighlighter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CodeHighlighter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CodeHighlighter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::SyntaxHighlighter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`CodeHighlighter::add_color_region_ex`][super::CodeHighlighter::add_color_region_ex]."] +#[must_use] +pub struct ExAddColorRegion < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CodeHighlighter, start_key: CowArg < 'a, GString >, end_key: CowArg < 'a, GString >, color: Color, line_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddColorRegion < 'a > { + fn new(surround_object: &'a mut re_export::CodeHighlighter, start_key: impl AsArg < GString > + 'a, end_key: impl AsArg < GString > + 'a, color: Color,) -> Self { + let line_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, start_key: start_key.into_arg(), end_key: end_key.into_arg(), color: color, line_only: line_only, + } + } + #[inline] + pub fn line_only(self, line_only: bool) -> Self { + Self { + line_only: line_only, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, start_key, end_key, color, line_only, + } + = self; + re_export::CodeHighlighter::add_color_region_full(surround_object, start_key, end_key, color, line_only,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_object_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_object_2d.rs new file mode 100644 index 0000000..a00e447 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_object_2d.rs @@ -0,0 +1,595 @@ +#![doc = "Sidecar module for class [`CollisionObject2D`][crate::classes::CollisionObject2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CollisionObject2D` enums](https://docs.godotengine.org/en/stable/classes/class_collisionobject2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CollisionObject2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`collision_object_2d`][crate::classes::collision_object_2d]: sidecar module with related enum/flag types\n* [`ICollisionObject2D`][crate::classes::ICollisionObject2D]: virtual methods\n\n\nSee also [Godot docs for `CollisionObject2D`](https://docs.godotengine.org/en/stable/classes/class_collisionobject2d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct CollisionObject2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CollisionObject2D`][crate::classes::CollisionObject2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CollisionObject2D` methods](https://docs.godotengine.org/en/stable/classes/class_collisionobject2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICollisionObject2D: crate::obj::GodotClass < Base = CollisionObject2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn input_event(&mut self, viewport: Gd < crate::classes::Viewport >, event: Gd < crate::classes::InputEvent >, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn mouse_shape_enter(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn mouse_shape_exit(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CollisionObject2D { + pub fn get_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2119usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "get_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_layer(&mut self, layer: u32,) { + type CallSig = ((), u32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2120usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "set_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_layer(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2121usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "get_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2122usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2123usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_layer_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2124usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "set_collision_layer_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_layer_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2125usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "get_collision_layer_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2126usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "set_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2127usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "get_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_priority(&mut self, priority: f32,) { + type CallSig = ((), f32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2128usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "set_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_priority(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2129usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "get_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disable_mode(&mut self, mode: crate::classes::collision_object_2d::DisableMode,) { + type CallSig = ((), crate::classes::collision_object_2d::DisableMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2130usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "set_disable_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_disable_mode(&self,) -> crate::classes::collision_object_2d::DisableMode { + type CallSig = (crate::classes::collision_object_2d::DisableMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2131usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "get_disable_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pickable(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2132usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "set_pickable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_pickable(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2133usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "is_pickable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_shape_owner(&mut self, owner: impl AsObjectArg < crate::classes::Object >,) -> u32 { + type CallSig = (u32, ObjectArg < crate::classes::Object >); + let args = (owner.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2134usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "create_shape_owner", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_shape_owner(&mut self, owner_id: u32,) { + type CallSig = ((), u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2135usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "remove_shape_owner", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape_owners(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2136usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "get_shape_owners", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_set_transform(&mut self, owner_id: u32, transform: Transform2D,) { + type CallSig = ((), u32, Transform2D); + let args = (owner_id, transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2137usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_get_transform(&self, owner_id: u32,) -> Transform2D { + type CallSig = (Transform2D, u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2138usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_get_owner(&self, owner_id: u32,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >, u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2139usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_get_owner", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_set_disabled(&mut self, owner_id: u32, disabled: bool,) { + type CallSig = ((), u32, bool); + let args = (owner_id, disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2140usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_set_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_shape_owner_disabled(&self, owner_id: u32,) -> bool { + type CallSig = (bool, u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2141usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "is_shape_owner_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_set_one_way_collision(&mut self, owner_id: u32, enable: bool,) { + type CallSig = ((), u32, bool); + let args = (owner_id, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2142usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_set_one_way_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_shape_owner_one_way_collision_enabled(&self, owner_id: u32,) -> bool { + type CallSig = (bool, u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2143usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "is_shape_owner_one_way_collision_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_set_one_way_collision_margin(&mut self, owner_id: u32, margin: f32,) { + type CallSig = ((), u32, f32); + let args = (owner_id, margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2144usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_set_one_way_collision_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape_owner_one_way_collision_margin(&self, owner_id: u32,) -> f32 { + type CallSig = (f32, u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2145usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "get_shape_owner_one_way_collision_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_add_shape(&mut self, owner_id: u32, shape: impl AsObjectArg < crate::classes::Shape2D >,) { + type CallSig = ((), u32, ObjectArg < crate::classes::Shape2D >); + let args = (owner_id, shape.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2146usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_add_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_get_shape_count(&self, owner_id: u32,) -> i32 { + type CallSig = (i32, u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2147usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_get_shape_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_get_shape(&self, owner_id: u32, shape_id: i32,) -> Option < Gd < crate::classes::Shape2D > > { + type CallSig = (Option < Gd < crate::classes::Shape2D > >, u32, i32); + let args = (owner_id, shape_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2148usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_get_shape_index(&self, owner_id: u32, shape_id: i32,) -> i32 { + type CallSig = (i32, u32, i32); + let args = (owner_id, shape_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2149usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_get_shape_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_remove_shape(&mut self, owner_id: u32, shape_id: i32,) { + type CallSig = ((), u32, i32); + let args = (owner_id, shape_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2150usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_remove_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_clear_shapes(&mut self, owner_id: u32,) { + type CallSig = ((), u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2151usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_owner_clear_shapes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_find_owner(&self, shape_index: i32,) -> u32 { + type CallSig = (u32, i32); + let args = (shape_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2152usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject2D", "shape_find_owner", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CollisionObject2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CollisionObject2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CollisionObject2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for CollisionObject2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for CollisionObject2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CollisionObject2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CollisionObject2D { + + } + impl std::ops::Deref for CollisionObject2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CollisionObject2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CollisionObject2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CollisionObject2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DisableMode { + ord: i32 +} +impl DisableMode { + #[doc(alias = "DISABLE_MODE_REMOVE")] + #[doc = "Godot enumerator name: `DISABLE_MODE_REMOVE`"] + pub const REMOVE: DisableMode = DisableMode { + ord: 0i32 + }; + #[doc(alias = "DISABLE_MODE_MAKE_STATIC")] + #[doc = "Godot enumerator name: `DISABLE_MODE_MAKE_STATIC`"] + pub const MAKE_STATIC: DisableMode = DisableMode { + ord: 1i32 + }; + #[doc(alias = "DISABLE_MODE_KEEP_ACTIVE")] + #[doc = "Godot enumerator name: `DISABLE_MODE_KEEP_ACTIVE`"] + pub const KEEP_ACTIVE: DisableMode = DisableMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for DisableMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DisableMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DisableMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::REMOVE => "REMOVE", Self::MAKE_STATIC => "MAKE_STATIC", Self::KEEP_ACTIVE => "KEEP_ACTIVE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::REMOVE => "DISABLE_MODE_REMOVE", Self::MAKE_STATIC => "DISABLE_MODE_MAKE_STATIC", Self::KEEP_ACTIVE => "DISABLE_MODE_KEEP_ACTIVE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DisableMode { + type Via = i32; + +} +impl crate::meta::ToGodot for DisableMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DisableMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_object_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_object_3d.rs new file mode 100644 index 0000000..39f9321 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_object_3d.rs @@ -0,0 +1,564 @@ +#![doc = "Sidecar module for class [`CollisionObject3D`][crate::classes::CollisionObject3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CollisionObject3D` enums](https://docs.godotengine.org/en/stable/classes/class_collisionobject3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CollisionObject3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`collision_object_3d`][crate::classes::collision_object_3d]: sidecar module with related enum/flag types\n* [`ICollisionObject3D`][crate::classes::ICollisionObject3D]: virtual methods\n\n\nSee also [Godot docs for `CollisionObject3D`](https://docs.godotengine.org/en/stable/classes/class_collisionobject3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct CollisionObject3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CollisionObject3D`][crate::classes::CollisionObject3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CollisionObject3D` methods](https://docs.godotengine.org/en/stable/classes/class_collisionobject3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICollisionObject3D: crate::obj::GodotClass < Base = CollisionObject3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn input_event(&mut self, camera: Option < Gd < crate::classes::Camera3D > >, event: Option < Gd < crate::classes::InputEvent > >, event_position: Vector3, normal: Vector3, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CollisionObject3D { + pub fn set_collision_layer(&mut self, layer: u32,) { + type CallSig = ((), u32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2153usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "set_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_layer(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2154usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "get_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2155usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2156usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_layer_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2157usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "set_collision_layer_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_layer_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2158usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "get_collision_layer_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2159usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "set_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2160usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "get_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_priority(&mut self, priority: f32,) { + type CallSig = ((), f32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2161usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "set_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_priority(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2162usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "get_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disable_mode(&mut self, mode: crate::classes::collision_object_3d::DisableMode,) { + type CallSig = ((), crate::classes::collision_object_3d::DisableMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2163usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "set_disable_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_disable_mode(&self,) -> crate::classes::collision_object_3d::DisableMode { + type CallSig = (crate::classes::collision_object_3d::DisableMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2164usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "get_disable_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ray_pickable(&mut self, ray_pickable: bool,) { + type CallSig = ((), bool); + let args = (ray_pickable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2165usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "set_ray_pickable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_ray_pickable(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2166usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "is_ray_pickable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_capture_input_on_drag(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2167usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "set_capture_input_on_drag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_capture_input_on_drag(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2168usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "get_capture_input_on_drag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2169usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "get_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_shape_owner(&mut self, owner: impl AsObjectArg < crate::classes::Object >,) -> u32 { + type CallSig = (u32, ObjectArg < crate::classes::Object >); + let args = (owner.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2170usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "create_shape_owner", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_shape_owner(&mut self, owner_id: u32,) { + type CallSig = ((), u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2171usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "remove_shape_owner", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape_owners(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2172usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "get_shape_owners", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_set_transform(&mut self, owner_id: u32, transform: Transform3D,) { + type CallSig = ((), u32, Transform3D); + let args = (owner_id, transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2173usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "shape_owner_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_get_transform(&self, owner_id: u32,) -> Transform3D { + type CallSig = (Transform3D, u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2174usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "shape_owner_get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_get_owner(&self, owner_id: u32,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >, u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2175usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "shape_owner_get_owner", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_set_disabled(&mut self, owner_id: u32, disabled: bool,) { + type CallSig = ((), u32, bool); + let args = (owner_id, disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2176usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "shape_owner_set_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_shape_owner_disabled(&self, owner_id: u32,) -> bool { + type CallSig = (bool, u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2177usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "is_shape_owner_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_add_shape(&mut self, owner_id: u32, shape: impl AsObjectArg < crate::classes::Shape3D >,) { + type CallSig = ((), u32, ObjectArg < crate::classes::Shape3D >); + let args = (owner_id, shape.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2178usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "shape_owner_add_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_get_shape_count(&self, owner_id: u32,) -> i32 { + type CallSig = (i32, u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2179usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "shape_owner_get_shape_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_get_shape(&self, owner_id: u32, shape_id: i32,) -> Option < Gd < crate::classes::Shape3D > > { + type CallSig = (Option < Gd < crate::classes::Shape3D > >, u32, i32); + let args = (owner_id, shape_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2180usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "shape_owner_get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_get_shape_index(&self, owner_id: u32, shape_id: i32,) -> i32 { + type CallSig = (i32, u32, i32); + let args = (owner_id, shape_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2181usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "shape_owner_get_shape_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_remove_shape(&mut self, owner_id: u32, shape_id: i32,) { + type CallSig = ((), u32, i32); + let args = (owner_id, shape_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2182usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "shape_owner_remove_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_owner_clear_shapes(&mut self, owner_id: u32,) { + type CallSig = ((), u32); + let args = (owner_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2183usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "shape_owner_clear_shapes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_find_owner(&self, shape_index: i32,) -> u32 { + type CallSig = (u32, i32); + let args = (shape_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2184usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionObject3D", "shape_find_owner", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CollisionObject3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CollisionObject3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CollisionObject3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CollisionObject3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CollisionObject3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CollisionObject3D { + + } + impl std::ops::Deref for CollisionObject3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CollisionObject3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CollisionObject3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CollisionObject3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DisableMode { + ord: i32 +} +impl DisableMode { + #[doc(alias = "DISABLE_MODE_REMOVE")] + #[doc = "Godot enumerator name: `DISABLE_MODE_REMOVE`"] + pub const REMOVE: DisableMode = DisableMode { + ord: 0i32 + }; + #[doc(alias = "DISABLE_MODE_MAKE_STATIC")] + #[doc = "Godot enumerator name: `DISABLE_MODE_MAKE_STATIC`"] + pub const MAKE_STATIC: DisableMode = DisableMode { + ord: 1i32 + }; + #[doc(alias = "DISABLE_MODE_KEEP_ACTIVE")] + #[doc = "Godot enumerator name: `DISABLE_MODE_KEEP_ACTIVE`"] + pub const KEEP_ACTIVE: DisableMode = DisableMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for DisableMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DisableMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DisableMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::REMOVE => "REMOVE", Self::MAKE_STATIC => "MAKE_STATIC", Self::KEEP_ACTIVE => "KEEP_ACTIVE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::REMOVE => "DISABLE_MODE_REMOVE", Self::MAKE_STATIC => "DISABLE_MODE_MAKE_STATIC", Self::KEEP_ACTIVE => "DISABLE_MODE_KEEP_ACTIVE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DisableMode { + type Via = i32; + +} +impl crate::meta::ToGodot for DisableMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DisableMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_polygon_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_polygon_2d.rs new file mode 100644 index 0000000..880be6a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_polygon_2d.rs @@ -0,0 +1,388 @@ +#![doc = "Sidecar module for class [`CollisionPolygon2D`][crate::classes::CollisionPolygon2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CollisionPolygon2D` enums](https://docs.godotengine.org/en/stable/classes/class_collisionpolygon2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CollisionPolygon2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`collision_polygon_2d`][crate::classes::collision_polygon_2d]: sidecar module with related enum/flag types\n* [`ICollisionPolygon2D`][crate::classes::ICollisionPolygon2D]: virtual methods\n\n\nSee also [Godot docs for `CollisionPolygon2D`](https://docs.godotengine.org/en/stable/classes/class_collisionpolygon2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CollisionPolygon2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CollisionPolygon2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CollisionPolygon2D`][crate::classes::CollisionPolygon2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CollisionPolygon2D` methods](https://docs.godotengine.org/en/stable/classes/class_collisionpolygon2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICollisionPolygon2D: crate::obj::GodotClass < Base = CollisionPolygon2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CollisionPolygon2D { + pub fn set_polygon(&mut self, polygon: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2185usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon2D", "set_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_polygon(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2186usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon2D", "get_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_build_mode(&mut self, build_mode: crate::classes::collision_polygon_2d::BuildMode,) { + type CallSig = ((), crate::classes::collision_polygon_2d::BuildMode); + let args = (build_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2187usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon2D", "set_build_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_build_mode(&self,) -> crate::classes::collision_polygon_2d::BuildMode { + type CallSig = (crate::classes::collision_polygon_2d::BuildMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2188usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon2D", "get_build_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disabled(&mut self, disabled: bool,) { + type CallSig = ((), bool); + let args = (disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2189usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon2D", "set_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_disabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2190usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon2D", "is_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_one_way_collision(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2191usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon2D", "set_one_way_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_one_way_collision_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2192usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon2D", "is_one_way_collision_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_one_way_collision_margin(&mut self, margin: f32,) { + type CallSig = ((), f32); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2193usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon2D", "set_one_way_collision_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_one_way_collision_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2194usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon2D", "get_one_way_collision_margin", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CollisionPolygon2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CollisionPolygon2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CollisionPolygon2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for CollisionPolygon2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for CollisionPolygon2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CollisionPolygon2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CollisionPolygon2D { + + } + impl crate::obj::cap::GodotDefault for CollisionPolygon2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CollisionPolygon2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CollisionPolygon2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CollisionPolygon2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CollisionPolygon2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionPolygon2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BuildMode { + ord: i32 +} +impl BuildMode { + #[doc(alias = "BUILD_SOLIDS")] + #[doc = "Godot enumerator name: `BUILD_SOLIDS`"] + pub const SOLIDS: BuildMode = BuildMode { + ord: 0i32 + }; + #[doc(alias = "BUILD_SEGMENTS")] + #[doc = "Godot enumerator name: `BUILD_SEGMENTS`"] + pub const SEGMENTS: BuildMode = BuildMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for BuildMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BuildMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BuildMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SOLIDS => "SOLIDS", Self::SEGMENTS => "SEGMENTS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SOLIDS => "BUILD_SOLIDS", Self::SEGMENTS => "BUILD_SEGMENTS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BuildMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BuildMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BuildMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_polygon_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_polygon_3d.rs new file mode 100644 index 0000000..ba5b51c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_polygon_3d.rs @@ -0,0 +1,293 @@ +#![doc = "Sidecar module for class [`CollisionPolygon3D`][crate::classes::CollisionPolygon3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CollisionPolygon3D` enums](https://docs.godotengine.org/en/stable/classes/class_collisionpolygon3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CollisionPolygon3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`ICollisionPolygon3D`][crate::classes::ICollisionPolygon3D]: virtual methods\n\n\nSee also [Godot docs for `CollisionPolygon3D`](https://docs.godotengine.org/en/stable/classes/class_collisionpolygon3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CollisionPolygon3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CollisionPolygon3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CollisionPolygon3D`][crate::classes::CollisionPolygon3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CollisionPolygon3D` methods](https://docs.godotengine.org/en/stable/classes/class_collisionpolygon3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICollisionPolygon3D: crate::obj::GodotClass < Base = CollisionPolygon3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CollisionPolygon3D { + pub fn set_depth(&mut self, depth: f32,) { + type CallSig = ((), f32); + let args = (depth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2195usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon3D", "set_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2196usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon3D", "get_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_polygon(&mut self, polygon: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2197usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon3D", "set_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_polygon(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2198usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon3D", "get_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disabled(&mut self, disabled: bool,) { + type CallSig = ((), bool); + let args = (disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2199usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon3D", "set_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_disabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2200usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon3D", "is_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_margin(&mut self, margin: f32,) { + type CallSig = ((), f32); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2201usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon3D", "set_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2202usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionPolygon3D", "get_margin", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CollisionPolygon3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CollisionPolygon3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CollisionPolygon3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CollisionPolygon3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CollisionPolygon3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CollisionPolygon3D { + + } + impl crate::obj::cap::GodotDefault for CollisionPolygon3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CollisionPolygon3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CollisionPolygon3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CollisionPolygon3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CollisionPolygon3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionPolygon3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_shape_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_shape_2d.rs new file mode 100644 index 0000000..d0d27d4 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_shape_2d.rs @@ -0,0 +1,318 @@ +#![doc = "Sidecar module for class [`CollisionShape2D`][crate::classes::CollisionShape2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CollisionShape2D` enums](https://docs.godotengine.org/en/stable/classes/class_collisionshape2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CollisionShape2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`ICollisionShape2D`][crate::classes::ICollisionShape2D]: virtual methods\n\n\nSee also [Godot docs for `CollisionShape2D`](https://docs.godotengine.org/en/stable/classes/class_collisionshape2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CollisionShape2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CollisionShape2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CollisionShape2D`][crate::classes::CollisionShape2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CollisionShape2D` methods](https://docs.godotengine.org/en/stable/classes/class_collisionshape2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICollisionShape2D: crate::obj::GodotClass < Base = CollisionShape2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CollisionShape2D { + pub fn set_shape(&mut self, shape: impl AsObjectArg < crate::classes::Shape2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Shape2D >); + let args = (shape.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2203usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape2D", "set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape(&self,) -> Option < Gd < crate::classes::Shape2D > > { + type CallSig = (Option < Gd < crate::classes::Shape2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2204usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape2D", "get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disabled(&mut self, disabled: bool,) { + type CallSig = ((), bool); + let args = (disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2205usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape2D", "set_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_disabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2206usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape2D", "is_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_one_way_collision(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2207usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape2D", "set_one_way_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_one_way_collision_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2208usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape2D", "is_one_way_collision_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_one_way_collision_margin(&mut self, margin: f32,) { + type CallSig = ((), f32); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2209usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape2D", "set_one_way_collision_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_one_way_collision_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2210usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape2D", "get_one_way_collision_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_debug_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2211usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape2D", "set_debug_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_debug_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2212usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape2D", "get_debug_color", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CollisionShape2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CollisionShape2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CollisionShape2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for CollisionShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for CollisionShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CollisionShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CollisionShape2D { + + } + impl crate::obj::cap::GodotDefault for CollisionShape2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CollisionShape2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CollisionShape2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CollisionShape2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CollisionShape2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionShape2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_shape_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_shape_3d.rs new file mode 100644 index 0000000..1950919 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/collision_shape_3d.rs @@ -0,0 +1,277 @@ +#![doc = "Sidecar module for class [`CollisionShape3D`][crate::classes::CollisionShape3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CollisionShape3D` enums](https://docs.godotengine.org/en/stable/classes/class_collisionshape3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CollisionShape3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`ICollisionShape3D`][crate::classes::ICollisionShape3D]: virtual methods\n\n\nSee also [Godot docs for `CollisionShape3D`](https://docs.godotengine.org/en/stable/classes/class_collisionshape3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CollisionShape3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CollisionShape3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CollisionShape3D`][crate::classes::CollisionShape3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CollisionShape3D` methods](https://docs.godotengine.org/en/stable/classes/class_collisionshape3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICollisionShape3D: crate::obj::GodotClass < Base = CollisionShape3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CollisionShape3D { + pub fn resource_changed(&mut self, resource: impl AsObjectArg < crate::classes::Resource >,) { + type CallSig = ((), ObjectArg < crate::classes::Resource >); + let args = (resource.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2213usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape3D", "resource_changed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shape(&mut self, shape: impl AsObjectArg < crate::classes::Shape3D >,) { + type CallSig = ((), ObjectArg < crate::classes::Shape3D >); + let args = (shape.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2214usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape3D", "set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape(&self,) -> Option < Gd < crate::classes::Shape3D > > { + type CallSig = (Option < Gd < crate::classes::Shape3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2215usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape3D", "get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2216usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape3D", "set_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_disabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2217usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape3D", "is_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_convex_from_siblings(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2218usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CollisionShape3D", "make_convex_from_siblings", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CollisionShape3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CollisionShape3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CollisionShape3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CollisionShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CollisionShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CollisionShape3D { + + } + impl crate::obj::cap::GodotDefault for CollisionShape3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CollisionShape3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CollisionShape3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CollisionShape3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CollisionShape3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/color_picker.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/color_picker.rs new file mode 100644 index 0000000..8fdd2f0 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/color_picker.rs @@ -0,0 +1,678 @@ +#![doc = "Sidecar module for class [`ColorPicker`][crate::classes::ColorPicker].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ColorPicker` enums](https://docs.godotengine.org/en/stable/classes/class_colorpicker.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ColorPicker.`\n\nInherits [`VBoxContainer`][crate::classes::VBoxContainer].\n\nRelated symbols:\n\n* [`color_picker`][crate::classes::color_picker]: sidecar module with related enum/flag types\n* [`IColorPicker`][crate::classes::IColorPicker]: virtual methods\n\n\nSee also [Godot docs for `ColorPicker`](https://docs.godotengine.org/en/stable/classes/class_colorpicker.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ColorPicker::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ColorPicker { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ColorPicker`][crate::classes::ColorPicker].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ColorPicker` methods](https://docs.godotengine.org/en/stable/classes/class_colorpicker.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IColorPicker: crate::obj::GodotClass < Base = ColorPicker > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ColorPicker { + pub fn set_pick_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2219usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "set_pick_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pick_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2220usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "get_pick_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_deferred_mode(&mut self, mode: bool,) { + type CallSig = ((), bool); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2221usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "set_deferred_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_deferred_mode(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2222usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "is_deferred_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color_mode(&mut self, color_mode: crate::classes::color_picker::ColorModeType,) { + type CallSig = ((), crate::classes::color_picker::ColorModeType); + let args = (color_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2223usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "set_color_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_mode(&self,) -> crate::classes::color_picker::ColorModeType { + type CallSig = (crate::classes::color_picker::ColorModeType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2224usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "get_color_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_edit_alpha(&mut self, show: bool,) { + type CallSig = ((), bool); + let args = (show,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2225usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "set_edit_alpha", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_editing_alpha(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2226usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "is_editing_alpha", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_can_add_swatches(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2227usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "set_can_add_swatches", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn are_swatches_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2228usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "are_swatches_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_presets_visible(&mut self, visible: bool,) { + type CallSig = ((), bool); + let args = (visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2229usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "set_presets_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn are_presets_visible(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2230usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "are_presets_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_modes_visible(&mut self, visible: bool,) { + type CallSig = ((), bool); + let args = (visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2231usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "set_modes_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn are_modes_visible(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2232usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "are_modes_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sampler_visible(&mut self, visible: bool,) { + type CallSig = ((), bool); + let args = (visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2233usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "set_sampler_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_sampler_visible(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2234usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "is_sampler_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sliders_visible(&mut self, visible: bool,) { + type CallSig = ((), bool); + let args = (visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2235usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "set_sliders_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn are_sliders_visible(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2236usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "are_sliders_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hex_visible(&mut self, visible: bool,) { + type CallSig = ((), bool); + let args = (visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2237usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "set_hex_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hex_visible(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2238usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "is_hex_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_preset(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2239usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "add_preset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn erase_preset(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2240usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "erase_preset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_presets(&self,) -> PackedColorArray { + type CallSig = (PackedColorArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2241usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "get_presets", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_recent_preset(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2242usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "add_recent_preset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn erase_recent_preset(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2243usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "erase_recent_preset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_recent_presets(&self,) -> PackedColorArray { + type CallSig = (PackedColorArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2244usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "get_recent_presets", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_picker_shape(&mut self, shape: crate::classes::color_picker::PickerShapeType,) { + type CallSig = ((), crate::classes::color_picker::PickerShapeType); + let args = (shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2245usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "set_picker_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_picker_shape(&self,) -> crate::classes::color_picker::PickerShapeType { + type CallSig = (crate::classes::color_picker::PickerShapeType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2246usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPicker", "get_picker_shape", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ColorPicker { + type Base = crate::classes::VBoxContainer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ColorPicker")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ColorPicker { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VBoxContainer > for ColorPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::BoxContainer > for ColorPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for ColorPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for ColorPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for ColorPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ColorPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ColorPicker { + + } + impl crate::obj::cap::GodotDefault for ColorPicker { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ColorPicker { + type Target = crate::classes::VBoxContainer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ColorPicker { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ColorPicker`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ColorPicker { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ColorPicker > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VBoxContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BoxContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ColorModeType { + ord: i32 +} +impl ColorModeType { + #[doc(alias = "MODE_RGB")] + #[doc = "Godot enumerator name: `MODE_RGB`"] + pub const RGB: ColorModeType = ColorModeType { + ord: 0i32 + }; + #[doc(alias = "MODE_HSV")] + #[doc = "Godot enumerator name: `MODE_HSV`"] + pub const HSV: ColorModeType = ColorModeType { + ord: 1i32 + }; + #[doc(alias = "MODE_RAW")] + #[doc = "Godot enumerator name: `MODE_RAW`"] + pub const RAW: ColorModeType = ColorModeType { + ord: 2i32 + }; + #[doc(alias = "MODE_OKHSL")] + #[doc = "Godot enumerator name: `MODE_OKHSL`"] + pub const OKHSL: ColorModeType = ColorModeType { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ColorModeType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ColorModeType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ColorModeType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RGB => "RGB", Self::HSV => "HSV", Self::RAW => "RAW", Self::OKHSL => "OKHSL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RGB => "MODE_RGB", Self::HSV => "MODE_HSV", Self::RAW => "MODE_RAW", Self::OKHSL => "MODE_OKHSL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ColorModeType { + type Via = i32; + +} +impl crate::meta::ToGodot for ColorModeType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ColorModeType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PickerShapeType { + ord: i32 +} +impl PickerShapeType { + #[doc(alias = "SHAPE_HSV_RECTANGLE")] + #[doc = "Godot enumerator name: `SHAPE_HSV_RECTANGLE`"] + pub const HSV_RECTANGLE: PickerShapeType = PickerShapeType { + ord: 0i32 + }; + #[doc(alias = "SHAPE_HSV_WHEEL")] + #[doc = "Godot enumerator name: `SHAPE_HSV_WHEEL`"] + pub const HSV_WHEEL: PickerShapeType = PickerShapeType { + ord: 1i32 + }; + #[doc(alias = "SHAPE_VHS_CIRCLE")] + #[doc = "Godot enumerator name: `SHAPE_VHS_CIRCLE`"] + pub const VHS_CIRCLE: PickerShapeType = PickerShapeType { + ord: 2i32 + }; + #[doc(alias = "SHAPE_OKHSL_CIRCLE")] + #[doc = "Godot enumerator name: `SHAPE_OKHSL_CIRCLE`"] + pub const OKHSL_CIRCLE: PickerShapeType = PickerShapeType { + ord: 3i32 + }; + #[doc(alias = "SHAPE_NONE")] + #[doc = "Godot enumerator name: `SHAPE_NONE`"] + pub const NONE: PickerShapeType = PickerShapeType { + ord: 4i32 + }; + +} +impl std::fmt::Debug for PickerShapeType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PickerShapeType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PickerShapeType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::HSV_RECTANGLE => "HSV_RECTANGLE", Self::HSV_WHEEL => "HSV_WHEEL", Self::VHS_CIRCLE => "VHS_CIRCLE", Self::OKHSL_CIRCLE => "OKHSL_CIRCLE", Self::NONE => "NONE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::HSV_RECTANGLE => "SHAPE_HSV_RECTANGLE", Self::HSV_WHEEL => "SHAPE_HSV_WHEEL", Self::VHS_CIRCLE => "SHAPE_VHS_CIRCLE", Self::OKHSL_CIRCLE => "SHAPE_OKHSL_CIRCLE", Self::NONE => "SHAPE_NONE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PickerShapeType { + type Via = i32; + +} +impl crate::meta::ToGodot for PickerShapeType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PickerShapeType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/color_picker_button.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/color_picker_button.rs new file mode 100644 index 0000000..31909ba --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/color_picker_button.rs @@ -0,0 +1,331 @@ +#![doc = "Sidecar module for class [`ColorPickerButton`][crate::classes::ColorPickerButton].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ColorPickerButton` enums](https://docs.godotengine.org/en/stable/classes/class_colorpickerbutton.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ColorPickerButton.`\n\nInherits [`Button`][crate::classes::Button].\n\nRelated symbols:\n\n* [`IColorPickerButton`][crate::classes::IColorPickerButton]: virtual methods\n\n\nSee also [Godot docs for `ColorPickerButton`](https://docs.godotengine.org/en/stable/classes/class_colorpickerbutton.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ColorPickerButton::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ColorPickerButton { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ColorPickerButton`][crate::classes::ColorPickerButton].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ColorPickerButton` methods](https://docs.godotengine.org/en/stable/classes/class_colorpickerbutton.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IColorPickerButton: crate::obj::GodotClass < Base = ColorPickerButton > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn pressed(&mut self,) { + unimplemented !() + } + fn toggled(&mut self, toggled_on: bool,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ColorPickerButton { + pub fn set_pick_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2247usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPickerButton", "set_pick_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pick_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2248usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPickerButton", "get_pick_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_picker(&mut self,) -> Option < Gd < crate::classes::ColorPicker > > { + type CallSig = (Option < Gd < crate::classes::ColorPicker > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2249usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPickerButton", "get_picker", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_popup(&mut self,) -> Option < Gd < crate::classes::PopupPanel > > { + type CallSig = (Option < Gd < crate::classes::PopupPanel > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2250usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPickerButton", "get_popup", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_edit_alpha(&mut self, show: bool,) { + type CallSig = ((), bool); + let args = (show,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2251usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPickerButton", "set_edit_alpha", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_editing_alpha(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2252usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorPickerButton", "is_editing_alpha", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ColorPickerButton { + type Base = crate::classes::Button; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ColorPickerButton")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ColorPickerButton { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Button > for ColorPickerButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::BaseButton > for ColorPickerButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for ColorPickerButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for ColorPickerButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ColorPickerButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ColorPickerButton { + + } + impl crate::obj::cap::GodotDefault for ColorPickerButton { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ColorPickerButton { + type Target = crate::classes::Button; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ColorPickerButton { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ColorPickerButton`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ColorPickerButton { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ColorPickerButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Button > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BaseButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/color_rect.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/color_rect.rs new file mode 100644 index 0000000..2888f58 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/color_rect.rs @@ -0,0 +1,281 @@ +#![doc = "Sidecar module for class [`ColorRect`][crate::classes::ColorRect].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ColorRect` enums](https://docs.godotengine.org/en/stable/classes/class_colorrect.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ColorRect.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`IColorRect`][crate::classes::IColorRect]: virtual methods\n\n\nSee also [Godot docs for `ColorRect`](https://docs.godotengine.org/en/stable/classes/class_colorrect.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ColorRect::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ColorRect { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ColorRect`][crate::classes::ColorRect].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ColorRect` methods](https://docs.godotengine.org/en/stable/classes/class_colorrect.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IColorRect: crate::obj::GodotClass < Base = ColorRect > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ColorRect { + pub fn set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2253usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorRect", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2254usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ColorRect", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ColorRect { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ColorRect")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ColorRect { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for ColorRect { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for ColorRect { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ColorRect { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ColorRect { + + } + impl crate::obj::cap::GodotDefault for ColorRect { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ColorRect { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ColorRect { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ColorRect`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ColorRect { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ColorRect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_cubemap.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_cubemap.rs new file mode 100644 index 0000000..a9ebcb1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_cubemap.rs @@ -0,0 +1,227 @@ +#![doc = "Sidecar module for class [`CompressedCubemap`][crate::classes::CompressedCubemap].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CompressedCubemap` enums](https://docs.godotengine.org/en/stable/classes/class_compressedcubemap.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CompressedCubemap.`\n\nInherits [`CompressedTextureLayered`][crate::classes::CompressedTextureLayered].\n\nRelated symbols:\n\n* [`ICompressedCubemap`][crate::classes::ICompressedCubemap]: virtual methods\n\n\nSee also [Godot docs for `CompressedCubemap`](https://docs.godotengine.org/en/stable/classes/class_compressedcubemap.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CompressedCubemap::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CompressedCubemap { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CompressedCubemap`][crate::classes::CompressedCubemap].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CompressedCubemap` methods](https://docs.godotengine.org/en/stable/classes/class_compressedcubemap.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICompressedCubemap: crate::obj::GodotClass < Base = CompressedCubemap > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_layered_type(&self,) -> u32; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_layers(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_layer_data(&self, layer_index: i32,) -> Option < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CompressedCubemap { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CompressedCubemap { + type Base = crate::classes::CompressedTextureLayered; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CompressedCubemap")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CompressedCubemap { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CompressedTextureLayered > for CompressedCubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::TextureLayered > for CompressedCubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for CompressedCubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CompressedCubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CompressedCubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CompressedCubemap { + + } + impl crate::obj::cap::GodotDefault for CompressedCubemap { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CompressedCubemap { + type Target = crate::classes::CompressedTextureLayered; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CompressedCubemap { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CompressedCubemap`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CompressedCubemap { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CompressedCubemap > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CompressedTextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_cubemap_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_cubemap_array.rs new file mode 100644 index 0000000..dcb5bf0 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_cubemap_array.rs @@ -0,0 +1,227 @@ +#![doc = "Sidecar module for class [`CompressedCubemapArray`][crate::classes::CompressedCubemapArray].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CompressedCubemapArray` enums](https://docs.godotengine.org/en/stable/classes/class_compressedcubemaparray.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CompressedCubemapArray.`\n\nInherits [`CompressedTextureLayered`][crate::classes::CompressedTextureLayered].\n\nRelated symbols:\n\n* [`ICompressedCubemapArray`][crate::classes::ICompressedCubemapArray]: virtual methods\n\n\nSee also [Godot docs for `CompressedCubemapArray`](https://docs.godotengine.org/en/stable/classes/class_compressedcubemaparray.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CompressedCubemapArray::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CompressedCubemapArray { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CompressedCubemapArray`][crate::classes::CompressedCubemapArray].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CompressedCubemapArray` methods](https://docs.godotengine.org/en/stable/classes/class_compressedcubemaparray.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICompressedCubemapArray: crate::obj::GodotClass < Base = CompressedCubemapArray > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_layered_type(&self,) -> u32; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_layers(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_layer_data(&self, layer_index: i32,) -> Option < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CompressedCubemapArray { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CompressedCubemapArray { + type Base = crate::classes::CompressedTextureLayered; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CompressedCubemapArray")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CompressedCubemapArray { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CompressedTextureLayered > for CompressedCubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::TextureLayered > for CompressedCubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for CompressedCubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CompressedCubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CompressedCubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CompressedCubemapArray { + + } + impl crate::obj::cap::GodotDefault for CompressedCubemapArray { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CompressedCubemapArray { + type Target = crate::classes::CompressedTextureLayered; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CompressedCubemapArray { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CompressedCubemapArray`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CompressedCubemapArray { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CompressedCubemapArray > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CompressedTextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_2d.rs new file mode 100644 index 0000000..7729ea1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_2d.rs @@ -0,0 +1,247 @@ +#![doc = "Sidecar module for class [`CompressedTexture2D`][crate::classes::CompressedTexture2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CompressedTexture2D` enums](https://docs.godotengine.org/en/stable/classes/class_compressedtexture2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CompressedTexture2D.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`ICompressedTexture2D`][crate::classes::ICompressedTexture2D]: virtual methods\n\n\nSee also [Godot docs for `CompressedTexture2D`](https://docs.godotengine.org/en/stable/classes/class_compressedtexture2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CompressedTexture2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CompressedTexture2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CompressedTexture2D`][crate::classes::CompressedTexture2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CompressedTexture2D` methods](https://docs.godotengine.org/en/stable/classes/class_compressedtexture2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICompressedTexture2D: crate::obj::GodotClass < Base = CompressedTexture2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CompressedTexture2D { + pub fn load(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2255usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CompressedTexture2D", "load", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_load_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2256usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CompressedTexture2D", "get_load_path", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CompressedTexture2D { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CompressedTexture2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CompressedTexture2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for CompressedTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for CompressedTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CompressedTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CompressedTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CompressedTexture2D { + + } + impl crate::obj::cap::GodotDefault for CompressedTexture2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CompressedTexture2D { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CompressedTexture2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CompressedTexture2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CompressedTexture2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CompressedTexture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_2d_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_2d_array.rs new file mode 100644 index 0000000..40f9c7e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_2d_array.rs @@ -0,0 +1,227 @@ +#![doc = "Sidecar module for class [`CompressedTexture2DArray`][crate::classes::CompressedTexture2DArray].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CompressedTexture2DArray` enums](https://docs.godotengine.org/en/stable/classes/class_compressedtexture2darray.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CompressedTexture2DArray.`\n\nInherits [`CompressedTextureLayered`][crate::classes::CompressedTextureLayered].\n\nRelated symbols:\n\n* [`ICompressedTexture2DArray`][crate::classes::ICompressedTexture2DArray]: virtual methods\n\n\nSee also [Godot docs for `CompressedTexture2DArray`](https://docs.godotengine.org/en/stable/classes/class_compressedtexture2darray.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CompressedTexture2DArray::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CompressedTexture2DArray { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CompressedTexture2DArray`][crate::classes::CompressedTexture2DArray].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CompressedTexture2DArray` methods](https://docs.godotengine.org/en/stable/classes/class_compressedtexture2darray.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICompressedTexture2DArray: crate::obj::GodotClass < Base = CompressedTexture2DArray > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_layered_type(&self,) -> u32; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_layers(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_layer_data(&self, layer_index: i32,) -> Option < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CompressedTexture2DArray { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CompressedTexture2DArray { + type Base = crate::classes::CompressedTextureLayered; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CompressedTexture2DArray")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CompressedTexture2DArray { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CompressedTextureLayered > for CompressedTexture2DArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::TextureLayered > for CompressedTexture2DArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for CompressedTexture2DArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CompressedTexture2DArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CompressedTexture2DArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CompressedTexture2DArray { + + } + impl crate::obj::cap::GodotDefault for CompressedTexture2DArray { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CompressedTexture2DArray { + type Target = crate::classes::CompressedTextureLayered; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CompressedTexture2DArray { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CompressedTexture2DArray`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CompressedTexture2DArray { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CompressedTexture2DArray > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CompressedTextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_3d.rs new file mode 100644 index 0000000..cd19f86 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_3d.rs @@ -0,0 +1,236 @@ +#![doc = "Sidecar module for class [`CompressedTexture3D`][crate::classes::CompressedTexture3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CompressedTexture3D` enums](https://docs.godotengine.org/en/stable/classes/class_compressedtexture3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CompressedTexture3D.`\n\nInherits [`Texture3D`][crate::classes::Texture3D].\n\nRelated symbols:\n\n* [`ICompressedTexture3D`][crate::classes::ICompressedTexture3D]: virtual methods\n\n\nSee also [Godot docs for `CompressedTexture3D`](https://docs.godotengine.org/en/stable/classes/class_compressedtexture3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CompressedTexture3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CompressedTexture3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CompressedTexture3D`][crate::classes::CompressedTexture3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CompressedTexture3D` methods](https://docs.godotengine.org/en/stable/classes/class_compressedtexture3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICompressedTexture3D: crate::obj::GodotClass < Base = CompressedTexture3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_depth(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_data(&self,) -> Array < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CompressedTexture3D { + pub fn load(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2257usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CompressedTexture3D", "load", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_load_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2258usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CompressedTexture3D", "get_load_path", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CompressedTexture3D { + type Base = crate::classes::Texture3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CompressedTexture3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CompressedTexture3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture3D > for CompressedTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for CompressedTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CompressedTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CompressedTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CompressedTexture3D { + + } + impl crate::obj::cap::GodotDefault for CompressedTexture3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CompressedTexture3D { + type Target = crate::classes::Texture3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CompressedTexture3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CompressedTexture3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CompressedTexture3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CompressedTexture3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_layered.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_layered.rs new file mode 100644 index 0000000..80a58b5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/compressed_texture_layered.rs @@ -0,0 +1,232 @@ +#![doc = "Sidecar module for class [`CompressedTextureLayered`][crate::classes::CompressedTextureLayered].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CompressedTextureLayered` enums](https://docs.godotengine.org/en/stable/classes/class_compressedtexturelayered.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CompressedTextureLayered.`\n\nInherits [`TextureLayered`][crate::classes::TextureLayered].\n\nRelated symbols:\n\n* [`ICompressedTextureLayered`][crate::classes::ICompressedTextureLayered]: virtual methods\n\n\nSee also [Godot docs for `CompressedTextureLayered`](https://docs.godotengine.org/en/stable/classes/class_compressedtexturelayered.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct CompressedTextureLayered { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CompressedTextureLayered`][crate::classes::CompressedTextureLayered].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CompressedTextureLayered` methods](https://docs.godotengine.org/en/stable/classes/class_compressedtexturelayered.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICompressedTextureLayered: crate::obj::GodotClass < Base = CompressedTextureLayered > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_layered_type(&self,) -> u32; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_layers(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_layer_data(&self, layer_index: i32,) -> Option < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CompressedTextureLayered { + pub fn load(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2259usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CompressedTextureLayered", "load", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_load_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2260usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CompressedTextureLayered", "get_load_path", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CompressedTextureLayered { + type Base = crate::classes::TextureLayered; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CompressedTextureLayered")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CompressedTextureLayered { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::TextureLayered > for CompressedTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for CompressedTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CompressedTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CompressedTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CompressedTextureLayered { + + } + impl std::ops::Deref for CompressedTextureLayered { + type Target = crate::classes::TextureLayered; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CompressedTextureLayered { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CompressedTextureLayered`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CompressedTextureLayered { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CompressedTextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/concave_polygon_shape_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/concave_polygon_shape_2d.rs new file mode 100644 index 0000000..0fc6ec4 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/concave_polygon_shape_2d.rs @@ -0,0 +1,224 @@ +#![doc = "Sidecar module for class [`ConcavePolygonShape2D`][crate::classes::ConcavePolygonShape2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ConcavePolygonShape2D` enums](https://docs.godotengine.org/en/stable/classes/class_concavepolygonshape2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ConcavePolygonShape2D.`\n\nInherits [`Shape2D`][crate::classes::Shape2D].\n\nRelated symbols:\n\n* [`IConcavePolygonShape2D`][crate::classes::IConcavePolygonShape2D]: virtual methods\n\n\nSee also [Godot docs for `ConcavePolygonShape2D`](https://docs.godotengine.org/en/stable/classes/class_concavepolygonshape2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ConcavePolygonShape2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ConcavePolygonShape2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ConcavePolygonShape2D`][crate::classes::ConcavePolygonShape2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ConcavePolygonShape2D` methods](https://docs.godotengine.org/en/stable/classes/class_concavepolygonshape2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IConcavePolygonShape2D: crate::obj::GodotClass < Base = ConcavePolygonShape2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ConcavePolygonShape2D { + pub fn set_segments(&mut self, segments: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(segments),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2261usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConcavePolygonShape2D", "set_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_segments(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2262usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConcavePolygonShape2D", "get_segments", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ConcavePolygonShape2D { + type Base = crate::classes::Shape2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ConcavePolygonShape2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ConcavePolygonShape2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Shape2D > for ConcavePolygonShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ConcavePolygonShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ConcavePolygonShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ConcavePolygonShape2D { + + } + impl crate::obj::cap::GodotDefault for ConcavePolygonShape2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ConcavePolygonShape2D { + type Target = crate::classes::Shape2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ConcavePolygonShape2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ConcavePolygonShape2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ConcavePolygonShape2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ConcavePolygonShape2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Shape2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/concave_polygon_shape_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/concave_polygon_shape_3d.rs new file mode 100644 index 0000000..5e4beb4 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/concave_polygon_shape_3d.rs @@ -0,0 +1,240 @@ +#![doc = "Sidecar module for class [`ConcavePolygonShape3D`][crate::classes::ConcavePolygonShape3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ConcavePolygonShape3D` enums](https://docs.godotengine.org/en/stable/classes/class_concavepolygonshape3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ConcavePolygonShape3D.`\n\nInherits [`Shape3D`][crate::classes::Shape3D].\n\nRelated symbols:\n\n* [`IConcavePolygonShape3D`][crate::classes::IConcavePolygonShape3D]: virtual methods\n\n\nSee also [Godot docs for `ConcavePolygonShape3D`](https://docs.godotengine.org/en/stable/classes/class_concavepolygonshape3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ConcavePolygonShape3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ConcavePolygonShape3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ConcavePolygonShape3D`][crate::classes::ConcavePolygonShape3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ConcavePolygonShape3D` methods](https://docs.godotengine.org/en/stable/classes/class_concavepolygonshape3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IConcavePolygonShape3D: crate::obj::GodotClass < Base = ConcavePolygonShape3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ConcavePolygonShape3D { + pub fn set_faces(&mut self, faces: &PackedVector3Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector3Array >); + let args = (RefArg::new(faces),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2263usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConcavePolygonShape3D", "set_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_faces(&self,) -> PackedVector3Array { + type CallSig = (PackedVector3Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2264usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConcavePolygonShape3D", "get_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_backface_collision_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2265usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConcavePolygonShape3D", "set_backface_collision_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_backface_collision_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2266usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConcavePolygonShape3D", "is_backface_collision_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ConcavePolygonShape3D { + type Base = crate::classes::Shape3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ConcavePolygonShape3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ConcavePolygonShape3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Shape3D > for ConcavePolygonShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ConcavePolygonShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ConcavePolygonShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ConcavePolygonShape3D { + + } + impl crate::obj::cap::GodotDefault for ConcavePolygonShape3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ConcavePolygonShape3D { + type Target = crate::classes::Shape3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ConcavePolygonShape3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ConcavePolygonShape3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ConcavePolygonShape3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ConcavePolygonShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Shape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cone_twist_joint_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cone_twist_joint_3d.rs new file mode 100644 index 0000000..a02887a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cone_twist_joint_3d.rs @@ -0,0 +1,345 @@ +#![doc = "Sidecar module for class [`ConeTwistJoint3D`][crate::classes::ConeTwistJoint3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ConeTwistJoint3D` enums](https://docs.godotengine.org/en/stable/classes/class_conetwistjoint3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ConeTwistJoint3D.`\n\nInherits [`Joint3D`][crate::classes::Joint3D].\n\nRelated symbols:\n\n* [`cone_twist_joint_3d`][crate::classes::cone_twist_joint_3d]: sidecar module with related enum/flag types\n* [`IConeTwistJoint3D`][crate::classes::IConeTwistJoint3D]: virtual methods\n\n\nSee also [Godot docs for `ConeTwistJoint3D`](https://docs.godotengine.org/en/stable/classes/class_conetwistjoint3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ConeTwistJoint3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ConeTwistJoint3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ConeTwistJoint3D`][crate::classes::ConeTwistJoint3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ConeTwistJoint3D` methods](https://docs.godotengine.org/en/stable/classes/class_conetwistjoint3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IConeTwistJoint3D: crate::obj::GodotClass < Base = ConeTwistJoint3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ConeTwistJoint3D { + pub fn set_param(&mut self, param: crate::classes::cone_twist_joint_3d::Param, value: f32,) { + type CallSig = ((), crate::classes::cone_twist_joint_3d::Param, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2267usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConeTwistJoint3D", "set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param(&self, param: crate::classes::cone_twist_joint_3d::Param,) -> f32 { + type CallSig = (f32, crate::classes::cone_twist_joint_3d::Param); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2268usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConeTwistJoint3D", "get_param", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ConeTwistJoint3D { + type Base = crate::classes::Joint3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ConeTwistJoint3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ConeTwistJoint3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Joint3D > for ConeTwistJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for ConeTwistJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ConeTwistJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ConeTwistJoint3D { + + } + impl crate::obj::cap::GodotDefault for ConeTwistJoint3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ConeTwistJoint3D { + type Target = crate::classes::Joint3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ConeTwistJoint3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ConeTwistJoint3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ConeTwistJoint3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ConeTwistJoint3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Joint3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Param { + ord: i32 +} +impl Param { + #[doc(alias = "PARAM_SWING_SPAN")] + #[doc = "Godot enumerator name: `PARAM_SWING_SPAN`"] + pub const SWING_SPAN: Param = Param { + ord: 0i32 + }; + #[doc(alias = "PARAM_TWIST_SPAN")] + #[doc = "Godot enumerator name: `PARAM_TWIST_SPAN`"] + pub const TWIST_SPAN: Param = Param { + ord: 1i32 + }; + #[doc(alias = "PARAM_BIAS")] + #[doc = "Godot enumerator name: `PARAM_BIAS`"] + pub const BIAS: Param = Param { + ord: 2i32 + }; + #[doc(alias = "PARAM_SOFTNESS")] + #[doc = "Godot enumerator name: `PARAM_SOFTNESS`"] + pub const SOFTNESS: Param = Param { + ord: 3i32 + }; + #[doc(alias = "PARAM_RELAXATION")] + #[doc = "Godot enumerator name: `PARAM_RELAXATION`"] + pub const RELAXATION: Param = Param { + ord: 4i32 + }; + #[doc(alias = "PARAM_MAX")] + #[doc = "Godot enumerator name: `PARAM_MAX`"] + pub const MAX: Param = Param { + ord: 5i32 + }; + +} +impl std::fmt::Debug for Param { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Param") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Param { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SWING_SPAN => "SWING_SPAN", Self::TWIST_SPAN => "TWIST_SPAN", Self::BIAS => "BIAS", Self::SOFTNESS => "SOFTNESS", Self::RELAXATION => "RELAXATION", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SWING_SPAN => "PARAM_SWING_SPAN", Self::TWIST_SPAN => "PARAM_TWIST_SPAN", Self::BIAS => "PARAM_BIAS", Self::SOFTNESS => "PARAM_SOFTNESS", Self::RELAXATION => "PARAM_RELAXATION", Self::MAX => "PARAM_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Param { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for Param { + type Via = i32; + +} +impl crate::meta::ToGodot for Param { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Param { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/config_file.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/config_file.rs new file mode 100644 index 0000000..3c24512 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/config_file.rs @@ -0,0 +1,366 @@ +#![doc = "Sidecar module for class [`ConfigFile`][crate::classes::ConfigFile].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ConfigFile` enums](https://docs.godotengine.org/en/stable/classes/class_configfile.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ConfigFile.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`config_file`][crate::classes::config_file]: sidecar module with related enum/flag types\n* [`IConfigFile`][crate::classes::IConfigFile]: virtual methods\n\n\nSee also [Godot docs for `ConfigFile`](https://docs.godotengine.org/en/stable/classes/class_configfile.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ConfigFile::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ConfigFile { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ConfigFile`][crate::classes::ConfigFile].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ConfigFile` methods](https://docs.godotengine.org/en/stable/classes/class_configfile.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IConfigFile: crate::obj::GodotClass < Base = ConfigFile > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ConfigFile { + pub fn set_value(&mut self, section: impl AsArg < GString >, key: impl AsArg < GString >, value: &Variant,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, RefArg < 'a2, Variant >); + let args = (section.into_arg(), key.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2269usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "set_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_value_full(&self, section: CowArg < GString >, key: CowArg < GString >, default: RefArg < Variant >,) -> Variant { + type CallSig < 'a0, 'a1, 'a2, > = (Variant, CowArg < 'a0, GString >, CowArg < 'a1, GString >, RefArg < 'a2, Variant >); + let args = (section, key, default,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2270usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "get_value", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_value_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_value(&self, section: impl AsArg < GString >, key: impl AsArg < GString >,) -> Variant { + self.get_value_ex(section, key,) . done() + } + #[inline] + pub fn get_value_ex < 'a > (&'a self, section: impl AsArg < GString > + 'a, key: impl AsArg < GString > + 'a,) -> ExGetValue < 'a > { + ExGetValue::new(self, section, key,) + } + pub fn has_section(&self, section: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (section.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2271usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "has_section", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_section_key(&self, section: impl AsArg < GString >, key: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (section.into_arg(), key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2272usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "has_section_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sections(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2273usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "get_sections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_section_keys(&self, section: impl AsArg < GString >,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >); + let args = (section.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2274usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "get_section_keys", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn erase_section(&mut self, section: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (section.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2275usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "erase_section", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn erase_section_key(&mut self, section: impl AsArg < GString >, key: impl AsArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (section.into_arg(), key.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2276usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "erase_section_key", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2277usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "load", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn parse(&mut self, data: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (data.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2278usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "parse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn save(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2279usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "save", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn encode_to_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2280usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "encode_to_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load_encrypted(&mut self, path: impl AsArg < GString >, key: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, RefArg < 'a1, PackedByteArray >); + let args = (path.into_arg(), RefArg::new(key),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2281usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "load_encrypted", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load_encrypted_pass(&mut self, path: impl AsArg < GString >, password: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (path.into_arg(), password.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2282usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "load_encrypted_pass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn save_encrypted(&mut self, path: impl AsArg < GString >, key: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, RefArg < 'a1, PackedByteArray >); + let args = (path.into_arg(), RefArg::new(key),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2283usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "save_encrypted", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn save_encrypted_pass(&mut self, path: impl AsArg < GString >, password: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (path.into_arg(), password.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2284usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "save_encrypted_pass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2285usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfigFile", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ConfigFile { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ConfigFile")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ConfigFile { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ConfigFile { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ConfigFile { + + } + impl crate::obj::cap::GodotDefault for ConfigFile { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ConfigFile { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ConfigFile { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ConfigFile`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ConfigFile { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ConfigFile > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ConfigFile::get_value_ex`][super::ConfigFile::get_value_ex]."] +#[must_use] +pub struct ExGetValue < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ConfigFile, section: CowArg < 'a, GString >, key: CowArg < 'a, GString >, default: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetValue < 'a > { + fn new(surround_object: &'a re_export::ConfigFile, section: impl AsArg < GString > + 'a, key: impl AsArg < GString > + 'a,) -> Self { + let default = Variant::nil(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, section: section.into_arg(), key: key.into_arg(), default: CowArg::Owned(default), + } + } + #[inline] + pub fn default(self, default: &'a Variant) -> Self { + Self { + default: CowArg::Borrowed(default), .. self + } + } + #[inline] + pub fn done(self) -> Variant { + let Self { + _phantom, surround_object, section, key, default, + } + = self; + re_export::ConfigFile::get_value_full(surround_object, section, key, default.cow_as_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/confirmation_dialog.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/confirmation_dialog.rs new file mode 100644 index 0000000..0a02c84 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/confirmation_dialog.rs @@ -0,0 +1,268 @@ +#![doc = "Sidecar module for class [`ConfirmationDialog`][crate::classes::ConfirmationDialog].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ConfirmationDialog` enums](https://docs.godotengine.org/en/stable/classes/class_confirmationdialog.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ConfirmationDialog.`\n\nInherits [`AcceptDialog`][crate::classes::AcceptDialog].\n\nRelated symbols:\n\n* [`IConfirmationDialog`][crate::classes::IConfirmationDialog]: virtual methods\n\n\nSee also [Godot docs for `ConfirmationDialog`](https://docs.godotengine.org/en/stable/classes/class_confirmationdialog.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ConfirmationDialog::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ConfirmationDialog { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ConfirmationDialog`][crate::classes::ConfirmationDialog].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ConfirmationDialog` methods](https://docs.godotengine.org/en/stable/classes/class_confirmationdialog.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IConfirmationDialog: crate::obj::GodotClass < Base = ConfirmationDialog > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: WindowNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_contents_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ConfirmationDialog { + pub fn get_cancel_button(&mut self,) -> Option < Gd < crate::classes::Button > > { + type CallSig = (Option < Gd < crate::classes::Button > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2286usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfirmationDialog", "get_cancel_button", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cancel_button_text(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2287usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfirmationDialog", "set_cancel_button_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cancel_button_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2288usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConfirmationDialog", "get_cancel_button_text", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ConfirmationDialog { + type Base = crate::classes::AcceptDialog; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ConfirmationDialog")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ConfirmationDialog { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::AcceptDialog > for ConfirmationDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Window > for ConfirmationDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Viewport > for ConfirmationDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ConfirmationDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ConfirmationDialog { + + } + impl crate::obj::cap::GodotDefault for ConfirmationDialog { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ConfirmationDialog { + type Target = crate::classes::AcceptDialog; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ConfirmationDialog { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ConfirmationDialog`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ConfirmationDialog { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ConfirmationDialog > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AcceptDialog > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Window > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Viewport > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/container.rs new file mode 100644 index 0000000..941d7d8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/container.rs @@ -0,0 +1,345 @@ +#![doc = "Sidecar module for class [`Container`][crate::classes::Container].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Container` enums](https://docs.godotengine.org/en/stable/classes/class_container.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Container.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`IContainer`][crate::classes::IContainer]: virtual methods\n* [`ContainerNotification`][crate::classes::notify::ContainerNotification]: notification type\n\n\nSee also [Godot docs for `Container`](https://docs.godotengine.org/en/stable/classes/class_container.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Container::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Container { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Container`][crate::classes::Container].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Container` methods](https://docs.godotengine.org/en/stable/classes/class_container.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IContainer: crate::obj::GodotClass < Base = Container > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + #[doc = "Notification type for class [`Container`][crate::classes::Container]."] + #[doc = r""] + #[doc = r" Makes it easier to keep an overview all possible notification variants for a given class, including"] + #[doc = r" notifications defined in base classes."] + #[doc = r""] + #[doc = r" Contains the [`Unknown`][Self::Unknown] variant for forward compatibility."] + #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] + #[repr(i32)] + #[allow(non_camel_case_types)] + pub enum ContainerNotification { + PRE_SORT_CHILDREN = 50i32, SORT_CHILDREN = 51i32, RESIZED = 40i32, MOUSE_ENTER = 41i32, MOUSE_EXIT = 42i32, MOUSE_ENTER_SELF = 60i32, MOUSE_EXIT_SELF = 61i32, FOCUS_ENTER = 43i32, FOCUS_EXIT = 44i32, THEME_CHANGED = 45i32, SCROLL_BEGIN = 47i32, SCROLL_END = 48i32, LAYOUT_DIRECTION_CHANGED = 49i32, TRANSFORM_CHANGED = 2000i32, LOCAL_TRANSFORM_CHANGED = 35i32, DRAW = 30i32, VISIBILITY_CHANGED = 31i32, ENTER_CANVAS = 32i32, EXIT_CANVAS = 33i32, WORLD_2D_CHANGED = 36i32, ENTER_TREE = 10i32, EXIT_TREE = 11i32, MOVED_IN_PARENT = 12i32, READY = 13i32, PAUSED = 14i32, UNPAUSED = 15i32, PHYSICS_PROCESS = 16i32, PROCESS = 17i32, PARENTED = 18i32, UNPARENTED = 19i32, SCENE_INSTANTIATED = 20i32, DRAG_BEGIN = 21i32, DRAG_END = 22i32, PATH_RENAMED = 23i32, CHILD_ORDER_CHANGED = 24i32, INTERNAL_PROCESS = 25i32, INTERNAL_PHYSICS_PROCESS = 26i32, POST_ENTER_TREE = 27i32, DISABLED = 28i32, ENABLED = 29i32, RESET_PHYSICS_INTERPOLATION = 2001i32, EDITOR_PRE_SAVE = 9001i32, EDITOR_POST_SAVE = 9002i32, WM_MOUSE_ENTER = 1002i32, WM_MOUSE_EXIT = 1003i32, WM_WINDOW_FOCUS_IN = 1004i32, WM_WINDOW_FOCUS_OUT = 1005i32, WM_CLOSE_REQUEST = 1006i32, WM_GO_BACK_REQUEST = 1007i32, WM_SIZE_CHANGED = 1008i32, WM_DPI_CHANGE = 1009i32, VP_MOUSE_ENTER = 1010i32, VP_MOUSE_EXIT = 1011i32, OS_MEMORY_WARNING = 2009i32, TRANSLATION_CHANGED = 2010i32, WM_ABOUT = 2011i32, CRASH = 2012i32, OS_IME_UPDATE = 2013i32, APPLICATION_RESUMED = 2014i32, APPLICATION_PAUSED = 2015i32, APPLICATION_FOCUS_IN = 2016i32, APPLICATION_FOCUS_OUT = 2017i32, TEXT_SERVER_CHANGED = 2018i32, POSTINITIALIZE = 0i32, PREDELETE = 1i32, EXTENSION_RELOADED = 2i32, #[doc = r" Since Godot represents notifications as integers, it's always possible that a notification outside the known types"] + #[doc = r" is received. For example, the user can manually issue notifications through `Object::notify()`."] + #[doc = r""] + #[doc = r" This is also necessary if you develop an extension on a Godot version and want to be forward-compatible with newer"] + #[doc = r" versions. If Godot adds new notifications, they will be unknown to your extension, but you can still handle them."] + Unknown(i32), + } + impl From < i32 > for ContainerNotification { + #[doc = r" Always succeeds, mapping unknown integers to the `Unknown` variant."] + fn from(enumerator: i32) -> Self { + match enumerator { + 50i32 => Self::PRE_SORT_CHILDREN, 51i32 => Self::SORT_CHILDREN, 40i32 => Self::RESIZED, 41i32 => Self::MOUSE_ENTER, 42i32 => Self::MOUSE_EXIT, 60i32 => Self::MOUSE_ENTER_SELF, 61i32 => Self::MOUSE_EXIT_SELF, 43i32 => Self::FOCUS_ENTER, 44i32 => Self::FOCUS_EXIT, 45i32 => Self::THEME_CHANGED, 47i32 => Self::SCROLL_BEGIN, 48i32 => Self::SCROLL_END, 49i32 => Self::LAYOUT_DIRECTION_CHANGED, 2000i32 => Self::TRANSFORM_CHANGED, 35i32 => Self::LOCAL_TRANSFORM_CHANGED, 30i32 => Self::DRAW, 31i32 => Self::VISIBILITY_CHANGED, 32i32 => Self::ENTER_CANVAS, 33i32 => Self::EXIT_CANVAS, 36i32 => Self::WORLD_2D_CHANGED, 10i32 => Self::ENTER_TREE, 11i32 => Self::EXIT_TREE, 12i32 => Self::MOVED_IN_PARENT, 13i32 => Self::READY, 14i32 => Self::PAUSED, 15i32 => Self::UNPAUSED, 16i32 => Self::PHYSICS_PROCESS, 17i32 => Self::PROCESS, 18i32 => Self::PARENTED, 19i32 => Self::UNPARENTED, 20i32 => Self::SCENE_INSTANTIATED, 21i32 => Self::DRAG_BEGIN, 22i32 => Self::DRAG_END, 23i32 => Self::PATH_RENAMED, 24i32 => Self::CHILD_ORDER_CHANGED, 25i32 => Self::INTERNAL_PROCESS, 26i32 => Self::INTERNAL_PHYSICS_PROCESS, 27i32 => Self::POST_ENTER_TREE, 28i32 => Self::DISABLED, 29i32 => Self::ENABLED, 2001i32 => Self::RESET_PHYSICS_INTERPOLATION, 9001i32 => Self::EDITOR_PRE_SAVE, 9002i32 => Self::EDITOR_POST_SAVE, 1002i32 => Self::WM_MOUSE_ENTER, 1003i32 => Self::WM_MOUSE_EXIT, 1004i32 => Self::WM_WINDOW_FOCUS_IN, 1005i32 => Self::WM_WINDOW_FOCUS_OUT, 1006i32 => Self::WM_CLOSE_REQUEST, 1007i32 => Self::WM_GO_BACK_REQUEST, 1008i32 => Self::WM_SIZE_CHANGED, 1009i32 => Self::WM_DPI_CHANGE, 1010i32 => Self::VP_MOUSE_ENTER, 1011i32 => Self::VP_MOUSE_EXIT, 2009i32 => Self::OS_MEMORY_WARNING, 2010i32 => Self::TRANSLATION_CHANGED, 2011i32 => Self::WM_ABOUT, 2012i32 => Self::CRASH, 2013i32 => Self::OS_IME_UPDATE, 2014i32 => Self::APPLICATION_RESUMED, 2015i32 => Self::APPLICATION_PAUSED, 2016i32 => Self::APPLICATION_FOCUS_IN, 2017i32 => Self::APPLICATION_FOCUS_OUT, 2018i32 => Self::TEXT_SERVER_CHANGED, 0i32 => Self::POSTINITIALIZE, 1i32 => Self::PREDELETE, 2i32 => Self::EXTENSION_RELOADED, other_int => Self::Unknown(other_int), + } + } + } + impl From < ContainerNotification > for i32 { + fn from(notification: ContainerNotification) -> i32 { + match notification { + ContainerNotification::PRE_SORT_CHILDREN => 50i32, ContainerNotification::SORT_CHILDREN => 51i32, ContainerNotification::RESIZED => 40i32, ContainerNotification::MOUSE_ENTER => 41i32, ContainerNotification::MOUSE_EXIT => 42i32, ContainerNotification::MOUSE_ENTER_SELF => 60i32, ContainerNotification::MOUSE_EXIT_SELF => 61i32, ContainerNotification::FOCUS_ENTER => 43i32, ContainerNotification::FOCUS_EXIT => 44i32, ContainerNotification::THEME_CHANGED => 45i32, ContainerNotification::SCROLL_BEGIN => 47i32, ContainerNotification::SCROLL_END => 48i32, ContainerNotification::LAYOUT_DIRECTION_CHANGED => 49i32, ContainerNotification::TRANSFORM_CHANGED => 2000i32, ContainerNotification::LOCAL_TRANSFORM_CHANGED => 35i32, ContainerNotification::DRAW => 30i32, ContainerNotification::VISIBILITY_CHANGED => 31i32, ContainerNotification::ENTER_CANVAS => 32i32, ContainerNotification::EXIT_CANVAS => 33i32, ContainerNotification::WORLD_2D_CHANGED => 36i32, ContainerNotification::ENTER_TREE => 10i32, ContainerNotification::EXIT_TREE => 11i32, ContainerNotification::MOVED_IN_PARENT => 12i32, ContainerNotification::READY => 13i32, ContainerNotification::PAUSED => 14i32, ContainerNotification::UNPAUSED => 15i32, ContainerNotification::PHYSICS_PROCESS => 16i32, ContainerNotification::PROCESS => 17i32, ContainerNotification::PARENTED => 18i32, ContainerNotification::UNPARENTED => 19i32, ContainerNotification::SCENE_INSTANTIATED => 20i32, ContainerNotification::DRAG_BEGIN => 21i32, ContainerNotification::DRAG_END => 22i32, ContainerNotification::PATH_RENAMED => 23i32, ContainerNotification::CHILD_ORDER_CHANGED => 24i32, ContainerNotification::INTERNAL_PROCESS => 25i32, ContainerNotification::INTERNAL_PHYSICS_PROCESS => 26i32, ContainerNotification::POST_ENTER_TREE => 27i32, ContainerNotification::DISABLED => 28i32, ContainerNotification::ENABLED => 29i32, ContainerNotification::RESET_PHYSICS_INTERPOLATION => 2001i32, ContainerNotification::EDITOR_PRE_SAVE => 9001i32, ContainerNotification::EDITOR_POST_SAVE => 9002i32, ContainerNotification::WM_MOUSE_ENTER => 1002i32, ContainerNotification::WM_MOUSE_EXIT => 1003i32, ContainerNotification::WM_WINDOW_FOCUS_IN => 1004i32, ContainerNotification::WM_WINDOW_FOCUS_OUT => 1005i32, ContainerNotification::WM_CLOSE_REQUEST => 1006i32, ContainerNotification::WM_GO_BACK_REQUEST => 1007i32, ContainerNotification::WM_SIZE_CHANGED => 1008i32, ContainerNotification::WM_DPI_CHANGE => 1009i32, ContainerNotification::VP_MOUSE_ENTER => 1010i32, ContainerNotification::VP_MOUSE_EXIT => 1011i32, ContainerNotification::OS_MEMORY_WARNING => 2009i32, ContainerNotification::TRANSLATION_CHANGED => 2010i32, ContainerNotification::WM_ABOUT => 2011i32, ContainerNotification::CRASH => 2012i32, ContainerNotification::OS_IME_UPDATE => 2013i32, ContainerNotification::APPLICATION_RESUMED => 2014i32, ContainerNotification::APPLICATION_PAUSED => 2015i32, ContainerNotification::APPLICATION_FOCUS_IN => 2016i32, ContainerNotification::APPLICATION_FOCUS_OUT => 2017i32, ContainerNotification::TEXT_SERVER_CHANGED => 2018i32, ContainerNotification::POSTINITIALIZE => 0i32, ContainerNotification::PREDELETE => 1i32, ContainerNotification::EXTENSION_RELOADED => 2i32, ContainerNotification::Unknown(int) => int, + } + } + } + impl Container { + pub fn queue_sort(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2289usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Container", "queue_sort", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn fit_child_in_rect(&mut self, child: impl AsObjectArg < crate::classes::Control >, rect: Rect2,) { + type CallSig = ((), ObjectArg < crate::classes::Control >, Rect2); + let args = (child.as_object_arg(), rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2290usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Container", "fit_child_in_rect", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" ⚠️ Sends a Godot notification to all classes inherited by the object."] + #[doc = r""] + #[doc = r" Triggers calls to `on_notification()`, and depending on the notification, also to Godot's lifecycle callbacks such as `ready()`."] + #[doc = r""] + #[doc = r" Starts from the highest ancestor (the `Object` class) and goes down the hierarchy."] + #[doc = r" See also [Godot docs for `Object::notification()`](https://docs.godotengine.org/en/latest/classes/class_object.html#id3)."] + #[doc = r""] + #[doc = r" # Panics"] + #[doc = r""] + #[doc = r" If you call this method on a user-defined object while holding a `GdRef` or `GdMut` guard on the instance, you will encounter"] + #[doc = r" a panic. The reason is that the receiving virtual method `on_notification()` acquires a `GdMut` lock dynamically, which must"] + #[doc = r" be exclusive."] + pub fn notify(&mut self, what: ContainerNotification) { + self.notification(i32::from(what), false); + + } + #[doc = r" ⚠️ Like [`Self::notify()`], but starts at the most-derived class and goes up the hierarchy."] + #[doc = r""] + #[doc = r" See docs of that method, including the panics."] + pub fn notify_reversed(&mut self, what: ContainerNotification) { + self.notification(i32::from(what), true); + + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub(crate) const NOTIFICATION_PRE_SORT_CHILDREN: i32 = 50i32; + pub(crate) const NOTIFICATION_SORT_CHILDREN: i32 = 51i32; + + } + impl crate::obj::GodotClass for Container { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Container")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Container { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for Container { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Container { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Container { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Container { + + } + impl crate::obj::cap::GodotDefault for Container { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Container { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Container { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Container`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Container { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/control.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/control.rs new file mode 100644 index 0000000..0b33534 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/control.rs @@ -0,0 +1,3090 @@ +#![doc = "Sidecar module for class [`Control`][crate::classes::Control].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Control` enums](https://docs.godotengine.org/en/stable/classes/class_control.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Control.`\n\nInherits [`CanvasItem`][crate::classes::CanvasItem].\n\nRelated symbols:\n\n* [`control`][crate::classes::control]: sidecar module with related enum/flag types\n* [`IControl`][crate::classes::IControl]: virtual methods\n* [`ControlNotification`][crate::classes::notify::ControlNotification]: notification type\n\n\nSee also [Godot docs for `Control`](https://docs.godotengine.org/en/stable/classes/class_control.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Control::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Control { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Control`][crate::classes::Control].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Control` methods](https://docs.godotengine.org/en/stable/classes/class_control.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IControl: crate::obj::GodotClass < Base = Control > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + #[doc = "Notification type for class [`Control`][crate::classes::Control]."] + #[doc = r""] + #[doc = r" Makes it easier to keep an overview all possible notification variants for a given class, including"] + #[doc = r" notifications defined in base classes."] + #[doc = r""] + #[doc = r" Contains the [`Unknown`][Self::Unknown] variant for forward compatibility."] + #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] + #[repr(i32)] + #[allow(non_camel_case_types)] + pub enum ControlNotification { + RESIZED = 40i32, MOUSE_ENTER = 41i32, MOUSE_EXIT = 42i32, MOUSE_ENTER_SELF = 60i32, MOUSE_EXIT_SELF = 61i32, FOCUS_ENTER = 43i32, FOCUS_EXIT = 44i32, THEME_CHANGED = 45i32, SCROLL_BEGIN = 47i32, SCROLL_END = 48i32, LAYOUT_DIRECTION_CHANGED = 49i32, TRANSFORM_CHANGED = 2000i32, LOCAL_TRANSFORM_CHANGED = 35i32, DRAW = 30i32, VISIBILITY_CHANGED = 31i32, ENTER_CANVAS = 32i32, EXIT_CANVAS = 33i32, WORLD_2D_CHANGED = 36i32, ENTER_TREE = 10i32, EXIT_TREE = 11i32, MOVED_IN_PARENT = 12i32, READY = 13i32, PAUSED = 14i32, UNPAUSED = 15i32, PHYSICS_PROCESS = 16i32, PROCESS = 17i32, PARENTED = 18i32, UNPARENTED = 19i32, SCENE_INSTANTIATED = 20i32, DRAG_BEGIN = 21i32, DRAG_END = 22i32, PATH_RENAMED = 23i32, CHILD_ORDER_CHANGED = 24i32, INTERNAL_PROCESS = 25i32, INTERNAL_PHYSICS_PROCESS = 26i32, POST_ENTER_TREE = 27i32, DISABLED = 28i32, ENABLED = 29i32, RESET_PHYSICS_INTERPOLATION = 2001i32, EDITOR_PRE_SAVE = 9001i32, EDITOR_POST_SAVE = 9002i32, WM_MOUSE_ENTER = 1002i32, WM_MOUSE_EXIT = 1003i32, WM_WINDOW_FOCUS_IN = 1004i32, WM_WINDOW_FOCUS_OUT = 1005i32, WM_CLOSE_REQUEST = 1006i32, WM_GO_BACK_REQUEST = 1007i32, WM_SIZE_CHANGED = 1008i32, WM_DPI_CHANGE = 1009i32, VP_MOUSE_ENTER = 1010i32, VP_MOUSE_EXIT = 1011i32, OS_MEMORY_WARNING = 2009i32, TRANSLATION_CHANGED = 2010i32, WM_ABOUT = 2011i32, CRASH = 2012i32, OS_IME_UPDATE = 2013i32, APPLICATION_RESUMED = 2014i32, APPLICATION_PAUSED = 2015i32, APPLICATION_FOCUS_IN = 2016i32, APPLICATION_FOCUS_OUT = 2017i32, TEXT_SERVER_CHANGED = 2018i32, POSTINITIALIZE = 0i32, PREDELETE = 1i32, EXTENSION_RELOADED = 2i32, #[doc = r" Since Godot represents notifications as integers, it's always possible that a notification outside the known types"] + #[doc = r" is received. For example, the user can manually issue notifications through `Object::notify()`."] + #[doc = r""] + #[doc = r" This is also necessary if you develop an extension on a Godot version and want to be forward-compatible with newer"] + #[doc = r" versions. If Godot adds new notifications, they will be unknown to your extension, but you can still handle them."] + Unknown(i32), + } + impl From < i32 > for ControlNotification { + #[doc = r" Always succeeds, mapping unknown integers to the `Unknown` variant."] + fn from(enumerator: i32) -> Self { + match enumerator { + 40i32 => Self::RESIZED, 41i32 => Self::MOUSE_ENTER, 42i32 => Self::MOUSE_EXIT, 60i32 => Self::MOUSE_ENTER_SELF, 61i32 => Self::MOUSE_EXIT_SELF, 43i32 => Self::FOCUS_ENTER, 44i32 => Self::FOCUS_EXIT, 45i32 => Self::THEME_CHANGED, 47i32 => Self::SCROLL_BEGIN, 48i32 => Self::SCROLL_END, 49i32 => Self::LAYOUT_DIRECTION_CHANGED, 2000i32 => Self::TRANSFORM_CHANGED, 35i32 => Self::LOCAL_TRANSFORM_CHANGED, 30i32 => Self::DRAW, 31i32 => Self::VISIBILITY_CHANGED, 32i32 => Self::ENTER_CANVAS, 33i32 => Self::EXIT_CANVAS, 36i32 => Self::WORLD_2D_CHANGED, 10i32 => Self::ENTER_TREE, 11i32 => Self::EXIT_TREE, 12i32 => Self::MOVED_IN_PARENT, 13i32 => Self::READY, 14i32 => Self::PAUSED, 15i32 => Self::UNPAUSED, 16i32 => Self::PHYSICS_PROCESS, 17i32 => Self::PROCESS, 18i32 => Self::PARENTED, 19i32 => Self::UNPARENTED, 20i32 => Self::SCENE_INSTANTIATED, 21i32 => Self::DRAG_BEGIN, 22i32 => Self::DRAG_END, 23i32 => Self::PATH_RENAMED, 24i32 => Self::CHILD_ORDER_CHANGED, 25i32 => Self::INTERNAL_PROCESS, 26i32 => Self::INTERNAL_PHYSICS_PROCESS, 27i32 => Self::POST_ENTER_TREE, 28i32 => Self::DISABLED, 29i32 => Self::ENABLED, 2001i32 => Self::RESET_PHYSICS_INTERPOLATION, 9001i32 => Self::EDITOR_PRE_SAVE, 9002i32 => Self::EDITOR_POST_SAVE, 1002i32 => Self::WM_MOUSE_ENTER, 1003i32 => Self::WM_MOUSE_EXIT, 1004i32 => Self::WM_WINDOW_FOCUS_IN, 1005i32 => Self::WM_WINDOW_FOCUS_OUT, 1006i32 => Self::WM_CLOSE_REQUEST, 1007i32 => Self::WM_GO_BACK_REQUEST, 1008i32 => Self::WM_SIZE_CHANGED, 1009i32 => Self::WM_DPI_CHANGE, 1010i32 => Self::VP_MOUSE_ENTER, 1011i32 => Self::VP_MOUSE_EXIT, 2009i32 => Self::OS_MEMORY_WARNING, 2010i32 => Self::TRANSLATION_CHANGED, 2011i32 => Self::WM_ABOUT, 2012i32 => Self::CRASH, 2013i32 => Self::OS_IME_UPDATE, 2014i32 => Self::APPLICATION_RESUMED, 2015i32 => Self::APPLICATION_PAUSED, 2016i32 => Self::APPLICATION_FOCUS_IN, 2017i32 => Self::APPLICATION_FOCUS_OUT, 2018i32 => Self::TEXT_SERVER_CHANGED, 0i32 => Self::POSTINITIALIZE, 1i32 => Self::PREDELETE, 2i32 => Self::EXTENSION_RELOADED, other_int => Self::Unknown(other_int), + } + } + } + impl From < ControlNotification > for i32 { + fn from(notification: ControlNotification) -> i32 { + match notification { + ControlNotification::RESIZED => 40i32, ControlNotification::MOUSE_ENTER => 41i32, ControlNotification::MOUSE_EXIT => 42i32, ControlNotification::MOUSE_ENTER_SELF => 60i32, ControlNotification::MOUSE_EXIT_SELF => 61i32, ControlNotification::FOCUS_ENTER => 43i32, ControlNotification::FOCUS_EXIT => 44i32, ControlNotification::THEME_CHANGED => 45i32, ControlNotification::SCROLL_BEGIN => 47i32, ControlNotification::SCROLL_END => 48i32, ControlNotification::LAYOUT_DIRECTION_CHANGED => 49i32, ControlNotification::TRANSFORM_CHANGED => 2000i32, ControlNotification::LOCAL_TRANSFORM_CHANGED => 35i32, ControlNotification::DRAW => 30i32, ControlNotification::VISIBILITY_CHANGED => 31i32, ControlNotification::ENTER_CANVAS => 32i32, ControlNotification::EXIT_CANVAS => 33i32, ControlNotification::WORLD_2D_CHANGED => 36i32, ControlNotification::ENTER_TREE => 10i32, ControlNotification::EXIT_TREE => 11i32, ControlNotification::MOVED_IN_PARENT => 12i32, ControlNotification::READY => 13i32, ControlNotification::PAUSED => 14i32, ControlNotification::UNPAUSED => 15i32, ControlNotification::PHYSICS_PROCESS => 16i32, ControlNotification::PROCESS => 17i32, ControlNotification::PARENTED => 18i32, ControlNotification::UNPARENTED => 19i32, ControlNotification::SCENE_INSTANTIATED => 20i32, ControlNotification::DRAG_BEGIN => 21i32, ControlNotification::DRAG_END => 22i32, ControlNotification::PATH_RENAMED => 23i32, ControlNotification::CHILD_ORDER_CHANGED => 24i32, ControlNotification::INTERNAL_PROCESS => 25i32, ControlNotification::INTERNAL_PHYSICS_PROCESS => 26i32, ControlNotification::POST_ENTER_TREE => 27i32, ControlNotification::DISABLED => 28i32, ControlNotification::ENABLED => 29i32, ControlNotification::RESET_PHYSICS_INTERPOLATION => 2001i32, ControlNotification::EDITOR_PRE_SAVE => 9001i32, ControlNotification::EDITOR_POST_SAVE => 9002i32, ControlNotification::WM_MOUSE_ENTER => 1002i32, ControlNotification::WM_MOUSE_EXIT => 1003i32, ControlNotification::WM_WINDOW_FOCUS_IN => 1004i32, ControlNotification::WM_WINDOW_FOCUS_OUT => 1005i32, ControlNotification::WM_CLOSE_REQUEST => 1006i32, ControlNotification::WM_GO_BACK_REQUEST => 1007i32, ControlNotification::WM_SIZE_CHANGED => 1008i32, ControlNotification::WM_DPI_CHANGE => 1009i32, ControlNotification::VP_MOUSE_ENTER => 1010i32, ControlNotification::VP_MOUSE_EXIT => 1011i32, ControlNotification::OS_MEMORY_WARNING => 2009i32, ControlNotification::TRANSLATION_CHANGED => 2010i32, ControlNotification::WM_ABOUT => 2011i32, ControlNotification::CRASH => 2012i32, ControlNotification::OS_IME_UPDATE => 2013i32, ControlNotification::APPLICATION_RESUMED => 2014i32, ControlNotification::APPLICATION_PAUSED => 2015i32, ControlNotification::APPLICATION_FOCUS_IN => 2016i32, ControlNotification::APPLICATION_FOCUS_OUT => 2017i32, ControlNotification::TEXT_SERVER_CHANGED => 2018i32, ControlNotification::POSTINITIALIZE => 0i32, ControlNotification::PREDELETE => 1i32, ControlNotification::EXTENSION_RELOADED => 2i32, ControlNotification::Unknown(int) => int, + } + } + } + impl Control { + pub fn accept_event(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2291usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "accept_event", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_minimum_size(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2292usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_minimum_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_combined_minimum_size(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2293usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_combined_minimum_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_anchors_preset_full(&mut self, preset: crate::classes::control::LayoutPreset, keep_offsets: bool,) { + type CallSig = ((), crate::classes::control::LayoutPreset, bool); + let args = (preset, keep_offsets,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2294usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_anchors_preset", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_anchors_preset_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_anchors_preset(&mut self, preset: crate::classes::control::LayoutPreset,) { + self.set_anchors_preset_ex(preset,) . done() + } + #[inline] + pub fn set_anchors_preset_ex < 'a > (&'a mut self, preset: crate::classes::control::LayoutPreset,) -> ExSetAnchorsPreset < 'a > { + ExSetAnchorsPreset::new(self, preset,) + } + pub(crate) fn set_offsets_preset_full(&mut self, preset: crate::classes::control::LayoutPreset, resize_mode: crate::classes::control::LayoutPresetMode, margin: i32,) { + type CallSig = ((), crate::classes::control::LayoutPreset, crate::classes::control::LayoutPresetMode, i32); + let args = (preset, resize_mode, margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2295usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_offsets_preset", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_offsets_preset_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_offsets_preset(&mut self, preset: crate::classes::control::LayoutPreset,) { + self.set_offsets_preset_ex(preset,) . done() + } + #[inline] + pub fn set_offsets_preset_ex < 'a > (&'a mut self, preset: crate::classes::control::LayoutPreset,) -> ExSetOffsetsPreset < 'a > { + ExSetOffsetsPreset::new(self, preset,) + } + pub(crate) fn set_anchors_and_offsets_preset_full(&mut self, preset: crate::classes::control::LayoutPreset, resize_mode: crate::classes::control::LayoutPresetMode, margin: i32,) { + type CallSig = ((), crate::classes::control::LayoutPreset, crate::classes::control::LayoutPresetMode, i32); + let args = (preset, resize_mode, margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2296usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_anchors_and_offsets_preset", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_anchors_and_offsets_preset_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_anchors_and_offsets_preset(&mut self, preset: crate::classes::control::LayoutPreset,) { + self.set_anchors_and_offsets_preset_ex(preset,) . done() + } + #[inline] + pub fn set_anchors_and_offsets_preset_ex < 'a > (&'a mut self, preset: crate::classes::control::LayoutPreset,) -> ExSetAnchorsAndOffsetsPreset < 'a > { + ExSetAnchorsAndOffsetsPreset::new(self, preset,) + } + pub(crate) fn set_anchor_full(&mut self, side: crate::global::Side, anchor: f32, keep_offset: bool, push_opposite_anchor: bool,) { + type CallSig = ((), crate::global::Side, f32, bool, bool); + let args = (side, anchor, keep_offset, push_opposite_anchor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2297usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_anchor", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_anchor_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_anchor(&mut self, side: crate::global::Side, anchor: f32,) { + self.set_anchor_ex(side, anchor,) . done() + } + #[inline] + pub fn set_anchor_ex < 'a > (&'a mut self, side: crate::global::Side, anchor: f32,) -> ExSetAnchor < 'a > { + ExSetAnchor::new(self, side, anchor,) + } + pub fn get_anchor(&self, side: crate::global::Side,) -> f32 { + type CallSig = (f32, crate::global::Side); + let args = (side,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2298usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_anchor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offset(&mut self, side: crate::global::Side, offset: f32,) { + type CallSig = ((), crate::global::Side, f32); + let args = (side, offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2299usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset(&self, offset: crate::global::Side,) -> f32 { + type CallSig = (f32, crate::global::Side); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2300usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_anchor_and_offset_full(&mut self, side: crate::global::Side, anchor: f32, offset: f32, push_opposite_anchor: bool,) { + type CallSig = ((), crate::global::Side, f32, f32, bool); + let args = (side, anchor, offset, push_opposite_anchor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2301usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_anchor_and_offset", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_anchor_and_offset_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_anchor_and_offset(&mut self, side: crate::global::Side, anchor: f32, offset: f32,) { + self.set_anchor_and_offset_ex(side, anchor, offset,) . done() + } + #[inline] + pub fn set_anchor_and_offset_ex < 'a > (&'a mut self, side: crate::global::Side, anchor: f32, offset: f32,) -> ExSetAnchorAndOffset < 'a > { + ExSetAnchorAndOffset::new(self, side, anchor, offset,) + } + pub fn set_begin(&mut self, position: Vector2,) { + type CallSig = ((), Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2302usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_end(&mut self, position: Vector2,) { + type CallSig = ((), Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2303usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_position_full(&mut self, position: Vector2, keep_offsets: bool,) { + type CallSig = ((), Vector2, bool); + let args = (position, keep_offsets,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2304usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_position", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_position_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_position(&mut self, position: Vector2,) { + self.set_position_ex(position,) . done() + } + #[inline] + pub fn set_position_ex < 'a > (&'a mut self, position: Vector2,) -> ExSetPosition < 'a > { + ExSetPosition::new(self, position,) + } + pub(crate) fn set_size_full(&mut self, size: Vector2, keep_offsets: bool,) { + type CallSig = ((), Vector2, bool); + let args = (size, keep_offsets,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2305usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_size(&mut self, size: Vector2,) { + self.set_size_ex(size,) . done() + } + #[inline] + pub fn set_size_ex < 'a > (&'a mut self, size: Vector2,) -> ExSetSize < 'a > { + ExSetSize::new(self, size,) + } + pub fn reset_size(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2306usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "reset_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_custom_minimum_size(&mut self, size: Vector2,) { + type CallSig = ((), Vector2); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2307usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_custom_minimum_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_global_position_full(&mut self, position: Vector2, keep_offsets: bool,) { + type CallSig = ((), Vector2, bool); + let args = (position, keep_offsets,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2308usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_global_position", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_global_position_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_global_position(&mut self, position: Vector2,) { + self.set_global_position_ex(position,) . done() + } + #[inline] + pub fn set_global_position_ex < 'a > (&'a mut self, position: Vector2,) -> ExSetGlobalPosition < 'a > { + ExSetGlobalPosition::new(self, position,) + } + pub fn set_rotation(&mut self, radians: f32,) { + type CallSig = ((), f32); + let args = (radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2309usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation_degrees(&mut self, degrees: f32,) { + type CallSig = ((), f32); + let args = (degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2310usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_rotation_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scale(&mut self, scale: Vector2,) { + type CallSig = ((), Vector2); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2311usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pivot_offset(&mut self, pivot_offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (pivot_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2312usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_pivot_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_begin(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2313usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_end(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2314usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2315usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2316usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2317usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation_degrees(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2318usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_rotation_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scale(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2319usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pivot_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2320usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_pivot_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_custom_minimum_size(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2321usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_custom_minimum_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_parent_area_size(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2322usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_parent_area_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2323usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_global_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_screen_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2324usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_screen_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rect(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2325usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_rect(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2326usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_global_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_focus_mode(&mut self, mode: crate::classes::control::FocusMode,) { + type CallSig = ((), crate::classes::control::FocusMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2327usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_focus_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_focus_mode(&self,) -> crate::classes::control::FocusMode { + type CallSig = (crate::classes::control::FocusMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2328usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_focus_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_focus(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2329usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_focus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn grab_focus(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2330usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "grab_focus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn release_focus(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2331usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "release_focus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_prev_valid_focus(&self,) -> Option < Gd < crate::classes::Control > > { + type CallSig = (Option < Gd < crate::classes::Control > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2332usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "find_prev_valid_focus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_next_valid_focus(&self,) -> Option < Gd < crate::classes::Control > > { + type CallSig = (Option < Gd < crate::classes::Control > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2333usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "find_next_valid_focus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_valid_focus_neighbor(&self, side: crate::global::Side,) -> Option < Gd < crate::classes::Control > > { + type CallSig = (Option < Gd < crate::classes::Control > >, crate::global::Side); + let args = (side,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2334usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "find_valid_focus_neighbor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_h_size_flags(&mut self, flags: crate::classes::control::SizeFlags,) { + type CallSig = ((), crate::classes::control::SizeFlags); + let args = (flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2335usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_h_size_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_h_size_flags(&self,) -> crate::classes::control::SizeFlags { + type CallSig = (crate::classes::control::SizeFlags,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2336usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_h_size_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stretch_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2337usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_stretch_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stretch_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2338usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_stretch_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_v_size_flags(&mut self, flags: crate::classes::control::SizeFlags,) { + type CallSig = ((), crate::classes::control::SizeFlags); + let args = (flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2339usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_v_size_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_v_size_flags(&self,) -> crate::classes::control::SizeFlags { + type CallSig = (crate::classes::control::SizeFlags,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2340usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_v_size_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_theme(&mut self, theme: impl AsObjectArg < crate::classes::Theme >,) { + type CallSig = ((), ObjectArg < crate::classes::Theme >); + let args = (theme.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2341usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_theme", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_theme(&self,) -> Option < Gd < crate::classes::Theme > > { + type CallSig = (Option < Gd < crate::classes::Theme > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2342usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_theme", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_theme_type_variation(&mut self, theme_type: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (theme_type.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2343usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_theme_type_variation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_theme_type_variation(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2344usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_theme_type_variation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn begin_bulk_theme_override(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2345usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "begin_bulk_theme_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn end_bulk_theme_override(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2346usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "end_bulk_theme_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_theme_icon_override(&mut self, name: impl AsArg < StringName >, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, ObjectArg < crate::classes::Texture2D >); + let args = (name.into_arg(), texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2347usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "add_theme_icon_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_theme_stylebox_override(&mut self, name: impl AsArg < StringName >, stylebox: impl AsObjectArg < crate::classes::StyleBox >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, ObjectArg < crate::classes::StyleBox >); + let args = (name.into_arg(), stylebox.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2348usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "add_theme_stylebox_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_theme_font_override(&mut self, name: impl AsArg < StringName >, font: impl AsObjectArg < crate::classes::Font >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, ObjectArg < crate::classes::Font >); + let args = (name.into_arg(), font.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2349usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "add_theme_font_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_theme_font_size_override(&mut self, name: impl AsArg < StringName >, font_size: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, i32); + let args = (name.into_arg(), font_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2350usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "add_theme_font_size_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_theme_color_override(&mut self, name: impl AsArg < StringName >, color: Color,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, Color); + let args = (name.into_arg(), color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2351usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "add_theme_color_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_theme_constant_override(&mut self, name: impl AsArg < StringName >, constant: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, i32); + let args = (name.into_arg(), constant,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2352usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "add_theme_constant_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_theme_icon_override(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2353usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "remove_theme_icon_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_theme_stylebox_override(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2354usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "remove_theme_stylebox_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_theme_font_override(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2355usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "remove_theme_font_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_theme_font_size_override(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2356usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "remove_theme_font_size_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_theme_color_override(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2357usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "remove_theme_color_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_theme_constant_override(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2358usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "remove_theme_constant_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_theme_icon_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig < 'a0, 'a1, > = (Option < Gd < crate::classes::Texture2D > >, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2359usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_theme_icon", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_theme_icon_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_theme_icon(&self, name: impl AsArg < StringName >,) -> Option < Gd < crate::classes::Texture2D > > { + self.get_theme_icon_ex(name,) . done() + } + #[inline] + pub fn get_theme_icon_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExGetThemeIcon < 'a > { + ExGetThemeIcon::new(self, name,) + } + pub(crate) fn get_theme_stylebox_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> Option < Gd < crate::classes::StyleBox > > { + type CallSig < 'a0, 'a1, > = (Option < Gd < crate::classes::StyleBox > >, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2360usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_theme_stylebox", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_theme_stylebox_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_theme_stylebox(&self, name: impl AsArg < StringName >,) -> Option < Gd < crate::classes::StyleBox > > { + self.get_theme_stylebox_ex(name,) . done() + } + #[inline] + pub fn get_theme_stylebox_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExGetThemeStylebox < 'a > { + ExGetThemeStylebox::new(self, name,) + } + pub(crate) fn get_theme_font_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> Option < Gd < crate::classes::Font > > { + type CallSig < 'a0, 'a1, > = (Option < Gd < crate::classes::Font > >, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2361usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_theme_font", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_theme_font_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_theme_font(&self, name: impl AsArg < StringName >,) -> Option < Gd < crate::classes::Font > > { + self.get_theme_font_ex(name,) . done() + } + #[inline] + pub fn get_theme_font_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExGetThemeFont < 'a > { + ExGetThemeFont::new(self, name,) + } + pub(crate) fn get_theme_font_size_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> i32 { + type CallSig < 'a0, 'a1, > = (i32, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2362usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_theme_font_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_theme_font_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_theme_font_size(&self, name: impl AsArg < StringName >,) -> i32 { + self.get_theme_font_size_ex(name,) . done() + } + #[inline] + pub fn get_theme_font_size_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExGetThemeFontSize < 'a > { + ExGetThemeFontSize::new(self, name,) + } + pub(crate) fn get_theme_color_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> Color { + type CallSig < 'a0, 'a1, > = (Color, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2363usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_theme_color", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_theme_color_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_theme_color(&self, name: impl AsArg < StringName >,) -> Color { + self.get_theme_color_ex(name,) . done() + } + #[inline] + pub fn get_theme_color_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExGetThemeColor < 'a > { + ExGetThemeColor::new(self, name,) + } + pub(crate) fn get_theme_constant_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> i32 { + type CallSig < 'a0, 'a1, > = (i32, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2364usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_theme_constant", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_theme_constant_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_theme_constant(&self, name: impl AsArg < StringName >,) -> i32 { + self.get_theme_constant_ex(name,) . done() + } + #[inline] + pub fn get_theme_constant_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExGetThemeConstant < 'a > { + ExGetThemeConstant::new(self, name,) + } + pub fn has_theme_icon_override(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2365usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_icon_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_theme_stylebox_override(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2366usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_stylebox_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_theme_font_override(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2367usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_font_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_theme_font_size_override(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2368usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_font_size_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_theme_color_override(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2369usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_color_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_theme_constant_override(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2370usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_constant_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn has_theme_icon_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2371usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_icon", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::has_theme_icon_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn has_theme_icon(&self, name: impl AsArg < StringName >,) -> bool { + self.has_theme_icon_ex(name,) . done() + } + #[inline] + pub fn has_theme_icon_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExHasThemeIcon < 'a > { + ExHasThemeIcon::new(self, name,) + } + pub(crate) fn has_theme_stylebox_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2372usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_stylebox", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::has_theme_stylebox_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn has_theme_stylebox(&self, name: impl AsArg < StringName >,) -> bool { + self.has_theme_stylebox_ex(name,) . done() + } + #[inline] + pub fn has_theme_stylebox_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExHasThemeStylebox < 'a > { + ExHasThemeStylebox::new(self, name,) + } + pub(crate) fn has_theme_font_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2373usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_font", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::has_theme_font_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn has_theme_font(&self, name: impl AsArg < StringName >,) -> bool { + self.has_theme_font_ex(name,) . done() + } + #[inline] + pub fn has_theme_font_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExHasThemeFont < 'a > { + ExHasThemeFont::new(self, name,) + } + pub(crate) fn has_theme_font_size_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2374usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_font_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::has_theme_font_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn has_theme_font_size(&self, name: impl AsArg < StringName >,) -> bool { + self.has_theme_font_size_ex(name,) . done() + } + #[inline] + pub fn has_theme_font_size_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExHasThemeFontSize < 'a > { + ExHasThemeFontSize::new(self, name,) + } + pub(crate) fn has_theme_color_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2375usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_color", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::has_theme_color_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn has_theme_color(&self, name: impl AsArg < StringName >,) -> bool { + self.has_theme_color_ex(name,) . done() + } + #[inline] + pub fn has_theme_color_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExHasThemeColor < 'a > { + ExHasThemeColor::new(self, name,) + } + pub(crate) fn has_theme_constant_full(&self, name: CowArg < StringName >, theme_type: CowArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name, theme_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2376usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "has_theme_constant", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::has_theme_constant_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn has_theme_constant(&self, name: impl AsArg < StringName >,) -> bool { + self.has_theme_constant_ex(name,) . done() + } + #[inline] + pub fn has_theme_constant_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExHasThemeConstant < 'a > { + ExHasThemeConstant::new(self, name,) + } + pub fn get_theme_default_base_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2377usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_theme_default_base_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_theme_default_font(&self,) -> Option < Gd < crate::classes::Font > > { + type CallSig = (Option < Gd < crate::classes::Font > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2378usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_theme_default_font", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_theme_default_font_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2379usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_theme_default_font_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_parent_control(&self,) -> Option < Gd < crate::classes::Control > > { + type CallSig = (Option < Gd < crate::classes::Control > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2380usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_parent_control", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_h_grow_direction(&mut self, direction: crate::classes::control::GrowDirection,) { + type CallSig = ((), crate::classes::control::GrowDirection); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2381usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_h_grow_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_h_grow_direction(&self,) -> crate::classes::control::GrowDirection { + type CallSig = (crate::classes::control::GrowDirection,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2382usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_h_grow_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_v_grow_direction(&mut self, direction: crate::classes::control::GrowDirection,) { + type CallSig = ((), crate::classes::control::GrowDirection); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2383usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_v_grow_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_v_grow_direction(&self,) -> crate::classes::control::GrowDirection { + type CallSig = (crate::classes::control::GrowDirection,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2384usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_v_grow_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tooltip_text(&mut self, hint: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (hint.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2385usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_tooltip_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tooltip_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2386usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_tooltip_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_tooltip_full(&self, at_position: Vector2,) -> GString { + type CallSig = (GString, Vector2); + let args = (at_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2387usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_tooltip_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_tooltip(&self,) -> GString { + self.get_tooltip_ex() . done() + } + #[inline] + pub fn get_tooltip_ex < 'a > (&'a self,) -> ExGetTooltip < 'a > { + ExGetTooltip::new(self,) + } + pub fn set_default_cursor_shape(&mut self, shape: crate::classes::control::CursorShape,) { + type CallSig = ((), crate::classes::control::CursorShape); + let args = (shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2388usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_default_cursor_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_default_cursor_shape(&self,) -> crate::classes::control::CursorShape { + type CallSig = (crate::classes::control::CursorShape,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2389usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_default_cursor_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_cursor_shape_full(&self, position: Vector2,) -> crate::classes::control::CursorShape { + type CallSig = (crate::classes::control::CursorShape, Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2390usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_cursor_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_cursor_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_cursor_shape(&self,) -> crate::classes::control::CursorShape { + self.get_cursor_shape_ex() . done() + } + #[inline] + pub fn get_cursor_shape_ex < 'a > (&'a self,) -> ExGetCursorShape < 'a > { + ExGetCursorShape::new(self,) + } + pub fn set_focus_neighbor(&mut self, side: crate::global::Side, neighbor: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), crate::global::Side, CowArg < 'a0, NodePath >); + let args = (side, neighbor.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2391usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_focus_neighbor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_focus_neighbor(&self, side: crate::global::Side,) -> NodePath { + type CallSig = (NodePath, crate::global::Side); + let args = (side,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2392usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_focus_neighbor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_focus_next(&mut self, next: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (next.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2393usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_focus_next", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_focus_next(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2394usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_focus_next", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_focus_previous(&mut self, previous: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (previous.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2395usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_focus_previous", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_focus_previous(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2396usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_focus_previous", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_drag(&mut self, data: &Variant, preview: impl AsObjectArg < crate::classes::Control >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >, ObjectArg < crate::classes::Control >); + let args = (RefArg::new(data), preview.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2397usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "force_drag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mouse_filter(&mut self, filter: crate::classes::control::MouseFilter,) { + type CallSig = ((), crate::classes::control::MouseFilter); + let args = (filter,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2398usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_mouse_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mouse_filter(&self,) -> crate::classes::control::MouseFilter { + type CallSig = (crate::classes::control::MouseFilter,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2399usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_mouse_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_force_pass_scroll_events(&mut self, force_pass_scroll_events: bool,) { + type CallSig = ((), bool); + let args = (force_pass_scroll_events,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2400usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_force_pass_scroll_events", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_force_pass_scroll_events(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2401usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "is_force_pass_scroll_events", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clip_contents(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2402usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_clip_contents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_clipping_contents(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2403usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "is_clipping_contents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn grab_click_focus(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2404usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "grab_click_focus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_drag_forwarding(&mut self, drag_func: &Callable, can_drop_func: &Callable, drop_func: &Callable,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), RefArg < 'a0, Callable >, RefArg < 'a1, Callable >, RefArg < 'a2, Callable >); + let args = (RefArg::new(drag_func), RefArg::new(can_drop_func), RefArg::new(drop_func),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2405usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_drag_forwarding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_drag_preview(&mut self, control: impl AsObjectArg < crate::classes::Control >,) { + type CallSig = ((), ObjectArg < crate::classes::Control >); + let args = (control.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2406usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_drag_preview", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_drag_successful(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2407usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "is_drag_successful", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn warp_mouse(&mut self, position: Vector2,) { + type CallSig = ((), Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2408usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "warp_mouse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shortcut_context(&mut self, node: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2409usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_shortcut_context", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shortcut_context(&self,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2410usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_shortcut_context", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update_minimum_size(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2411usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "update_minimum_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_layout_direction(&mut self, direction: crate::classes::control::LayoutDirection,) { + type CallSig = ((), crate::classes::control::LayoutDirection); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2412usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_layout_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_layout_direction(&self,) -> crate::classes::control::LayoutDirection { + type CallSig = (crate::classes::control::LayoutDirection,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2413usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "get_layout_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_layout_rtl(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2414usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "is_layout_rtl", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_translate(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2415usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_auto_translate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_auto_translating(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2416usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "is_auto_translating", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_localize_numeral_system(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2417usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "set_localize_numeral_system", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_localizing_numeral_system(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2418usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Control", "is_localizing_numeral_system", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" ⚠️ Sends a Godot notification to all classes inherited by the object."] + #[doc = r""] + #[doc = r" Triggers calls to `on_notification()`, and depending on the notification, also to Godot's lifecycle callbacks such as `ready()`."] + #[doc = r""] + #[doc = r" Starts from the highest ancestor (the `Object` class) and goes down the hierarchy."] + #[doc = r" See also [Godot docs for `Object::notification()`](https://docs.godotengine.org/en/latest/classes/class_object.html#id3)."] + #[doc = r""] + #[doc = r" # Panics"] + #[doc = r""] + #[doc = r" If you call this method on a user-defined object while holding a `GdRef` or `GdMut` guard on the instance, you will encounter"] + #[doc = r" a panic. The reason is that the receiving virtual method `on_notification()` acquires a `GdMut` lock dynamically, which must"] + #[doc = r" be exclusive."] + pub fn notify(&mut self, what: ControlNotification) { + self.notification(i32::from(what), false); + + } + #[doc = r" ⚠️ Like [`Self::notify()`], but starts at the most-derived class and goes up the hierarchy."] + #[doc = r""] + #[doc = r" See docs of that method, including the panics."] + pub fn notify_reversed(&mut self, what: ControlNotification) { + self.notification(i32::from(what), true); + + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub(crate) const NOTIFICATION_RESIZED: i32 = 40i32; + pub(crate) const NOTIFICATION_MOUSE_ENTER: i32 = 41i32; + pub(crate) const NOTIFICATION_MOUSE_EXIT: i32 = 42i32; + pub(crate) const NOTIFICATION_MOUSE_ENTER_SELF: i32 = 60i32; + pub(crate) const NOTIFICATION_MOUSE_EXIT_SELF: i32 = 61i32; + pub(crate) const NOTIFICATION_FOCUS_ENTER: i32 = 43i32; + pub(crate) const NOTIFICATION_FOCUS_EXIT: i32 = 44i32; + pub(crate) const NOTIFICATION_THEME_CHANGED: i32 = 45i32; + pub(crate) const NOTIFICATION_SCROLL_BEGIN: i32 = 47i32; + pub(crate) const NOTIFICATION_SCROLL_END: i32 = 48i32; + pub(crate) const NOTIFICATION_LAYOUT_DIRECTION_CHANGED: i32 = 49i32; + + } + impl crate::obj::GodotClass for Control { + type Base = crate::classes::CanvasItem; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Control")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Control { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Control { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Control { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Control { + + } + impl crate::obj::cap::GodotDefault for Control { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Control { + type Target = crate::classes::CanvasItem; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Control { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Control`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Control { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Control::set_anchors_preset_ex`][super::Control::set_anchors_preset_ex]."] +#[must_use] +pub struct ExSetAnchorsPreset < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Control, preset: crate::classes::control::LayoutPreset, keep_offsets: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetAnchorsPreset < 'a > { + fn new(surround_object: &'a mut re_export::Control, preset: crate::classes::control::LayoutPreset,) -> Self { + let keep_offsets = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, preset: preset, keep_offsets: keep_offsets, + } + } + #[inline] + pub fn keep_offsets(self, keep_offsets: bool) -> Self { + Self { + keep_offsets: keep_offsets, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, preset, keep_offsets, + } + = self; + re_export::Control::set_anchors_preset_full(surround_object, preset, keep_offsets,) + } +} +#[doc = "Default-param extender for [`Control::set_offsets_preset_ex`][super::Control::set_offsets_preset_ex]."] +#[must_use] +pub struct ExSetOffsetsPreset < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Control, preset: crate::classes::control::LayoutPreset, resize_mode: crate::classes::control::LayoutPresetMode, margin: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetOffsetsPreset < 'a > { + fn new(surround_object: &'a mut re_export::Control, preset: crate::classes::control::LayoutPreset,) -> Self { + let resize_mode = crate::obj::EngineEnum::from_ord(0); + let margin = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, preset: preset, resize_mode: resize_mode, margin: margin, + } + } + #[inline] + pub fn resize_mode(self, resize_mode: crate::classes::control::LayoutPresetMode) -> Self { + Self { + resize_mode: resize_mode, .. self + } + } + #[inline] + pub fn margin(self, margin: i32) -> Self { + Self { + margin: margin, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, preset, resize_mode, margin, + } + = self; + re_export::Control::set_offsets_preset_full(surround_object, preset, resize_mode, margin,) + } +} +#[doc = "Default-param extender for [`Control::set_anchors_and_offsets_preset_ex`][super::Control::set_anchors_and_offsets_preset_ex]."] +#[must_use] +pub struct ExSetAnchorsAndOffsetsPreset < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Control, preset: crate::classes::control::LayoutPreset, resize_mode: crate::classes::control::LayoutPresetMode, margin: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetAnchorsAndOffsetsPreset < 'a > { + fn new(surround_object: &'a mut re_export::Control, preset: crate::classes::control::LayoutPreset,) -> Self { + let resize_mode = crate::obj::EngineEnum::from_ord(0); + let margin = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, preset: preset, resize_mode: resize_mode, margin: margin, + } + } + #[inline] + pub fn resize_mode(self, resize_mode: crate::classes::control::LayoutPresetMode) -> Self { + Self { + resize_mode: resize_mode, .. self + } + } + #[inline] + pub fn margin(self, margin: i32) -> Self { + Self { + margin: margin, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, preset, resize_mode, margin, + } + = self; + re_export::Control::set_anchors_and_offsets_preset_full(surround_object, preset, resize_mode, margin,) + } +} +#[doc = "Default-param extender for [`Control::set_anchor_ex`][super::Control::set_anchor_ex]."] +#[must_use] +pub struct ExSetAnchor < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Control, side: crate::global::Side, anchor: f32, keep_offset: bool, push_opposite_anchor: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetAnchor < 'a > { + fn new(surround_object: &'a mut re_export::Control, side: crate::global::Side, anchor: f32,) -> Self { + let keep_offset = false; + let push_opposite_anchor = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, side: side, anchor: anchor, keep_offset: keep_offset, push_opposite_anchor: push_opposite_anchor, + } + } + #[inline] + pub fn keep_offset(self, keep_offset: bool) -> Self { + Self { + keep_offset: keep_offset, .. self + } + } + #[inline] + pub fn push_opposite_anchor(self, push_opposite_anchor: bool) -> Self { + Self { + push_opposite_anchor: push_opposite_anchor, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, side, anchor, keep_offset, push_opposite_anchor, + } + = self; + re_export::Control::set_anchor_full(surround_object, side, anchor, keep_offset, push_opposite_anchor,) + } +} +#[doc = "Default-param extender for [`Control::set_anchor_and_offset_ex`][super::Control::set_anchor_and_offset_ex]."] +#[must_use] +pub struct ExSetAnchorAndOffset < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Control, side: crate::global::Side, anchor: f32, offset: f32, push_opposite_anchor: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetAnchorAndOffset < 'a > { + fn new(surround_object: &'a mut re_export::Control, side: crate::global::Side, anchor: f32, offset: f32,) -> Self { + let push_opposite_anchor = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, side: side, anchor: anchor, offset: offset, push_opposite_anchor: push_opposite_anchor, + } + } + #[inline] + pub fn push_opposite_anchor(self, push_opposite_anchor: bool) -> Self { + Self { + push_opposite_anchor: push_opposite_anchor, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, side, anchor, offset, push_opposite_anchor, + } + = self; + re_export::Control::set_anchor_and_offset_full(surround_object, side, anchor, offset, push_opposite_anchor,) + } +} +#[doc = "Default-param extender for [`Control::set_position_ex`][super::Control::set_position_ex]."] +#[must_use] +pub struct ExSetPosition < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Control, position: Vector2, keep_offsets: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetPosition < 'a > { + fn new(surround_object: &'a mut re_export::Control, position: Vector2,) -> Self { + let keep_offsets = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, keep_offsets: keep_offsets, + } + } + #[inline] + pub fn keep_offsets(self, keep_offsets: bool) -> Self { + Self { + keep_offsets: keep_offsets, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, keep_offsets, + } + = self; + re_export::Control::set_position_full(surround_object, position, keep_offsets,) + } +} +#[doc = "Default-param extender for [`Control::set_size_ex`][super::Control::set_size_ex]."] +#[must_use] +pub struct ExSetSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Control, size: Vector2, keep_offsets: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetSize < 'a > { + fn new(surround_object: &'a mut re_export::Control, size: Vector2,) -> Self { + let keep_offsets = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, size: size, keep_offsets: keep_offsets, + } + } + #[inline] + pub fn keep_offsets(self, keep_offsets: bool) -> Self { + Self { + keep_offsets: keep_offsets, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, size, keep_offsets, + } + = self; + re_export::Control::set_size_full(surround_object, size, keep_offsets,) + } +} +#[doc = "Default-param extender for [`Control::set_global_position_ex`][super::Control::set_global_position_ex]."] +#[must_use] +pub struct ExSetGlobalPosition < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Control, position: Vector2, keep_offsets: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetGlobalPosition < 'a > { + fn new(surround_object: &'a mut re_export::Control, position: Vector2,) -> Self { + let keep_offsets = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, keep_offsets: keep_offsets, + } + } + #[inline] + pub fn keep_offsets(self, keep_offsets: bool) -> Self { + Self { + keep_offsets: keep_offsets, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, keep_offsets, + } + = self; + re_export::Control::set_global_position_full(surround_object, position, keep_offsets,) + } +} +#[doc = "Default-param extender for [`Control::get_theme_icon_ex`][super::Control::get_theme_icon_ex]."] +#[must_use] +pub struct ExGetThemeIcon < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetThemeIcon < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Texture2D > > { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::get_theme_icon_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::get_theme_stylebox_ex`][super::Control::get_theme_stylebox_ex]."] +#[must_use] +pub struct ExGetThemeStylebox < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetThemeStylebox < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::StyleBox > > { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::get_theme_stylebox_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::get_theme_font_ex`][super::Control::get_theme_font_ex]."] +#[must_use] +pub struct ExGetThemeFont < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetThemeFont < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Font > > { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::get_theme_font_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::get_theme_font_size_ex`][super::Control::get_theme_font_size_ex]."] +#[must_use] +pub struct ExGetThemeFontSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetThemeFontSize < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::get_theme_font_size_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::get_theme_color_ex`][super::Control::get_theme_color_ex]."] +#[must_use] +pub struct ExGetThemeColor < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetThemeColor < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Color { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::get_theme_color_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::get_theme_constant_ex`][super::Control::get_theme_constant_ex]."] +#[must_use] +pub struct ExGetThemeConstant < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetThemeConstant < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::get_theme_constant_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::has_theme_icon_ex`][super::Control::has_theme_icon_ex]."] +#[must_use] +pub struct ExHasThemeIcon < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExHasThemeIcon < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::has_theme_icon_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::has_theme_stylebox_ex`][super::Control::has_theme_stylebox_ex]."] +#[must_use] +pub struct ExHasThemeStylebox < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExHasThemeStylebox < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::has_theme_stylebox_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::has_theme_font_ex`][super::Control::has_theme_font_ex]."] +#[must_use] +pub struct ExHasThemeFont < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExHasThemeFont < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::has_theme_font_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::has_theme_font_size_ex`][super::Control::has_theme_font_size_ex]."] +#[must_use] +pub struct ExHasThemeFontSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExHasThemeFontSize < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::has_theme_font_size_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::has_theme_color_ex`][super::Control::has_theme_color_ex]."] +#[must_use] +pub struct ExHasThemeColor < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExHasThemeColor < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::has_theme_color_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::has_theme_constant_ex`][super::Control::has_theme_constant_ex]."] +#[must_use] +pub struct ExHasThemeConstant < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, name: CowArg < 'a, StringName >, theme_type: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExHasThemeConstant < 'a > { + fn new(surround_object: &'a re_export::Control, name: impl AsArg < StringName > + 'a,) -> Self { + let theme_type = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), theme_type: CowArg::Owned(theme_type), + } + } + #[inline] + pub fn theme_type(self, theme_type: impl AsArg < StringName > + 'a) -> Self { + Self { + theme_type: theme_type.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, name, theme_type, + } + = self; + re_export::Control::has_theme_constant_full(surround_object, name, theme_type,) + } +} +#[doc = "Default-param extender for [`Control::get_tooltip_ex`][super::Control::get_tooltip_ex]."] +#[must_use] +pub struct ExGetTooltip < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, at_position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetTooltip < 'a > { + fn new(surround_object: &'a re_export::Control,) -> Self { + let at_position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, at_position: at_position, + } + } + #[inline] + pub fn at_position(self, at_position: Vector2) -> Self { + Self { + at_position: at_position, .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, at_position, + } + = self; + re_export::Control::get_tooltip_full(surround_object, at_position,) + } +} +#[doc = "Default-param extender for [`Control::get_cursor_shape_ex`][super::Control::get_cursor_shape_ex]."] +#[must_use] +pub struct ExGetCursorShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Control, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetCursorShape < 'a > { + fn new(surround_object: &'a re_export::Control,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) -> crate::classes::control::CursorShape { + let Self { + _phantom, surround_object, position, + } + = self; + re_export::Control::get_cursor_shape_full(surround_object, position,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FocusMode { + ord: i32 +} +impl FocusMode { + #[doc(alias = "FOCUS_NONE")] + #[doc = "Godot enumerator name: `FOCUS_NONE`"] + pub const NONE: FocusMode = FocusMode { + ord: 0i32 + }; + #[doc(alias = "FOCUS_CLICK")] + #[doc = "Godot enumerator name: `FOCUS_CLICK`"] + pub const CLICK: FocusMode = FocusMode { + ord: 1i32 + }; + #[doc(alias = "FOCUS_ALL")] + #[doc = "Godot enumerator name: `FOCUS_ALL`"] + pub const ALL: FocusMode = FocusMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for FocusMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FocusMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FocusMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::CLICK => "CLICK", Self::ALL => "ALL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "FOCUS_NONE", Self::CLICK => "FOCUS_CLICK", Self::ALL => "FOCUS_ALL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FocusMode { + type Via = i32; + +} +impl crate::meta::ToGodot for FocusMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FocusMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CursorShape { + ord: i32 +} +impl CursorShape { + #[doc(alias = "CURSOR_ARROW")] + #[doc = "Godot enumerator name: `CURSOR_ARROW`"] + pub const ARROW: CursorShape = CursorShape { + ord: 0i32 + }; + #[doc(alias = "CURSOR_IBEAM")] + #[doc = "Godot enumerator name: `CURSOR_IBEAM`"] + pub const IBEAM: CursorShape = CursorShape { + ord: 1i32 + }; + #[doc(alias = "CURSOR_POINTING_HAND")] + #[doc = "Godot enumerator name: `CURSOR_POINTING_HAND`"] + pub const POINTING_HAND: CursorShape = CursorShape { + ord: 2i32 + }; + #[doc(alias = "CURSOR_CROSS")] + #[doc = "Godot enumerator name: `CURSOR_CROSS`"] + pub const CROSS: CursorShape = CursorShape { + ord: 3i32 + }; + #[doc(alias = "CURSOR_WAIT")] + #[doc = "Godot enumerator name: `CURSOR_WAIT`"] + pub const WAIT: CursorShape = CursorShape { + ord: 4i32 + }; + #[doc(alias = "CURSOR_BUSY")] + #[doc = "Godot enumerator name: `CURSOR_BUSY`"] + pub const BUSY: CursorShape = CursorShape { + ord: 5i32 + }; + #[doc(alias = "CURSOR_DRAG")] + #[doc = "Godot enumerator name: `CURSOR_DRAG`"] + pub const DRAG: CursorShape = CursorShape { + ord: 6i32 + }; + #[doc(alias = "CURSOR_CAN_DROP")] + #[doc = "Godot enumerator name: `CURSOR_CAN_DROP`"] + pub const CAN_DROP: CursorShape = CursorShape { + ord: 7i32 + }; + #[doc(alias = "CURSOR_FORBIDDEN")] + #[doc = "Godot enumerator name: `CURSOR_FORBIDDEN`"] + pub const FORBIDDEN: CursorShape = CursorShape { + ord: 8i32 + }; + #[doc(alias = "CURSOR_VSIZE")] + #[doc = "Godot enumerator name: `CURSOR_VSIZE`"] + pub const VSIZE: CursorShape = CursorShape { + ord: 9i32 + }; + #[doc(alias = "CURSOR_HSIZE")] + #[doc = "Godot enumerator name: `CURSOR_HSIZE`"] + pub const HSIZE: CursorShape = CursorShape { + ord: 10i32 + }; + #[doc(alias = "CURSOR_BDIAGSIZE")] + #[doc = "Godot enumerator name: `CURSOR_BDIAGSIZE`"] + pub const BDIAGSIZE: CursorShape = CursorShape { + ord: 11i32 + }; + #[doc(alias = "CURSOR_FDIAGSIZE")] + #[doc = "Godot enumerator name: `CURSOR_FDIAGSIZE`"] + pub const FDIAGSIZE: CursorShape = CursorShape { + ord: 12i32 + }; + #[doc(alias = "CURSOR_MOVE")] + #[doc = "Godot enumerator name: `CURSOR_MOVE`"] + pub const MOVE: CursorShape = CursorShape { + ord: 13i32 + }; + #[doc(alias = "CURSOR_VSPLIT")] + #[doc = "Godot enumerator name: `CURSOR_VSPLIT`"] + pub const VSPLIT: CursorShape = CursorShape { + ord: 14i32 + }; + #[doc(alias = "CURSOR_HSPLIT")] + #[doc = "Godot enumerator name: `CURSOR_HSPLIT`"] + pub const HSPLIT: CursorShape = CursorShape { + ord: 15i32 + }; + #[doc(alias = "CURSOR_HELP")] + #[doc = "Godot enumerator name: `CURSOR_HELP`"] + pub const HELP: CursorShape = CursorShape { + ord: 16i32 + }; + +} +impl std::fmt::Debug for CursorShape { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CursorShape") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CursorShape { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ARROW => "ARROW", Self::IBEAM => "IBEAM", Self::POINTING_HAND => "POINTING_HAND", Self::CROSS => "CROSS", Self::WAIT => "WAIT", Self::BUSY => "BUSY", Self::DRAG => "DRAG", Self::CAN_DROP => "CAN_DROP", Self::FORBIDDEN => "FORBIDDEN", Self::VSIZE => "VSIZE", Self::HSIZE => "HSIZE", Self::BDIAGSIZE => "BDIAGSIZE", Self::FDIAGSIZE => "FDIAGSIZE", Self::MOVE => "MOVE", Self::VSPLIT => "VSPLIT", Self::HSPLIT => "HSPLIT", Self::HELP => "HELP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ARROW => "CURSOR_ARROW", Self::IBEAM => "CURSOR_IBEAM", Self::POINTING_HAND => "CURSOR_POINTING_HAND", Self::CROSS => "CURSOR_CROSS", Self::WAIT => "CURSOR_WAIT", Self::BUSY => "CURSOR_BUSY", Self::DRAG => "CURSOR_DRAG", Self::CAN_DROP => "CURSOR_CAN_DROP", Self::FORBIDDEN => "CURSOR_FORBIDDEN", Self::VSIZE => "CURSOR_VSIZE", Self::HSIZE => "CURSOR_HSIZE", Self::BDIAGSIZE => "CURSOR_BDIAGSIZE", Self::FDIAGSIZE => "CURSOR_FDIAGSIZE", Self::MOVE => "CURSOR_MOVE", Self::VSPLIT => "CURSOR_VSPLIT", Self::HSPLIT => "CURSOR_HSPLIT", Self::HELP => "CURSOR_HELP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CursorShape { + type Via = i32; + +} +impl crate::meta::ToGodot for CursorShape { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CursorShape { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LayoutPreset { + ord: i32 +} +impl LayoutPreset { + #[doc(alias = "PRESET_TOP_LEFT")] + #[doc = "Godot enumerator name: `PRESET_TOP_LEFT`"] + pub const TOP_LEFT: LayoutPreset = LayoutPreset { + ord: 0i32 + }; + #[doc(alias = "PRESET_TOP_RIGHT")] + #[doc = "Godot enumerator name: `PRESET_TOP_RIGHT`"] + pub const TOP_RIGHT: LayoutPreset = LayoutPreset { + ord: 1i32 + }; + #[doc(alias = "PRESET_BOTTOM_LEFT")] + #[doc = "Godot enumerator name: `PRESET_BOTTOM_LEFT`"] + pub const BOTTOM_LEFT: LayoutPreset = LayoutPreset { + ord: 2i32 + }; + #[doc(alias = "PRESET_BOTTOM_RIGHT")] + #[doc = "Godot enumerator name: `PRESET_BOTTOM_RIGHT`"] + pub const BOTTOM_RIGHT: LayoutPreset = LayoutPreset { + ord: 3i32 + }; + #[doc(alias = "PRESET_CENTER_LEFT")] + #[doc = "Godot enumerator name: `PRESET_CENTER_LEFT`"] + pub const CENTER_LEFT: LayoutPreset = LayoutPreset { + ord: 4i32 + }; + #[doc(alias = "PRESET_CENTER_TOP")] + #[doc = "Godot enumerator name: `PRESET_CENTER_TOP`"] + pub const CENTER_TOP: LayoutPreset = LayoutPreset { + ord: 5i32 + }; + #[doc(alias = "PRESET_CENTER_RIGHT")] + #[doc = "Godot enumerator name: `PRESET_CENTER_RIGHT`"] + pub const CENTER_RIGHT: LayoutPreset = LayoutPreset { + ord: 6i32 + }; + #[doc(alias = "PRESET_CENTER_BOTTOM")] + #[doc = "Godot enumerator name: `PRESET_CENTER_BOTTOM`"] + pub const CENTER_BOTTOM: LayoutPreset = LayoutPreset { + ord: 7i32 + }; + #[doc(alias = "PRESET_CENTER")] + #[doc = "Godot enumerator name: `PRESET_CENTER`"] + pub const CENTER: LayoutPreset = LayoutPreset { + ord: 8i32 + }; + #[doc(alias = "PRESET_LEFT_WIDE")] + #[doc = "Godot enumerator name: `PRESET_LEFT_WIDE`"] + pub const LEFT_WIDE: LayoutPreset = LayoutPreset { + ord: 9i32 + }; + #[doc(alias = "PRESET_TOP_WIDE")] + #[doc = "Godot enumerator name: `PRESET_TOP_WIDE`"] + pub const TOP_WIDE: LayoutPreset = LayoutPreset { + ord: 10i32 + }; + #[doc(alias = "PRESET_RIGHT_WIDE")] + #[doc = "Godot enumerator name: `PRESET_RIGHT_WIDE`"] + pub const RIGHT_WIDE: LayoutPreset = LayoutPreset { + ord: 11i32 + }; + #[doc(alias = "PRESET_BOTTOM_WIDE")] + #[doc = "Godot enumerator name: `PRESET_BOTTOM_WIDE`"] + pub const BOTTOM_WIDE: LayoutPreset = LayoutPreset { + ord: 12i32 + }; + #[doc(alias = "PRESET_VCENTER_WIDE")] + #[doc = "Godot enumerator name: `PRESET_VCENTER_WIDE`"] + pub const VCENTER_WIDE: LayoutPreset = LayoutPreset { + ord: 13i32 + }; + #[doc(alias = "PRESET_HCENTER_WIDE")] + #[doc = "Godot enumerator name: `PRESET_HCENTER_WIDE`"] + pub const HCENTER_WIDE: LayoutPreset = LayoutPreset { + ord: 14i32 + }; + #[doc(alias = "PRESET_FULL_RECT")] + #[doc = "Godot enumerator name: `PRESET_FULL_RECT`"] + pub const FULL_RECT: LayoutPreset = LayoutPreset { + ord: 15i32 + }; + +} +impl std::fmt::Debug for LayoutPreset { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LayoutPreset") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LayoutPreset { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOP_LEFT => "TOP_LEFT", Self::TOP_RIGHT => "TOP_RIGHT", Self::BOTTOM_LEFT => "BOTTOM_LEFT", Self::BOTTOM_RIGHT => "BOTTOM_RIGHT", Self::CENTER_LEFT => "CENTER_LEFT", Self::CENTER_TOP => "CENTER_TOP", Self::CENTER_RIGHT => "CENTER_RIGHT", Self::CENTER_BOTTOM => "CENTER_BOTTOM", Self::CENTER => "CENTER", Self::LEFT_WIDE => "LEFT_WIDE", Self::TOP_WIDE => "TOP_WIDE", Self::RIGHT_WIDE => "RIGHT_WIDE", Self::BOTTOM_WIDE => "BOTTOM_WIDE", Self::VCENTER_WIDE => "VCENTER_WIDE", Self::HCENTER_WIDE => "HCENTER_WIDE", Self::FULL_RECT => "FULL_RECT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOP_LEFT => "PRESET_TOP_LEFT", Self::TOP_RIGHT => "PRESET_TOP_RIGHT", Self::BOTTOM_LEFT => "PRESET_BOTTOM_LEFT", Self::BOTTOM_RIGHT => "PRESET_BOTTOM_RIGHT", Self::CENTER_LEFT => "PRESET_CENTER_LEFT", Self::CENTER_TOP => "PRESET_CENTER_TOP", Self::CENTER_RIGHT => "PRESET_CENTER_RIGHT", Self::CENTER_BOTTOM => "PRESET_CENTER_BOTTOM", Self::CENTER => "PRESET_CENTER", Self::LEFT_WIDE => "PRESET_LEFT_WIDE", Self::TOP_WIDE => "PRESET_TOP_WIDE", Self::RIGHT_WIDE => "PRESET_RIGHT_WIDE", Self::BOTTOM_WIDE => "PRESET_BOTTOM_WIDE", Self::VCENTER_WIDE => "PRESET_VCENTER_WIDE", Self::HCENTER_WIDE => "PRESET_HCENTER_WIDE", Self::FULL_RECT => "PRESET_FULL_RECT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LayoutPreset { + type Via = i32; + +} +impl crate::meta::ToGodot for LayoutPreset { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LayoutPreset { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LayoutPresetMode { + ord: i32 +} +impl LayoutPresetMode { + #[doc(alias = "PRESET_MODE_MINSIZE")] + #[doc = "Godot enumerator name: `PRESET_MODE_MINSIZE`"] + pub const MINSIZE: LayoutPresetMode = LayoutPresetMode { + ord: 0i32 + }; + #[doc(alias = "PRESET_MODE_KEEP_WIDTH")] + #[doc = "Godot enumerator name: `PRESET_MODE_KEEP_WIDTH`"] + pub const KEEP_WIDTH: LayoutPresetMode = LayoutPresetMode { + ord: 1i32 + }; + #[doc(alias = "PRESET_MODE_KEEP_HEIGHT")] + #[doc = "Godot enumerator name: `PRESET_MODE_KEEP_HEIGHT`"] + pub const KEEP_HEIGHT: LayoutPresetMode = LayoutPresetMode { + ord: 2i32 + }; + #[doc(alias = "PRESET_MODE_KEEP_SIZE")] + #[doc = "Godot enumerator name: `PRESET_MODE_KEEP_SIZE`"] + pub const KEEP_SIZE: LayoutPresetMode = LayoutPresetMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for LayoutPresetMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LayoutPresetMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LayoutPresetMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MINSIZE => "MINSIZE", Self::KEEP_WIDTH => "KEEP_WIDTH", Self::KEEP_HEIGHT => "KEEP_HEIGHT", Self::KEEP_SIZE => "KEEP_SIZE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MINSIZE => "PRESET_MODE_MINSIZE", Self::KEEP_WIDTH => "PRESET_MODE_KEEP_WIDTH", Self::KEEP_HEIGHT => "PRESET_MODE_KEEP_HEIGHT", Self::KEEP_SIZE => "PRESET_MODE_KEEP_SIZE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LayoutPresetMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LayoutPresetMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LayoutPresetMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct SizeFlags { + ord: u64 +} +impl SizeFlags { + #[doc(alias = "SIZE_SHRINK_BEGIN")] + #[doc = "Godot enumerator name: `SIZE_SHRINK_BEGIN`"] + pub const SHRINK_BEGIN: SizeFlags = SizeFlags { + ord: 0u64 + }; + #[doc(alias = "SIZE_FILL")] + #[doc = "Godot enumerator name: `SIZE_FILL`"] + pub const FILL: SizeFlags = SizeFlags { + ord: 1u64 + }; + #[doc(alias = "SIZE_EXPAND")] + #[doc = "Godot enumerator name: `SIZE_EXPAND`"] + pub const EXPAND: SizeFlags = SizeFlags { + ord: 2u64 + }; + #[doc(alias = "SIZE_EXPAND_FILL")] + #[doc = "Godot enumerator name: `SIZE_EXPAND_FILL`"] + pub const EXPAND_FILL: SizeFlags = SizeFlags { + ord: 3u64 + }; + #[doc(alias = "SIZE_SHRINK_CENTER")] + #[doc = "Godot enumerator name: `SIZE_SHRINK_CENTER`"] + pub const SHRINK_CENTER: SizeFlags = SizeFlags { + ord: 4u64 + }; + #[doc(alias = "SIZE_SHRINK_END")] + #[doc = "Godot enumerator name: `SIZE_SHRINK_END`"] + pub const SHRINK_END: SizeFlags = SizeFlags { + ord: 8u64 + }; + +} +impl std::fmt::Debug for SizeFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::SHRINK_BEGIN => "SHRINK_BEGIN", Self::FILL => "FILL", Self::EXPAND => "EXPAND", Self::EXPAND_FILL => "EXPAND_FILL", Self::SHRINK_CENTER => "SHRINK_CENTER", Self::SHRINK_END => "SHRINK_END", _ => { + f.debug_struct("SizeFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for SizeFlags { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for SizeFlags { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for SizeFlags { + type Via = u64; + +} +impl crate::meta::ToGodot for SizeFlags { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for SizeFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MouseFilter { + ord: i32 +} +impl MouseFilter { + #[doc(alias = "MOUSE_FILTER_STOP")] + #[doc = "Godot enumerator name: `MOUSE_FILTER_STOP`"] + pub const STOP: MouseFilter = MouseFilter { + ord: 0i32 + }; + #[doc(alias = "MOUSE_FILTER_PASS")] + #[doc = "Godot enumerator name: `MOUSE_FILTER_PASS`"] + pub const PASS: MouseFilter = MouseFilter { + ord: 1i32 + }; + #[doc(alias = "MOUSE_FILTER_IGNORE")] + #[doc = "Godot enumerator name: `MOUSE_FILTER_IGNORE`"] + pub const IGNORE: MouseFilter = MouseFilter { + ord: 2i32 + }; + +} +impl std::fmt::Debug for MouseFilter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MouseFilter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MouseFilter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STOP => "STOP", Self::PASS => "PASS", Self::IGNORE => "IGNORE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STOP => "MOUSE_FILTER_STOP", Self::PASS => "MOUSE_FILTER_PASS", Self::IGNORE => "MOUSE_FILTER_IGNORE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for MouseFilter { + type Via = i32; + +} +impl crate::meta::ToGodot for MouseFilter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MouseFilter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct GrowDirection { + ord: i32 +} +impl GrowDirection { + #[doc(alias = "GROW_DIRECTION_BEGIN")] + #[doc = "Godot enumerator name: `GROW_DIRECTION_BEGIN`"] + pub const BEGIN: GrowDirection = GrowDirection { + ord: 0i32 + }; + #[doc(alias = "GROW_DIRECTION_END")] + #[doc = "Godot enumerator name: `GROW_DIRECTION_END`"] + pub const END: GrowDirection = GrowDirection { + ord: 1i32 + }; + #[doc(alias = "GROW_DIRECTION_BOTH")] + #[doc = "Godot enumerator name: `GROW_DIRECTION_BOTH`"] + pub const BOTH: GrowDirection = GrowDirection { + ord: 2i32 + }; + +} +impl std::fmt::Debug for GrowDirection { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("GrowDirection") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for GrowDirection { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN => "BEGIN", Self::END => "END", Self::BOTH => "BOTH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN => "GROW_DIRECTION_BEGIN", Self::END => "GROW_DIRECTION_END", Self::BOTH => "GROW_DIRECTION_BOTH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for GrowDirection { + type Via = i32; + +} +impl crate::meta::ToGodot for GrowDirection { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for GrowDirection { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Anchor { + ord: i32 +} +impl Anchor { + #[doc(alias = "ANCHOR_BEGIN")] + #[doc = "Godot enumerator name: `ANCHOR_BEGIN`"] + pub const BEGIN: Anchor = Anchor { + ord: 0i32 + }; + #[doc(alias = "ANCHOR_END")] + #[doc = "Godot enumerator name: `ANCHOR_END`"] + pub const END: Anchor = Anchor { + ord: 1i32 + }; + +} +impl std::fmt::Debug for Anchor { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Anchor") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Anchor { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN => "BEGIN", Self::END => "END", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN => "ANCHOR_BEGIN", Self::END => "ANCHOR_END", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Anchor { + type Via = i32; + +} +impl crate::meta::ToGodot for Anchor { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Anchor { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LayoutDirection { + ord: i32 +} +impl LayoutDirection { + #[doc(alias = "LAYOUT_DIRECTION_INHERITED")] + #[doc = "Godot enumerator name: `LAYOUT_DIRECTION_INHERITED`"] + pub const INHERITED: LayoutDirection = LayoutDirection { + ord: 0i32 + }; + #[doc(alias = "LAYOUT_DIRECTION_LOCALE")] + #[doc = "Godot enumerator name: `LAYOUT_DIRECTION_LOCALE`"] + pub const LOCALE: LayoutDirection = LayoutDirection { + ord: 1i32 + }; + #[doc(alias = "LAYOUT_DIRECTION_LTR")] + #[doc = "Godot enumerator name: `LAYOUT_DIRECTION_LTR`"] + pub const LTR: LayoutDirection = LayoutDirection { + ord: 2i32 + }; + #[doc(alias = "LAYOUT_DIRECTION_RTL")] + #[doc = "Godot enumerator name: `LAYOUT_DIRECTION_RTL`"] + pub const RTL: LayoutDirection = LayoutDirection { + ord: 3i32 + }; + +} +impl std::fmt::Debug for LayoutDirection { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LayoutDirection") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LayoutDirection { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERITED => "INHERITED", Self::LOCALE => "LOCALE", Self::LTR => "LTR", Self::RTL => "RTL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERITED => "LAYOUT_DIRECTION_INHERITED", Self::LOCALE => "LAYOUT_DIRECTION_LOCALE", Self::LTR => "LAYOUT_DIRECTION_LTR", Self::RTL => "LAYOUT_DIRECTION_RTL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LayoutDirection { + type Via = i32; + +} +impl crate::meta::ToGodot for LayoutDirection { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LayoutDirection { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextDirection { + ord: i32 +} +impl TextDirection { + #[doc(alias = "TEXT_DIRECTION_INHERITED")] + #[doc = "Godot enumerator name: `TEXT_DIRECTION_INHERITED`"] + pub const INHERITED: TextDirection = TextDirection { + ord: 3i32 + }; + #[doc(alias = "TEXT_DIRECTION_AUTO")] + #[doc = "Godot enumerator name: `TEXT_DIRECTION_AUTO`"] + pub const AUTO: TextDirection = TextDirection { + ord: 0i32 + }; + #[doc(alias = "TEXT_DIRECTION_LTR")] + #[doc = "Godot enumerator name: `TEXT_DIRECTION_LTR`"] + pub const LTR: TextDirection = TextDirection { + ord: 1i32 + }; + #[doc(alias = "TEXT_DIRECTION_RTL")] + #[doc = "Godot enumerator name: `TEXT_DIRECTION_RTL`"] + pub const RTL: TextDirection = TextDirection { + ord: 2i32 + }; + +} +impl std::fmt::Debug for TextDirection { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextDirection") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextDirection { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERITED => "INHERITED", Self::AUTO => "AUTO", Self::LTR => "LTR", Self::RTL => "RTL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERITED => "TEXT_DIRECTION_INHERITED", Self::AUTO => "TEXT_DIRECTION_AUTO", Self::LTR => "TEXT_DIRECTION_LTR", Self::RTL => "TEXT_DIRECTION_RTL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TextDirection { + type Via = i32; + +} +impl crate::meta::ToGodot for TextDirection { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextDirection { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/convex_polygon_shape_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/convex_polygon_shape_2d.rs new file mode 100644 index 0000000..03d55a3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/convex_polygon_shape_2d.rs @@ -0,0 +1,232 @@ +#![doc = "Sidecar module for class [`ConvexPolygonShape2D`][crate::classes::ConvexPolygonShape2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ConvexPolygonShape2D` enums](https://docs.godotengine.org/en/stable/classes/class_convexpolygonshape2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ConvexPolygonShape2D.`\n\nInherits [`Shape2D`][crate::classes::Shape2D].\n\nRelated symbols:\n\n* [`IConvexPolygonShape2D`][crate::classes::IConvexPolygonShape2D]: virtual methods\n\n\nSee also [Godot docs for `ConvexPolygonShape2D`](https://docs.godotengine.org/en/stable/classes/class_convexpolygonshape2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ConvexPolygonShape2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ConvexPolygonShape2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ConvexPolygonShape2D`][crate::classes::ConvexPolygonShape2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ConvexPolygonShape2D` methods](https://docs.godotengine.org/en/stable/classes/class_convexpolygonshape2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IConvexPolygonShape2D: crate::obj::GodotClass < Base = ConvexPolygonShape2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ConvexPolygonShape2D { + pub fn set_point_cloud(&mut self, point_cloud: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(point_cloud),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2419usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConvexPolygonShape2D", "set_point_cloud", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_points(&mut self, points: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(points),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2420usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConvexPolygonShape2D", "set_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_points(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2421usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConvexPolygonShape2D", "get_points", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ConvexPolygonShape2D { + type Base = crate::classes::Shape2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ConvexPolygonShape2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ConvexPolygonShape2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Shape2D > for ConvexPolygonShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ConvexPolygonShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ConvexPolygonShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ConvexPolygonShape2D { + + } + impl crate::obj::cap::GodotDefault for ConvexPolygonShape2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ConvexPolygonShape2D { + type Target = crate::classes::Shape2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ConvexPolygonShape2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ConvexPolygonShape2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ConvexPolygonShape2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ConvexPolygonShape2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Shape2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/convex_polygon_shape_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/convex_polygon_shape_3d.rs new file mode 100644 index 0000000..b5ad424 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/convex_polygon_shape_3d.rs @@ -0,0 +1,224 @@ +#![doc = "Sidecar module for class [`ConvexPolygonShape3D`][crate::classes::ConvexPolygonShape3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ConvexPolygonShape3D` enums](https://docs.godotengine.org/en/stable/classes/class_convexpolygonshape3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ConvexPolygonShape3D.`\n\nInherits [`Shape3D`][crate::classes::Shape3D].\n\nRelated symbols:\n\n* [`IConvexPolygonShape3D`][crate::classes::IConvexPolygonShape3D]: virtual methods\n\n\nSee also [Godot docs for `ConvexPolygonShape3D`](https://docs.godotengine.org/en/stable/classes/class_convexpolygonshape3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ConvexPolygonShape3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ConvexPolygonShape3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ConvexPolygonShape3D`][crate::classes::ConvexPolygonShape3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ConvexPolygonShape3D` methods](https://docs.godotengine.org/en/stable/classes/class_convexpolygonshape3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IConvexPolygonShape3D: crate::obj::GodotClass < Base = ConvexPolygonShape3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ConvexPolygonShape3D { + pub fn set_points(&mut self, points: &PackedVector3Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector3Array >); + let args = (RefArg::new(points),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2422usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConvexPolygonShape3D", "set_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_points(&self,) -> PackedVector3Array { + type CallSig = (PackedVector3Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2423usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ConvexPolygonShape3D", "get_points", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ConvexPolygonShape3D { + type Base = crate::classes::Shape3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ConvexPolygonShape3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ConvexPolygonShape3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Shape3D > for ConvexPolygonShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ConvexPolygonShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ConvexPolygonShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ConvexPolygonShape3D { + + } + impl crate::obj::cap::GodotDefault for ConvexPolygonShape3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ConvexPolygonShape3D { + type Target = crate::classes::Shape3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ConvexPolygonShape3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ConvexPolygonShape3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ConvexPolygonShape3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ConvexPolygonShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Shape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cpu_particles_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cpu_particles_2d.rs new file mode 100644 index 0000000..11d3ac5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cpu_particles_2d.rs @@ -0,0 +1,1164 @@ +#![doc = "Sidecar module for class [`CpuParticles2D`][crate::classes::CpuParticles2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CPUParticles2D` enums](https://docs.godotengine.org/en/stable/classes/class_cpuparticles2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CPUParticles2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`cpu_particles_2d`][crate::classes::cpu_particles_2d]: sidecar module with related enum/flag types\n* [`ICpuParticles2D`][crate::classes::ICpuParticles2D]: virtual methods\n\n\nSee also [Godot docs for `CPUParticles2D`](https://docs.godotengine.org/en/stable/classes/class_cpuparticles2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CpuParticles2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CpuParticles2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CpuParticles2D`][crate::classes::CpuParticles2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CPUParticles2D` methods](https://docs.godotengine.org/en/stable/classes/class_cpuparticles2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICpuParticles2D: crate::obj::GodotClass < Base = CpuParticles2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CpuParticles2D { + pub fn set_emitting(&mut self, emitting: bool,) { + type CallSig = ((), bool); + let args = (emitting,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1268usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_emitting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_amount(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1269usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lifetime(&mut self, secs: f64,) { + type CallSig = ((), f64); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1270usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_one_shot(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1271usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_one_shot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pre_process_time(&mut self, secs: f64,) { + type CallSig = ((), f64); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1272usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_pre_process_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_explosiveness_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1273usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_explosiveness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_randomness_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1274usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_randomness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lifetime_randomness(&mut self, random: f64,) { + type CallSig = ((), f64); + let args = (random,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1275usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_lifetime_randomness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_local_coordinates(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1276usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_use_local_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fixed_fps(&mut self, fps: i32,) { + type CallSig = ((), i32); + let args = (fps,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1277usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_fixed_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fractional_delta(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1278usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_fractional_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_speed_scale(&mut self, scale: f64,) { + type CallSig = ((), f64); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1279usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_emitting(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1280usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "is_emitting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_amount(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1281usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lifetime(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1282usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_one_shot(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1283usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_one_shot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pre_process_time(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1284usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_pre_process_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_explosiveness_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1285usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_explosiveness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_randomness_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1286usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_randomness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lifetime_randomness(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1287usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_lifetime_randomness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_local_coordinates(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1288usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_use_local_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fixed_fps(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1289usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_fixed_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fractional_delta(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1290usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_fractional_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_speed_scale(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1291usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_order(&mut self, order: crate::classes::cpu_particles_2d::DrawOrder,) { + type CallSig = ((), crate::classes::cpu_particles_2d::DrawOrder); + let args = (order,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1292usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_draw_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_draw_order(&self,) -> crate::classes::cpu_particles_2d::DrawOrder { + type CallSig = (crate::classes::cpu_particles_2d::DrawOrder,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1293usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_draw_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1294usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1295usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn restart(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1296usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "restart", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_direction(&mut self, direction: Vector2,) { + type CallSig = ((), Vector2); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1297usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_direction(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1298usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_spread(&mut self, spread: f32,) { + type CallSig = ((), f32); + let args = (spread,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1299usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_spread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spread(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1300usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_spread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param_min(&mut self, param: crate::classes::cpu_particles_2d::Parameter, value: f32,) { + type CallSig = ((), crate::classes::cpu_particles_2d::Parameter, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1301usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_param_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_min(&self, param: crate::classes::cpu_particles_2d::Parameter,) -> f32 { + type CallSig = (f32, crate::classes::cpu_particles_2d::Parameter); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1302usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_param_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param_max(&mut self, param: crate::classes::cpu_particles_2d::Parameter, value: f32,) { + type CallSig = ((), crate::classes::cpu_particles_2d::Parameter, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1303usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_param_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_max(&self, param: crate::classes::cpu_particles_2d::Parameter,) -> f32 { + type CallSig = (f32, crate::classes::cpu_particles_2d::Parameter); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1304usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_param_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param_curve(&mut self, param: crate::classes::cpu_particles_2d::Parameter, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), crate::classes::cpu_particles_2d::Parameter, ObjectArg < crate::classes::Curve >); + let args = (param, curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1305usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_param_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_curve(&self, param: crate::classes::cpu_particles_2d::Parameter,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >, crate::classes::cpu_particles_2d::Parameter); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1306usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_param_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1307usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1308usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color_ramp(&mut self, ramp: impl AsObjectArg < crate::classes::Gradient >,) { + type CallSig = ((), ObjectArg < crate::classes::Gradient >); + let args = (ramp.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1309usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_color_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_ramp(&self,) -> Option < Gd < crate::classes::Gradient > > { + type CallSig = (Option < Gd < crate::classes::Gradient > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1310usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_color_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color_initial_ramp(&mut self, ramp: impl AsObjectArg < crate::classes::Gradient >,) { + type CallSig = ((), ObjectArg < crate::classes::Gradient >); + let args = (ramp.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1311usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_color_initial_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_initial_ramp(&self,) -> Option < Gd < crate::classes::Gradient > > { + type CallSig = (Option < Gd < crate::classes::Gradient > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1312usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_color_initial_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_particle_flag(&mut self, particle_flag: crate::classes::cpu_particles_2d::ParticleFlags, enable: bool,) { + type CallSig = ((), crate::classes::cpu_particles_2d::ParticleFlags, bool); + let args = (particle_flag, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1313usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_particle_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_particle_flag(&self, particle_flag: crate::classes::cpu_particles_2d::ParticleFlags,) -> bool { + type CallSig = (bool, crate::classes::cpu_particles_2d::ParticleFlags); + let args = (particle_flag,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1314usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_particle_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_shape(&mut self, shape: crate::classes::cpu_particles_2d::EmissionShape,) { + type CallSig = ((), crate::classes::cpu_particles_2d::EmissionShape); + let args = (shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1315usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_emission_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_shape(&self,) -> crate::classes::cpu_particles_2d::EmissionShape { + type CallSig = (crate::classes::cpu_particles_2d::EmissionShape,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1316usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_emission_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_sphere_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1317usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_emission_sphere_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_sphere_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1318usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_emission_sphere_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_rect_extents(&mut self, extents: Vector2,) { + type CallSig = ((), Vector2); + let args = (extents,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1319usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_emission_rect_extents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_rect_extents(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1320usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_emission_rect_extents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_points(&mut self, array: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1321usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_emission_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_points(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1322usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_emission_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_normals(&mut self, array: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1323usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_emission_normals", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_normals(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1324usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_emission_normals", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_colors(&mut self, array: &PackedColorArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedColorArray >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1325usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_emission_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_colors(&self,) -> PackedColorArray { + type CallSig = (PackedColorArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1326usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_emission_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1327usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity(&mut self, accel_vec: Vector2,) { + type CallSig = ((), Vector2); + let args = (accel_vec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1328usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_split_scale(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1329usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_split_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_split_scale(&mut self, split_scale: bool,) { + type CallSig = ((), bool); + let args = (split_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1330usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_split_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scale_curve_x(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1331usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_scale_curve_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scale_curve_x(&mut self, scale_curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (scale_curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1332usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_scale_curve_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scale_curve_y(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1333usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "get_scale_curve_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scale_curve_y(&mut self, scale_curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (scale_curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1334usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "set_scale_curve_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn convert_from_particles(&mut self, particles: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (particles.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1335usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles2D", "convert_from_particles", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CpuParticles2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CPUParticles2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CpuParticles2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for CpuParticles2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for CpuParticles2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CpuParticles2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CpuParticles2D { + + } + impl crate::obj::cap::GodotDefault for CpuParticles2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CpuParticles2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CpuParticles2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CpuParticles2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CpuParticles2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CpuParticles2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DrawOrder { + ord: i32 +} +impl DrawOrder { + #[doc(alias = "DRAW_ORDER_INDEX")] + #[doc = "Godot enumerator name: `DRAW_ORDER_INDEX`"] + pub const INDEX: DrawOrder = DrawOrder { + ord: 0i32 + }; + #[doc(alias = "DRAW_ORDER_LIFETIME")] + #[doc = "Godot enumerator name: `DRAW_ORDER_LIFETIME`"] + pub const LIFETIME: DrawOrder = DrawOrder { + ord: 1i32 + }; + +} +impl std::fmt::Debug for DrawOrder { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DrawOrder") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DrawOrder { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INDEX => "INDEX", Self::LIFETIME => "LIFETIME", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INDEX => "DRAW_ORDER_INDEX", Self::LIFETIME => "DRAW_ORDER_LIFETIME", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DrawOrder { + type Via = i32; + +} +impl crate::meta::ToGodot for DrawOrder { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DrawOrder { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Parameter { + ord: i32 +} +impl Parameter { + #[doc(alias = "PARAM_INITIAL_LINEAR_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_INITIAL_LINEAR_VELOCITY`"] + pub const INITIAL_LINEAR_VELOCITY: Parameter = Parameter { + ord: 0i32 + }; + #[doc(alias = "PARAM_ANGULAR_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_VELOCITY`"] + pub const ANGULAR_VELOCITY: Parameter = Parameter { + ord: 1i32 + }; + #[doc(alias = "PARAM_ORBIT_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_ORBIT_VELOCITY`"] + pub const ORBIT_VELOCITY: Parameter = Parameter { + ord: 2i32 + }; + #[doc(alias = "PARAM_LINEAR_ACCEL")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_ACCEL`"] + pub const LINEAR_ACCEL: Parameter = Parameter { + ord: 3i32 + }; + #[doc(alias = "PARAM_RADIAL_ACCEL")] + #[doc = "Godot enumerator name: `PARAM_RADIAL_ACCEL`"] + pub const RADIAL_ACCEL: Parameter = Parameter { + ord: 4i32 + }; + #[doc(alias = "PARAM_TANGENTIAL_ACCEL")] + #[doc = "Godot enumerator name: `PARAM_TANGENTIAL_ACCEL`"] + pub const TANGENTIAL_ACCEL: Parameter = Parameter { + ord: 5i32 + }; + #[doc(alias = "PARAM_DAMPING")] + #[doc = "Godot enumerator name: `PARAM_DAMPING`"] + pub const DAMPING: Parameter = Parameter { + ord: 6i32 + }; + #[doc(alias = "PARAM_ANGLE")] + #[doc = "Godot enumerator name: `PARAM_ANGLE`"] + pub const ANGLE: Parameter = Parameter { + ord: 7i32 + }; + #[doc(alias = "PARAM_SCALE")] + #[doc = "Godot enumerator name: `PARAM_SCALE`"] + pub const SCALE: Parameter = Parameter { + ord: 8i32 + }; + #[doc(alias = "PARAM_HUE_VARIATION")] + #[doc = "Godot enumerator name: `PARAM_HUE_VARIATION`"] + pub const HUE_VARIATION: Parameter = Parameter { + ord: 9i32 + }; + #[doc(alias = "PARAM_ANIM_SPEED")] + #[doc = "Godot enumerator name: `PARAM_ANIM_SPEED`"] + pub const ANIM_SPEED: Parameter = Parameter { + ord: 10i32 + }; + #[doc(alias = "PARAM_ANIM_OFFSET")] + #[doc = "Godot enumerator name: `PARAM_ANIM_OFFSET`"] + pub const ANIM_OFFSET: Parameter = Parameter { + ord: 11i32 + }; + #[doc(alias = "PARAM_MAX")] + #[doc = "Godot enumerator name: `PARAM_MAX`"] + pub const MAX: Parameter = Parameter { + ord: 12i32 + }; + +} +impl std::fmt::Debug for Parameter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Parameter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Parameter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INITIAL_LINEAR_VELOCITY => "INITIAL_LINEAR_VELOCITY", Self::ANGULAR_VELOCITY => "ANGULAR_VELOCITY", Self::ORBIT_VELOCITY => "ORBIT_VELOCITY", Self::LINEAR_ACCEL => "LINEAR_ACCEL", Self::RADIAL_ACCEL => "RADIAL_ACCEL", Self::TANGENTIAL_ACCEL => "TANGENTIAL_ACCEL", Self::DAMPING => "DAMPING", Self::ANGLE => "ANGLE", Self::SCALE => "SCALE", Self::HUE_VARIATION => "HUE_VARIATION", Self::ANIM_SPEED => "ANIM_SPEED", Self::ANIM_OFFSET => "ANIM_OFFSET", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INITIAL_LINEAR_VELOCITY => "PARAM_INITIAL_LINEAR_VELOCITY", Self::ANGULAR_VELOCITY => "PARAM_ANGULAR_VELOCITY", Self::ORBIT_VELOCITY => "PARAM_ORBIT_VELOCITY", Self::LINEAR_ACCEL => "PARAM_LINEAR_ACCEL", Self::RADIAL_ACCEL => "PARAM_RADIAL_ACCEL", Self::TANGENTIAL_ACCEL => "PARAM_TANGENTIAL_ACCEL", Self::DAMPING => "PARAM_DAMPING", Self::ANGLE => "PARAM_ANGLE", Self::SCALE => "PARAM_SCALE", Self::HUE_VARIATION => "PARAM_HUE_VARIATION", Self::ANIM_SPEED => "PARAM_ANIM_SPEED", Self::ANIM_OFFSET => "PARAM_ANIM_OFFSET", Self::MAX => "PARAM_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Parameter { + const ENUMERATOR_COUNT: usize = 12usize; + +} +impl crate::meta::GodotConvert for Parameter { + type Via = i32; + +} +impl crate::meta::ToGodot for Parameter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Parameter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ParticleFlags { + ord: i32 +} +impl ParticleFlags { + #[doc(alias = "PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY`"] + pub const ALIGN_Y_TO_VELOCITY: ParticleFlags = ParticleFlags { + ord: 0i32 + }; + #[doc(alias = "PARTICLE_FLAG_ROTATE_Y")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_ROTATE_Y`"] + pub const ROTATE_Y: ParticleFlags = ParticleFlags { + ord: 1i32 + }; + #[doc(alias = "PARTICLE_FLAG_DISABLE_Z")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_DISABLE_Z`"] + pub const DISABLE_Z: ParticleFlags = ParticleFlags { + ord: 2i32 + }; + #[doc(alias = "PARTICLE_FLAG_MAX")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_MAX`"] + pub const MAX: ParticleFlags = ParticleFlags { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ParticleFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ParticleFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ParticleFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALIGN_Y_TO_VELOCITY => "ALIGN_Y_TO_VELOCITY", Self::ROTATE_Y => "ROTATE_Y", Self::DISABLE_Z => "DISABLE_Z", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALIGN_Y_TO_VELOCITY => "PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY", Self::ROTATE_Y => "PARTICLE_FLAG_ROTATE_Y", Self::DISABLE_Z => "PARTICLE_FLAG_DISABLE_Z", Self::MAX => "PARTICLE_FLAG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ParticleFlags { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for ParticleFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for ParticleFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ParticleFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EmissionShape { + ord: i32 +} +impl EmissionShape { + #[doc(alias = "EMISSION_SHAPE_POINT")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_POINT`"] + pub const POINT: EmissionShape = EmissionShape { + ord: 0i32 + }; + #[doc(alias = "EMISSION_SHAPE_SPHERE")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_SPHERE`"] + pub const SPHERE: EmissionShape = EmissionShape { + ord: 1i32 + }; + #[doc(alias = "EMISSION_SHAPE_SPHERE_SURFACE")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_SPHERE_SURFACE`"] + pub const SPHERE_SURFACE: EmissionShape = EmissionShape { + ord: 2i32 + }; + #[doc(alias = "EMISSION_SHAPE_RECTANGLE")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_RECTANGLE`"] + pub const RECTANGLE: EmissionShape = EmissionShape { + ord: 3i32 + }; + #[doc(alias = "EMISSION_SHAPE_POINTS")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_POINTS`"] + pub const POINTS: EmissionShape = EmissionShape { + ord: 4i32 + }; + #[doc(alias = "EMISSION_SHAPE_DIRECTED_POINTS")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_DIRECTED_POINTS`"] + pub const DIRECTED_POINTS: EmissionShape = EmissionShape { + ord: 5i32 + }; + #[doc(alias = "EMISSION_SHAPE_MAX")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_MAX`"] + pub const MAX: EmissionShape = EmissionShape { + ord: 6i32 + }; + +} +impl std::fmt::Debug for EmissionShape { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EmissionShape") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EmissionShape { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINT => "POINT", Self::SPHERE => "SPHERE", Self::SPHERE_SURFACE => "SPHERE_SURFACE", Self::RECTANGLE => "RECTANGLE", Self::POINTS => "POINTS", Self::DIRECTED_POINTS => "DIRECTED_POINTS", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINT => "EMISSION_SHAPE_POINT", Self::SPHERE => "EMISSION_SHAPE_SPHERE", Self::SPHERE_SURFACE => "EMISSION_SHAPE_SPHERE_SURFACE", Self::RECTANGLE => "EMISSION_SHAPE_RECTANGLE", Self::POINTS => "EMISSION_SHAPE_POINTS", Self::DIRECTED_POINTS => "EMISSION_SHAPE_DIRECTED_POINTS", Self::MAX => "EMISSION_SHAPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for EmissionShape { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for EmissionShape { + type Via = i32; + +} +impl crate::meta::ToGodot for EmissionShape { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EmissionShape { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cpu_particles_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cpu_particles_3d.rs new file mode 100644 index 0000000..3e78f35 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cpu_particles_3d.rs @@ -0,0 +1,1292 @@ +#![doc = "Sidecar module for class [`CpuParticles3D`][crate::classes::CpuParticles3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CPUParticles3D` enums](https://docs.godotengine.org/en/stable/classes/class_cpuparticles3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CPUParticles3D.`\n\nInherits [`GeometryInstance3D`][crate::classes::GeometryInstance3D].\n\nRelated symbols:\n\n* [`cpu_particles_3d`][crate::classes::cpu_particles_3d]: sidecar module with related enum/flag types\n* [`ICpuParticles3D`][crate::classes::ICpuParticles3D]: virtual methods\n\n\nSee also [Godot docs for `CPUParticles3D`](https://docs.godotengine.org/en/stable/classes/class_cpuparticles3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CpuParticles3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CpuParticles3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CpuParticles3D`][crate::classes::CpuParticles3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CPUParticles3D` methods](https://docs.godotengine.org/en/stable/classes/class_cpuparticles3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICpuParticles3D: crate::obj::GodotClass < Base = CpuParticles3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CpuParticles3D { + pub fn set_emitting(&mut self, emitting: bool,) { + type CallSig = ((), bool); + let args = (emitting,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1336usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_emitting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_amount(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1337usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lifetime(&mut self, secs: f64,) { + type CallSig = ((), f64); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1338usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_one_shot(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1339usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_one_shot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pre_process_time(&mut self, secs: f64,) { + type CallSig = ((), f64); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1340usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_pre_process_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_explosiveness_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1341usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_explosiveness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_randomness_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1342usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_randomness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_aabb(&mut self, aabb: Aabb,) { + type CallSig = ((), Aabb); + let args = (aabb,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1343usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_visibility_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lifetime_randomness(&mut self, random: f64,) { + type CallSig = ((), f64); + let args = (random,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1344usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_lifetime_randomness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_local_coordinates(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1345usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_use_local_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fixed_fps(&mut self, fps: i32,) { + type CallSig = ((), i32); + let args = (fps,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1346usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_fixed_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fractional_delta(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1347usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_fractional_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_speed_scale(&mut self, scale: f64,) { + type CallSig = ((), f64); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1348usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_emitting(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1349usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "is_emitting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_amount(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1350usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lifetime(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1351usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_one_shot(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1352usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_one_shot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pre_process_time(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1353usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_pre_process_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_explosiveness_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1354usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_explosiveness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_randomness_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1355usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_randomness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_aabb(&self,) -> Aabb { + type CallSig = (Aabb,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1356usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_visibility_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lifetime_randomness(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1357usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_lifetime_randomness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_local_coordinates(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1358usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_use_local_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fixed_fps(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1359usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_fixed_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fractional_delta(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1360usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_fractional_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_speed_scale(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1361usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_order(&mut self, order: crate::classes::cpu_particles_3d::DrawOrder,) { + type CallSig = ((), crate::classes::cpu_particles_3d::DrawOrder); + let args = (order,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1362usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_draw_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_draw_order(&self,) -> crate::classes::cpu_particles_3d::DrawOrder { + type CallSig = (crate::classes::cpu_particles_3d::DrawOrder,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1363usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_draw_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mesh(&mut self, mesh: impl AsObjectArg < crate::classes::Mesh >,) { + type CallSig = ((), ObjectArg < crate::classes::Mesh >); + let args = (mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1364usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh(&self,) -> Option < Gd < crate::classes::Mesh > > { + type CallSig = (Option < Gd < crate::classes::Mesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1365usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn restart(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1366usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "restart", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_direction(&mut self, direction: Vector3,) { + type CallSig = ((), Vector3); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1367usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_direction(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1368usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_spread(&mut self, degrees: f32,) { + type CallSig = ((), f32); + let args = (degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1369usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_spread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spread(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1370usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_spread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flatness(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1371usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_flatness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_flatness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1372usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_flatness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param_min(&mut self, param: crate::classes::cpu_particles_3d::Parameter, value: f32,) { + type CallSig = ((), crate::classes::cpu_particles_3d::Parameter, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1373usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_param_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_min(&self, param: crate::classes::cpu_particles_3d::Parameter,) -> f32 { + type CallSig = (f32, crate::classes::cpu_particles_3d::Parameter); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1374usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_param_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param_max(&mut self, param: crate::classes::cpu_particles_3d::Parameter, value: f32,) { + type CallSig = ((), crate::classes::cpu_particles_3d::Parameter, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1375usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_param_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_max(&self, param: crate::classes::cpu_particles_3d::Parameter,) -> f32 { + type CallSig = (f32, crate::classes::cpu_particles_3d::Parameter); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1376usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_param_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param_curve(&mut self, param: crate::classes::cpu_particles_3d::Parameter, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), crate::classes::cpu_particles_3d::Parameter, ObjectArg < crate::classes::Curve >); + let args = (param, curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1377usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_param_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_curve(&self, param: crate::classes::cpu_particles_3d::Parameter,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >, crate::classes::cpu_particles_3d::Parameter); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1378usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_param_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1379usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1380usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color_ramp(&mut self, ramp: impl AsObjectArg < crate::classes::Gradient >,) { + type CallSig = ((), ObjectArg < crate::classes::Gradient >); + let args = (ramp.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1381usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_color_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_ramp(&self,) -> Option < Gd < crate::classes::Gradient > > { + type CallSig = (Option < Gd < crate::classes::Gradient > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1382usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_color_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color_initial_ramp(&mut self, ramp: impl AsObjectArg < crate::classes::Gradient >,) { + type CallSig = ((), ObjectArg < crate::classes::Gradient >); + let args = (ramp.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1383usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_color_initial_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_initial_ramp(&self,) -> Option < Gd < crate::classes::Gradient > > { + type CallSig = (Option < Gd < crate::classes::Gradient > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1384usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_color_initial_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_particle_flag(&mut self, particle_flag: crate::classes::cpu_particles_3d::ParticleFlags, enable: bool,) { + type CallSig = ((), crate::classes::cpu_particles_3d::ParticleFlags, bool); + let args = (particle_flag, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1385usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_particle_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_particle_flag(&self, particle_flag: crate::classes::cpu_particles_3d::ParticleFlags,) -> bool { + type CallSig = (bool, crate::classes::cpu_particles_3d::ParticleFlags); + let args = (particle_flag,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1386usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_particle_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_shape(&mut self, shape: crate::classes::cpu_particles_3d::EmissionShape,) { + type CallSig = ((), crate::classes::cpu_particles_3d::EmissionShape); + let args = (shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1387usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_emission_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_shape(&self,) -> crate::classes::cpu_particles_3d::EmissionShape { + type CallSig = (crate::classes::cpu_particles_3d::EmissionShape,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1388usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_emission_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_sphere_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1389usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_emission_sphere_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_sphere_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1390usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_emission_sphere_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_box_extents(&mut self, extents: Vector3,) { + type CallSig = ((), Vector3); + let args = (extents,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1391usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_emission_box_extents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_box_extents(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1392usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_emission_box_extents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_points(&mut self, array: &PackedVector3Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector3Array >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1393usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_emission_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_points(&self,) -> PackedVector3Array { + type CallSig = (PackedVector3Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1394usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_emission_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_normals(&mut self, array: &PackedVector3Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector3Array >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1395usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_emission_normals", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_normals(&self,) -> PackedVector3Array { + type CallSig = (PackedVector3Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1396usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_emission_normals", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_colors(&mut self, array: &PackedColorArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedColorArray >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1397usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_emission_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_colors(&self,) -> PackedColorArray { + type CallSig = (PackedColorArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1398usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_emission_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_ring_axis(&mut self, axis: Vector3,) { + type CallSig = ((), Vector3); + let args = (axis,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1399usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_emission_ring_axis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_ring_axis(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1400usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_emission_ring_axis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_ring_height(&mut self, height: f32,) { + type CallSig = ((), f32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1401usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_emission_ring_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_ring_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1402usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_emission_ring_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_ring_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1403usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_emission_ring_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_ring_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1404usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_emission_ring_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_ring_inner_radius(&mut self, inner_radius: f32,) { + type CallSig = ((), f32); + let args = (inner_radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1405usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_emission_ring_inner_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_ring_inner_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1406usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_emission_ring_inner_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1407usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity(&mut self, accel_vec: Vector3,) { + type CallSig = ((), Vector3); + let args = (accel_vec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1408usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_split_scale(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1409usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_split_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_split_scale(&mut self, split_scale: bool,) { + type CallSig = ((), bool); + let args = (split_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1410usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_split_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scale_curve_x(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1411usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_scale_curve_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scale_curve_x(&mut self, scale_curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (scale_curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1412usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_scale_curve_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scale_curve_y(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1413usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_scale_curve_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scale_curve_y(&mut self, scale_curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (scale_curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1414usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_scale_curve_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scale_curve_z(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1415usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "get_scale_curve_z", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scale_curve_z(&mut self, scale_curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (scale_curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1416usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "set_scale_curve_z", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn convert_from_particles(&mut self, particles: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (particles.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1417usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CpuParticles3D", "convert_from_particles", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CpuParticles3D { + type Base = crate::classes::GeometryInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CPUParticles3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CpuParticles3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for CpuParticles3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for CpuParticles3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CpuParticles3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CpuParticles3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CpuParticles3D { + + } + impl crate::obj::cap::GodotDefault for CpuParticles3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CpuParticles3D { + type Target = crate::classes::GeometryInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CpuParticles3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CpuParticles3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CpuParticles3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CpuParticles3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DrawOrder { + ord: i32 +} +impl DrawOrder { + #[doc(alias = "DRAW_ORDER_INDEX")] + #[doc = "Godot enumerator name: `DRAW_ORDER_INDEX`"] + pub const INDEX: DrawOrder = DrawOrder { + ord: 0i32 + }; + #[doc(alias = "DRAW_ORDER_LIFETIME")] + #[doc = "Godot enumerator name: `DRAW_ORDER_LIFETIME`"] + pub const LIFETIME: DrawOrder = DrawOrder { + ord: 1i32 + }; + #[doc(alias = "DRAW_ORDER_VIEW_DEPTH")] + #[doc = "Godot enumerator name: `DRAW_ORDER_VIEW_DEPTH`"] + pub const VIEW_DEPTH: DrawOrder = DrawOrder { + ord: 2i32 + }; + +} +impl std::fmt::Debug for DrawOrder { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DrawOrder") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DrawOrder { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INDEX => "INDEX", Self::LIFETIME => "LIFETIME", Self::VIEW_DEPTH => "VIEW_DEPTH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INDEX => "DRAW_ORDER_INDEX", Self::LIFETIME => "DRAW_ORDER_LIFETIME", Self::VIEW_DEPTH => "DRAW_ORDER_VIEW_DEPTH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DrawOrder { + type Via = i32; + +} +impl crate::meta::ToGodot for DrawOrder { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DrawOrder { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Parameter { + ord: i32 +} +impl Parameter { + #[doc(alias = "PARAM_INITIAL_LINEAR_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_INITIAL_LINEAR_VELOCITY`"] + pub const INITIAL_LINEAR_VELOCITY: Parameter = Parameter { + ord: 0i32 + }; + #[doc(alias = "PARAM_ANGULAR_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_VELOCITY`"] + pub const ANGULAR_VELOCITY: Parameter = Parameter { + ord: 1i32 + }; + #[doc(alias = "PARAM_ORBIT_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_ORBIT_VELOCITY`"] + pub const ORBIT_VELOCITY: Parameter = Parameter { + ord: 2i32 + }; + #[doc(alias = "PARAM_LINEAR_ACCEL")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_ACCEL`"] + pub const LINEAR_ACCEL: Parameter = Parameter { + ord: 3i32 + }; + #[doc(alias = "PARAM_RADIAL_ACCEL")] + #[doc = "Godot enumerator name: `PARAM_RADIAL_ACCEL`"] + pub const RADIAL_ACCEL: Parameter = Parameter { + ord: 4i32 + }; + #[doc(alias = "PARAM_TANGENTIAL_ACCEL")] + #[doc = "Godot enumerator name: `PARAM_TANGENTIAL_ACCEL`"] + pub const TANGENTIAL_ACCEL: Parameter = Parameter { + ord: 5i32 + }; + #[doc(alias = "PARAM_DAMPING")] + #[doc = "Godot enumerator name: `PARAM_DAMPING`"] + pub const DAMPING: Parameter = Parameter { + ord: 6i32 + }; + #[doc(alias = "PARAM_ANGLE")] + #[doc = "Godot enumerator name: `PARAM_ANGLE`"] + pub const ANGLE: Parameter = Parameter { + ord: 7i32 + }; + #[doc(alias = "PARAM_SCALE")] + #[doc = "Godot enumerator name: `PARAM_SCALE`"] + pub const SCALE: Parameter = Parameter { + ord: 8i32 + }; + #[doc(alias = "PARAM_HUE_VARIATION")] + #[doc = "Godot enumerator name: `PARAM_HUE_VARIATION`"] + pub const HUE_VARIATION: Parameter = Parameter { + ord: 9i32 + }; + #[doc(alias = "PARAM_ANIM_SPEED")] + #[doc = "Godot enumerator name: `PARAM_ANIM_SPEED`"] + pub const ANIM_SPEED: Parameter = Parameter { + ord: 10i32 + }; + #[doc(alias = "PARAM_ANIM_OFFSET")] + #[doc = "Godot enumerator name: `PARAM_ANIM_OFFSET`"] + pub const ANIM_OFFSET: Parameter = Parameter { + ord: 11i32 + }; + #[doc(alias = "PARAM_MAX")] + #[doc = "Godot enumerator name: `PARAM_MAX`"] + pub const MAX: Parameter = Parameter { + ord: 12i32 + }; + +} +impl std::fmt::Debug for Parameter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Parameter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Parameter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INITIAL_LINEAR_VELOCITY => "INITIAL_LINEAR_VELOCITY", Self::ANGULAR_VELOCITY => "ANGULAR_VELOCITY", Self::ORBIT_VELOCITY => "ORBIT_VELOCITY", Self::LINEAR_ACCEL => "LINEAR_ACCEL", Self::RADIAL_ACCEL => "RADIAL_ACCEL", Self::TANGENTIAL_ACCEL => "TANGENTIAL_ACCEL", Self::DAMPING => "DAMPING", Self::ANGLE => "ANGLE", Self::SCALE => "SCALE", Self::HUE_VARIATION => "HUE_VARIATION", Self::ANIM_SPEED => "ANIM_SPEED", Self::ANIM_OFFSET => "ANIM_OFFSET", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INITIAL_LINEAR_VELOCITY => "PARAM_INITIAL_LINEAR_VELOCITY", Self::ANGULAR_VELOCITY => "PARAM_ANGULAR_VELOCITY", Self::ORBIT_VELOCITY => "PARAM_ORBIT_VELOCITY", Self::LINEAR_ACCEL => "PARAM_LINEAR_ACCEL", Self::RADIAL_ACCEL => "PARAM_RADIAL_ACCEL", Self::TANGENTIAL_ACCEL => "PARAM_TANGENTIAL_ACCEL", Self::DAMPING => "PARAM_DAMPING", Self::ANGLE => "PARAM_ANGLE", Self::SCALE => "PARAM_SCALE", Self::HUE_VARIATION => "PARAM_HUE_VARIATION", Self::ANIM_SPEED => "PARAM_ANIM_SPEED", Self::ANIM_OFFSET => "PARAM_ANIM_OFFSET", Self::MAX => "PARAM_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Parameter { + const ENUMERATOR_COUNT: usize = 12usize; + +} +impl crate::meta::GodotConvert for Parameter { + type Via = i32; + +} +impl crate::meta::ToGodot for Parameter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Parameter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ParticleFlags { + ord: i32 +} +impl ParticleFlags { + #[doc(alias = "PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY`"] + pub const ALIGN_Y_TO_VELOCITY: ParticleFlags = ParticleFlags { + ord: 0i32 + }; + #[doc(alias = "PARTICLE_FLAG_ROTATE_Y")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_ROTATE_Y`"] + pub const ROTATE_Y: ParticleFlags = ParticleFlags { + ord: 1i32 + }; + #[doc(alias = "PARTICLE_FLAG_DISABLE_Z")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_DISABLE_Z`"] + pub const DISABLE_Z: ParticleFlags = ParticleFlags { + ord: 2i32 + }; + #[doc(alias = "PARTICLE_FLAG_MAX")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_MAX`"] + pub const MAX: ParticleFlags = ParticleFlags { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ParticleFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ParticleFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ParticleFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALIGN_Y_TO_VELOCITY => "ALIGN_Y_TO_VELOCITY", Self::ROTATE_Y => "ROTATE_Y", Self::DISABLE_Z => "DISABLE_Z", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALIGN_Y_TO_VELOCITY => "PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY", Self::ROTATE_Y => "PARTICLE_FLAG_ROTATE_Y", Self::DISABLE_Z => "PARTICLE_FLAG_DISABLE_Z", Self::MAX => "PARTICLE_FLAG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ParticleFlags { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for ParticleFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for ParticleFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ParticleFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EmissionShape { + ord: i32 +} +impl EmissionShape { + #[doc(alias = "EMISSION_SHAPE_POINT")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_POINT`"] + pub const POINT: EmissionShape = EmissionShape { + ord: 0i32 + }; + #[doc(alias = "EMISSION_SHAPE_SPHERE")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_SPHERE`"] + pub const SPHERE: EmissionShape = EmissionShape { + ord: 1i32 + }; + #[doc(alias = "EMISSION_SHAPE_SPHERE_SURFACE")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_SPHERE_SURFACE`"] + pub const SPHERE_SURFACE: EmissionShape = EmissionShape { + ord: 2i32 + }; + #[doc(alias = "EMISSION_SHAPE_BOX")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_BOX`"] + pub const BOX: EmissionShape = EmissionShape { + ord: 3i32 + }; + #[doc(alias = "EMISSION_SHAPE_POINTS")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_POINTS`"] + pub const POINTS: EmissionShape = EmissionShape { + ord: 4i32 + }; + #[doc(alias = "EMISSION_SHAPE_DIRECTED_POINTS")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_DIRECTED_POINTS`"] + pub const DIRECTED_POINTS: EmissionShape = EmissionShape { + ord: 5i32 + }; + #[doc(alias = "EMISSION_SHAPE_RING")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_RING`"] + pub const RING: EmissionShape = EmissionShape { + ord: 6i32 + }; + #[doc(alias = "EMISSION_SHAPE_MAX")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_MAX`"] + pub const MAX: EmissionShape = EmissionShape { + ord: 7i32 + }; + +} +impl std::fmt::Debug for EmissionShape { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EmissionShape") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EmissionShape { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINT => "POINT", Self::SPHERE => "SPHERE", Self::SPHERE_SURFACE => "SPHERE_SURFACE", Self::BOX => "BOX", Self::POINTS => "POINTS", Self::DIRECTED_POINTS => "DIRECTED_POINTS", Self::RING => "RING", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINT => "EMISSION_SHAPE_POINT", Self::SPHERE => "EMISSION_SHAPE_SPHERE", Self::SPHERE_SURFACE => "EMISSION_SHAPE_SPHERE_SURFACE", Self::BOX => "EMISSION_SHAPE_BOX", Self::POINTS => "EMISSION_SHAPE_POINTS", Self::DIRECTED_POINTS => "EMISSION_SHAPE_DIRECTED_POINTS", Self::RING => "EMISSION_SHAPE_RING", Self::MAX => "EMISSION_SHAPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for EmissionShape { + const ENUMERATOR_COUNT: usize = 7usize; + +} +impl crate::meta::GodotConvert for EmissionShape { + type Via = i32; + +} +impl crate::meta::ToGodot for EmissionShape { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EmissionShape { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/crypto.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/crypto.rs new file mode 100644 index 0000000..e32e2d1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/crypto.rs @@ -0,0 +1,316 @@ +#![doc = "Sidecar module for class [`Crypto`][crate::classes::Crypto].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Crypto` enums](https://docs.godotengine.org/en/stable/classes/class_crypto.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Crypto.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`crypto`][crate::classes::crypto]: sidecar module with related enum/flag types\n* [`ICrypto`][crate::classes::ICrypto]: virtual methods\n\n\nSee also [Godot docs for `Crypto`](https://docs.godotengine.org/en/stable/classes/class_crypto.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Crypto::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Crypto { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Crypto`][crate::classes::Crypto].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Crypto` methods](https://docs.godotengine.org/en/stable/classes/class_crypto.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICrypto: crate::obj::GodotClass < Base = Crypto > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Crypto { + pub fn generate_random_bytes(&mut self, size: i32,) -> PackedByteArray { + type CallSig = (PackedByteArray, i32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2424usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Crypto", "generate_random_bytes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn generate_rsa(&mut self, size: i32,) -> Option < Gd < crate::classes::CryptoKey > > { + type CallSig = (Option < Gd < crate::classes::CryptoKey > >, i32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2425usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Crypto", "generate_rsa", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn generate_self_signed_certificate_full(&mut self, key: ObjectArg < crate::classes::CryptoKey >, issuer_name: CowArg < GString >, not_before: CowArg < GString >, not_after: CowArg < GString >,) -> Option < Gd < crate::classes::X509Certificate > > { + type CallSig < 'a0, 'a1, 'a2, > = (Option < Gd < crate::classes::X509Certificate > >, ObjectArg < crate::classes::CryptoKey >, CowArg < 'a0, GString >, CowArg < 'a1, GString >, CowArg < 'a2, GString >); + let args = (key, issuer_name, not_before, not_after,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2426usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Crypto", "generate_self_signed_certificate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::generate_self_signed_certificate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn generate_self_signed_certificate(&mut self, key: impl AsObjectArg < crate::classes::CryptoKey >,) -> Option < Gd < crate::classes::X509Certificate > > { + self.generate_self_signed_certificate_ex(key,) . done() + } + #[inline] + pub fn generate_self_signed_certificate_ex < 'a > (&'a mut self, key: impl AsObjectArg < crate::classes::CryptoKey >,) -> ExGenerateSelfSignedCertificate < 'a > { + ExGenerateSelfSignedCertificate::new(self, key,) + } + pub fn sign(&mut self, hash_type: crate::classes::hashing_context::HashType, hash: &PackedByteArray, key: impl AsObjectArg < crate::classes::CryptoKey >,) -> PackedByteArray { + type CallSig < 'a0, > = (PackedByteArray, crate::classes::hashing_context::HashType, RefArg < 'a0, PackedByteArray >, ObjectArg < crate::classes::CryptoKey >); + let args = (hash_type, RefArg::new(hash), key.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2427usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Crypto", "sign", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn verify(&mut self, hash_type: crate::classes::hashing_context::HashType, hash: &PackedByteArray, signature: &PackedByteArray, key: impl AsObjectArg < crate::classes::CryptoKey >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, crate::classes::hashing_context::HashType, RefArg < 'a0, PackedByteArray >, RefArg < 'a1, PackedByteArray >, ObjectArg < crate::classes::CryptoKey >); + let args = (hash_type, RefArg::new(hash), RefArg::new(signature), key.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2428usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Crypto", "verify", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn encrypt(&mut self, key: impl AsObjectArg < crate::classes::CryptoKey >, plaintext: &PackedByteArray,) -> PackedByteArray { + type CallSig < 'a0, > = (PackedByteArray, ObjectArg < crate::classes::CryptoKey >, RefArg < 'a0, PackedByteArray >); + let args = (key.as_object_arg(), RefArg::new(plaintext),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2429usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Crypto", "encrypt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decrypt(&mut self, key: impl AsObjectArg < crate::classes::CryptoKey >, ciphertext: &PackedByteArray,) -> PackedByteArray { + type CallSig < 'a0, > = (PackedByteArray, ObjectArg < crate::classes::CryptoKey >, RefArg < 'a0, PackedByteArray >); + let args = (key.as_object_arg(), RefArg::new(ciphertext),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2430usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Crypto", "decrypt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn hmac_digest(&mut self, hash_type: crate::classes::hashing_context::HashType, key: &PackedByteArray, msg: &PackedByteArray,) -> PackedByteArray { + type CallSig < 'a0, 'a1, > = (PackedByteArray, crate::classes::hashing_context::HashType, RefArg < 'a0, PackedByteArray >, RefArg < 'a1, PackedByteArray >); + let args = (hash_type, RefArg::new(key), RefArg::new(msg),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2431usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Crypto", "hmac_digest", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn constant_time_compare(&mut self, trusted: &PackedByteArray, received: &PackedByteArray,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, RefArg < 'a0, PackedByteArray >, RefArg < 'a1, PackedByteArray >); + let args = (RefArg::new(trusted), RefArg::new(received),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2432usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Crypto", "constant_time_compare", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Crypto { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Crypto")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Crypto { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Crypto { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Crypto { + + } + impl crate::obj::cap::GodotDefault for Crypto { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Crypto { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Crypto { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Crypto`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Crypto { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Crypto > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Crypto::generate_self_signed_certificate_ex`][super::Crypto::generate_self_signed_certificate_ex]."] +#[must_use] +pub struct ExGenerateSelfSignedCertificate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Crypto, key: ObjectCow < crate::classes::CryptoKey >, issuer_name: CowArg < 'a, GString >, not_before: CowArg < 'a, GString >, not_after: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGenerateSelfSignedCertificate < 'a > { + fn new(surround_object: &'a mut re_export::Crypto, key: impl AsObjectArg < crate::classes::CryptoKey >,) -> Self { + let issuer_name = GString::from("CN=myserver,O=myorganisation,C=IT"); + let not_before = GString::from("20140101000000"); + let not_after = GString::from("20340101000000"); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, key: key.consume_arg(), issuer_name: CowArg::Owned(issuer_name), not_before: CowArg::Owned(not_before), not_after: CowArg::Owned(not_after), + } + } + #[inline] + pub fn issuer_name(self, issuer_name: impl AsArg < GString > + 'a) -> Self { + Self { + issuer_name: issuer_name.into_arg(), .. self + } + } + #[inline] + pub fn not_before(self, not_before: impl AsArg < GString > + 'a) -> Self { + Self { + not_before: not_before.into_arg(), .. self + } + } + #[inline] + pub fn not_after(self, not_after: impl AsArg < GString > + 'a) -> Self { + Self { + not_after: not_after.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::X509Certificate > > { + let Self { + _phantom, surround_object, key, issuer_name, not_before, not_after, + } + = self; + re_export::Crypto::generate_self_signed_certificate_full(surround_object, key.cow_as_object_arg(), issuer_name, not_before, not_after,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/crypto_key.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/crypto_key.rs new file mode 100644 index 0000000..d1748b1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/crypto_key.rs @@ -0,0 +1,390 @@ +#![doc = "Sidecar module for class [`CryptoKey`][crate::classes::CryptoKey].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CryptoKey` enums](https://docs.godotengine.org/en/stable/classes/class_cryptokey.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CryptoKey.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`crypto_key`][crate::classes::crypto_key]: sidecar module with related enum/flag types\n* [`ICryptoKey`][crate::classes::ICryptoKey]: virtual methods\n\n\nSee also [Godot docs for `CryptoKey`](https://docs.godotengine.org/en/stable/classes/class_cryptokey.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CryptoKey::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CryptoKey { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CryptoKey`][crate::classes::CryptoKey].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CryptoKey` methods](https://docs.godotengine.org/en/stable/classes/class_cryptokey.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICryptoKey: crate::obj::GodotClass < Base = CryptoKey > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CryptoKey { + pub(crate) fn save_full(&mut self, path: CowArg < GString >, public_only: bool,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, bool); + let args = (path, public_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2433usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CryptoKey", "save", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::save_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn save(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + self.save_ex(path,) . done() + } + #[inline] + pub fn save_ex < 'a > (&'a mut self, path: impl AsArg < GString > + 'a,) -> ExSave < 'a > { + ExSave::new(self, path,) + } + pub(crate) fn load_full(&mut self, path: CowArg < GString >, public_only: bool,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, bool); + let args = (path, public_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2434usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CryptoKey", "load", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::load_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn load(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + self.load_ex(path,) . done() + } + #[inline] + pub fn load_ex < 'a > (&'a mut self, path: impl AsArg < GString > + 'a,) -> ExLoad < 'a > { + ExLoad::new(self, path,) + } + pub fn is_public_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2435usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CryptoKey", "is_public_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn save_to_string_full(&mut self, public_only: bool,) -> GString { + type CallSig = (GString, bool); + let args = (public_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2436usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CryptoKey", "save_to_string", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::save_to_string_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn save_to_string(&mut self,) -> GString { + self.save_to_string_ex() . done() + } + #[inline] + pub fn save_to_string_ex < 'a > (&'a mut self,) -> ExSaveToString < 'a > { + ExSaveToString::new(self,) + } + pub(crate) fn load_from_string_full(&mut self, string_key: CowArg < GString >, public_only: bool,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, bool); + let args = (string_key, public_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2437usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CryptoKey", "load_from_string", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::load_from_string_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn load_from_string(&mut self, string_key: impl AsArg < GString >,) -> crate::global::Error { + self.load_from_string_ex(string_key,) . done() + } + #[inline] + pub fn load_from_string_ex < 'a > (&'a mut self, string_key: impl AsArg < GString > + 'a,) -> ExLoadFromString < 'a > { + ExLoadFromString::new(self, string_key,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CryptoKey { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CryptoKey")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CryptoKey { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CryptoKey { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CryptoKey { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CryptoKey { + + } + impl crate::obj::cap::GodotDefault for CryptoKey { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CryptoKey { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CryptoKey { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CryptoKey`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CryptoKey { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CryptoKey > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`CryptoKey::save_ex`][super::CryptoKey::save_ex]."] +#[must_use] +pub struct ExSave < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CryptoKey, path: CowArg < 'a, GString >, public_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSave < 'a > { + fn new(surround_object: &'a mut re_export::CryptoKey, path: impl AsArg < GString > + 'a,) -> Self { + let public_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), public_only: public_only, + } + } + #[inline] + pub fn public_only(self, public_only: bool) -> Self { + Self { + public_only: public_only, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, path, public_only, + } + = self; + re_export::CryptoKey::save_full(surround_object, path, public_only,) + } +} +#[doc = "Default-param extender for [`CryptoKey::load_ex`][super::CryptoKey::load_ex]."] +#[must_use] +pub struct ExLoad < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CryptoKey, path: CowArg < 'a, GString >, public_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExLoad < 'a > { + fn new(surround_object: &'a mut re_export::CryptoKey, path: impl AsArg < GString > + 'a,) -> Self { + let public_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), public_only: public_only, + } + } + #[inline] + pub fn public_only(self, public_only: bool) -> Self { + Self { + public_only: public_only, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, path, public_only, + } + = self; + re_export::CryptoKey::load_full(surround_object, path, public_only,) + } +} +#[doc = "Default-param extender for [`CryptoKey::save_to_string_ex`][super::CryptoKey::save_to_string_ex]."] +#[must_use] +pub struct ExSaveToString < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CryptoKey, public_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSaveToString < 'a > { + fn new(surround_object: &'a mut re_export::CryptoKey,) -> Self { + let public_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, public_only: public_only, + } + } + #[inline] + pub fn public_only(self, public_only: bool) -> Self { + Self { + public_only: public_only, .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, public_only, + } + = self; + re_export::CryptoKey::save_to_string_full(surround_object, public_only,) + } +} +#[doc = "Default-param extender for [`CryptoKey::load_from_string_ex`][super::CryptoKey::load_from_string_ex]."] +#[must_use] +pub struct ExLoadFromString < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::CryptoKey, string_key: CowArg < 'a, GString >, public_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExLoadFromString < 'a > { + fn new(surround_object: &'a mut re_export::CryptoKey, string_key: impl AsArg < GString > + 'a,) -> Self { + let public_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, string_key: string_key.into_arg(), public_only: public_only, + } + } + #[inline] + pub fn public_only(self, public_only: bool) -> Self { + Self { + public_only: public_only, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, string_key, public_only, + } + = self; + re_export::CryptoKey::load_from_string_full(surround_object, string_key, public_only,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_box_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_box_3d.rs new file mode 100644 index 0000000..9b86a81 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_box_3d.rs @@ -0,0 +1,288 @@ +#![doc = "Sidecar module for class [`CsgBox3D`][crate::classes::CsgBox3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CSGBox3D` enums](https://docs.godotengine.org/en/stable/classes/class_csgbox3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CSGBox3D.`\n\nInherits [`CsgPrimitive3D`][crate::classes::CsgPrimitive3D].\n\nRelated symbols:\n\n* [`ICsgBox3D`][crate::classes::ICsgBox3D]: virtual methods\n\n\nSee also [Godot docs for `CSGBox3D`](https://docs.godotengine.org/en/stable/classes/class_csgbox3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CsgBox3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CsgBox3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CsgBox3D`][crate::classes::CsgBox3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CSGBox3D` methods](https://docs.godotengine.org/en/stable/classes/class_csgbox3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICsgBox3D: crate::obj::GodotClass < Base = CsgBox3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CsgBox3D { + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1418usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgBox3D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1419usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgBox3D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1420usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgBox3D", "set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1421usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgBox3D", "get_material", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CsgBox3D { + type Base = crate::classes::CsgPrimitive3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CSGBox3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CsgBox3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgPrimitive3D > for CsgBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgShape3D > for CsgBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for CsgBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for CsgBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CsgBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CsgBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CsgBox3D { + + } + impl crate::obj::cap::GodotDefault for CsgBox3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CsgBox3D { + type Target = crate::classes::CsgPrimitive3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CsgBox3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CsgBox3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CsgBox3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgBox3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgPrimitive3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_combiner_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_combiner_3d.rs new file mode 100644 index 0000000..972565c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_combiner_3d.rs @@ -0,0 +1,250 @@ +#![doc = "Sidecar module for class [`CsgCombiner3D`][crate::classes::CsgCombiner3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CSGCombiner3D` enums](https://docs.godotengine.org/en/stable/classes/class_csgcombiner3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CSGCombiner3D.`\n\nInherits [`CsgShape3D`][crate::classes::CsgShape3D].\n\nRelated symbols:\n\n* [`ICsgCombiner3D`][crate::classes::ICsgCombiner3D]: virtual methods\n\n\nSee also [Godot docs for `CSGCombiner3D`](https://docs.godotengine.org/en/stable/classes/class_csgcombiner3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CsgCombiner3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CsgCombiner3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CsgCombiner3D`][crate::classes::CsgCombiner3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CSGCombiner3D` methods](https://docs.godotengine.org/en/stable/classes/class_csgcombiner3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICsgCombiner3D: crate::obj::GodotClass < Base = CsgCombiner3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CsgCombiner3D { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CsgCombiner3D { + type Base = crate::classes::CsgShape3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CSGCombiner3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CsgCombiner3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgShape3D > for CsgCombiner3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for CsgCombiner3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for CsgCombiner3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CsgCombiner3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CsgCombiner3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CsgCombiner3D { + + } + impl crate::obj::cap::GodotDefault for CsgCombiner3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CsgCombiner3D { + type Target = crate::classes::CsgShape3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CsgCombiner3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CsgCombiner3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CsgCombiner3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgCombiner3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_cylinder_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_cylinder_3d.rs new file mode 100644 index 0000000..39238cd --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_cylinder_3d.rs @@ -0,0 +1,352 @@ +#![doc = "Sidecar module for class [`CsgCylinder3D`][crate::classes::CsgCylinder3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CSGCylinder3D` enums](https://docs.godotengine.org/en/stable/classes/class_csgcylinder3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CSGCylinder3D.`\n\nInherits [`CsgPrimitive3D`][crate::classes::CsgPrimitive3D].\n\nRelated symbols:\n\n* [`ICsgCylinder3D`][crate::classes::ICsgCylinder3D]: virtual methods\n\n\nSee also [Godot docs for `CSGCylinder3D`](https://docs.godotengine.org/en/stable/classes/class_csgcylinder3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CsgCylinder3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CsgCylinder3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CsgCylinder3D`][crate::classes::CsgCylinder3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CSGCylinder3D` methods](https://docs.godotengine.org/en/stable/classes/class_csgcylinder3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICsgCylinder3D: crate::obj::GodotClass < Base = CsgCylinder3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CsgCylinder3D { + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1422usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1423usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: f32,) { + type CallSig = ((), f32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1424usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1425usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sides(&mut self, sides: i32,) { + type CallSig = ((), i32); + let args = (sides,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1426usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "set_sides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sides(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1427usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "get_sides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cone(&mut self, cone: bool,) { + type CallSig = ((), bool); + let args = (cone,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1428usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "set_cone", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_cone(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1429usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "is_cone", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1430usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1431usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "get_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_smooth_faces(&mut self, smooth_faces: bool,) { + type CallSig = ((), bool); + let args = (smooth_faces,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1432usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "set_smooth_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_smooth_faces(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1433usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgCylinder3D", "get_smooth_faces", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CsgCylinder3D { + type Base = crate::classes::CsgPrimitive3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CSGCylinder3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CsgCylinder3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgPrimitive3D > for CsgCylinder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgShape3D > for CsgCylinder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for CsgCylinder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for CsgCylinder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CsgCylinder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CsgCylinder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CsgCylinder3D { + + } + impl crate::obj::cap::GodotDefault for CsgCylinder3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CsgCylinder3D { + type Target = crate::classes::CsgPrimitive3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CsgCylinder3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CsgCylinder3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CsgCylinder3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgCylinder3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgPrimitive3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_mesh_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_mesh_3d.rs new file mode 100644 index 0000000..a2e0872 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_mesh_3d.rs @@ -0,0 +1,288 @@ +#![doc = "Sidecar module for class [`CsgMesh3D`][crate::classes::CsgMesh3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CSGMesh3D` enums](https://docs.godotengine.org/en/stable/classes/class_csgmesh3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CSGMesh3D.`\n\nInherits [`CsgPrimitive3D`][crate::classes::CsgPrimitive3D].\n\nRelated symbols:\n\n* [`ICsgMesh3D`][crate::classes::ICsgMesh3D]: virtual methods\n\n\nSee also [Godot docs for `CSGMesh3D`](https://docs.godotengine.org/en/stable/classes/class_csgmesh3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CsgMesh3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CsgMesh3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CsgMesh3D`][crate::classes::CsgMesh3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CSGMesh3D` methods](https://docs.godotengine.org/en/stable/classes/class_csgmesh3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICsgMesh3D: crate::obj::GodotClass < Base = CsgMesh3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CsgMesh3D { + pub fn set_mesh(&mut self, mesh: impl AsObjectArg < crate::classes::Mesh >,) { + type CallSig = ((), ObjectArg < crate::classes::Mesh >); + let args = (mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1434usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgMesh3D", "set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh(&mut self,) -> Option < Gd < crate::classes::Mesh > > { + type CallSig = (Option < Gd < crate::classes::Mesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1435usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgMesh3D", "get_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1436usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgMesh3D", "set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1437usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgMesh3D", "get_material", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CsgMesh3D { + type Base = crate::classes::CsgPrimitive3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CSGMesh3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CsgMesh3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgPrimitive3D > for CsgMesh3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgShape3D > for CsgMesh3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for CsgMesh3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for CsgMesh3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CsgMesh3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CsgMesh3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CsgMesh3D { + + } + impl crate::obj::cap::GodotDefault for CsgMesh3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CsgMesh3D { + type Target = crate::classes::CsgPrimitive3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CsgMesh3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CsgMesh3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CsgMesh3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgMesh3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgPrimitive3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_polygon_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_polygon_3d.rs new file mode 100644 index 0000000..0755377 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_polygon_3d.rs @@ -0,0 +1,732 @@ +#![doc = "Sidecar module for class [`CsgPolygon3D`][crate::classes::CsgPolygon3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CSGPolygon3D` enums](https://docs.godotengine.org/en/stable/classes/class_csgpolygon3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CSGPolygon3D.`\n\nInherits [`CsgPrimitive3D`][crate::classes::CsgPrimitive3D].\n\nRelated symbols:\n\n* [`csg_polygon_3d`][crate::classes::csg_polygon_3d]: sidecar module with related enum/flag types\n* [`ICsgPolygon3D`][crate::classes::ICsgPolygon3D]: virtual methods\n\n\nSee also [Godot docs for `CSGPolygon3D`](https://docs.godotengine.org/en/stable/classes/class_csgpolygon3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CsgPolygon3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CsgPolygon3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CsgPolygon3D`][crate::classes::CsgPolygon3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CSGPolygon3D` methods](https://docs.godotengine.org/en/stable/classes/class_csgpolygon3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICsgPolygon3D: crate::obj::GodotClass < Base = CsgPolygon3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CsgPolygon3D { + pub fn set_polygon(&mut self, polygon: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1438usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_polygon(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1439usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mode(&mut self, mode: crate::classes::csg_polygon_3d::Mode,) { + type CallSig = ((), crate::classes::csg_polygon_3d::Mode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1440usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mode(&self,) -> crate::classes::csg_polygon_3d::Mode { + type CallSig = (crate::classes::csg_polygon_3d::Mode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1441usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth(&mut self, depth: f32,) { + type CallSig = ((), f32); + let args = (depth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1442usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1443usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_spin_degrees(&mut self, degrees: f32,) { + type CallSig = ((), f32); + let args = (degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1444usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_spin_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spin_degrees(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1445usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_spin_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_spin_sides(&mut self, spin_sides: i32,) { + type CallSig = ((), i32); + let args = (spin_sides,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1446usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_spin_sides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spin_sides(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1447usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_spin_sides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_path_node(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1448usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_path_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path_node(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1449usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_path_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_path_interval_type(&mut self, interval_type: crate::classes::csg_polygon_3d::PathIntervalType,) { + type CallSig = ((), crate::classes::csg_polygon_3d::PathIntervalType); + let args = (interval_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1450usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_path_interval_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path_interval_type(&self,) -> crate::classes::csg_polygon_3d::PathIntervalType { + type CallSig = (crate::classes::csg_polygon_3d::PathIntervalType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1451usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_path_interval_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_path_interval(&mut self, interval: f32,) { + type CallSig = ((), f32); + let args = (interval,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1452usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_path_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path_interval(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1453usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_path_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_path_simplify_angle(&mut self, degrees: f32,) { + type CallSig = ((), f32); + let args = (degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1454usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_path_simplify_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path_simplify_angle(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1455usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_path_simplify_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_path_rotation(&mut self, path_rotation: crate::classes::csg_polygon_3d::PathRotation,) { + type CallSig = ((), crate::classes::csg_polygon_3d::PathRotation); + let args = (path_rotation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1456usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_path_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path_rotation(&self,) -> crate::classes::csg_polygon_3d::PathRotation { + type CallSig = (crate::classes::csg_polygon_3d::PathRotation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1457usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_path_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_path_local(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1458usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_path_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_path_local(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1459usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "is_path_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_path_continuous_u(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1460usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_path_continuous_u", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_path_continuous_u(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1461usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "is_path_continuous_u", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_path_u_distance(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1462usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_path_u_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path_u_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1463usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_path_u_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_path_joined(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1464usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_path_joined", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_path_joined(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1465usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "is_path_joined", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1466usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1467usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_smooth_faces(&mut self, smooth_faces: bool,) { + type CallSig = ((), bool); + let args = (smooth_faces,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1468usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "set_smooth_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_smooth_faces(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1469usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPolygon3D", "get_smooth_faces", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CsgPolygon3D { + type Base = crate::classes::CsgPrimitive3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CSGPolygon3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CsgPolygon3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgPrimitive3D > for CsgPolygon3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgShape3D > for CsgPolygon3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for CsgPolygon3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for CsgPolygon3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CsgPolygon3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CsgPolygon3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CsgPolygon3D { + + } + impl crate::obj::cap::GodotDefault for CsgPolygon3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CsgPolygon3D { + type Target = crate::classes::CsgPrimitive3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CsgPolygon3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CsgPolygon3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CsgPolygon3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgPolygon3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgPrimitive3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Mode { + ord: i32 +} +impl Mode { + #[doc(alias = "MODE_DEPTH")] + #[doc = "Godot enumerator name: `MODE_DEPTH`"] + pub const DEPTH: Mode = Mode { + ord: 0i32 + }; + #[doc(alias = "MODE_SPIN")] + #[doc = "Godot enumerator name: `MODE_SPIN`"] + pub const SPIN: Mode = Mode { + ord: 1i32 + }; + #[doc(alias = "MODE_PATH")] + #[doc = "Godot enumerator name: `MODE_PATH`"] + pub const PATH: Mode = Mode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Mode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Mode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Mode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEPTH => "DEPTH", Self::SPIN => "SPIN", Self::PATH => "PATH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEPTH => "MODE_DEPTH", Self::SPIN => "MODE_SPIN", Self::PATH => "MODE_PATH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Mode { + type Via = i32; + +} +impl crate::meta::ToGodot for Mode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Mode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PathRotation { + ord: i32 +} +impl PathRotation { + #[doc(alias = "PATH_ROTATION_POLYGON")] + #[doc = "Godot enumerator name: `PATH_ROTATION_POLYGON`"] + pub const POLYGON: PathRotation = PathRotation { + ord: 0i32 + }; + #[doc(alias = "PATH_ROTATION_PATH")] + #[doc = "Godot enumerator name: `PATH_ROTATION_PATH`"] + pub const PATH: PathRotation = PathRotation { + ord: 1i32 + }; + #[doc(alias = "PATH_ROTATION_PATH_FOLLOW")] + #[doc = "Godot enumerator name: `PATH_ROTATION_PATH_FOLLOW`"] + pub const PATH_FOLLOW: PathRotation = PathRotation { + ord: 2i32 + }; + +} +impl std::fmt::Debug for PathRotation { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PathRotation") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PathRotation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POLYGON => "POLYGON", Self::PATH => "PATH", Self::PATH_FOLLOW => "PATH_FOLLOW", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POLYGON => "PATH_ROTATION_POLYGON", Self::PATH => "PATH_ROTATION_PATH", Self::PATH_FOLLOW => "PATH_ROTATION_PATH_FOLLOW", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PathRotation { + type Via = i32; + +} +impl crate::meta::ToGodot for PathRotation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PathRotation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PathIntervalType { + ord: i32 +} +impl PathIntervalType { + #[doc(alias = "PATH_INTERVAL_DISTANCE")] + #[doc = "Godot enumerator name: `PATH_INTERVAL_DISTANCE`"] + pub const DISTANCE: PathIntervalType = PathIntervalType { + ord: 0i32 + }; + #[doc(alias = "PATH_INTERVAL_SUBDIVIDE")] + #[doc = "Godot enumerator name: `PATH_INTERVAL_SUBDIVIDE`"] + pub const SUBDIVIDE: PathIntervalType = PathIntervalType { + ord: 1i32 + }; + +} +impl std::fmt::Debug for PathIntervalType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PathIntervalType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PathIntervalType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISTANCE => "DISTANCE", Self::SUBDIVIDE => "SUBDIVIDE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISTANCE => "PATH_INTERVAL_DISTANCE", Self::SUBDIVIDE => "PATH_INTERVAL_SUBDIVIDE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PathIntervalType { + type Via = i32; + +} +impl crate::meta::ToGodot for PathIntervalType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PathIntervalType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_primitive_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_primitive_3d.rs new file mode 100644 index 0000000..f6b9f85 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_primitive_3d.rs @@ -0,0 +1,261 @@ +#![doc = "Sidecar module for class [`CsgPrimitive3D`][crate::classes::CsgPrimitive3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CSGPrimitive3D` enums](https://docs.godotengine.org/en/stable/classes/class_csgprimitive3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CSGPrimitive3D.`\n\nInherits [`CsgShape3D`][crate::classes::CsgShape3D].\n\nRelated symbols:\n\n* [`ICsgPrimitive3D`][crate::classes::ICsgPrimitive3D]: virtual methods\n\n\nSee also [Godot docs for `CSGPrimitive3D`](https://docs.godotengine.org/en/stable/classes/class_csgprimitive3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct CsgPrimitive3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CsgPrimitive3D`][crate::classes::CsgPrimitive3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CSGPrimitive3D` methods](https://docs.godotengine.org/en/stable/classes/class_csgprimitive3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICsgPrimitive3D: crate::obj::GodotClass < Base = CsgPrimitive3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CsgPrimitive3D { + pub fn set_flip_faces(&mut self, flip_faces: bool,) { + type CallSig = ((), bool); + let args = (flip_faces,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1470usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPrimitive3D", "set_flip_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_flip_faces(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1471usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgPrimitive3D", "get_flip_faces", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CsgPrimitive3D { + type Base = crate::classes::CsgShape3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CSGPrimitive3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CsgPrimitive3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgShape3D > for CsgPrimitive3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for CsgPrimitive3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for CsgPrimitive3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CsgPrimitive3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CsgPrimitive3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CsgPrimitive3D { + + } + impl std::ops::Deref for CsgPrimitive3D { + type Target = crate::classes::CsgShape3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CsgPrimitive3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CsgPrimitive3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CsgPrimitive3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgPrimitive3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_shape_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_shape_3d.rs new file mode 100644 index 0000000..3b33957 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_shape_3d.rs @@ -0,0 +1,474 @@ +#![doc = "Sidecar module for class [`CsgShape3D`][crate::classes::CsgShape3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CSGShape3D` enums](https://docs.godotengine.org/en/stable/classes/class_csgshape3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CSGShape3D.`\n\nInherits [`GeometryInstance3D`][crate::classes::GeometryInstance3D].\n\nRelated symbols:\n\n* [`csg_shape_3d`][crate::classes::csg_shape_3d]: sidecar module with related enum/flag types\n* [`ICsgShape3D`][crate::classes::ICsgShape3D]: virtual methods\n\n\nSee also [Godot docs for `CSGShape3D`](https://docs.godotengine.org/en/stable/classes/class_csgshape3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct CsgShape3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CsgShape3D`][crate::classes::CsgShape3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CSGShape3D` methods](https://docs.godotengine.org/en/stable/classes/class_csgshape3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICsgShape3D: crate::obj::GodotClass < Base = CsgShape3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CsgShape3D { + pub fn is_root_shape(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1472usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "is_root_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_operation(&mut self, operation: crate::classes::csg_shape_3d::Operation,) { + type CallSig = ((), crate::classes::csg_shape_3d::Operation); + let args = (operation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1473usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "set_operation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_operation(&self,) -> crate::classes::csg_shape_3d::Operation { + type CallSig = (crate::classes::csg_shape_3d::Operation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1474usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "get_operation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_snap(&mut self, snap: f32,) { + type CallSig = ((), f32); + let args = (snap,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1475usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "set_snap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_snap(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1476usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "get_snap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_collision(&mut self, operation: bool,) { + type CallSig = ((), bool); + let args = (operation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1477usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "set_use_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_collision(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1478usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "is_using_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_layer(&mut self, layer: u32,) { + type CallSig = ((), u32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1479usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "set_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_layer(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1480usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "get_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1481usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1482usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1483usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "set_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1484usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "get_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_layer_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1485usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "set_collision_layer_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_layer_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1486usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "get_collision_layer_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_priority(&mut self, priority: f32,) { + type CallSig = ((), f32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1487usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "set_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_priority(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1488usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "get_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_calculate_tangents(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1489usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "set_calculate_tangents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_calculating_tangents(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1490usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "is_calculating_tangents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_meshes(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1491usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgShape3D", "get_meshes", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CsgShape3D { + type Base = crate::classes::GeometryInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CSGShape3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CsgShape3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for CsgShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for CsgShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CsgShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CsgShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CsgShape3D { + + } + impl std::ops::Deref for CsgShape3D { + type Target = crate::classes::GeometryInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CsgShape3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CsgShape3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CsgShape3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Operation { + ord: i32 +} +impl Operation { + #[doc(alias = "OPERATION_UNION")] + #[doc = "Godot enumerator name: `OPERATION_UNION`"] + pub const UNION: Operation = Operation { + ord: 0i32 + }; + #[doc(alias = "OPERATION_INTERSECTION")] + #[doc = "Godot enumerator name: `OPERATION_INTERSECTION`"] + pub const INTERSECTION: Operation = Operation { + ord: 1i32 + }; + #[doc(alias = "OPERATION_SUBTRACTION")] + #[doc = "Godot enumerator name: `OPERATION_SUBTRACTION`"] + pub const SUBTRACTION: Operation = Operation { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Operation { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Operation") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Operation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNION => "UNION", Self::INTERSECTION => "INTERSECTION", Self::SUBTRACTION => "SUBTRACTION", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNION => "OPERATION_UNION", Self::INTERSECTION => "OPERATION_INTERSECTION", Self::SUBTRACTION => "OPERATION_SUBTRACTION", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Operation { + type Via = i32; + +} +impl crate::meta::ToGodot for Operation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Operation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_sphere_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_sphere_3d.rs new file mode 100644 index 0000000..b6b6eda --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_sphere_3d.rs @@ -0,0 +1,336 @@ +#![doc = "Sidecar module for class [`CsgSphere3D`][crate::classes::CsgSphere3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CSGSphere3D` enums](https://docs.godotengine.org/en/stable/classes/class_csgsphere3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CSGSphere3D.`\n\nInherits [`CsgPrimitive3D`][crate::classes::CsgPrimitive3D].\n\nRelated symbols:\n\n* [`ICsgSphere3D`][crate::classes::ICsgSphere3D]: virtual methods\n\n\nSee also [Godot docs for `CSGSphere3D`](https://docs.godotengine.org/en/stable/classes/class_csgsphere3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CsgSphere3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CsgSphere3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CsgSphere3D`][crate::classes::CsgSphere3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CSGSphere3D` methods](https://docs.godotengine.org/en/stable/classes/class_csgsphere3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICsgSphere3D: crate::obj::GodotClass < Base = CsgSphere3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CsgSphere3D { + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1492usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgSphere3D", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1493usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgSphere3D", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_radial_segments(&mut self, radial_segments: i32,) { + type CallSig = ((), i32); + let args = (radial_segments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1494usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgSphere3D", "set_radial_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radial_segments(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1495usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgSphere3D", "get_radial_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rings(&mut self, rings: i32,) { + type CallSig = ((), i32); + let args = (rings,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1496usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgSphere3D", "set_rings", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rings(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1497usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgSphere3D", "get_rings", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_smooth_faces(&mut self, smooth_faces: bool,) { + type CallSig = ((), bool); + let args = (smooth_faces,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1498usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgSphere3D", "set_smooth_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_smooth_faces(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1499usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgSphere3D", "get_smooth_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1500usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgSphere3D", "set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1501usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgSphere3D", "get_material", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CsgSphere3D { + type Base = crate::classes::CsgPrimitive3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CSGSphere3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CsgSphere3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgPrimitive3D > for CsgSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgShape3D > for CsgSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for CsgSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for CsgSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CsgSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CsgSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CsgSphere3D { + + } + impl crate::obj::cap::GodotDefault for CsgSphere3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CsgSphere3D { + type Target = crate::classes::CsgPrimitive3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CsgSphere3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CsgSphere3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CsgSphere3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgSphere3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgPrimitive3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_torus_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_torus_3d.rs new file mode 100644 index 0000000..ff1f151 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/csg_torus_3d.rs @@ -0,0 +1,352 @@ +#![doc = "Sidecar module for class [`CsgTorus3D`][crate::classes::CsgTorus3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CSGTorus3D` enums](https://docs.godotengine.org/en/stable/classes/class_csgtorus3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CSGTorus3D.`\n\nInherits [`CsgPrimitive3D`][crate::classes::CsgPrimitive3D].\n\nRelated symbols:\n\n* [`ICsgTorus3D`][crate::classes::ICsgTorus3D]: virtual methods\n\n\nSee also [Godot docs for `CSGTorus3D`](https://docs.godotengine.org/en/stable/classes/class_csgtorus3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`CsgTorus3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct CsgTorus3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CsgTorus3D`][crate::classes::CsgTorus3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CSGTorus3D` methods](https://docs.godotengine.org/en/stable/classes/class_csgtorus3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICsgTorus3D: crate::obj::GodotClass < Base = CsgTorus3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl CsgTorus3D { + pub fn set_inner_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1502usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "set_inner_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inner_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1503usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "get_inner_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_outer_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1504usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "set_outer_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_outer_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1505usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "get_outer_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sides(&mut self, sides: i32,) { + type CallSig = ((), i32); + let args = (sides,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1506usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "set_sides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sides(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1507usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "get_sides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ring_sides(&mut self, sides: i32,) { + type CallSig = ((), i32); + let args = (sides,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1508usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "set_ring_sides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ring_sides(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1509usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "get_ring_sides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1510usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1511usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "get_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_smooth_faces(&mut self, smooth_faces: bool,) { + type CallSig = ((), bool); + let args = (smooth_faces,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1512usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "set_smooth_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_smooth_faces(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(1513usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CsgTorus3D", "get_smooth_faces", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CsgTorus3D { + type Base = crate::classes::CsgPrimitive3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CSGTorus3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CsgTorus3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgPrimitive3D > for CsgTorus3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CsgShape3D > for CsgTorus3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for CsgTorus3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for CsgTorus3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for CsgTorus3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for CsgTorus3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CsgTorus3D { + + } + impl crate::obj::cap::GodotDefault for CsgTorus3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CsgTorus3D { + type Target = crate::classes::CsgPrimitive3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CsgTorus3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CsgTorus3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CsgTorus3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgTorus3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgPrimitive3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CsgShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cubemap.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cubemap.rs new file mode 100644 index 0000000..e44e083 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cubemap.rs @@ -0,0 +1,235 @@ +#![doc = "Sidecar module for class [`Cubemap`][crate::classes::Cubemap].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Cubemap` enums](https://docs.godotengine.org/en/stable/classes/class_cubemap.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Cubemap.`\n\nInherits [`ImageTextureLayered`][crate::classes::ImageTextureLayered].\n\nRelated symbols:\n\n* [`ICubemap`][crate::classes::ICubemap]: virtual methods\n\n\nSee also [Godot docs for `Cubemap`](https://docs.godotengine.org/en/stable/classes/class_cubemap.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Cubemap::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Cubemap { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Cubemap`][crate::classes::Cubemap].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Cubemap` methods](https://docs.godotengine.org/en/stable/classes/class_cubemap.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICubemap: crate::obj::GodotClass < Base = Cubemap > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_layered_type(&self,) -> u32; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_layers(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_layer_data(&self, layer_index: i32,) -> Option < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Cubemap { + pub fn create_placeholder(&self,) -> Option < Gd < crate::classes::Resource > > { + type CallSig = (Option < Gd < crate::classes::Resource > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2438usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Cubemap", "create_placeholder", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Cubemap { + type Base = crate::classes::ImageTextureLayered; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Cubemap")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Cubemap { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::ImageTextureLayered > for Cubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::TextureLayered > for Cubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for Cubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Cubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Cubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Cubemap { + + } + impl crate::obj::cap::GodotDefault for Cubemap { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Cubemap { + type Target = crate::classes::ImageTextureLayered; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Cubemap { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Cubemap`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Cubemap { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Cubemap > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ImageTextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cubemap_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cubemap_array.rs new file mode 100644 index 0000000..d67c40f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cubemap_array.rs @@ -0,0 +1,235 @@ +#![doc = "Sidecar module for class [`CubemapArray`][crate::classes::CubemapArray].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CubemapArray` enums](https://docs.godotengine.org/en/stable/classes/class_cubemaparray.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CubemapArray.`\n\nInherits [`ImageTextureLayered`][crate::classes::ImageTextureLayered].\n\nRelated symbols:\n\n* [`ICubemapArray`][crate::classes::ICubemapArray]: virtual methods\n\n\nSee also [Godot docs for `CubemapArray`](https://docs.godotengine.org/en/stable/classes/class_cubemaparray.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CubemapArray::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CubemapArray { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CubemapArray`][crate::classes::CubemapArray].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CubemapArray` methods](https://docs.godotengine.org/en/stable/classes/class_cubemaparray.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICubemapArray: crate::obj::GodotClass < Base = CubemapArray > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_layered_type(&self,) -> u32; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_layers(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_layer_data(&self, layer_index: i32,) -> Option < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CubemapArray { + pub fn create_placeholder(&self,) -> Option < Gd < crate::classes::Resource > > { + type CallSig = (Option < Gd < crate::classes::Resource > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2439usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CubemapArray", "create_placeholder", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CubemapArray { + type Base = crate::classes::ImageTextureLayered; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CubemapArray")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CubemapArray { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::ImageTextureLayered > for CubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::TextureLayered > for CubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for CubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CubemapArray { + + } + impl crate::obj::cap::GodotDefault for CubemapArray { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CubemapArray { + type Target = crate::classes::ImageTextureLayered; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CubemapArray { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CubemapArray`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CubemapArray { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CubemapArray > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ImageTextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve.rs new file mode 100644 index 0000000..f65945a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve.rs @@ -0,0 +1,543 @@ +#![doc = "Sidecar module for class [`Curve`][crate::classes::Curve].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Curve` enums](https://docs.godotengine.org/en/stable/classes/class_curve.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Curve.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`curve`][crate::classes::curve]: sidecar module with related enum/flag types\n* [`ICurve`][crate::classes::ICurve]: virtual methods\n\n\nSee also [Godot docs for `Curve`](https://docs.godotengine.org/en/stable/classes/class_curve.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Curve::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Curve { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Curve`][crate::classes::Curve].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Curve` methods](https://docs.godotengine.org/en/stable/classes/class_curve.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICurve: crate::obj::GodotClass < Base = Curve > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Curve { + pub fn get_point_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2440usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "get_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2441usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "set_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_point_full(&mut self, position: Vector2, left_tangent: f32, right_tangent: f32, left_mode: crate::classes::curve::TangentMode, right_mode: crate::classes::curve::TangentMode,) -> i32 { + type CallSig = (i32, Vector2, f32, f32, crate::classes::curve::TangentMode, crate::classes::curve::TangentMode); + let args = (position, left_tangent, right_tangent, left_mode, right_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2442usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "add_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_point(&mut self, position: Vector2,) -> i32 { + self.add_point_ex(position,) . done() + } + #[inline] + pub fn add_point_ex < 'a > (&'a mut self, position: Vector2,) -> ExAddPoint < 'a > { + ExAddPoint::new(self, position,) + } + pub fn remove_point(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2443usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "remove_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_points(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2444usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "clear_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_position(&self, index: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2445usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "get_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_value(&mut self, index: i32, y: f32,) { + type CallSig = ((), i32, f32); + let args = (index, y,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2446usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "set_point_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_offset(&mut self, index: i32, offset: f32,) -> i32 { + type CallSig = (i32, i32, f32); + let args = (index, offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2447usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "set_point_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sample(&self, offset: f32,) -> f32 { + type CallSig = (f32, f32); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2448usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "sample", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sample_baked(&self, offset: f32,) -> f32 { + type CallSig = (f32, f32); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2449usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "sample_baked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_left_tangent(&self, index: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2450usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "get_point_left_tangent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_right_tangent(&self, index: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2451usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "get_point_right_tangent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_left_mode(&self, index: i32,) -> crate::classes::curve::TangentMode { + type CallSig = (crate::classes::curve::TangentMode, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2452usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "get_point_left_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_right_mode(&self, index: i32,) -> crate::classes::curve::TangentMode { + type CallSig = (crate::classes::curve::TangentMode, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2453usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "get_point_right_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_left_tangent(&mut self, index: i32, tangent: f32,) { + type CallSig = ((), i32, f32); + let args = (index, tangent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2454usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "set_point_left_tangent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_right_tangent(&mut self, index: i32, tangent: f32,) { + type CallSig = ((), i32, f32); + let args = (index, tangent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2455usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "set_point_right_tangent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_left_mode(&mut self, index: i32, mode: crate::classes::curve::TangentMode,) { + type CallSig = ((), i32, crate::classes::curve::TangentMode); + let args = (index, mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2456usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "set_point_left_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_right_mode(&mut self, index: i32, mode: crate::classes::curve::TangentMode,) { + type CallSig = ((), i32, crate::classes::curve::TangentMode); + let args = (index, mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2457usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "set_point_right_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_min_value(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2458usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "get_min_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_min_value(&mut self, min: f32,) { + type CallSig = ((), f32); + let args = (min,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2459usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "set_min_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_value(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2460usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "get_max_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_value(&mut self, max: f32,) { + type CallSig = ((), f32); + let args = (max,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2461usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "set_max_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clean_dupes(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2462usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "clean_dupes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn bake(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2463usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "bake", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_resolution(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2464usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "get_bake_resolution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bake_resolution(&mut self, resolution: i32,) { + type CallSig = ((), i32); + let args = (resolution,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2465usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve", "set_bake_resolution", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Curve { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Curve")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Curve { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Curve { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Curve { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Curve { + + } + impl crate::obj::cap::GodotDefault for Curve { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Curve { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Curve { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Curve`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Curve { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Curve > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Curve::add_point_ex`][super::Curve::add_point_ex]."] +#[must_use] +pub struct ExAddPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Curve, position: Vector2, left_tangent: f32, right_tangent: f32, left_mode: crate::classes::curve::TangentMode, right_mode: crate::classes::curve::TangentMode, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddPoint < 'a > { + fn new(surround_object: &'a mut re_export::Curve, position: Vector2,) -> Self { + let left_tangent = 0f32; + let right_tangent = 0f32; + let left_mode = crate::obj::EngineEnum::from_ord(0); + let right_mode = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, left_tangent: left_tangent, right_tangent: right_tangent, left_mode: left_mode, right_mode: right_mode, + } + } + #[inline] + pub fn left_tangent(self, left_tangent: f32) -> Self { + Self { + left_tangent: left_tangent, .. self + } + } + #[inline] + pub fn right_tangent(self, right_tangent: f32) -> Self { + Self { + right_tangent: right_tangent, .. self + } + } + #[inline] + pub fn left_mode(self, left_mode: crate::classes::curve::TangentMode) -> Self { + Self { + left_mode: left_mode, .. self + } + } + #[inline] + pub fn right_mode(self, right_mode: crate::classes::curve::TangentMode) -> Self { + Self { + right_mode: right_mode, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, position, left_tangent, right_tangent, left_mode, right_mode, + } + = self; + re_export::Curve::add_point_full(surround_object, position, left_tangent, right_tangent, left_mode, right_mode,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TangentMode { + ord: i32 +} +impl TangentMode { + #[doc(alias = "TANGENT_FREE")] + #[doc = "Godot enumerator name: `TANGENT_FREE`"] + pub const FREE: TangentMode = TangentMode { + ord: 0i32 + }; + #[doc(alias = "TANGENT_LINEAR")] + #[doc = "Godot enumerator name: `TANGENT_LINEAR`"] + pub const LINEAR: TangentMode = TangentMode { + ord: 1i32 + }; + #[doc(alias = "TANGENT_MODE_COUNT")] + #[doc = "Godot enumerator name: `TANGENT_MODE_COUNT`"] + pub const MODE_COUNT: TangentMode = TangentMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for TangentMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TangentMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TangentMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FREE => "FREE", Self::LINEAR => "LINEAR", Self::MODE_COUNT => "MODE_COUNT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FREE => "TANGENT_FREE", Self::LINEAR => "TANGENT_LINEAR", Self::MODE_COUNT => "TANGENT_MODE_COUNT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TangentMode { + type Via = i32; + +} +impl crate::meta::ToGodot for TangentMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TangentMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_2d.rs new file mode 100644 index 0000000..60a556b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_2d.rs @@ -0,0 +1,613 @@ +#![doc = "Sidecar module for class [`Curve2D`][crate::classes::Curve2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Curve2D` enums](https://docs.godotengine.org/en/stable/classes/class_curve2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Curve2D.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`curve_2d`][crate::classes::curve_2d]: sidecar module with related enum/flag types\n* [`ICurve2D`][crate::classes::ICurve2D]: virtual methods\n\n\nSee also [Godot docs for `Curve2D`](https://docs.godotengine.org/en/stable/classes/class_curve2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Curve2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Curve2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Curve2D`][crate::classes::Curve2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Curve2D` methods](https://docs.godotengine.org/en/stable/classes/class_curve2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICurve2D: crate::obj::GodotClass < Base = Curve2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Curve2D { + pub fn get_point_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2466usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "get_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2467usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "set_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_point_full(&mut self, position: Vector2, in_: Vector2, out: Vector2, index: i32,) { + type CallSig = ((), Vector2, Vector2, Vector2, i32); + let args = (position, in_, out, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2468usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "add_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_point(&mut self, position: Vector2,) { + self.add_point_ex(position,) . done() + } + #[inline] + pub fn add_point_ex < 'a > (&'a mut self, position: Vector2,) -> ExAddPoint < 'a > { + ExAddPoint::new(self, position,) + } + pub fn set_point_position(&mut self, idx: i32, position: Vector2,) { + type CallSig = ((), i32, Vector2); + let args = (idx, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2469usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "set_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_position(&self, idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2470usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "get_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_in(&mut self, idx: i32, position: Vector2,) { + type CallSig = ((), i32, Vector2); + let args = (idx, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2471usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "set_point_in", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_in(&self, idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2472usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "get_point_in", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_out(&mut self, idx: i32, position: Vector2,) { + type CallSig = ((), i32, Vector2); + let args = (idx, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2473usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "set_point_out", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_out(&self, idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2474usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "get_point_out", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_point(&mut self, idx: i32,) { + type CallSig = ((), i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2475usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "remove_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_points(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2476usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "clear_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sample(&self, idx: i32, t: f32,) -> Vector2 { + type CallSig = (Vector2, i32, f32); + let args = (idx, t,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2477usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "sample", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn samplef(&self, fofs: f32,) -> Vector2 { + type CallSig = (Vector2, f32); + let args = (fofs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2478usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "samplef", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bake_interval(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2479usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "set_bake_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_interval(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2480usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "get_bake_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_baked_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2481usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "get_baked_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn sample_baked_full(&self, offset: f32, cubic: bool,) -> Vector2 { + type CallSig = (Vector2, f32, bool); + let args = (offset, cubic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2482usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "sample_baked", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::sample_baked_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn sample_baked(&self,) -> Vector2 { + self.sample_baked_ex() . done() + } + #[inline] + pub fn sample_baked_ex < 'a > (&'a self,) -> ExSampleBaked < 'a > { + ExSampleBaked::new(self,) + } + pub(crate) fn sample_baked_with_rotation_full(&self, offset: f32, cubic: bool,) -> Transform2D { + type CallSig = (Transform2D, f32, bool); + let args = (offset, cubic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2483usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "sample_baked_with_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::sample_baked_with_rotation_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn sample_baked_with_rotation(&self,) -> Transform2D { + self.sample_baked_with_rotation_ex() . done() + } + #[inline] + pub fn sample_baked_with_rotation_ex < 'a > (&'a self,) -> ExSampleBakedWithRotation < 'a > { + ExSampleBakedWithRotation::new(self,) + } + pub fn get_baked_points(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2484usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "get_baked_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_closest_point(&self, to_point: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (to_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2485usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "get_closest_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_closest_offset(&self, to_point: Vector2,) -> f32 { + type CallSig = (f32, Vector2); + let args = (to_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2486usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "get_closest_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn tessellate_full(&self, max_stages: i32, tolerance_degrees: f32,) -> PackedVector2Array { + type CallSig = (PackedVector2Array, i32, f32); + let args = (max_stages, tolerance_degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2487usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "tessellate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::tessellate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn tessellate(&self,) -> PackedVector2Array { + self.tessellate_ex() . done() + } + #[inline] + pub fn tessellate_ex < 'a > (&'a self,) -> ExTessellate < 'a > { + ExTessellate::new(self,) + } + pub(crate) fn tessellate_even_length_full(&self, max_stages: i32, tolerance_length: f32,) -> PackedVector2Array { + type CallSig = (PackedVector2Array, i32, f32); + let args = (max_stages, tolerance_length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2488usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve2D", "tessellate_even_length", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::tessellate_even_length_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn tessellate_even_length(&self,) -> PackedVector2Array { + self.tessellate_even_length_ex() . done() + } + #[inline] + pub fn tessellate_even_length_ex < 'a > (&'a self,) -> ExTessellateEvenLength < 'a > { + ExTessellateEvenLength::new(self,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Curve2D { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Curve2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Curve2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Curve2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Curve2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Curve2D { + + } + impl crate::obj::cap::GodotDefault for Curve2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Curve2D { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Curve2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Curve2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Curve2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Curve2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Curve2D::add_point_ex`][super::Curve2D::add_point_ex]."] +#[must_use] +pub struct ExAddPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Curve2D, position: Vector2, in_: Vector2, out: Vector2, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddPoint < 'a > { + fn new(surround_object: &'a mut re_export::Curve2D, position: Vector2,) -> Self { + let in_ = Vector2::new(0 as _, 0 as _); + let out = Vector2::new(0 as _, 0 as _); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, in_: in_, out: out, index: index, + } + } + #[inline] + pub fn in_(self, in_: Vector2) -> Self { + Self { + in_: in_, .. self + } + } + #[inline] + pub fn out(self, out: Vector2) -> Self { + Self { + out: out, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, in_, out, index, + } + = self; + re_export::Curve2D::add_point_full(surround_object, position, in_, out, index,) + } +} +#[doc = "Default-param extender for [`Curve2D::sample_baked_ex`][super::Curve2D::sample_baked_ex]."] +#[must_use] +pub struct ExSampleBaked < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Curve2D, offset: f32, cubic: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSampleBaked < 'a > { + fn new(surround_object: &'a re_export::Curve2D,) -> Self { + let offset = 0f32; + let cubic = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, offset: offset, cubic: cubic, + } + } + #[inline] + pub fn offset(self, offset: f32) -> Self { + Self { + offset: offset, .. self + } + } + #[inline] + pub fn cubic(self, cubic: bool) -> Self { + Self { + cubic: cubic, .. self + } + } + #[inline] + pub fn done(self) -> Vector2 { + let Self { + _phantom, surround_object, offset, cubic, + } + = self; + re_export::Curve2D::sample_baked_full(surround_object, offset, cubic,) + } +} +#[doc = "Default-param extender for [`Curve2D::sample_baked_with_rotation_ex`][super::Curve2D::sample_baked_with_rotation_ex]."] +#[must_use] +pub struct ExSampleBakedWithRotation < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Curve2D, offset: f32, cubic: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSampleBakedWithRotation < 'a > { + fn new(surround_object: &'a re_export::Curve2D,) -> Self { + let offset = 0f32; + let cubic = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, offset: offset, cubic: cubic, + } + } + #[inline] + pub fn offset(self, offset: f32) -> Self { + Self { + offset: offset, .. self + } + } + #[inline] + pub fn cubic(self, cubic: bool) -> Self { + Self { + cubic: cubic, .. self + } + } + #[inline] + pub fn done(self) -> Transform2D { + let Self { + _phantom, surround_object, offset, cubic, + } + = self; + re_export::Curve2D::sample_baked_with_rotation_full(surround_object, offset, cubic,) + } +} +#[doc = "Default-param extender for [`Curve2D::tessellate_ex`][super::Curve2D::tessellate_ex]."] +#[must_use] +pub struct ExTessellate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Curve2D, max_stages: i32, tolerance_degrees: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTessellate < 'a > { + fn new(surround_object: &'a re_export::Curve2D,) -> Self { + let max_stages = 5i32; + let tolerance_degrees = 4f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, max_stages: max_stages, tolerance_degrees: tolerance_degrees, + } + } + #[inline] + pub fn max_stages(self, max_stages: i32) -> Self { + Self { + max_stages: max_stages, .. self + } + } + #[inline] + pub fn tolerance_degrees(self, tolerance_degrees: f32) -> Self { + Self { + tolerance_degrees: tolerance_degrees, .. self + } + } + #[inline] + pub fn done(self) -> PackedVector2Array { + let Self { + _phantom, surround_object, max_stages, tolerance_degrees, + } + = self; + re_export::Curve2D::tessellate_full(surround_object, max_stages, tolerance_degrees,) + } +} +#[doc = "Default-param extender for [`Curve2D::tessellate_even_length_ex`][super::Curve2D::tessellate_even_length_ex]."] +#[must_use] +pub struct ExTessellateEvenLength < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Curve2D, max_stages: i32, tolerance_length: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTessellateEvenLength < 'a > { + fn new(surround_object: &'a re_export::Curve2D,) -> Self { + let max_stages = 5i32; + let tolerance_length = 20f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, max_stages: max_stages, tolerance_length: tolerance_length, + } + } + #[inline] + pub fn max_stages(self, max_stages: i32) -> Self { + Self { + max_stages: max_stages, .. self + } + } + #[inline] + pub fn tolerance_length(self, tolerance_length: f32) -> Self { + Self { + tolerance_length: tolerance_length, .. self + } + } + #[inline] + pub fn done(self) -> PackedVector2Array { + let Self { + _phantom, surround_object, max_stages, tolerance_length, + } + = self; + re_export::Curve2D::tessellate_even_length_full(surround_object, max_stages, tolerance_length,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_3d.rs new file mode 100644 index 0000000..1d7e53b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_3d.rs @@ -0,0 +1,713 @@ +#![doc = "Sidecar module for class [`Curve3D`][crate::classes::Curve3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Curve3D` enums](https://docs.godotengine.org/en/stable/classes/class_curve3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Curve3D.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`curve_3d`][crate::classes::curve_3d]: sidecar module with related enum/flag types\n* [`ICurve3D`][crate::classes::ICurve3D]: virtual methods\n\n\nSee also [Godot docs for `Curve3D`](https://docs.godotengine.org/en/stable/classes/class_curve3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Curve3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Curve3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Curve3D`][crate::classes::Curve3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Curve3D` methods](https://docs.godotengine.org/en/stable/classes/class_curve3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICurve3D: crate::obj::GodotClass < Base = Curve3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Curve3D { + pub fn get_point_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2489usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2490usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "set_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_point_full(&mut self, position: Vector3, in_: Vector3, out: Vector3, index: i32,) { + type CallSig = ((), Vector3, Vector3, Vector3, i32); + let args = (position, in_, out, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2491usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "add_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_point(&mut self, position: Vector3,) { + self.add_point_ex(position,) . done() + } + #[inline] + pub fn add_point_ex < 'a > (&'a mut self, position: Vector3,) -> ExAddPoint < 'a > { + ExAddPoint::new(self, position,) + } + pub fn set_point_position(&mut self, idx: i32, position: Vector3,) { + type CallSig = ((), i32, Vector3); + let args = (idx, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2492usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "set_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_position(&self, idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2493usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_tilt(&mut self, idx: i32, tilt: f32,) { + type CallSig = ((), i32, f32); + let args = (idx, tilt,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2494usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "set_point_tilt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_tilt(&self, idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2495usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_point_tilt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_in(&mut self, idx: i32, position: Vector3,) { + type CallSig = ((), i32, Vector3); + let args = (idx, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2496usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "set_point_in", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_in(&self, idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2497usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_point_in", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_out(&mut self, idx: i32, position: Vector3,) { + type CallSig = ((), i32, Vector3); + let args = (idx, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2498usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "set_point_out", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_out(&self, idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2499usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_point_out", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_point(&mut self, idx: i32,) { + type CallSig = ((), i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2500usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "remove_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_points(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2501usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "clear_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sample(&self, idx: i32, t: f32,) -> Vector3 { + type CallSig = (Vector3, i32, f32); + let args = (idx, t,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2502usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "sample", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn samplef(&self, fofs: f32,) -> Vector3 { + type CallSig = (Vector3, f32); + let args = (fofs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2503usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "samplef", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bake_interval(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2504usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "set_bake_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_interval(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2505usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_bake_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_up_vector_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2506usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "set_up_vector_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_up_vector_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2507usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "is_up_vector_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_baked_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2508usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_baked_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn sample_baked_full(&self, offset: f32, cubic: bool,) -> Vector3 { + type CallSig = (Vector3, f32, bool); + let args = (offset, cubic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2509usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "sample_baked", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::sample_baked_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn sample_baked(&self,) -> Vector3 { + self.sample_baked_ex() . done() + } + #[inline] + pub fn sample_baked_ex < 'a > (&'a self,) -> ExSampleBaked < 'a > { + ExSampleBaked::new(self,) + } + pub(crate) fn sample_baked_with_rotation_full(&self, offset: f32, cubic: bool, apply_tilt: bool,) -> Transform3D { + type CallSig = (Transform3D, f32, bool, bool); + let args = (offset, cubic, apply_tilt,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2510usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "sample_baked_with_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::sample_baked_with_rotation_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn sample_baked_with_rotation(&self,) -> Transform3D { + self.sample_baked_with_rotation_ex() . done() + } + #[inline] + pub fn sample_baked_with_rotation_ex < 'a > (&'a self,) -> ExSampleBakedWithRotation < 'a > { + ExSampleBakedWithRotation::new(self,) + } + pub(crate) fn sample_baked_up_vector_full(&self, offset: f32, apply_tilt: bool,) -> Vector3 { + type CallSig = (Vector3, f32, bool); + let args = (offset, apply_tilt,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2511usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "sample_baked_up_vector", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::sample_baked_up_vector_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn sample_baked_up_vector(&self, offset: f32,) -> Vector3 { + self.sample_baked_up_vector_ex(offset,) . done() + } + #[inline] + pub fn sample_baked_up_vector_ex < 'a > (&'a self, offset: f32,) -> ExSampleBakedUpVector < 'a > { + ExSampleBakedUpVector::new(self, offset,) + } + pub fn get_baked_points(&self,) -> PackedVector3Array { + type CallSig = (PackedVector3Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2512usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_baked_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_baked_tilts(&self,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2513usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_baked_tilts", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_baked_up_vectors(&self,) -> PackedVector3Array { + type CallSig = (PackedVector3Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2514usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_baked_up_vectors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_closest_point(&self, to_point: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (to_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2515usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_closest_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_closest_offset(&self, to_point: Vector3,) -> f32 { + type CallSig = (f32, Vector3); + let args = (to_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2516usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "get_closest_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn tessellate_full(&self, max_stages: i32, tolerance_degrees: f32,) -> PackedVector3Array { + type CallSig = (PackedVector3Array, i32, f32); + let args = (max_stages, tolerance_degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2517usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "tessellate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::tessellate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn tessellate(&self,) -> PackedVector3Array { + self.tessellate_ex() . done() + } + #[inline] + pub fn tessellate_ex < 'a > (&'a self,) -> ExTessellate < 'a > { + ExTessellate::new(self,) + } + pub(crate) fn tessellate_even_length_full(&self, max_stages: i32, tolerance_length: f32,) -> PackedVector3Array { + type CallSig = (PackedVector3Array, i32, f32); + let args = (max_stages, tolerance_length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2518usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Curve3D", "tessellate_even_length", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::tessellate_even_length_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn tessellate_even_length(&self,) -> PackedVector3Array { + self.tessellate_even_length_ex() . done() + } + #[inline] + pub fn tessellate_even_length_ex < 'a > (&'a self,) -> ExTessellateEvenLength < 'a > { + ExTessellateEvenLength::new(self,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Curve3D { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Curve3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Curve3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Curve3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Curve3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Curve3D { + + } + impl crate::obj::cap::GodotDefault for Curve3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Curve3D { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Curve3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Curve3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Curve3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Curve3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Curve3D::add_point_ex`][super::Curve3D::add_point_ex]."] +#[must_use] +pub struct ExAddPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Curve3D, position: Vector3, in_: Vector3, out: Vector3, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddPoint < 'a > { + fn new(surround_object: &'a mut re_export::Curve3D, position: Vector3,) -> Self { + let in_ = Vector3::new(0 as _, 0 as _, 0 as _); + let out = Vector3::new(0 as _, 0 as _, 0 as _); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, in_: in_, out: out, index: index, + } + } + #[inline] + pub fn in_(self, in_: Vector3) -> Self { + Self { + in_: in_, .. self + } + } + #[inline] + pub fn out(self, out: Vector3) -> Self { + Self { + out: out, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, in_, out, index, + } + = self; + re_export::Curve3D::add_point_full(surround_object, position, in_, out, index,) + } +} +#[doc = "Default-param extender for [`Curve3D::sample_baked_ex`][super::Curve3D::sample_baked_ex]."] +#[must_use] +pub struct ExSampleBaked < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Curve3D, offset: f32, cubic: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSampleBaked < 'a > { + fn new(surround_object: &'a re_export::Curve3D,) -> Self { + let offset = 0f32; + let cubic = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, offset: offset, cubic: cubic, + } + } + #[inline] + pub fn offset(self, offset: f32) -> Self { + Self { + offset: offset, .. self + } + } + #[inline] + pub fn cubic(self, cubic: bool) -> Self { + Self { + cubic: cubic, .. self + } + } + #[inline] + pub fn done(self) -> Vector3 { + let Self { + _phantom, surround_object, offset, cubic, + } + = self; + re_export::Curve3D::sample_baked_full(surround_object, offset, cubic,) + } +} +#[doc = "Default-param extender for [`Curve3D::sample_baked_with_rotation_ex`][super::Curve3D::sample_baked_with_rotation_ex]."] +#[must_use] +pub struct ExSampleBakedWithRotation < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Curve3D, offset: f32, cubic: bool, apply_tilt: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSampleBakedWithRotation < 'a > { + fn new(surround_object: &'a re_export::Curve3D,) -> Self { + let offset = 0f32; + let cubic = false; + let apply_tilt = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, offset: offset, cubic: cubic, apply_tilt: apply_tilt, + } + } + #[inline] + pub fn offset(self, offset: f32) -> Self { + Self { + offset: offset, .. self + } + } + #[inline] + pub fn cubic(self, cubic: bool) -> Self { + Self { + cubic: cubic, .. self + } + } + #[inline] + pub fn apply_tilt(self, apply_tilt: bool) -> Self { + Self { + apply_tilt: apply_tilt, .. self + } + } + #[inline] + pub fn done(self) -> Transform3D { + let Self { + _phantom, surround_object, offset, cubic, apply_tilt, + } + = self; + re_export::Curve3D::sample_baked_with_rotation_full(surround_object, offset, cubic, apply_tilt,) + } +} +#[doc = "Default-param extender for [`Curve3D::sample_baked_up_vector_ex`][super::Curve3D::sample_baked_up_vector_ex]."] +#[must_use] +pub struct ExSampleBakedUpVector < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Curve3D, offset: f32, apply_tilt: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSampleBakedUpVector < 'a > { + fn new(surround_object: &'a re_export::Curve3D, offset: f32,) -> Self { + let apply_tilt = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, offset: offset, apply_tilt: apply_tilt, + } + } + #[inline] + pub fn apply_tilt(self, apply_tilt: bool) -> Self { + Self { + apply_tilt: apply_tilt, .. self + } + } + #[inline] + pub fn done(self) -> Vector3 { + let Self { + _phantom, surround_object, offset, apply_tilt, + } + = self; + re_export::Curve3D::sample_baked_up_vector_full(surround_object, offset, apply_tilt,) + } +} +#[doc = "Default-param extender for [`Curve3D::tessellate_ex`][super::Curve3D::tessellate_ex]."] +#[must_use] +pub struct ExTessellate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Curve3D, max_stages: i32, tolerance_degrees: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTessellate < 'a > { + fn new(surround_object: &'a re_export::Curve3D,) -> Self { + let max_stages = 5i32; + let tolerance_degrees = 4f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, max_stages: max_stages, tolerance_degrees: tolerance_degrees, + } + } + #[inline] + pub fn max_stages(self, max_stages: i32) -> Self { + Self { + max_stages: max_stages, .. self + } + } + #[inline] + pub fn tolerance_degrees(self, tolerance_degrees: f32) -> Self { + Self { + tolerance_degrees: tolerance_degrees, .. self + } + } + #[inline] + pub fn done(self) -> PackedVector3Array { + let Self { + _phantom, surround_object, max_stages, tolerance_degrees, + } + = self; + re_export::Curve3D::tessellate_full(surround_object, max_stages, tolerance_degrees,) + } +} +#[doc = "Default-param extender for [`Curve3D::tessellate_even_length_ex`][super::Curve3D::tessellate_even_length_ex]."] +#[must_use] +pub struct ExTessellateEvenLength < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Curve3D, max_stages: i32, tolerance_length: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTessellateEvenLength < 'a > { + fn new(surround_object: &'a re_export::Curve3D,) -> Self { + let max_stages = 5i32; + let tolerance_length = 0.2f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, max_stages: max_stages, tolerance_length: tolerance_length, + } + } + #[inline] + pub fn max_stages(self, max_stages: i32) -> Self { + Self { + max_stages: max_stages, .. self + } + } + #[inline] + pub fn tolerance_length(self, tolerance_length: f32) -> Self { + Self { + tolerance_length: tolerance_length, .. self + } + } + #[inline] + pub fn done(self) -> PackedVector3Array { + let Self { + _phantom, surround_object, max_stages, tolerance_length, + } + = self; + re_export::Curve3D::tessellate_even_length_full(surround_object, max_stages, tolerance_length,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_texture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_texture.rs new file mode 100644 index 0000000..c77e7fd --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_texture.rs @@ -0,0 +1,341 @@ +#![doc = "Sidecar module for class [`CurveTexture`][crate::classes::CurveTexture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CurveTexture` enums](https://docs.godotengine.org/en/stable/classes/class_curvetexture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CurveTexture.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`curve_texture`][crate::classes::curve_texture]: sidecar module with related enum/flag types\n* [`ICurveTexture`][crate::classes::ICurveTexture]: virtual methods\n\n\nSee also [Godot docs for `CurveTexture`](https://docs.godotengine.org/en/stable/classes/class_curvetexture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CurveTexture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CurveTexture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CurveTexture`][crate::classes::CurveTexture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CurveTexture` methods](https://docs.godotengine.org/en/stable/classes/class_curvetexture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICurveTexture: crate::obj::GodotClass < Base = CurveTexture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CurveTexture { + pub fn set_width(&mut self, width: i32,) { + type CallSig = ((), i32); + let args = (width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2519usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveTexture", "set_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_curve(&mut self, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2520usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveTexture", "set_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_curve(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2521usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveTexture", "get_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_mode(&mut self, texture_mode: crate::classes::curve_texture::TextureMode,) { + type CallSig = ((), crate::classes::curve_texture::TextureMode); + let args = (texture_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2522usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveTexture", "set_texture_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_mode(&self,) -> crate::classes::curve_texture::TextureMode { + type CallSig = (crate::classes::curve_texture::TextureMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2523usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveTexture", "get_texture_mode", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CurveTexture { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CurveTexture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CurveTexture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for CurveTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for CurveTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CurveTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CurveTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CurveTexture { + + } + impl crate::obj::cap::GodotDefault for CurveTexture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CurveTexture { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CurveTexture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CurveTexture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CurveTexture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CurveTexture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextureMode { + ord: i32 +} +impl TextureMode { + #[doc(alias = "TEXTURE_MODE_RGB")] + #[doc = "Godot enumerator name: `TEXTURE_MODE_RGB`"] + pub const RGB: TextureMode = TextureMode { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_MODE_RED")] + #[doc = "Godot enumerator name: `TEXTURE_MODE_RED`"] + pub const RED: TextureMode = TextureMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for TextureMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextureMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextureMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RGB => "RGB", Self::RED => "RED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RGB => "TEXTURE_MODE_RGB", Self::RED => "TEXTURE_MODE_RED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TextureMode { + type Via = i32; + +} +impl crate::meta::ToGodot for TextureMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_xyz_texture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_xyz_texture.rs new file mode 100644 index 0000000..d13dcf9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/curve_xyz_texture.rs @@ -0,0 +1,287 @@ +#![doc = "Sidecar module for class [`CurveXyzTexture`][crate::classes::CurveXyzTexture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CurveXYZTexture` enums](https://docs.godotengine.org/en/stable/classes/class_curvexyztexture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CurveXYZTexture.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`ICurveXyzTexture`][crate::classes::ICurveXyzTexture]: virtual methods\n\n\nSee also [Godot docs for `CurveXYZTexture`](https://docs.godotengine.org/en/stable/classes/class_curvexyztexture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CurveXyzTexture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CurveXyzTexture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CurveXyzTexture`][crate::classes::CurveXyzTexture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CurveXYZTexture` methods](https://docs.godotengine.org/en/stable/classes/class_curvexyztexture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICurveXyzTexture: crate::obj::GodotClass < Base = CurveXyzTexture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CurveXyzTexture { + pub fn set_width(&mut self, width: i32,) { + type CallSig = ((), i32); + let args = (width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2524usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveXyzTexture", "set_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_curve_x(&mut self, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2525usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveXyzTexture", "set_curve_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_curve_x(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2526usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveXyzTexture", "get_curve_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_curve_y(&mut self, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2527usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveXyzTexture", "set_curve_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_curve_y(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2528usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveXyzTexture", "get_curve_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_curve_z(&mut self, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2529usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveXyzTexture", "set_curve_z", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_curve_z(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2530usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CurveXyzTexture", "get_curve_z", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CurveXyzTexture { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CurveXYZTexture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CurveXyzTexture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for CurveXyzTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for CurveXyzTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CurveXyzTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CurveXyzTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CurveXyzTexture { + + } + impl crate::obj::cap::GodotDefault for CurveXyzTexture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CurveXyzTexture { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CurveXyzTexture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CurveXyzTexture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CurveXyzTexture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CurveXyzTexture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cylinder_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cylinder_mesh.rs new file mode 100644 index 0000000..af50a16 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cylinder_mesh.rs @@ -0,0 +1,343 @@ +#![doc = "Sidecar module for class [`CylinderMesh`][crate::classes::CylinderMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CylinderMesh` enums](https://docs.godotengine.org/en/stable/classes/class_cylindermesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CylinderMesh.`\n\nInherits [`PrimitiveMesh`][crate::classes::PrimitiveMesh].\n\nRelated symbols:\n\n* [`ICylinderMesh`][crate::classes::ICylinderMesh]: virtual methods\n\n\nSee also [Godot docs for `CylinderMesh`](https://docs.godotengine.org/en/stable/classes/class_cylindermesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CylinderMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CylinderMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CylinderMesh`][crate::classes::CylinderMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CylinderMesh` methods](https://docs.godotengine.org/en/stable/classes/class_cylindermesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICylinderMesh: crate::obj::GodotClass < Base = CylinderMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn create_mesh_array(&self,) -> VariantArray { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CylinderMesh { + pub fn set_top_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2531usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "set_top_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_top_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2532usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "get_top_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bottom_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2533usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "set_bottom_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bottom_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2534usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "get_bottom_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: f32,) { + type CallSig = ((), f32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2535usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2536usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_radial_segments(&mut self, segments: i32,) { + type CallSig = ((), i32); + let args = (segments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2537usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "set_radial_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radial_segments(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2538usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "get_radial_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rings(&mut self, rings: i32,) { + type CallSig = ((), i32); + let args = (rings,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2539usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "set_rings", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rings(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2540usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "get_rings", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cap_top(&mut self, cap_top: bool,) { + type CallSig = ((), bool); + let args = (cap_top,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2541usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "set_cap_top", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_cap_top(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2542usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "is_cap_top", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cap_bottom(&mut self, cap_bottom: bool,) { + type CallSig = ((), bool); + let args = (cap_bottom,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2543usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "set_cap_bottom", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_cap_bottom(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2544usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderMesh", "is_cap_bottom", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CylinderMesh { + type Base = crate::classes::PrimitiveMesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CylinderMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CylinderMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PrimitiveMesh > for CylinderMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for CylinderMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CylinderMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CylinderMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CylinderMesh { + + } + impl crate::obj::cap::GodotDefault for CylinderMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CylinderMesh { + type Target = crate::classes::PrimitiveMesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CylinderMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CylinderMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CylinderMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CylinderMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PrimitiveMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cylinder_shape_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cylinder_shape_3d.rs new file mode 100644 index 0000000..4721dd1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/cylinder_shape_3d.rs @@ -0,0 +1,240 @@ +#![doc = "Sidecar module for class [`CylinderShape3D`][crate::classes::CylinderShape3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `CylinderShape3D` enums](https://docs.godotengine.org/en/stable/classes/class_cylindershape3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `CylinderShape3D.`\n\nInherits [`Shape3D`][crate::classes::Shape3D].\n\nRelated symbols:\n\n* [`ICylinderShape3D`][crate::classes::ICylinderShape3D]: virtual methods\n\n\nSee also [Godot docs for `CylinderShape3D`](https://docs.godotengine.org/en/stable/classes/class_cylindershape3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`CylinderShape3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct CylinderShape3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`CylinderShape3D`][crate::classes::CylinderShape3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `CylinderShape3D` methods](https://docs.godotengine.org/en/stable/classes/class_cylindershape3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ICylinderShape3D: crate::obj::GodotClass < Base = CylinderShape3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl CylinderShape3D { + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2545usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderShape3D", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2546usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderShape3D", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: f32,) { + type CallSig = ((), f32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2547usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderShape3D", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2548usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "CylinderShape3D", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for CylinderShape3D { + type Base = crate::classes::Shape3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"CylinderShape3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for CylinderShape3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Shape3D > for CylinderShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for CylinderShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for CylinderShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for CylinderShape3D { + + } + impl crate::obj::cap::GodotDefault for CylinderShape3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for CylinderShape3D { + type Target = crate::classes::Shape3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for CylinderShape3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`CylinderShape3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_CylinderShape3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::CylinderShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Shape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/damped_spring_joint_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/damped_spring_joint_2d.rs new file mode 100644 index 0000000..1a75695 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/damped_spring_joint_2d.rs @@ -0,0 +1,308 @@ +#![doc = "Sidecar module for class [`DampedSpringJoint2D`][crate::classes::DampedSpringJoint2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `DampedSpringJoint2D` enums](https://docs.godotengine.org/en/stable/classes/class_dampedspringjoint2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `DampedSpringJoint2D.`\n\nInherits [`Joint2D`][crate::classes::Joint2D].\n\nRelated symbols:\n\n* [`IDampedSpringJoint2D`][crate::classes::IDampedSpringJoint2D]: virtual methods\n\n\nSee also [Godot docs for `DampedSpringJoint2D`](https://docs.godotengine.org/en/stable/classes/class_dampedspringjoint2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`DampedSpringJoint2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct DampedSpringJoint2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`DampedSpringJoint2D`][crate::classes::DampedSpringJoint2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `DampedSpringJoint2D` methods](https://docs.godotengine.org/en/stable/classes/class_dampedspringjoint2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IDampedSpringJoint2D: crate::obj::GodotClass < Base = DampedSpringJoint2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl DampedSpringJoint2D { + pub fn set_length(&mut self, length: f32,) { + type CallSig = ((), f32); + let args = (length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2551usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DampedSpringJoint2D", "set_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2552usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DampedSpringJoint2D", "get_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rest_length(&mut self, rest_length: f32,) { + type CallSig = ((), f32); + let args = (rest_length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2553usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DampedSpringJoint2D", "set_rest_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rest_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2554usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DampedSpringJoint2D", "get_rest_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stiffness(&mut self, stiffness: f32,) { + type CallSig = ((), f32); + let args = (stiffness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2555usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DampedSpringJoint2D", "set_stiffness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stiffness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2556usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DampedSpringJoint2D", "get_stiffness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_damping(&mut self, damping: f32,) { + type CallSig = ((), f32); + let args = (damping,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2557usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DampedSpringJoint2D", "set_damping", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_damping(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2558usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DampedSpringJoint2D", "get_damping", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for DampedSpringJoint2D { + type Base = crate::classes::Joint2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"DampedSpringJoint2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for DampedSpringJoint2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Joint2D > for DampedSpringJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for DampedSpringJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for DampedSpringJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for DampedSpringJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for DampedSpringJoint2D { + + } + impl crate::obj::cap::GodotDefault for DampedSpringJoint2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for DampedSpringJoint2D { + type Target = crate::classes::Joint2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for DampedSpringJoint2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`DampedSpringJoint2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_DampedSpringJoint2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::DampedSpringJoint2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Joint2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/decal.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/decal.rs new file mode 100644 index 0000000..317499e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/decal.rs @@ -0,0 +1,519 @@ +#![doc = "Sidecar module for class [`Decal`][crate::classes::Decal].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Decal` enums](https://docs.godotengine.org/en/stable/classes/class_decal.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Decal.`\n\nInherits [`VisualInstance3D`][crate::classes::VisualInstance3D].\n\nRelated symbols:\n\n* [`decal`][crate::classes::decal]: sidecar module with related enum/flag types\n* [`IDecal`][crate::classes::IDecal]: virtual methods\n\n\nSee also [Godot docs for `Decal`](https://docs.godotengine.org/en/stable/classes/class_decal.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Decal::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Decal { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Decal`][crate::classes::Decal].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Decal` methods](https://docs.godotengine.org/en/stable/classes/class_decal.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IDecal: crate::obj::GodotClass < Base = Decal > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Decal { + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2559usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2560usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture(&mut self, type_: crate::classes::decal::DecalTexture, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), crate::classes::decal::DecalTexture, ObjectArg < crate::classes::Texture2D >); + let args = (type_, texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2561usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self, type_: crate::classes::decal::DecalTexture,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >, crate::classes::decal::DecalTexture); + let args = (type_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2562usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_energy(&mut self, energy: f32,) { + type CallSig = ((), f32); + let args = (energy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2563usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_emission_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_energy(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2564usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "get_emission_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_albedo_mix(&mut self, energy: f32,) { + type CallSig = ((), f32); + let args = (energy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2565usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_albedo_mix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_albedo_mix(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2566usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "get_albedo_mix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_modulate(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2567usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_modulate(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2568usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "get_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_upper_fade(&mut self, fade: f32,) { + type CallSig = ((), f32); + let args = (fade,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2569usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_upper_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_upper_fade(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2570usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "get_upper_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lower_fade(&mut self, fade: f32,) { + type CallSig = ((), f32); + let args = (fade,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2571usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_lower_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lower_fade(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2572usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "get_lower_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_normal_fade(&mut self, fade: f32,) { + type CallSig = ((), f32); + let args = (fade,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2573usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_normal_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_normal_fade(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2574usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "get_normal_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_distance_fade(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2575usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_enable_distance_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_distance_fade_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2576usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "is_distance_fade_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_distance_fade_begin(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2577usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_distance_fade_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_distance_fade_begin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2578usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "get_distance_fade_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_distance_fade_length(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2579usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_distance_fade_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_distance_fade_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2580usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "get_distance_fade_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cull_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2581usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "set_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cull_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2582usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Decal", "get_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Decal { + type Base = crate::classes::VisualInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Decal")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Decal { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for Decal { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for Decal { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Decal { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Decal { + + } + impl crate::obj::cap::GodotDefault for Decal { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Decal { + type Target = crate::classes::VisualInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Decal { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Decal`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Decal { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Decal > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DecalTexture { + ord: i32 +} +impl DecalTexture { + #[doc(alias = "TEXTURE_ALBEDO")] + #[doc = "Godot enumerator name: `TEXTURE_ALBEDO`"] + pub const ALBEDO: DecalTexture = DecalTexture { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_NORMAL")] + #[doc = "Godot enumerator name: `TEXTURE_NORMAL`"] + pub const NORMAL: DecalTexture = DecalTexture { + ord: 1i32 + }; + #[doc(alias = "TEXTURE_ORM")] + #[doc = "Godot enumerator name: `TEXTURE_ORM`"] + pub const ORM: DecalTexture = DecalTexture { + ord: 2i32 + }; + #[doc(alias = "TEXTURE_EMISSION")] + #[doc = "Godot enumerator name: `TEXTURE_EMISSION`"] + pub const EMISSION: DecalTexture = DecalTexture { + ord: 3i32 + }; + #[doc(alias = "TEXTURE_MAX")] + #[doc = "Godot enumerator name: `TEXTURE_MAX`"] + pub const MAX: DecalTexture = DecalTexture { + ord: 4i32 + }; + +} +impl std::fmt::Debug for DecalTexture { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DecalTexture") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DecalTexture { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALBEDO => "ALBEDO", Self::NORMAL => "NORMAL", Self::ORM => "ORM", Self::EMISSION => "EMISSION", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALBEDO => "TEXTURE_ALBEDO", Self::NORMAL => "TEXTURE_NORMAL", Self::ORM => "TEXTURE_ORM", Self::EMISSION => "TEXTURE_EMISSION", Self::MAX => "TEXTURE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for DecalTexture { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for DecalTexture { + type Via = i32; + +} +impl crate::meta::ToGodot for DecalTexture { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DecalTexture { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/dir_access.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/dir_access.rs new file mode 100644 index 0000000..400f1bb --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/dir_access.rs @@ -0,0 +1,595 @@ +#![doc = "Sidecar module for class [`DirAccess`][crate::classes::DirAccess].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `DirAccess` enums](https://docs.godotengine.org/en/stable/classes/class_diraccess.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `DirAccess.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`dir_access`][crate::classes::dir_access]: sidecar module with related enum/flag types\n* [`IDirAccess`][crate::classes::IDirAccess]: virtual methods\n\n\nSee also [Godot docs for `DirAccess`](https://docs.godotengine.org/en/stable/classes/class_diraccess.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct DirAccess { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`DirAccess`][crate::classes::DirAccess].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `DirAccess` methods](https://docs.godotengine.org/en/stable/classes/class_diraccess.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IDirAccess: crate::obj::GodotClass < Base = DirAccess > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl DirAccess { + pub fn open(path: impl AsArg < GString >,) -> Option < Gd < crate::classes::DirAccess > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::DirAccess > >, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2583usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "open", std::ptr::null_mut(), None, args,) + } + } + pub fn get_open_error() -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2584usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_open_error", std::ptr::null_mut(), None, args,) + } + } + pub fn list_dir_begin(&mut self,) -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2585usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "list_dir_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_next(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2586usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_next", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn current_is_dir(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2587usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "current_is_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn list_dir_end(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2588usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "list_dir_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_files(&mut self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2589usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_files", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_files_at(path: impl AsArg < GString >,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2590usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_files_at", std::ptr::null_mut(), None, args,) + } + } + pub fn get_directories(&mut self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2591usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_directories", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_directories_at(path: impl AsArg < GString >,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2592usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_directories_at", std::ptr::null_mut(), None, args,) + } + } + pub fn get_drive_count() -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2593usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_drive_count", std::ptr::null_mut(), None, args,) + } + } + pub fn get_drive_name(idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2594usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_drive_name", std::ptr::null_mut(), None, args,) + } + } + pub fn get_current_drive(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2595usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_current_drive", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn change_dir(&mut self, to_dir: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (to_dir.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2596usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "change_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_current_dir_full(&self, include_drive: bool,) -> GString { + type CallSig = (GString, bool); + let args = (include_drive,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2597usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_current_dir", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_current_dir_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_current_dir(&self,) -> GString { + self.get_current_dir_ex() . done() + } + #[inline] + pub fn get_current_dir_ex < 'a > (&'a self,) -> ExGetCurrentDir < 'a > { + ExGetCurrentDir::new(self,) + } + pub fn make_dir(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2598usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "make_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_dir_absolute(path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2599usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "make_dir_absolute", std::ptr::null_mut(), None, args,) + } + } + pub fn make_dir_recursive(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2600usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "make_dir_recursive", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_dir_recursive_absolute(path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2601usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "make_dir_recursive_absolute", std::ptr::null_mut(), None, args,) + } + } + pub fn file_exists(&mut self, path: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2602usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "file_exists", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn dir_exists(&mut self, path: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2603usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "dir_exists", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn dir_exists_absolute(path: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2604usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "dir_exists_absolute", std::ptr::null_mut(), None, args,) + } + } + pub fn get_space_left(&mut self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2605usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_space_left", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn copy_full(&mut self, from: CowArg < GString >, to: CowArg < GString >, chmod_flags: i32,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >, i32); + let args = (from, to, chmod_flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2606usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "copy", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::copy_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn copy(&mut self, from: impl AsArg < GString >, to: impl AsArg < GString >,) -> crate::global::Error { + self.copy_ex(from, to,) . done() + } + #[inline] + pub fn copy_ex < 'a > (&'a mut self, from: impl AsArg < GString > + 'a, to: impl AsArg < GString > + 'a,) -> ExCopy < 'a > { + ExCopy::new(self, from, to,) + } + pub(crate) fn copy_absolute_full(from: CowArg < GString >, to: CowArg < GString >, chmod_flags: i32,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >, i32); + let args = (from, to, chmod_flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2607usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "copy_absolute", std::ptr::null_mut(), None, args,) + } + } + #[doc = "To set the default parameters, use [`Self::copy_absolute_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn copy_absolute(from: impl AsArg < GString >, to: impl AsArg < GString >,) -> crate::global::Error { + Self::copy_absolute_ex(from, to,) . done() + } + #[inline] + pub fn copy_absolute_ex < 'a > (from: impl AsArg < GString > + 'a, to: impl AsArg < GString > + 'a,) -> ExCopyAbsolute < 'a > { + ExCopyAbsolute::new(from, to,) + } + pub fn rename(&mut self, from: impl AsArg < GString >, to: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (from.into_arg(), to.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2608usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "rename", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rename_absolute(from: impl AsArg < GString >, to: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (from.into_arg(), to.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2609usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "rename_absolute", std::ptr::null_mut(), None, args,) + } + } + pub fn remove(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2610usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "remove", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_absolute(path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2611usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "remove_absolute", std::ptr::null_mut(), None, args,) + } + } + pub fn is_link(&mut self, path: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2612usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "is_link", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn read_link(&mut self, path: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2613usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "read_link", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_link(&mut self, source: impl AsArg < GString >, target: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (source.into_arg(), target.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2614usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "create_link", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_include_navigational(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2615usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "set_include_navigational", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_include_navigational(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2616usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_include_navigational", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_include_hidden(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2617usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "set_include_hidden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_include_hidden(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2618usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "get_include_hidden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_case_sensitive(&self, path: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2619usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirAccess", "is_case_sensitive", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for DirAccess { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"DirAccess")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for DirAccess { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for DirAccess { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for DirAccess { + + } + impl std::ops::Deref for DirAccess { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for DirAccess { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`DirAccess`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_DirAccess { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::DirAccess > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`DirAccess::get_current_dir_ex`][super::DirAccess::get_current_dir_ex]."] +#[must_use] +pub struct ExGetCurrentDir < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DirAccess, include_drive: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetCurrentDir < 'a > { + fn new(surround_object: &'a re_export::DirAccess,) -> Self { + let include_drive = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, include_drive: include_drive, + } + } + #[inline] + pub fn include_drive(self, include_drive: bool) -> Self { + Self { + include_drive: include_drive, .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, include_drive, + } + = self; + re_export::DirAccess::get_current_dir_full(surround_object, include_drive,) + } +} +#[doc = "Default-param extender for [`DirAccess::copy_ex`][super::DirAccess::copy_ex]."] +#[must_use] +pub struct ExCopy < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DirAccess, from: CowArg < 'a, GString >, to: CowArg < 'a, GString >, chmod_flags: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCopy < 'a > { + fn new(surround_object: &'a mut re_export::DirAccess, from: impl AsArg < GString > + 'a, to: impl AsArg < GString > + 'a,) -> Self { + let chmod_flags = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from: from.into_arg(), to: to.into_arg(), chmod_flags: chmod_flags, + } + } + #[inline] + pub fn chmod_flags(self, chmod_flags: i32) -> Self { + Self { + chmod_flags: chmod_flags, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, from, to, chmod_flags, + } + = self; + re_export::DirAccess::copy_full(surround_object, from, to, chmod_flags,) + } +} +#[doc = "Default-param extender for [`DirAccess::copy_absolute_ex`][super::DirAccess::copy_absolute_ex]."] +#[must_use] +pub struct ExCopyAbsolute < 'a > { + _phantom: std::marker::PhantomData < &'a() >, from: CowArg < 'a, GString >, to: CowArg < 'a, GString >, chmod_flags: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCopyAbsolute < 'a > { + fn new(from: impl AsArg < GString > + 'a, to: impl AsArg < GString > + 'a,) -> Self { + let chmod_flags = - 1i32; + Self { + _phantom: std::marker::PhantomData, from: from.into_arg(), to: to.into_arg(), chmod_flags: chmod_flags, + } + } + #[inline] + pub fn chmod_flags(self, chmod_flags: i32) -> Self { + Self { + chmod_flags: chmod_flags, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, from, to, chmod_flags, + } + = self; + re_export::DirAccess::copy_absolute_full(from, to, chmod_flags,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/directional_light_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/directional_light_2d.rs new file mode 100644 index 0000000..6e32da1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/directional_light_2d.rs @@ -0,0 +1,260 @@ +#![doc = "Sidecar module for class [`DirectionalLight2D`][crate::classes::DirectionalLight2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `DirectionalLight2D` enums](https://docs.godotengine.org/en/stable/classes/class_directionallight2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `DirectionalLight2D.`\n\nInherits [`Light2D`][crate::classes::Light2D].\n\nRelated symbols:\n\n* [`IDirectionalLight2D`][crate::classes::IDirectionalLight2D]: virtual methods\n\n\nSee also [Godot docs for `DirectionalLight2D`](https://docs.godotengine.org/en/stable/classes/class_directionallight2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`DirectionalLight2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct DirectionalLight2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`DirectionalLight2D`][crate::classes::DirectionalLight2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `DirectionalLight2D` methods](https://docs.godotengine.org/en/stable/classes/class_directionallight2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IDirectionalLight2D: crate::obj::GodotClass < Base = DirectionalLight2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl DirectionalLight2D { + pub fn set_max_distance(&mut self, pixels: f32,) { + type CallSig = ((), f32); + let args = (pixels,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2620usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirectionalLight2D", "set_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2621usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirectionalLight2D", "get_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for DirectionalLight2D { + type Base = crate::classes::Light2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"DirectionalLight2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for DirectionalLight2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Light2D > for DirectionalLight2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for DirectionalLight2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for DirectionalLight2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for DirectionalLight2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for DirectionalLight2D { + + } + impl crate::obj::cap::GodotDefault for DirectionalLight2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for DirectionalLight2D { + type Target = crate::classes::Light2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for DirectionalLight2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`DirectionalLight2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_DirectionalLight2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::DirectionalLight2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Light2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/directional_light_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/directional_light_3d.rs new file mode 100644 index 0000000..611d2d8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/directional_light_3d.rs @@ -0,0 +1,442 @@ +#![doc = "Sidecar module for class [`DirectionalLight3D`][crate::classes::DirectionalLight3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `DirectionalLight3D` enums](https://docs.godotengine.org/en/stable/classes/class_directionallight3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `DirectionalLight3D.`\n\nInherits [`Light3D`][crate::classes::Light3D].\n\nRelated symbols:\n\n* [`directional_light_3d`][crate::classes::directional_light_3d]: sidecar module with related enum/flag types\n* [`IDirectionalLight3D`][crate::classes::IDirectionalLight3D]: virtual methods\n\n\nSee also [Godot docs for `DirectionalLight3D`](https://docs.godotengine.org/en/stable/classes/class_directionallight3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`DirectionalLight3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct DirectionalLight3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`DirectionalLight3D`][crate::classes::DirectionalLight3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `DirectionalLight3D` methods](https://docs.godotengine.org/en/stable/classes/class_directionallight3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IDirectionalLight3D: crate::obj::GodotClass < Base = DirectionalLight3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl DirectionalLight3D { + pub fn set_shadow_mode(&mut self, mode: crate::classes::directional_light_3d::ShadowMode,) { + type CallSig = ((), crate::classes::directional_light_3d::ShadowMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2622usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirectionalLight3D", "set_shadow_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shadow_mode(&self,) -> crate::classes::directional_light_3d::ShadowMode { + type CallSig = (crate::classes::directional_light_3d::ShadowMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2623usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirectionalLight3D", "get_shadow_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_splits(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2624usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirectionalLight3D", "set_blend_splits", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_blend_splits_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2625usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirectionalLight3D", "is_blend_splits_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sky_mode(&mut self, mode: crate::classes::directional_light_3d::SkyMode,) { + type CallSig = ((), crate::classes::directional_light_3d::SkyMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2626usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirectionalLight3D", "set_sky_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sky_mode(&self,) -> crate::classes::directional_light_3d::SkyMode { + type CallSig = (crate::classes::directional_light_3d::SkyMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2627usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DirectionalLight3D", "get_sky_mode", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for DirectionalLight3D { + type Base = crate::classes::Light3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"DirectionalLight3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for DirectionalLight3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Light3D > for DirectionalLight3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for DirectionalLight3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for DirectionalLight3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for DirectionalLight3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for DirectionalLight3D { + + } + impl crate::obj::cap::GodotDefault for DirectionalLight3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for DirectionalLight3D { + type Target = crate::classes::Light3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for DirectionalLight3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`DirectionalLight3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_DirectionalLight3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::DirectionalLight3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Light3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShadowMode { + ord: i32 +} +impl ShadowMode { + #[doc(alias = "SHADOW_ORTHOGONAL")] + #[doc = "Godot enumerator name: `SHADOW_ORTHOGONAL`"] + pub const ORTHOGONAL: ShadowMode = ShadowMode { + ord: 0i32 + }; + #[doc(alias = "SHADOW_PARALLEL_2_SPLITS")] + #[doc = "Godot enumerator name: `SHADOW_PARALLEL_2_SPLITS`"] + pub const PARALLEL_2_SPLITS: ShadowMode = ShadowMode { + ord: 1i32 + }; + #[doc(alias = "SHADOW_PARALLEL_4_SPLITS")] + #[doc = "Godot enumerator name: `SHADOW_PARALLEL_4_SPLITS`"] + pub const PARALLEL_4_SPLITS: ShadowMode = ShadowMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ShadowMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShadowMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShadowMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ORTHOGONAL => "ORTHOGONAL", Self::PARALLEL_2_SPLITS => "PARALLEL_2_SPLITS", Self::PARALLEL_4_SPLITS => "PARALLEL_4_SPLITS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ORTHOGONAL => "SHADOW_ORTHOGONAL", Self::PARALLEL_2_SPLITS => "SHADOW_PARALLEL_2_SPLITS", Self::PARALLEL_4_SPLITS => "SHADOW_PARALLEL_4_SPLITS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ShadowMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ShadowMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShadowMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SkyMode { + ord: i32 +} +impl SkyMode { + #[doc(alias = "SKY_MODE_LIGHT_AND_SKY")] + #[doc = "Godot enumerator name: `SKY_MODE_LIGHT_AND_SKY`"] + pub const LIGHT_AND_SKY: SkyMode = SkyMode { + ord: 0i32 + }; + #[doc(alias = "SKY_MODE_LIGHT_ONLY")] + #[doc = "Godot enumerator name: `SKY_MODE_LIGHT_ONLY`"] + pub const LIGHT_ONLY: SkyMode = SkyMode { + ord: 1i32 + }; + #[doc(alias = "SKY_MODE_SKY_ONLY")] + #[doc = "Godot enumerator name: `SKY_MODE_SKY_ONLY`"] + pub const SKY_ONLY: SkyMode = SkyMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for SkyMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SkyMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SkyMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LIGHT_AND_SKY => "LIGHT_AND_SKY", Self::LIGHT_ONLY => "LIGHT_ONLY", Self::SKY_ONLY => "SKY_ONLY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LIGHT_AND_SKY => "SKY_MODE_LIGHT_AND_SKY", Self::LIGHT_ONLY => "SKY_MODE_LIGHT_ONLY", Self::SKY_ONLY => "SKY_MODE_SKY_ONLY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SkyMode { + type Via = i32; + +} +impl crate::meta::ToGodot for SkyMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SkyMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/display_server.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/display_server.rs new file mode 100644 index 0000000..e2baab3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/display_server.rs @@ -0,0 +1,5302 @@ +#![doc = "Sidecar module for class [`DisplayServer`][crate::classes::DisplayServer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `DisplayServer` enums](https://docs.godotengine.org/en/stable/classes/class_displayserver.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `DisplayServer.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`display_server`][crate::classes::display_server]: sidecar module with related enum/flag types\n* [`IDisplayServer`][crate::classes::IDisplayServer]: virtual methods\n\n\nSee also [Godot docs for `DisplayServer`](https://docs.godotengine.org/en/stable/classes/class_displayserver.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`DisplayServer::singleton()`][DisplayServer::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct DisplayServer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`DisplayServer`][crate::classes::DisplayServer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `DisplayServer` methods](https://docs.godotengine.org/en/stable/classes/class_displayserver.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IDisplayServer: crate::obj::GodotClass < Base = DisplayServer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl DisplayServer { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"DisplayServer"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn has_feature(&self, feature: crate::classes::display_server::Feature,) -> bool { + type CallSig = (bool, crate::classes::display_server::Feature); + let args = (feature,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2628usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "has_feature", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2629usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn help_set_search_callbacks(&mut self, search_callback: &Callable, action_callback: &Callable,) { + type CallSig < 'a0, 'a1, > = ((), RefArg < 'a0, Callable >, RefArg < 'a1, Callable >); + let args = (RefArg::new(search_callback), RefArg::new(action_callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2630usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "help_set_search_callbacks", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_popup_callbacks(&mut self, menu_root: impl AsArg < GString >, open_callback: &Callable, close_callback: &Callable,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, Callable >, RefArg < 'a2, Callable >); + let args = (menu_root.into_arg(), RefArg::new(open_callback), RefArg::new(close_callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2631usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_popup_callbacks", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn global_menu_add_submenu_item_full(&mut self, menu_root: CowArg < GString >, label: CowArg < GString >, submenu: CowArg < GString >, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, > = (i32, CowArg < 'a0, GString >, CowArg < 'a1, GString >, CowArg < 'a2, GString >, i32); + let args = (menu_root, label, submenu, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2632usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_add_submenu_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::global_menu_add_submenu_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn global_menu_add_submenu_item(&mut self, menu_root: impl AsArg < GString >, label: impl AsArg < GString >, submenu: impl AsArg < GString >,) -> i32 { + self.global_menu_add_submenu_item_ex(menu_root, label, submenu,) . done() + } + #[inline] + pub fn global_menu_add_submenu_item_ex < 'a > (&'a mut self, menu_root: impl AsArg < GString > + 'a, label: impl AsArg < GString > + 'a, submenu: impl AsArg < GString > + 'a,) -> ExGlobalMenuAddSubmenuItem < 'a > { + ExGlobalMenuAddSubmenuItem::new(self, menu_root, label, submenu,) + } + pub(crate) fn global_menu_add_item_full(&mut self, menu_root: CowArg < GString >, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, 'a4, > = (i32, CowArg < 'a0, GString >, CowArg < 'a1, GString >, RefArg < 'a2, Callable >, RefArg < 'a3, Callable >, RefArg < 'a4, Variant >, crate::global::Key, i32); + let args = (menu_root, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2633usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_add_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::global_menu_add_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn global_menu_add_item(&mut self, menu_root: impl AsArg < GString >, label: impl AsArg < GString >,) -> i32 { + self.global_menu_add_item_ex(menu_root, label,) . done() + } + #[inline] + pub fn global_menu_add_item_ex < 'a > (&'a mut self, menu_root: impl AsArg < GString > + 'a, label: impl AsArg < GString > + 'a,) -> ExGlobalMenuAddItem < 'a > { + ExGlobalMenuAddItem::new(self, menu_root, label,) + } + pub(crate) fn global_menu_add_check_item_full(&mut self, menu_root: CowArg < GString >, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, 'a4, > = (i32, CowArg < 'a0, GString >, CowArg < 'a1, GString >, RefArg < 'a2, Callable >, RefArg < 'a3, Callable >, RefArg < 'a4, Variant >, crate::global::Key, i32); + let args = (menu_root, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2634usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_add_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::global_menu_add_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn global_menu_add_check_item(&mut self, menu_root: impl AsArg < GString >, label: impl AsArg < GString >,) -> i32 { + self.global_menu_add_check_item_ex(menu_root, label,) . done() + } + #[inline] + pub fn global_menu_add_check_item_ex < 'a > (&'a mut self, menu_root: impl AsArg < GString > + 'a, label: impl AsArg < GString > + 'a,) -> ExGlobalMenuAddCheckItem < 'a > { + ExGlobalMenuAddCheckItem::new(self, menu_root, label,) + } + pub(crate) fn global_menu_add_icon_item_full(&mut self, menu_root: CowArg < GString >, icon: ObjectArg < crate::classes::Texture2D >, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, 'a4, > = (i32, CowArg < 'a0, GString >, ObjectArg < crate::classes::Texture2D >, CowArg < 'a1, GString >, RefArg < 'a2, Callable >, RefArg < 'a3, Callable >, RefArg < 'a4, Variant >, crate::global::Key, i32); + let args = (menu_root, icon, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2635usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_add_icon_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::global_menu_add_icon_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn global_menu_add_icon_item(&mut self, menu_root: impl AsArg < GString >, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString >,) -> i32 { + self.global_menu_add_icon_item_ex(menu_root, icon, label,) . done() + } + #[inline] + pub fn global_menu_add_icon_item_ex < 'a > (&'a mut self, menu_root: impl AsArg < GString > + 'a, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> ExGlobalMenuAddIconItem < 'a > { + ExGlobalMenuAddIconItem::new(self, menu_root, icon, label,) + } + pub(crate) fn global_menu_add_icon_check_item_full(&mut self, menu_root: CowArg < GString >, icon: ObjectArg < crate::classes::Texture2D >, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, 'a4, > = (i32, CowArg < 'a0, GString >, ObjectArg < crate::classes::Texture2D >, CowArg < 'a1, GString >, RefArg < 'a2, Callable >, RefArg < 'a3, Callable >, RefArg < 'a4, Variant >, crate::global::Key, i32); + let args = (menu_root, icon, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2636usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_add_icon_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::global_menu_add_icon_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn global_menu_add_icon_check_item(&mut self, menu_root: impl AsArg < GString >, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString >,) -> i32 { + self.global_menu_add_icon_check_item_ex(menu_root, icon, label,) . done() + } + #[inline] + pub fn global_menu_add_icon_check_item_ex < 'a > (&'a mut self, menu_root: impl AsArg < GString > + 'a, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> ExGlobalMenuAddIconCheckItem < 'a > { + ExGlobalMenuAddIconCheckItem::new(self, menu_root, icon, label,) + } + pub(crate) fn global_menu_add_radio_check_item_full(&mut self, menu_root: CowArg < GString >, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, 'a4, > = (i32, CowArg < 'a0, GString >, CowArg < 'a1, GString >, RefArg < 'a2, Callable >, RefArg < 'a3, Callable >, RefArg < 'a4, Variant >, crate::global::Key, i32); + let args = (menu_root, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2637usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_add_radio_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::global_menu_add_radio_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn global_menu_add_radio_check_item(&mut self, menu_root: impl AsArg < GString >, label: impl AsArg < GString >,) -> i32 { + self.global_menu_add_radio_check_item_ex(menu_root, label,) . done() + } + #[inline] + pub fn global_menu_add_radio_check_item_ex < 'a > (&'a mut self, menu_root: impl AsArg < GString > + 'a, label: impl AsArg < GString > + 'a,) -> ExGlobalMenuAddRadioCheckItem < 'a > { + ExGlobalMenuAddRadioCheckItem::new(self, menu_root, label,) + } + pub(crate) fn global_menu_add_icon_radio_check_item_full(&mut self, menu_root: CowArg < GString >, icon: ObjectArg < crate::classes::Texture2D >, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, 'a4, > = (i32, CowArg < 'a0, GString >, ObjectArg < crate::classes::Texture2D >, CowArg < 'a1, GString >, RefArg < 'a2, Callable >, RefArg < 'a3, Callable >, RefArg < 'a4, Variant >, crate::global::Key, i32); + let args = (menu_root, icon, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2638usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_add_icon_radio_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::global_menu_add_icon_radio_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn global_menu_add_icon_radio_check_item(&mut self, menu_root: impl AsArg < GString >, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString >,) -> i32 { + self.global_menu_add_icon_radio_check_item_ex(menu_root, icon, label,) . done() + } + #[inline] + pub fn global_menu_add_icon_radio_check_item_ex < 'a > (&'a mut self, menu_root: impl AsArg < GString > + 'a, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> ExGlobalMenuAddIconRadioCheckItem < 'a > { + ExGlobalMenuAddIconRadioCheckItem::new(self, menu_root, icon, label,) + } + pub(crate) fn global_menu_add_multistate_item_full(&mut self, menu_root: CowArg < GString >, label: CowArg < GString >, max_states: i32, default_state: i32, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, 'a4, > = (i32, CowArg < 'a0, GString >, CowArg < 'a1, GString >, i32, i32, RefArg < 'a2, Callable >, RefArg < 'a3, Callable >, RefArg < 'a4, Variant >, crate::global::Key, i32); + let args = (menu_root, label, max_states, default_state, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2639usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_add_multistate_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::global_menu_add_multistate_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn global_menu_add_multistate_item(&mut self, menu_root: impl AsArg < GString >, label: impl AsArg < GString >, max_states: i32, default_state: i32,) -> i32 { + self.global_menu_add_multistate_item_ex(menu_root, label, max_states, default_state,) . done() + } + #[inline] + pub fn global_menu_add_multistate_item_ex < 'a > (&'a mut self, menu_root: impl AsArg < GString > + 'a, label: impl AsArg < GString > + 'a, max_states: i32, default_state: i32,) -> ExGlobalMenuAddMultistateItem < 'a > { + ExGlobalMenuAddMultistateItem::new(self, menu_root, label, max_states, default_state,) + } + pub(crate) fn global_menu_add_separator_full(&mut self, menu_root: CowArg < GString >, index: i32,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >, i32); + let args = (menu_root, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2640usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_add_separator", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::global_menu_add_separator_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn global_menu_add_separator(&mut self, menu_root: impl AsArg < GString >,) -> i32 { + self.global_menu_add_separator_ex(menu_root,) . done() + } + #[inline] + pub fn global_menu_add_separator_ex < 'a > (&'a mut self, menu_root: impl AsArg < GString > + 'a,) -> ExGlobalMenuAddSeparator < 'a > { + ExGlobalMenuAddSeparator::new(self, menu_root,) + } + pub fn global_menu_get_item_index_from_text(&self, menu_root: impl AsArg < GString >, text: impl AsArg < GString >,) -> i32 { + type CallSig < 'a0, 'a1, > = (i32, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (menu_root.into_arg(), text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2641usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_index_from_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_index_from_tag(&self, menu_root: impl AsArg < GString >, tag: &Variant,) -> i32 { + type CallSig < 'a0, 'a1, > = (i32, CowArg < 'a0, GString >, RefArg < 'a1, Variant >); + let args = (menu_root.into_arg(), RefArg::new(tag),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2642usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_index_from_tag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_is_item_checked(&self, menu_root: impl AsArg < GString >, idx: i32,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2643usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_is_item_checked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_is_item_checkable(&self, menu_root: impl AsArg < GString >, idx: i32,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2644usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_is_item_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_is_item_radio_checkable(&self, menu_root: impl AsArg < GString >, idx: i32,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2645usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_is_item_radio_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_callback(&self, menu_root: impl AsArg < GString >, idx: i32,) -> Callable { + type CallSig < 'a0, > = (Callable, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2646usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_key_callback(&self, menu_root: impl AsArg < GString >, idx: i32,) -> Callable { + type CallSig < 'a0, > = (Callable, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2647usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_key_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_tag(&self, menu_root: impl AsArg < GString >, idx: i32,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2648usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_tag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_text(&self, menu_root: impl AsArg < GString >, idx: i32,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2649usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_submenu(&self, menu_root: impl AsArg < GString >, idx: i32,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2650usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_submenu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_accelerator(&self, menu_root: impl AsArg < GString >, idx: i32,) -> crate::global::Key { + type CallSig < 'a0, > = (crate::global::Key, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2651usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_accelerator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_is_item_disabled(&self, menu_root: impl AsArg < GString >, idx: i32,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2652usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_is_item_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_is_item_hidden(&self, menu_root: impl AsArg < GString >, idx: i32,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2653usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_is_item_hidden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_tooltip(&self, menu_root: impl AsArg < GString >, idx: i32,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2654usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_state(&self, menu_root: impl AsArg < GString >, idx: i32,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2655usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_max_states(&self, menu_root: impl AsArg < GString >, idx: i32,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2656usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_max_states", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_icon(&self, menu_root: impl AsArg < GString >, idx: i32,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Texture2D > >, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2657usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_indentation_level(&self, menu_root: impl AsArg < GString >, idx: i32,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2658usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_indentation_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_checked(&mut self, menu_root: impl AsArg < GString >, idx: i32, checked: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, bool); + let args = (menu_root.into_arg(), idx, checked,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2659usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_checked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_checkable(&mut self, menu_root: impl AsArg < GString >, idx: i32, checkable: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, bool); + let args = (menu_root.into_arg(), idx, checkable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2660usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_radio_checkable(&mut self, menu_root: impl AsArg < GString >, idx: i32, checkable: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, bool); + let args = (menu_root.into_arg(), idx, checkable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2661usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_radio_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_callback(&mut self, menu_root: impl AsArg < GString >, idx: i32, callback: &Callable,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, i32, RefArg < 'a1, Callable >); + let args = (menu_root.into_arg(), idx, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2662usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_hover_callbacks(&mut self, menu_root: impl AsArg < GString >, idx: i32, callback: &Callable,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, i32, RefArg < 'a1, Callable >); + let args = (menu_root.into_arg(), idx, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2663usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_hover_callbacks", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_key_callback(&mut self, menu_root: impl AsArg < GString >, idx: i32, key_callback: &Callable,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, i32, RefArg < 'a1, Callable >); + let args = (menu_root.into_arg(), idx, RefArg::new(key_callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2664usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_key_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_tag(&mut self, menu_root: impl AsArg < GString >, idx: i32, tag: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, i32, RefArg < 'a1, Variant >); + let args = (menu_root.into_arg(), idx, RefArg::new(tag),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2665usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_tag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_text(&mut self, menu_root: impl AsArg < GString >, idx: i32, text: impl AsArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, i32, CowArg < 'a1, GString >); + let args = (menu_root.into_arg(), idx, text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2666usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_submenu(&mut self, menu_root: impl AsArg < GString >, idx: i32, submenu: impl AsArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, i32, CowArg < 'a1, GString >); + let args = (menu_root.into_arg(), idx, submenu.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2667usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_submenu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_accelerator(&mut self, menu_root: impl AsArg < GString >, idx: i32, keycode: crate::global::Key,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, crate::global::Key); + let args = (menu_root.into_arg(), idx, keycode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2668usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_accelerator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_disabled(&mut self, menu_root: impl AsArg < GString >, idx: i32, disabled: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, bool); + let args = (menu_root.into_arg(), idx, disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2669usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_hidden(&mut self, menu_root: impl AsArg < GString >, idx: i32, hidden: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, bool); + let args = (menu_root.into_arg(), idx, hidden,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2670usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_hidden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_tooltip(&mut self, menu_root: impl AsArg < GString >, idx: i32, tooltip: impl AsArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, i32, CowArg < 'a1, GString >); + let args = (menu_root.into_arg(), idx, tooltip.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2671usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_state(&mut self, menu_root: impl AsArg < GString >, idx: i32, state: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, i32); + let args = (menu_root.into_arg(), idx, state,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2672usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_max_states(&mut self, menu_root: impl AsArg < GString >, idx: i32, max_states: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, i32); + let args = (menu_root.into_arg(), idx, max_states,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2673usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_max_states", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_icon(&mut self, menu_root: impl AsArg < GString >, idx: i32, icon: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, ObjectArg < crate::classes::Texture2D >); + let args = (menu_root.into_arg(), idx, icon.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2674usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_set_item_indentation_level(&mut self, menu_root: impl AsArg < GString >, idx: i32, level: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, i32); + let args = (menu_root.into_arg(), idx, level,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2675usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_set_item_indentation_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_item_count(&self, menu_root: impl AsArg < GString >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >); + let args = (menu_root.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2676usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_item_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_remove_item(&mut self, menu_root: impl AsArg < GString >, idx: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32); + let args = (menu_root.into_arg(), idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2677usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_remove_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_clear(&mut self, menu_root: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (menu_root.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2678usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_menu_get_system_menu_roots(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2679usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "global_menu_get_system_menu_roots", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tts_is_speaking(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2680usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tts_is_speaking", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tts_is_paused(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2681usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tts_is_paused", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tts_get_voices(&self,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2682usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tts_get_voices", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tts_get_voices_for_language(&self, language: impl AsArg < GString >,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2683usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tts_get_voices_for_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn tts_speak_full(&mut self, text: CowArg < GString >, voice: CowArg < GString >, volume: i32, pitch: f32, rate: f32, utterance_id: i32, interrupt: bool,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, i32, f32, f32, i32, bool); + let args = (text, voice, volume, pitch, rate, utterance_id, interrupt,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2684usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tts_speak", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::tts_speak_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn tts_speak(&mut self, text: impl AsArg < GString >, voice: impl AsArg < GString >,) { + self.tts_speak_ex(text, voice,) . done() + } + #[inline] + pub fn tts_speak_ex < 'a > (&'a mut self, text: impl AsArg < GString > + 'a, voice: impl AsArg < GString > + 'a,) -> ExTtsSpeak < 'a > { + ExTtsSpeak::new(self, text, voice,) + } + pub fn tts_pause(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2685usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tts_pause", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tts_resume(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2686usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tts_resume", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tts_stop(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2687usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tts_stop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tts_set_utterance_callback(&mut self, event: crate::classes::display_server::TtsUtteranceEvent, callable: &Callable,) { + type CallSig < 'a0, > = ((), crate::classes::display_server::TtsUtteranceEvent, RefArg < 'a0, Callable >); + let args = (event, RefArg::new(callable),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2688usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tts_set_utterance_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_dark_mode_supported(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2689usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "is_dark_mode_supported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_dark_mode(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2690usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "is_dark_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_accent_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2691usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_accent_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_base_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2692usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_base_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_system_theme_change_callback(&mut self, callable: &Callable,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >); + let args = (RefArg::new(callable),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2693usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "set_system_theme_change_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mouse_set_mode(&mut self, mouse_mode: crate::classes::display_server::MouseMode,) { + type CallSig = ((), crate::classes::display_server::MouseMode); + let args = (mouse_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2694usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "mouse_set_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mouse_get_mode(&self,) -> crate::classes::display_server::MouseMode { + type CallSig = (crate::classes::display_server::MouseMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2695usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "mouse_get_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn warp_mouse(&mut self, position: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2696usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "warp_mouse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mouse_get_position(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2697usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "mouse_get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mouse_get_button_state(&self,) -> crate::global::MouseButtonMask { + type CallSig = (crate::global::MouseButtonMask,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2698usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "mouse_get_button_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clipboard_set(&mut self, clipboard: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (clipboard.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2699usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "clipboard_set", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clipboard_get(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2700usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "clipboard_get", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clipboard_get_image(&self,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2701usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "clipboard_get_image", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clipboard_has(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2702usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "clipboard_has", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clipboard_has_image(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2703usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "clipboard_has_image", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clipboard_set_primary(&mut self, clipboard_primary: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (clipboard_primary.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2704usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "clipboard_set_primary", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clipboard_get_primary(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2705usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "clipboard_get_primary", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_display_cutouts(&self,) -> Array < Rect2 > { + type CallSig = (Array < Rect2 >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2706usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_display_cutouts", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_display_safe_area(&self,) -> Rect2i { + type CallSig = (Rect2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2707usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_display_safe_area", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_screen_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2708usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_screen_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_primary_screen(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2709usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_primary_screen", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_keyboard_focus_screen(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2710usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_keyboard_focus_screen", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_screen_from_rect(&self, rect: Rect2,) -> i32 { + type CallSig = (i32, Rect2); + let args = (rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2711usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_screen_from_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn screen_get_position_full(&self, screen: i32,) -> Vector2i { + type CallSig = (Vector2i, i32); + let args = (screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2712usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_get_position", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_get_position_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_get_position(&self,) -> Vector2i { + self.screen_get_position_ex() . done() + } + #[inline] + pub fn screen_get_position_ex < 'a > (&'a self,) -> ExScreenGetPosition < 'a > { + ExScreenGetPosition::new(self,) + } + pub(crate) fn screen_get_size_full(&self, screen: i32,) -> Vector2i { + type CallSig = (Vector2i, i32); + let args = (screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2713usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_get_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_get_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_get_size(&self,) -> Vector2i { + self.screen_get_size_ex() . done() + } + #[inline] + pub fn screen_get_size_ex < 'a > (&'a self,) -> ExScreenGetSize < 'a > { + ExScreenGetSize::new(self,) + } + pub(crate) fn screen_get_usable_rect_full(&self, screen: i32,) -> Rect2i { + type CallSig = (Rect2i, i32); + let args = (screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2714usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_get_usable_rect", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_get_usable_rect_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_get_usable_rect(&self,) -> Rect2i { + self.screen_get_usable_rect_ex() . done() + } + #[inline] + pub fn screen_get_usable_rect_ex < 'a > (&'a self,) -> ExScreenGetUsableRect < 'a > { + ExScreenGetUsableRect::new(self,) + } + pub(crate) fn screen_get_dpi_full(&self, screen: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2715usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_get_dpi", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_get_dpi_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_get_dpi(&self,) -> i32 { + self.screen_get_dpi_ex() . done() + } + #[inline] + pub fn screen_get_dpi_ex < 'a > (&'a self,) -> ExScreenGetDpi < 'a > { + ExScreenGetDpi::new(self,) + } + pub(crate) fn screen_get_scale_full(&self, screen: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2716usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_get_scale", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_get_scale_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_get_scale(&self,) -> f32 { + self.screen_get_scale_ex() . done() + } + #[inline] + pub fn screen_get_scale_ex < 'a > (&'a self,) -> ExScreenGetScale < 'a > { + ExScreenGetScale::new(self,) + } + pub fn is_touchscreen_available(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2717usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "is_touchscreen_available", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn screen_get_max_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2718usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_get_max_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn screen_get_refresh_rate_full(&self, screen: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2719usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_get_refresh_rate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_get_refresh_rate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_get_refresh_rate(&self,) -> f32 { + self.screen_get_refresh_rate_ex() . done() + } + #[inline] + pub fn screen_get_refresh_rate_ex < 'a > (&'a self,) -> ExScreenGetRefreshRate < 'a > { + ExScreenGetRefreshRate::new(self,) + } + pub fn screen_get_pixel(&self, position: Vector2i,) -> Color { + type CallSig = (Color, Vector2i); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2720usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_get_pixel", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn screen_get_image_full(&self, screen: i32,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >, i32); + let args = (screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2721usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_get_image", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_get_image_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_get_image(&self,) -> Option < Gd < crate::classes::Image > > { + self.screen_get_image_ex() . done() + } + #[inline] + pub fn screen_get_image_ex < 'a > (&'a self,) -> ExScreenGetImage < 'a > { + ExScreenGetImage::new(self,) + } + pub(crate) fn screen_set_orientation_full(&mut self, orientation: crate::classes::display_server::ScreenOrientation, screen: i32,) { + type CallSig = ((), crate::classes::display_server::ScreenOrientation, i32); + let args = (orientation, screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2722usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_set_orientation", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_set_orientation_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_set_orientation(&mut self, orientation: crate::classes::display_server::ScreenOrientation,) { + self.screen_set_orientation_ex(orientation,) . done() + } + #[inline] + pub fn screen_set_orientation_ex < 'a > (&'a mut self, orientation: crate::classes::display_server::ScreenOrientation,) -> ExScreenSetOrientation < 'a > { + ExScreenSetOrientation::new(self, orientation,) + } + pub(crate) fn screen_get_orientation_full(&self, screen: i32,) -> crate::classes::display_server::ScreenOrientation { + type CallSig = (crate::classes::display_server::ScreenOrientation, i32); + let args = (screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2723usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_get_orientation", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_get_orientation_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_get_orientation(&self,) -> crate::classes::display_server::ScreenOrientation { + self.screen_get_orientation_ex() . done() + } + #[inline] + pub fn screen_get_orientation_ex < 'a > (&'a self,) -> ExScreenGetOrientation < 'a > { + ExScreenGetOrientation::new(self,) + } + pub fn screen_set_keep_on(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2724usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_set_keep_on", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn screen_is_kept_on(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2725usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "screen_is_kept_on", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_window_list(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2726usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_window_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_window_at_screen_position(&self, position: Vector2i,) -> i32 { + type CallSig = (i32, Vector2i); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2727usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_window_at_screen_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn window_get_native_handle_full(&self, handle_type: crate::classes::display_server::HandleType, window_id: i32,) -> i64 { + type CallSig = (i64, crate::classes::display_server::HandleType, i32); + let args = (handle_type, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2728usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_native_handle", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_native_handle_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_native_handle(&self, handle_type: crate::classes::display_server::HandleType,) -> i64 { + self.window_get_native_handle_ex(handle_type,) . done() + } + #[inline] + pub fn window_get_native_handle_ex < 'a > (&'a self, handle_type: crate::classes::display_server::HandleType,) -> ExWindowGetNativeHandle < 'a > { + ExWindowGetNativeHandle::new(self, handle_type,) + } + pub fn window_get_active_popup(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2729usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_active_popup", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn window_set_popup_safe_rect(&mut self, window: i32, rect: Rect2i,) { + type CallSig = ((), i32, Rect2i); + let args = (window, rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2730usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_popup_safe_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn window_get_popup_safe_rect(&self, window: i32,) -> Rect2i { + type CallSig = (Rect2i, i32); + let args = (window,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2731usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_popup_safe_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn window_set_title_full(&mut self, title: CowArg < GString >, window_id: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32); + let args = (title, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2732usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_title", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_title_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_title(&mut self, title: impl AsArg < GString >,) { + self.window_set_title_ex(title,) . done() + } + #[inline] + pub fn window_set_title_ex < 'a > (&'a mut self, title: impl AsArg < GString > + 'a,) -> ExWindowSetTitle < 'a > { + ExWindowSetTitle::new(self, title,) + } + pub(crate) fn window_get_title_size_full(&self, title: CowArg < GString >, window_id: i32,) -> Vector2i { + type CallSig < 'a0, > = (Vector2i, CowArg < 'a0, GString >, i32); + let args = (title, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2733usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_title_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_title_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_title_size(&self, title: impl AsArg < GString >,) -> Vector2i { + self.window_get_title_size_ex(title,) . done() + } + #[inline] + pub fn window_get_title_size_ex < 'a > (&'a self, title: impl AsArg < GString > + 'a,) -> ExWindowGetTitleSize < 'a > { + ExWindowGetTitleSize::new(self, title,) + } + pub(crate) fn window_set_mouse_passthrough_full(&mut self, region: RefArg < PackedVector2Array >, window_id: i32,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >, i32); + let args = (region, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2734usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_mouse_passthrough", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_mouse_passthrough_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_mouse_passthrough(&mut self, region: &PackedVector2Array,) { + self.window_set_mouse_passthrough_ex(region,) . done() + } + #[inline] + pub fn window_set_mouse_passthrough_ex < 'a > (&'a mut self, region: &'a PackedVector2Array,) -> ExWindowSetMousePassthrough < 'a > { + ExWindowSetMousePassthrough::new(self, region,) + } + pub(crate) fn window_get_current_screen_full(&self, window_id: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2735usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_current_screen", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_current_screen_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_current_screen(&self,) -> i32 { + self.window_get_current_screen_ex() . done() + } + #[inline] + pub fn window_get_current_screen_ex < 'a > (&'a self,) -> ExWindowGetCurrentScreen < 'a > { + ExWindowGetCurrentScreen::new(self,) + } + pub(crate) fn window_set_current_screen_full(&mut self, screen: i32, window_id: i32,) { + type CallSig = ((), i32, i32); + let args = (screen, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2736usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_current_screen", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_current_screen_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_current_screen(&mut self, screen: i32,) { + self.window_set_current_screen_ex(screen,) . done() + } + #[inline] + pub fn window_set_current_screen_ex < 'a > (&'a mut self, screen: i32,) -> ExWindowSetCurrentScreen < 'a > { + ExWindowSetCurrentScreen::new(self, screen,) + } + pub(crate) fn window_get_position_full(&self, window_id: i32,) -> Vector2i { + type CallSig = (Vector2i, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2737usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_position", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_position_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_position(&self,) -> Vector2i { + self.window_get_position_ex() . done() + } + #[inline] + pub fn window_get_position_ex < 'a > (&'a self,) -> ExWindowGetPosition < 'a > { + ExWindowGetPosition::new(self,) + } + pub(crate) fn window_get_position_with_decorations_full(&self, window_id: i32,) -> Vector2i { + type CallSig = (Vector2i, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2738usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_position_with_decorations", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_position_with_decorations_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_position_with_decorations(&self,) -> Vector2i { + self.window_get_position_with_decorations_ex() . done() + } + #[inline] + pub fn window_get_position_with_decorations_ex < 'a > (&'a self,) -> ExWindowGetPositionWithDecorations < 'a > { + ExWindowGetPositionWithDecorations::new(self,) + } + pub(crate) fn window_set_position_full(&mut self, position: Vector2i, window_id: i32,) { + type CallSig = ((), Vector2i, i32); + let args = (position, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2739usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_position", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_position_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_position(&mut self, position: Vector2i,) { + self.window_set_position_ex(position,) . done() + } + #[inline] + pub fn window_set_position_ex < 'a > (&'a mut self, position: Vector2i,) -> ExWindowSetPosition < 'a > { + ExWindowSetPosition::new(self, position,) + } + pub(crate) fn window_get_size_full(&self, window_id: i32,) -> Vector2i { + type CallSig = (Vector2i, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2740usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_size(&self,) -> Vector2i { + self.window_get_size_ex() . done() + } + #[inline] + pub fn window_get_size_ex < 'a > (&'a self,) -> ExWindowGetSize < 'a > { + ExWindowGetSize::new(self,) + } + pub(crate) fn window_set_size_full(&mut self, size: Vector2i, window_id: i32,) { + type CallSig = ((), Vector2i, i32); + let args = (size, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2741usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_size(&mut self, size: Vector2i,) { + self.window_set_size_ex(size,) . done() + } + #[inline] + pub fn window_set_size_ex < 'a > (&'a mut self, size: Vector2i,) -> ExWindowSetSize < 'a > { + ExWindowSetSize::new(self, size,) + } + pub(crate) fn window_set_rect_changed_callback_full(&mut self, callback: RefArg < Callable >, window_id: i32,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >, i32); + let args = (callback, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2742usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_rect_changed_callback", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_rect_changed_callback_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_rect_changed_callback(&mut self, callback: &Callable,) { + self.window_set_rect_changed_callback_ex(callback,) . done() + } + #[inline] + pub fn window_set_rect_changed_callback_ex < 'a > (&'a mut self, callback: &'a Callable,) -> ExWindowSetRectChangedCallback < 'a > { + ExWindowSetRectChangedCallback::new(self, callback,) + } + pub(crate) fn window_set_window_event_callback_full(&mut self, callback: RefArg < Callable >, window_id: i32,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >, i32); + let args = (callback, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2743usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_window_event_callback", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_window_event_callback_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_window_event_callback(&mut self, callback: &Callable,) { + self.window_set_window_event_callback_ex(callback,) . done() + } + #[inline] + pub fn window_set_window_event_callback_ex < 'a > (&'a mut self, callback: &'a Callable,) -> ExWindowSetWindowEventCallback < 'a > { + ExWindowSetWindowEventCallback::new(self, callback,) + } + pub(crate) fn window_set_input_event_callback_full(&mut self, callback: RefArg < Callable >, window_id: i32,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >, i32); + let args = (callback, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2744usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_input_event_callback", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_input_event_callback_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_input_event_callback(&mut self, callback: &Callable,) { + self.window_set_input_event_callback_ex(callback,) . done() + } + #[inline] + pub fn window_set_input_event_callback_ex < 'a > (&'a mut self, callback: &'a Callable,) -> ExWindowSetInputEventCallback < 'a > { + ExWindowSetInputEventCallback::new(self, callback,) + } + pub(crate) fn window_set_input_text_callback_full(&mut self, callback: RefArg < Callable >, window_id: i32,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >, i32); + let args = (callback, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2745usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_input_text_callback", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_input_text_callback_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_input_text_callback(&mut self, callback: &Callable,) { + self.window_set_input_text_callback_ex(callback,) . done() + } + #[inline] + pub fn window_set_input_text_callback_ex < 'a > (&'a mut self, callback: &'a Callable,) -> ExWindowSetInputTextCallback < 'a > { + ExWindowSetInputTextCallback::new(self, callback,) + } + pub(crate) fn window_set_drop_files_callback_full(&mut self, callback: RefArg < Callable >, window_id: i32,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >, i32); + let args = (callback, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2746usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_drop_files_callback", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_drop_files_callback_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_drop_files_callback(&mut self, callback: &Callable,) { + self.window_set_drop_files_callback_ex(callback,) . done() + } + #[inline] + pub fn window_set_drop_files_callback_ex < 'a > (&'a mut self, callback: &'a Callable,) -> ExWindowSetDropFilesCallback < 'a > { + ExWindowSetDropFilesCallback::new(self, callback,) + } + pub(crate) fn window_get_attached_instance_id_full(&self, window_id: i32,) -> u64 { + type CallSig = (u64, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2747usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_attached_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_attached_instance_id_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_attached_instance_id(&self,) -> u64 { + self.window_get_attached_instance_id_ex() . done() + } + #[inline] + pub fn window_get_attached_instance_id_ex < 'a > (&'a self,) -> ExWindowGetAttachedInstanceId < 'a > { + ExWindowGetAttachedInstanceId::new(self,) + } + pub(crate) fn window_get_max_size_full(&self, window_id: i32,) -> Vector2i { + type CallSig = (Vector2i, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2748usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_max_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_max_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_max_size(&self,) -> Vector2i { + self.window_get_max_size_ex() . done() + } + #[inline] + pub fn window_get_max_size_ex < 'a > (&'a self,) -> ExWindowGetMaxSize < 'a > { + ExWindowGetMaxSize::new(self,) + } + pub(crate) fn window_set_max_size_full(&mut self, max_size: Vector2i, window_id: i32,) { + type CallSig = ((), Vector2i, i32); + let args = (max_size, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2749usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_max_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_max_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_max_size(&mut self, max_size: Vector2i,) { + self.window_set_max_size_ex(max_size,) . done() + } + #[inline] + pub fn window_set_max_size_ex < 'a > (&'a mut self, max_size: Vector2i,) -> ExWindowSetMaxSize < 'a > { + ExWindowSetMaxSize::new(self, max_size,) + } + pub(crate) fn window_get_min_size_full(&self, window_id: i32,) -> Vector2i { + type CallSig = (Vector2i, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2750usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_min_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_min_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_min_size(&self,) -> Vector2i { + self.window_get_min_size_ex() . done() + } + #[inline] + pub fn window_get_min_size_ex < 'a > (&'a self,) -> ExWindowGetMinSize < 'a > { + ExWindowGetMinSize::new(self,) + } + pub(crate) fn window_set_min_size_full(&mut self, min_size: Vector2i, window_id: i32,) { + type CallSig = ((), Vector2i, i32); + let args = (min_size, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2751usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_min_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_min_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_min_size(&mut self, min_size: Vector2i,) { + self.window_set_min_size_ex(min_size,) . done() + } + #[inline] + pub fn window_set_min_size_ex < 'a > (&'a mut self, min_size: Vector2i,) -> ExWindowSetMinSize < 'a > { + ExWindowSetMinSize::new(self, min_size,) + } + pub(crate) fn window_get_size_with_decorations_full(&self, window_id: i32,) -> Vector2i { + type CallSig = (Vector2i, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2752usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_size_with_decorations", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_size_with_decorations_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_size_with_decorations(&self,) -> Vector2i { + self.window_get_size_with_decorations_ex() . done() + } + #[inline] + pub fn window_get_size_with_decorations_ex < 'a > (&'a self,) -> ExWindowGetSizeWithDecorations < 'a > { + ExWindowGetSizeWithDecorations::new(self,) + } + pub(crate) fn window_get_mode_full(&self, window_id: i32,) -> crate::classes::display_server::WindowMode { + type CallSig = (crate::classes::display_server::WindowMode, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2753usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_mode", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_mode_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_mode(&self,) -> crate::classes::display_server::WindowMode { + self.window_get_mode_ex() . done() + } + #[inline] + pub fn window_get_mode_ex < 'a > (&'a self,) -> ExWindowGetMode < 'a > { + ExWindowGetMode::new(self,) + } + pub(crate) fn window_set_mode_full(&mut self, mode: crate::classes::display_server::WindowMode, window_id: i32,) { + type CallSig = ((), crate::classes::display_server::WindowMode, i32); + let args = (mode, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2754usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_mode", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_mode_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_mode(&mut self, mode: crate::classes::display_server::WindowMode,) { + self.window_set_mode_ex(mode,) . done() + } + #[inline] + pub fn window_set_mode_ex < 'a > (&'a mut self, mode: crate::classes::display_server::WindowMode,) -> ExWindowSetMode < 'a > { + ExWindowSetMode::new(self, mode,) + } + pub(crate) fn window_set_flag_full(&mut self, flag: crate::classes::display_server::WindowFlags, enabled: bool, window_id: i32,) { + type CallSig = ((), crate::classes::display_server::WindowFlags, bool, i32); + let args = (flag, enabled, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2755usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_flag", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_flag_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_flag(&mut self, flag: crate::classes::display_server::WindowFlags, enabled: bool,) { + self.window_set_flag_ex(flag, enabled,) . done() + } + #[inline] + pub fn window_set_flag_ex < 'a > (&'a mut self, flag: crate::classes::display_server::WindowFlags, enabled: bool,) -> ExWindowSetFlag < 'a > { + ExWindowSetFlag::new(self, flag, enabled,) + } + pub(crate) fn window_get_flag_full(&self, flag: crate::classes::display_server::WindowFlags, window_id: i32,) -> bool { + type CallSig = (bool, crate::classes::display_server::WindowFlags, i32); + let args = (flag, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2756usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_flag", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_flag_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_flag(&self, flag: crate::classes::display_server::WindowFlags,) -> bool { + self.window_get_flag_ex(flag,) . done() + } + #[inline] + pub fn window_get_flag_ex < 'a > (&'a self, flag: crate::classes::display_server::WindowFlags,) -> ExWindowGetFlag < 'a > { + ExWindowGetFlag::new(self, flag,) + } + pub(crate) fn window_set_window_buttons_offset_full(&mut self, offset: Vector2i, window_id: i32,) { + type CallSig = ((), Vector2i, i32); + let args = (offset, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2757usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_window_buttons_offset", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_window_buttons_offset_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_window_buttons_offset(&mut self, offset: Vector2i,) { + self.window_set_window_buttons_offset_ex(offset,) . done() + } + #[inline] + pub fn window_set_window_buttons_offset_ex < 'a > (&'a mut self, offset: Vector2i,) -> ExWindowSetWindowButtonsOffset < 'a > { + ExWindowSetWindowButtonsOffset::new(self, offset,) + } + pub(crate) fn window_get_safe_title_margins_full(&self, window_id: i32,) -> Vector3i { + type CallSig = (Vector3i, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2758usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_safe_title_margins", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_safe_title_margins_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_safe_title_margins(&self,) -> Vector3i { + self.window_get_safe_title_margins_ex() . done() + } + #[inline] + pub fn window_get_safe_title_margins_ex < 'a > (&'a self,) -> ExWindowGetSafeTitleMargins < 'a > { + ExWindowGetSafeTitleMargins::new(self,) + } + pub(crate) fn window_request_attention_full(&mut self, window_id: i32,) { + type CallSig = ((), i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2759usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_request_attention", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_request_attention_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_request_attention(&mut self,) { + self.window_request_attention_ex() . done() + } + #[inline] + pub fn window_request_attention_ex < 'a > (&'a mut self,) -> ExWindowRequestAttention < 'a > { + ExWindowRequestAttention::new(self,) + } + pub(crate) fn window_move_to_foreground_full(&mut self, window_id: i32,) { + type CallSig = ((), i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2760usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_move_to_foreground", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_move_to_foreground_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_move_to_foreground(&mut self,) { + self.window_move_to_foreground_ex() . done() + } + #[inline] + pub fn window_move_to_foreground_ex < 'a > (&'a mut self,) -> ExWindowMoveToForeground < 'a > { + ExWindowMoveToForeground::new(self,) + } + pub(crate) fn window_is_focused_full(&self, window_id: i32,) -> bool { + type CallSig = (bool, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2761usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_is_focused", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_is_focused_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_is_focused(&self,) -> bool { + self.window_is_focused_ex() . done() + } + #[inline] + pub fn window_is_focused_ex < 'a > (&'a self,) -> ExWindowIsFocused < 'a > { + ExWindowIsFocused::new(self,) + } + pub(crate) fn window_can_draw_full(&self, window_id: i32,) -> bool { + type CallSig = (bool, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2762usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_can_draw", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_can_draw_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_can_draw(&self,) -> bool { + self.window_can_draw_ex() . done() + } + #[inline] + pub fn window_can_draw_ex < 'a > (&'a self,) -> ExWindowCanDraw < 'a > { + ExWindowCanDraw::new(self,) + } + pub fn window_set_transient(&mut self, window_id: i32, parent_window_id: i32,) { + type CallSig = ((), i32, i32); + let args = (window_id, parent_window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2763usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_transient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn window_set_exclusive(&mut self, window_id: i32, exclusive: bool,) { + type CallSig = ((), i32, bool); + let args = (window_id, exclusive,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2764usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_exclusive", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn window_set_ime_active_full(&mut self, active: bool, window_id: i32,) { + type CallSig = ((), bool, i32); + let args = (active, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2765usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_ime_active", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_ime_active_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_ime_active(&mut self, active: bool,) { + self.window_set_ime_active_ex(active,) . done() + } + #[inline] + pub fn window_set_ime_active_ex < 'a > (&'a mut self, active: bool,) -> ExWindowSetImeActive < 'a > { + ExWindowSetImeActive::new(self, active,) + } + pub(crate) fn window_set_ime_position_full(&mut self, position: Vector2i, window_id: i32,) { + type CallSig = ((), Vector2i, i32); + let args = (position, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2766usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_ime_position", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_ime_position_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_ime_position(&mut self, position: Vector2i,) { + self.window_set_ime_position_ex(position,) . done() + } + #[inline] + pub fn window_set_ime_position_ex < 'a > (&'a mut self, position: Vector2i,) -> ExWindowSetImePosition < 'a > { + ExWindowSetImePosition::new(self, position,) + } + pub(crate) fn window_set_vsync_mode_full(&mut self, vsync_mode: crate::classes::display_server::VSyncMode, window_id: i32,) { + type CallSig = ((), crate::classes::display_server::VSyncMode, i32); + let args = (vsync_mode, window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2767usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_set_vsync_mode", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_set_vsync_mode_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_set_vsync_mode(&mut self, vsync_mode: crate::classes::display_server::VSyncMode,) { + self.window_set_vsync_mode_ex(vsync_mode,) . done() + } + #[inline] + pub fn window_set_vsync_mode_ex < 'a > (&'a mut self, vsync_mode: crate::classes::display_server::VSyncMode,) -> ExWindowSetVSyncMode < 'a > { + ExWindowSetVSyncMode::new(self, vsync_mode,) + } + pub(crate) fn window_get_vsync_mode_full(&self, window_id: i32,) -> crate::classes::display_server::VSyncMode { + type CallSig = (crate::classes::display_server::VSyncMode, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2768usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_get_vsync_mode", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_get_vsync_mode_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_get_vsync_mode(&self,) -> crate::classes::display_server::VSyncMode { + self.window_get_vsync_mode_ex() . done() + } + #[inline] + pub fn window_get_vsync_mode_ex < 'a > (&'a self,) -> ExWindowGetVSyncMode < 'a > { + ExWindowGetVSyncMode::new(self,) + } + pub(crate) fn window_is_maximize_allowed_full(&self, window_id: i32,) -> bool { + type CallSig = (bool, i32); + let args = (window_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2769usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_is_maximize_allowed", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::window_is_maximize_allowed_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn window_is_maximize_allowed(&self,) -> bool { + self.window_is_maximize_allowed_ex() . done() + } + #[inline] + pub fn window_is_maximize_allowed_ex < 'a > (&'a self,) -> ExWindowIsMaximizeAllowed < 'a > { + ExWindowIsMaximizeAllowed::new(self,) + } + pub fn window_maximize_on_title_dbl_click(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2770usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_maximize_on_title_dbl_click", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn window_minimize_on_title_dbl_click(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2771usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "window_minimize_on_title_dbl_click", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn ime_get_selection(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2772usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "ime_get_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn ime_get_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2773usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "ime_get_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn virtual_keyboard_show_full(&mut self, existing_text: CowArg < GString >, position: Rect2, type_: crate::classes::display_server::VirtualKeyboardType, max_length: i32, cursor_start: i32, cursor_end: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, Rect2, crate::classes::display_server::VirtualKeyboardType, i32, i32, i32); + let args = (existing_text, position, type_, max_length, cursor_start, cursor_end,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2774usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "virtual_keyboard_show", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::virtual_keyboard_show_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn virtual_keyboard_show(&mut self, existing_text: impl AsArg < GString >,) { + self.virtual_keyboard_show_ex(existing_text,) . done() + } + #[inline] + pub fn virtual_keyboard_show_ex < 'a > (&'a mut self, existing_text: impl AsArg < GString > + 'a,) -> ExVirtualKeyboardShow < 'a > { + ExVirtualKeyboardShow::new(self, existing_text,) + } + pub fn virtual_keyboard_hide(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2775usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "virtual_keyboard_hide", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn virtual_keyboard_get_height(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2776usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "virtual_keyboard_get_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn cursor_set_shape(&mut self, shape: crate::classes::display_server::CursorShape,) { + type CallSig = ((), crate::classes::display_server::CursorShape); + let args = (shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2777usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "cursor_set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn cursor_get_shape(&self,) -> crate::classes::display_server::CursorShape { + type CallSig = (crate::classes::display_server::CursorShape,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2778usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "cursor_get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn cursor_set_custom_image_full(&mut self, cursor: ObjectArg < crate::classes::Resource >, shape: crate::classes::display_server::CursorShape, hotspot: Vector2,) { + type CallSig = ((), ObjectArg < crate::classes::Resource >, crate::classes::display_server::CursorShape, Vector2); + let args = (cursor, shape, hotspot,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2779usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "cursor_set_custom_image", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::cursor_set_custom_image_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn cursor_set_custom_image(&mut self, cursor: impl AsObjectArg < crate::classes::Resource >,) { + self.cursor_set_custom_image_ex(cursor,) . done() + } + #[inline] + pub fn cursor_set_custom_image_ex < 'a > (&'a mut self, cursor: impl AsObjectArg < crate::classes::Resource >,) -> ExCursorSetCustomImage < 'a > { + ExCursorSetCustomImage::new(self, cursor,) + } + pub fn get_swap_cancel_ok(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2780usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "get_swap_cancel_ok", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn enable_for_stealing_focus(&mut self, process_id: i64,) { + type CallSig = ((), i64); + let args = (process_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2781usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "enable_for_stealing_focus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn dialog_show(&mut self, title: impl AsArg < GString >, description: impl AsArg < GString >, buttons: &PackedStringArray, callback: &Callable,) -> crate::global::Error { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >, RefArg < 'a2, PackedStringArray >, RefArg < 'a3, Callable >); + let args = (title.into_arg(), description.into_arg(), RefArg::new(buttons), RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2782usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "dialog_show", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn dialog_input_text(&mut self, title: impl AsArg < GString >, description: impl AsArg < GString >, existing_text: impl AsArg < GString >, callback: &Callable,) -> crate::global::Error { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >, CowArg < 'a2, GString >, RefArg < 'a3, Callable >); + let args = (title.into_arg(), description.into_arg(), existing_text.into_arg(), RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2783usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "dialog_input_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn file_dialog_show(&mut self, title: impl AsArg < GString >, current_directory: impl AsArg < GString >, filename: impl AsArg < GString >, show_hidden: bool, mode: crate::classes::display_server::FileDialogMode, filters: &PackedStringArray, callback: &Callable,) -> crate::global::Error { + type CallSig < 'a0, 'a1, 'a2, 'a3, 'a4, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >, CowArg < 'a2, GString >, bool, crate::classes::display_server::FileDialogMode, RefArg < 'a3, PackedStringArray >, RefArg < 'a4, Callable >); + let args = (title.into_arg(), current_directory.into_arg(), filename.into_arg(), show_hidden, mode, RefArg::new(filters), RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2784usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "file_dialog_show", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn file_dialog_with_options_show(&mut self, title: impl AsArg < GString >, current_directory: impl AsArg < GString >, root: impl AsArg < GString >, filename: impl AsArg < GString >, show_hidden: bool, mode: crate::classes::display_server::FileDialogMode, filters: &PackedStringArray, options: &Array < Dictionary >, callback: &Callable,) -> crate::global::Error { + type CallSig < 'a0, 'a1, 'a2, 'a3, 'a4, 'a5, 'a6, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >, CowArg < 'a2, GString >, CowArg < 'a3, GString >, bool, crate::classes::display_server::FileDialogMode, RefArg < 'a4, PackedStringArray >, RefArg < 'a5, Array < Dictionary > >, RefArg < 'a6, Callable >); + let args = (title.into_arg(), current_directory.into_arg(), root.into_arg(), filename.into_arg(), show_hidden, mode, RefArg::new(filters), RefArg::new(options), RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2785usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "file_dialog_with_options_show", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn keyboard_get_layout_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2786usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "keyboard_get_layout_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn keyboard_get_current_layout(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2787usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "keyboard_get_current_layout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn keyboard_set_current_layout(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2788usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "keyboard_set_current_layout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn keyboard_get_layout_language(&self, index: i32,) -> GString { + type CallSig = (GString, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2789usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "keyboard_get_layout_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn keyboard_get_layout_name(&self, index: i32,) -> GString { + type CallSig = (GString, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2790usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "keyboard_get_layout_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn keyboard_get_keycode_from_physical(&self, keycode: crate::global::Key,) -> crate::global::Key { + type CallSig = (crate::global::Key, crate::global::Key); + let args = (keycode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2791usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "keyboard_get_keycode_from_physical", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn keyboard_get_label_from_physical(&self, keycode: crate::global::Key,) -> crate::global::Key { + type CallSig = (crate::global::Key, crate::global::Key); + let args = (keycode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2792usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "keyboard_get_label_from_physical", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn process_events(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2793usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "process_events", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_process_and_drop_events(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2794usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "force_process_and_drop_events", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_native_icon(&mut self, filename: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (filename.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2795usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "set_native_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_icon(&mut self, image: impl AsObjectArg < crate::classes::Image >,) { + type CallSig = ((), ObjectArg < crate::classes::Image >); + let args = (image.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2796usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "set_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_status_indicator(&mut self, icon: impl AsObjectArg < crate::classes::Texture2D >, tooltip: impl AsArg < GString >, callback: &Callable,) -> i32 { + type CallSig < 'a0, 'a1, > = (i32, ObjectArg < crate::classes::Texture2D >, CowArg < 'a0, GString >, RefArg < 'a1, Callable >); + let args = (icon.as_object_arg(), tooltip.into_arg(), RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2797usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "create_status_indicator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn status_indicator_set_icon(&mut self, id: i32, icon: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Texture2D >); + let args = (id, icon.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2798usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "status_indicator_set_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn status_indicator_set_tooltip(&mut self, id: i32, tooltip: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (id, tooltip.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2799usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "status_indicator_set_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn status_indicator_set_menu(&mut self, id: i32, menu_rid: Rid,) { + type CallSig = ((), i32, Rid); + let args = (id, menu_rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2800usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "status_indicator_set_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn status_indicator_set_callback(&mut self, id: i32, callback: &Callable,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, Callable >); + let args = (id, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2801usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "status_indicator_set_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn status_indicator_get_rect(&self, id: i32,) -> Rect2 { + type CallSig = (Rect2, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2802usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "status_indicator_get_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn delete_status_indicator(&mut self, id: i32,) { + type CallSig = ((), i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2803usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "delete_status_indicator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tablet_get_driver_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2804usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tablet_get_driver_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tablet_get_driver_name(&self, idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2805usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tablet_get_driver_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tablet_get_current_driver(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2806usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tablet_get_current_driver", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tablet_set_current_driver(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2807usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "tablet_set_current_driver", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_window_transparency_available(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2808usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "is_window_transparency_available", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn register_additional_output(&mut self, object: impl AsObjectArg < crate::classes::Object >,) { + type CallSig = ((), ObjectArg < crate::classes::Object >); + let args = (object.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2809usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "register_additional_output", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unregister_additional_output(&mut self, object: impl AsObjectArg < crate::classes::Object >,) { + type CallSig = ((), ObjectArg < crate::classes::Object >); + let args = (object.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2810usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "unregister_additional_output", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_additional_outputs(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2811usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DisplayServer", "has_additional_outputs", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const SCREEN_WITH_MOUSE_FOCUS: i32 = - 4i32; + pub const SCREEN_WITH_KEYBOARD_FOCUS: i32 = - 3i32; + pub const SCREEN_PRIMARY: i32 = - 2i32; + pub const SCREEN_OF_MAIN_WINDOW: i32 = - 1i32; + pub const MAIN_WINDOW_ID: i32 = 0i32; + pub const INVALID_WINDOW_ID: i32 = - 1i32; + pub const INVALID_INDICATOR_ID: i32 = - 1i32; + + } + impl crate::obj::GodotClass for DisplayServer { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"DisplayServer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for DisplayServer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for DisplayServer { + + } + impl std::ops::Deref for DisplayServer { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for DisplayServer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`DisplayServer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_DisplayServer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::DisplayServer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`DisplayServer::global_menu_add_submenu_item_ex`][super::DisplayServer::global_menu_add_submenu_item_ex]."] +#[must_use] +pub struct ExGlobalMenuAddSubmenuItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, menu_root: CowArg < 'a, GString >, label: CowArg < 'a, GString >, submenu: CowArg < 'a, GString >, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGlobalMenuAddSubmenuItem < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, menu_root: impl AsArg < GString > + 'a, label: impl AsArg < GString > + 'a, submenu: impl AsArg < GString > + 'a,) -> Self { + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, menu_root: menu_root.into_arg(), label: label.into_arg(), submenu: submenu.into_arg(), index: index, + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, menu_root, label, submenu, index, + } + = self; + re_export::DisplayServer::global_menu_add_submenu_item_full(surround_object, menu_root, label, submenu, index,) + } +} +#[doc = "Default-param extender for [`DisplayServer::global_menu_add_item_ex`][super::DisplayServer::global_menu_add_item_ex]."] +#[must_use] +pub struct ExGlobalMenuAddItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, menu_root: CowArg < 'a, GString >, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGlobalMenuAddItem < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, menu_root: impl AsArg < GString > + 'a, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, menu_root: menu_root.into_arg(), label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, menu_root, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::DisplayServer::global_menu_add_item_full(surround_object, menu_root, label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`DisplayServer::global_menu_add_check_item_ex`][super::DisplayServer::global_menu_add_check_item_ex]."] +#[must_use] +pub struct ExGlobalMenuAddCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, menu_root: CowArg < 'a, GString >, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGlobalMenuAddCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, menu_root: impl AsArg < GString > + 'a, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, menu_root: menu_root.into_arg(), label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, menu_root, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::DisplayServer::global_menu_add_check_item_full(surround_object, menu_root, label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`DisplayServer::global_menu_add_icon_item_ex`][super::DisplayServer::global_menu_add_icon_item_ex]."] +#[must_use] +pub struct ExGlobalMenuAddIconItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, menu_root: CowArg < 'a, GString >, icon: ObjectCow < crate::classes::Texture2D >, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGlobalMenuAddIconItem < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, menu_root: impl AsArg < GString > + 'a, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, menu_root: menu_root.into_arg(), icon: icon.consume_arg(), label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, menu_root, icon, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::DisplayServer::global_menu_add_icon_item_full(surround_object, menu_root, icon.cow_as_object_arg(), label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`DisplayServer::global_menu_add_icon_check_item_ex`][super::DisplayServer::global_menu_add_icon_check_item_ex]."] +#[must_use] +pub struct ExGlobalMenuAddIconCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, menu_root: CowArg < 'a, GString >, icon: ObjectCow < crate::classes::Texture2D >, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGlobalMenuAddIconCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, menu_root: impl AsArg < GString > + 'a, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, menu_root: menu_root.into_arg(), icon: icon.consume_arg(), label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, menu_root, icon, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::DisplayServer::global_menu_add_icon_check_item_full(surround_object, menu_root, icon.cow_as_object_arg(), label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`DisplayServer::global_menu_add_radio_check_item_ex`][super::DisplayServer::global_menu_add_radio_check_item_ex]."] +#[must_use] +pub struct ExGlobalMenuAddRadioCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, menu_root: CowArg < 'a, GString >, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGlobalMenuAddRadioCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, menu_root: impl AsArg < GString > + 'a, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, menu_root: menu_root.into_arg(), label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, menu_root, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::DisplayServer::global_menu_add_radio_check_item_full(surround_object, menu_root, label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`DisplayServer::global_menu_add_icon_radio_check_item_ex`][super::DisplayServer::global_menu_add_icon_radio_check_item_ex]."] +#[must_use] +pub struct ExGlobalMenuAddIconRadioCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, menu_root: CowArg < 'a, GString >, icon: ObjectCow < crate::classes::Texture2D >, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGlobalMenuAddIconRadioCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, menu_root: impl AsArg < GString > + 'a, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, menu_root: menu_root.into_arg(), icon: icon.consume_arg(), label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, menu_root, icon, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::DisplayServer::global_menu_add_icon_radio_check_item_full(surround_object, menu_root, icon.cow_as_object_arg(), label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`DisplayServer::global_menu_add_multistate_item_ex`][super::DisplayServer::global_menu_add_multistate_item_ex]."] +#[must_use] +pub struct ExGlobalMenuAddMultistateItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, menu_root: CowArg < 'a, GString >, label: CowArg < 'a, GString >, max_states: i32, default_state: i32, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGlobalMenuAddMultistateItem < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, menu_root: impl AsArg < GString > + 'a, label: impl AsArg < GString > + 'a, max_states: i32, default_state: i32,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, menu_root: menu_root.into_arg(), label: label.into_arg(), max_states: max_states, default_state: default_state, callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, menu_root, label, max_states, default_state, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::DisplayServer::global_menu_add_multistate_item_full(surround_object, menu_root, label, max_states, default_state, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`DisplayServer::global_menu_add_separator_ex`][super::DisplayServer::global_menu_add_separator_ex]."] +#[must_use] +pub struct ExGlobalMenuAddSeparator < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, menu_root: CowArg < 'a, GString >, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGlobalMenuAddSeparator < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, menu_root: impl AsArg < GString > + 'a,) -> Self { + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, menu_root: menu_root.into_arg(), index: index, + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, menu_root, index, + } + = self; + re_export::DisplayServer::global_menu_add_separator_full(surround_object, menu_root, index,) + } +} +#[doc = "Default-param extender for [`DisplayServer::tts_speak_ex`][super::DisplayServer::tts_speak_ex]."] +#[must_use] +pub struct ExTtsSpeak < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, text: CowArg < 'a, GString >, voice: CowArg < 'a, GString >, volume: i32, pitch: f32, rate: f32, utterance_id: i32, interrupt: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTtsSpeak < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, text: impl AsArg < GString > + 'a, voice: impl AsArg < GString > + 'a,) -> Self { + let volume = 50i32; + let pitch = 1f32; + let rate = 1f32; + let utterance_id = 0i32; + let interrupt = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, text: text.into_arg(), voice: voice.into_arg(), volume: volume, pitch: pitch, rate: rate, utterance_id: utterance_id, interrupt: interrupt, + } + } + #[inline] + pub fn volume(self, volume: i32) -> Self { + Self { + volume: volume, .. self + } + } + #[inline] + pub fn pitch(self, pitch: f32) -> Self { + Self { + pitch: pitch, .. self + } + } + #[inline] + pub fn rate(self, rate: f32) -> Self { + Self { + rate: rate, .. self + } + } + #[inline] + pub fn utterance_id(self, utterance_id: i32) -> Self { + Self { + utterance_id: utterance_id, .. self + } + } + #[inline] + pub fn interrupt(self, interrupt: bool) -> Self { + Self { + interrupt: interrupt, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, text, voice, volume, pitch, rate, utterance_id, interrupt, + } + = self; + re_export::DisplayServer::tts_speak_full(surround_object, text, voice, volume, pitch, rate, utterance_id, interrupt,) + } +} +#[doc = "Default-param extender for [`DisplayServer::screen_get_position_ex`][super::DisplayServer::screen_get_position_ex]."] +#[must_use] +pub struct ExScreenGetPosition < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenGetPosition < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let screen = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) -> Vector2i { + let Self { + _phantom, surround_object, screen, + } + = self; + re_export::DisplayServer::screen_get_position_full(surround_object, screen,) + } +} +#[doc = "Default-param extender for [`DisplayServer::screen_get_size_ex`][super::DisplayServer::screen_get_size_ex]."] +#[must_use] +pub struct ExScreenGetSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenGetSize < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let screen = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) -> Vector2i { + let Self { + _phantom, surround_object, screen, + } + = self; + re_export::DisplayServer::screen_get_size_full(surround_object, screen,) + } +} +#[doc = "Default-param extender for [`DisplayServer::screen_get_usable_rect_ex`][super::DisplayServer::screen_get_usable_rect_ex]."] +#[must_use] +pub struct ExScreenGetUsableRect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenGetUsableRect < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let screen = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) -> Rect2i { + let Self { + _phantom, surround_object, screen, + } + = self; + re_export::DisplayServer::screen_get_usable_rect_full(surround_object, screen,) + } +} +#[doc = "Default-param extender for [`DisplayServer::screen_get_dpi_ex`][super::DisplayServer::screen_get_dpi_ex]."] +#[must_use] +pub struct ExScreenGetDpi < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenGetDpi < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let screen = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, screen, + } + = self; + re_export::DisplayServer::screen_get_dpi_full(surround_object, screen,) + } +} +#[doc = "Default-param extender for [`DisplayServer::screen_get_scale_ex`][super::DisplayServer::screen_get_scale_ex]."] +#[must_use] +pub struct ExScreenGetScale < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenGetScale < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let screen = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, screen, + } + = self; + re_export::DisplayServer::screen_get_scale_full(surround_object, screen,) + } +} +#[doc = "Default-param extender for [`DisplayServer::screen_get_refresh_rate_ex`][super::DisplayServer::screen_get_refresh_rate_ex]."] +#[must_use] +pub struct ExScreenGetRefreshRate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenGetRefreshRate < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let screen = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, screen, + } + = self; + re_export::DisplayServer::screen_get_refresh_rate_full(surround_object, screen,) + } +} +#[doc = "Default-param extender for [`DisplayServer::screen_get_image_ex`][super::DisplayServer::screen_get_image_ex]."] +#[must_use] +pub struct ExScreenGetImage < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenGetImage < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let screen = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Image > > { + let Self { + _phantom, surround_object, screen, + } + = self; + re_export::DisplayServer::screen_get_image_full(surround_object, screen,) + } +} +#[doc = "Default-param extender for [`DisplayServer::screen_set_orientation_ex`][super::DisplayServer::screen_set_orientation_ex]."] +#[must_use] +pub struct ExScreenSetOrientation < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, orientation: crate::classes::display_server::ScreenOrientation, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenSetOrientation < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, orientation: crate::classes::display_server::ScreenOrientation,) -> Self { + let screen = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, orientation: orientation, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, orientation, screen, + } + = self; + re_export::DisplayServer::screen_set_orientation_full(surround_object, orientation, screen,) + } +} +#[doc = "Default-param extender for [`DisplayServer::screen_get_orientation_ex`][super::DisplayServer::screen_get_orientation_ex]."] +#[must_use] +pub struct ExScreenGetOrientation < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenGetOrientation < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let screen = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) -> crate::classes::display_server::ScreenOrientation { + let Self { + _phantom, surround_object, screen, + } + = self; + re_export::DisplayServer::screen_get_orientation_full(surround_object, screen,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_native_handle_ex`][super::DisplayServer::window_get_native_handle_ex]."] +#[must_use] +pub struct ExWindowGetNativeHandle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, handle_type: crate::classes::display_server::HandleType, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetNativeHandle < 'a > { + fn new(surround_object: &'a re_export::DisplayServer, handle_type: crate::classes::display_server::HandleType,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, handle_type: handle_type, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> i64 { + let Self { + _phantom, surround_object, handle_type, window_id, + } + = self; + re_export::DisplayServer::window_get_native_handle_full(surround_object, handle_type, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_title_ex`][super::DisplayServer::window_set_title_ex]."] +#[must_use] +pub struct ExWindowSetTitle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, title: CowArg < 'a, GString >, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetTitle < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, title: impl AsArg < GString > + 'a,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, title: title.into_arg(), window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, title, window_id, + } + = self; + re_export::DisplayServer::window_set_title_full(surround_object, title, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_title_size_ex`][super::DisplayServer::window_get_title_size_ex]."] +#[must_use] +pub struct ExWindowGetTitleSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, title: CowArg < 'a, GString >, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetTitleSize < 'a > { + fn new(surround_object: &'a re_export::DisplayServer, title: impl AsArg < GString > + 'a,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, title: title.into_arg(), window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> Vector2i { + let Self { + _phantom, surround_object, title, window_id, + } + = self; + re_export::DisplayServer::window_get_title_size_full(surround_object, title, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_mouse_passthrough_ex`][super::DisplayServer::window_set_mouse_passthrough_ex]."] +#[must_use] +pub struct ExWindowSetMousePassthrough < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, region: CowArg < 'a, PackedVector2Array >, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetMousePassthrough < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, region: &'a PackedVector2Array,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, region: CowArg::Borrowed(region), window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, region, window_id, + } + = self; + re_export::DisplayServer::window_set_mouse_passthrough_full(surround_object, region.cow_as_arg(), window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_current_screen_ex`][super::DisplayServer::window_get_current_screen_ex]."] +#[must_use] +pub struct ExWindowGetCurrentScreen < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetCurrentScreen < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_get_current_screen_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_current_screen_ex`][super::DisplayServer::window_set_current_screen_ex]."] +#[must_use] +pub struct ExWindowSetCurrentScreen < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, screen: i32, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetCurrentScreen < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, screen: i32,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, screen, window_id, + } + = self; + re_export::DisplayServer::window_set_current_screen_full(surround_object, screen, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_position_ex`][super::DisplayServer::window_get_position_ex]."] +#[must_use] +pub struct ExWindowGetPosition < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetPosition < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> Vector2i { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_get_position_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_position_with_decorations_ex`][super::DisplayServer::window_get_position_with_decorations_ex]."] +#[must_use] +pub struct ExWindowGetPositionWithDecorations < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetPositionWithDecorations < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> Vector2i { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_get_position_with_decorations_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_position_ex`][super::DisplayServer::window_set_position_ex]."] +#[must_use] +pub struct ExWindowSetPosition < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, position: Vector2i, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetPosition < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, position: Vector2i,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, window_id, + } + = self; + re_export::DisplayServer::window_set_position_full(surround_object, position, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_size_ex`][super::DisplayServer::window_get_size_ex]."] +#[must_use] +pub struct ExWindowGetSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetSize < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> Vector2i { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_get_size_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_size_ex`][super::DisplayServer::window_set_size_ex]."] +#[must_use] +pub struct ExWindowSetSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, size: Vector2i, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetSize < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, size: Vector2i,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, size: size, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, size, window_id, + } + = self; + re_export::DisplayServer::window_set_size_full(surround_object, size, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_rect_changed_callback_ex`][super::DisplayServer::window_set_rect_changed_callback_ex]."] +#[must_use] +pub struct ExWindowSetRectChangedCallback < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, callback: CowArg < 'a, Callable >, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetRectChangedCallback < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, callback: &'a Callable,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, callback: CowArg::Borrowed(callback), window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, callback, window_id, + } + = self; + re_export::DisplayServer::window_set_rect_changed_callback_full(surround_object, callback.cow_as_arg(), window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_window_event_callback_ex`][super::DisplayServer::window_set_window_event_callback_ex]."] +#[must_use] +pub struct ExWindowSetWindowEventCallback < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, callback: CowArg < 'a, Callable >, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetWindowEventCallback < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, callback: &'a Callable,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, callback: CowArg::Borrowed(callback), window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, callback, window_id, + } + = self; + re_export::DisplayServer::window_set_window_event_callback_full(surround_object, callback.cow_as_arg(), window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_input_event_callback_ex`][super::DisplayServer::window_set_input_event_callback_ex]."] +#[must_use] +pub struct ExWindowSetInputEventCallback < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, callback: CowArg < 'a, Callable >, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetInputEventCallback < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, callback: &'a Callable,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, callback: CowArg::Borrowed(callback), window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, callback, window_id, + } + = self; + re_export::DisplayServer::window_set_input_event_callback_full(surround_object, callback.cow_as_arg(), window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_input_text_callback_ex`][super::DisplayServer::window_set_input_text_callback_ex]."] +#[must_use] +pub struct ExWindowSetInputTextCallback < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, callback: CowArg < 'a, Callable >, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetInputTextCallback < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, callback: &'a Callable,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, callback: CowArg::Borrowed(callback), window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, callback, window_id, + } + = self; + re_export::DisplayServer::window_set_input_text_callback_full(surround_object, callback.cow_as_arg(), window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_drop_files_callback_ex`][super::DisplayServer::window_set_drop_files_callback_ex]."] +#[must_use] +pub struct ExWindowSetDropFilesCallback < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, callback: CowArg < 'a, Callable >, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetDropFilesCallback < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, callback: &'a Callable,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, callback: CowArg::Borrowed(callback), window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, callback, window_id, + } + = self; + re_export::DisplayServer::window_set_drop_files_callback_full(surround_object, callback.cow_as_arg(), window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_attached_instance_id_ex`][super::DisplayServer::window_get_attached_instance_id_ex]."] +#[must_use] +pub struct ExWindowGetAttachedInstanceId < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetAttachedInstanceId < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> u64 { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_get_attached_instance_id_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_max_size_ex`][super::DisplayServer::window_get_max_size_ex]."] +#[must_use] +pub struct ExWindowGetMaxSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetMaxSize < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> Vector2i { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_get_max_size_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_max_size_ex`][super::DisplayServer::window_set_max_size_ex]."] +#[must_use] +pub struct ExWindowSetMaxSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, max_size: Vector2i, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetMaxSize < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, max_size: Vector2i,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, max_size: max_size, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, max_size, window_id, + } + = self; + re_export::DisplayServer::window_set_max_size_full(surround_object, max_size, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_min_size_ex`][super::DisplayServer::window_get_min_size_ex]."] +#[must_use] +pub struct ExWindowGetMinSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetMinSize < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> Vector2i { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_get_min_size_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_min_size_ex`][super::DisplayServer::window_set_min_size_ex]."] +#[must_use] +pub struct ExWindowSetMinSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, min_size: Vector2i, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetMinSize < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, min_size: Vector2i,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, min_size: min_size, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, min_size, window_id, + } + = self; + re_export::DisplayServer::window_set_min_size_full(surround_object, min_size, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_size_with_decorations_ex`][super::DisplayServer::window_get_size_with_decorations_ex]."] +#[must_use] +pub struct ExWindowGetSizeWithDecorations < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetSizeWithDecorations < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> Vector2i { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_get_size_with_decorations_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_mode_ex`][super::DisplayServer::window_get_mode_ex]."] +#[must_use] +pub struct ExWindowGetMode < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetMode < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> crate::classes::display_server::WindowMode { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_get_mode_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_mode_ex`][super::DisplayServer::window_set_mode_ex]."] +#[must_use] +pub struct ExWindowSetMode < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, mode: crate::classes::display_server::WindowMode, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetMode < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, mode: crate::classes::display_server::WindowMode,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, mode: mode, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, mode, window_id, + } + = self; + re_export::DisplayServer::window_set_mode_full(surround_object, mode, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_flag_ex`][super::DisplayServer::window_set_flag_ex]."] +#[must_use] +pub struct ExWindowSetFlag < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, flag: crate::classes::display_server::WindowFlags, enabled: bool, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetFlag < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, flag: crate::classes::display_server::WindowFlags, enabled: bool,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, flag: flag, enabled: enabled, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, flag, enabled, window_id, + } + = self; + re_export::DisplayServer::window_set_flag_full(surround_object, flag, enabled, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_flag_ex`][super::DisplayServer::window_get_flag_ex]."] +#[must_use] +pub struct ExWindowGetFlag < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, flag: crate::classes::display_server::WindowFlags, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetFlag < 'a > { + fn new(surround_object: &'a re_export::DisplayServer, flag: crate::classes::display_server::WindowFlags,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, flag: flag, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, flag, window_id, + } + = self; + re_export::DisplayServer::window_get_flag_full(surround_object, flag, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_window_buttons_offset_ex`][super::DisplayServer::window_set_window_buttons_offset_ex]."] +#[must_use] +pub struct ExWindowSetWindowButtonsOffset < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, offset: Vector2i, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetWindowButtonsOffset < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, offset: Vector2i,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, offset: offset, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, offset, window_id, + } + = self; + re_export::DisplayServer::window_set_window_buttons_offset_full(surround_object, offset, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_safe_title_margins_ex`][super::DisplayServer::window_get_safe_title_margins_ex]."] +#[must_use] +pub struct ExWindowGetSafeTitleMargins < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetSafeTitleMargins < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> Vector3i { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_get_safe_title_margins_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_request_attention_ex`][super::DisplayServer::window_request_attention_ex]."] +#[must_use] +pub struct ExWindowRequestAttention < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowRequestAttention < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_request_attention_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_move_to_foreground_ex`][super::DisplayServer::window_move_to_foreground_ex]."] +#[must_use] +pub struct ExWindowMoveToForeground < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowMoveToForeground < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_move_to_foreground_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_is_focused_ex`][super::DisplayServer::window_is_focused_ex]."] +#[must_use] +pub struct ExWindowIsFocused < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowIsFocused < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_is_focused_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_can_draw_ex`][super::DisplayServer::window_can_draw_ex]."] +#[must_use] +pub struct ExWindowCanDraw < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowCanDraw < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_can_draw_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_ime_active_ex`][super::DisplayServer::window_set_ime_active_ex]."] +#[must_use] +pub struct ExWindowSetImeActive < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, active: bool, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetImeActive < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, active: bool,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, active: active, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, active, window_id, + } + = self; + re_export::DisplayServer::window_set_ime_active_full(surround_object, active, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_ime_position_ex`][super::DisplayServer::window_set_ime_position_ex]."] +#[must_use] +pub struct ExWindowSetImePosition < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, position: Vector2i, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetImePosition < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, position: Vector2i,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, window_id, + } + = self; + re_export::DisplayServer::window_set_ime_position_full(surround_object, position, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_set_vsync_mode_ex`][super::DisplayServer::window_set_vsync_mode_ex]."] +#[must_use] +pub struct ExWindowSetVSyncMode < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, vsync_mode: crate::classes::display_server::VSyncMode, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowSetVSyncMode < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, vsync_mode: crate::classes::display_server::VSyncMode,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, vsync_mode: vsync_mode, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, vsync_mode, window_id, + } + = self; + re_export::DisplayServer::window_set_vsync_mode_full(surround_object, vsync_mode, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_get_vsync_mode_ex`][super::DisplayServer::window_get_vsync_mode_ex]."] +#[must_use] +pub struct ExWindowGetVSyncMode < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowGetVSyncMode < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> crate::classes::display_server::VSyncMode { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_get_vsync_mode_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::window_is_maximize_allowed_ex`][super::DisplayServer::window_is_maximize_allowed_ex]."] +#[must_use] +pub struct ExWindowIsMaximizeAllowed < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::DisplayServer, window_id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExWindowIsMaximizeAllowed < 'a > { + fn new(surround_object: &'a re_export::DisplayServer,) -> Self { + let window_id = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, window_id: window_id, + } + } + #[inline] + pub fn window_id(self, window_id: i32) -> Self { + Self { + window_id: window_id, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, window_id, + } + = self; + re_export::DisplayServer::window_is_maximize_allowed_full(surround_object, window_id,) + } +} +#[doc = "Default-param extender for [`DisplayServer::virtual_keyboard_show_ex`][super::DisplayServer::virtual_keyboard_show_ex]."] +#[must_use] +pub struct ExVirtualKeyboardShow < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, existing_text: CowArg < 'a, GString >, position: Rect2, type_: crate::classes::display_server::VirtualKeyboardType, max_length: i32, cursor_start: i32, cursor_end: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExVirtualKeyboardShow < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, existing_text: impl AsArg < GString > + 'a,) -> Self { + let position = Rect2::from_components(0 as _, 0 as _, 0 as _, 0 as _); + let type_ = crate::obj::EngineEnum::from_ord(0); + let max_length = - 1i32; + let cursor_start = - 1i32; + let cursor_end = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, existing_text: existing_text.into_arg(), position: position, type_: type_, max_length: max_length, cursor_start: cursor_start, cursor_end: cursor_end, + } + } + #[inline] + pub fn position(self, position: Rect2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn type_(self, type_: crate::classes::display_server::VirtualKeyboardType) -> Self { + Self { + type_: type_, .. self + } + } + #[inline] + pub fn max_length(self, max_length: i32) -> Self { + Self { + max_length: max_length, .. self + } + } + #[inline] + pub fn cursor_start(self, cursor_start: i32) -> Self { + Self { + cursor_start: cursor_start, .. self + } + } + #[inline] + pub fn cursor_end(self, cursor_end: i32) -> Self { + Self { + cursor_end: cursor_end, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, existing_text, position, type_, max_length, cursor_start, cursor_end, + } + = self; + re_export::DisplayServer::virtual_keyboard_show_full(surround_object, existing_text, position, type_, max_length, cursor_start, cursor_end,) + } +} +#[doc = "Default-param extender for [`DisplayServer::cursor_set_custom_image_ex`][super::DisplayServer::cursor_set_custom_image_ex]."] +#[must_use] +pub struct ExCursorSetCustomImage < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::DisplayServer, cursor: ObjectCow < crate::classes::Resource >, shape: crate::classes::display_server::CursorShape, hotspot: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCursorSetCustomImage < 'a > { + fn new(surround_object: &'a mut re_export::DisplayServer, cursor: impl AsObjectArg < crate::classes::Resource >,) -> Self { + let shape = crate::obj::EngineEnum::from_ord(0); + let hotspot = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, cursor: cursor.consume_arg(), shape: shape, hotspot: hotspot, + } + } + #[inline] + pub fn shape(self, shape: crate::classes::display_server::CursorShape) -> Self { + Self { + shape: shape, .. self + } + } + #[inline] + pub fn hotspot(self, hotspot: Vector2) -> Self { + Self { + hotspot: hotspot, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, cursor, shape, hotspot, + } + = self; + re_export::DisplayServer::cursor_set_custom_image_full(surround_object, cursor.cow_as_object_arg(), shape, hotspot,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Feature { + ord: i32 +} +impl Feature { + #[doc(alias = "FEATURE_GLOBAL_MENU")] + #[doc = "Godot enumerator name: `FEATURE_GLOBAL_MENU`"] + pub const GLOBAL_MENU: Feature = Feature { + ord: 0i32 + }; + #[doc(alias = "FEATURE_SUBWINDOWS")] + #[doc = "Godot enumerator name: `FEATURE_SUBWINDOWS`"] + pub const SUBWINDOWS: Feature = Feature { + ord: 1i32 + }; + #[doc(alias = "FEATURE_TOUCHSCREEN")] + #[doc = "Godot enumerator name: `FEATURE_TOUCHSCREEN`"] + pub const TOUCHSCREEN: Feature = Feature { + ord: 2i32 + }; + #[doc(alias = "FEATURE_MOUSE")] + #[doc = "Godot enumerator name: `FEATURE_MOUSE`"] + pub const MOUSE: Feature = Feature { + ord: 3i32 + }; + #[doc(alias = "FEATURE_MOUSE_WARP")] + #[doc = "Godot enumerator name: `FEATURE_MOUSE_WARP`"] + pub const MOUSE_WARP: Feature = Feature { + ord: 4i32 + }; + #[doc(alias = "FEATURE_CLIPBOARD")] + #[doc = "Godot enumerator name: `FEATURE_CLIPBOARD`"] + pub const CLIPBOARD: Feature = Feature { + ord: 5i32 + }; + #[doc(alias = "FEATURE_VIRTUAL_KEYBOARD")] + #[doc = "Godot enumerator name: `FEATURE_VIRTUAL_KEYBOARD`"] + pub const VIRTUAL_KEYBOARD: Feature = Feature { + ord: 6i32 + }; + #[doc(alias = "FEATURE_CURSOR_SHAPE")] + #[doc = "Godot enumerator name: `FEATURE_CURSOR_SHAPE`"] + pub const CURSOR_SHAPE: Feature = Feature { + ord: 7i32 + }; + #[doc(alias = "FEATURE_CUSTOM_CURSOR_SHAPE")] + #[doc = "Godot enumerator name: `FEATURE_CUSTOM_CURSOR_SHAPE`"] + pub const CUSTOM_CURSOR_SHAPE: Feature = Feature { + ord: 8i32 + }; + #[doc(alias = "FEATURE_NATIVE_DIALOG")] + #[doc = "Godot enumerator name: `FEATURE_NATIVE_DIALOG`"] + pub const NATIVE_DIALOG: Feature = Feature { + ord: 9i32 + }; + #[doc(alias = "FEATURE_IME")] + #[doc = "Godot enumerator name: `FEATURE_IME`"] + pub const IME: Feature = Feature { + ord: 10i32 + }; + #[doc(alias = "FEATURE_WINDOW_TRANSPARENCY")] + #[doc = "Godot enumerator name: `FEATURE_WINDOW_TRANSPARENCY`"] + pub const WINDOW_TRANSPARENCY: Feature = Feature { + ord: 11i32 + }; + #[doc(alias = "FEATURE_HIDPI")] + #[doc = "Godot enumerator name: `FEATURE_HIDPI`"] + pub const HIDPI: Feature = Feature { + ord: 12i32 + }; + #[doc(alias = "FEATURE_ICON")] + #[doc = "Godot enumerator name: `FEATURE_ICON`"] + pub const ICON: Feature = Feature { + ord: 13i32 + }; + #[doc(alias = "FEATURE_NATIVE_ICON")] + #[doc = "Godot enumerator name: `FEATURE_NATIVE_ICON`"] + pub const NATIVE_ICON: Feature = Feature { + ord: 14i32 + }; + #[doc(alias = "FEATURE_ORIENTATION")] + #[doc = "Godot enumerator name: `FEATURE_ORIENTATION`"] + pub const ORIENTATION: Feature = Feature { + ord: 15i32 + }; + #[doc(alias = "FEATURE_SWAP_BUFFERS")] + #[doc = "Godot enumerator name: `FEATURE_SWAP_BUFFERS`"] + pub const SWAP_BUFFERS: Feature = Feature { + ord: 16i32 + }; + #[doc(alias = "FEATURE_CLIPBOARD_PRIMARY")] + #[doc = "Godot enumerator name: `FEATURE_CLIPBOARD_PRIMARY`"] + pub const CLIPBOARD_PRIMARY: Feature = Feature { + ord: 18i32 + }; + #[doc(alias = "FEATURE_TEXT_TO_SPEECH")] + #[doc = "Godot enumerator name: `FEATURE_TEXT_TO_SPEECH`"] + pub const TEXT_TO_SPEECH: Feature = Feature { + ord: 19i32 + }; + #[doc(alias = "FEATURE_EXTEND_TO_TITLE")] + #[doc = "Godot enumerator name: `FEATURE_EXTEND_TO_TITLE`"] + pub const EXTEND_TO_TITLE: Feature = Feature { + ord: 20i32 + }; + #[doc(alias = "FEATURE_SCREEN_CAPTURE")] + #[doc = "Godot enumerator name: `FEATURE_SCREEN_CAPTURE`"] + pub const SCREEN_CAPTURE: Feature = Feature { + ord: 21i32 + }; + #[doc(alias = "FEATURE_STATUS_INDICATOR")] + #[doc = "Godot enumerator name: `FEATURE_STATUS_INDICATOR`"] + pub const STATUS_INDICATOR: Feature = Feature { + ord: 22i32 + }; + #[doc(alias = "FEATURE_NATIVE_HELP")] + #[doc = "Godot enumerator name: `FEATURE_NATIVE_HELP`"] + pub const NATIVE_HELP: Feature = Feature { + ord: 23i32 + }; + #[doc(alias = "FEATURE_NATIVE_DIALOG_INPUT")] + #[doc = "Godot enumerator name: `FEATURE_NATIVE_DIALOG_INPUT`"] + pub const NATIVE_DIALOG_INPUT: Feature = Feature { + ord: 24i32 + }; + #[doc(alias = "FEATURE_NATIVE_DIALOG_FILE")] + #[doc = "Godot enumerator name: `FEATURE_NATIVE_DIALOG_FILE`"] + pub const NATIVE_DIALOG_FILE: Feature = Feature { + ord: 25i32 + }; + +} +impl std::fmt::Debug for Feature { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Feature") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Feature { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GLOBAL_MENU => "GLOBAL_MENU", Self::SUBWINDOWS => "SUBWINDOWS", Self::TOUCHSCREEN => "TOUCHSCREEN", Self::MOUSE => "MOUSE", Self::MOUSE_WARP => "MOUSE_WARP", Self::CLIPBOARD => "CLIPBOARD", Self::VIRTUAL_KEYBOARD => "VIRTUAL_KEYBOARD", Self::CURSOR_SHAPE => "CURSOR_SHAPE", Self::CUSTOM_CURSOR_SHAPE => "CUSTOM_CURSOR_SHAPE", Self::NATIVE_DIALOG => "NATIVE_DIALOG", Self::IME => "IME", Self::WINDOW_TRANSPARENCY => "WINDOW_TRANSPARENCY", Self::HIDPI => "HIDPI", Self::ICON => "ICON", Self::NATIVE_ICON => "NATIVE_ICON", Self::ORIENTATION => "ORIENTATION", Self::SWAP_BUFFERS => "SWAP_BUFFERS", Self::CLIPBOARD_PRIMARY => "CLIPBOARD_PRIMARY", Self::TEXT_TO_SPEECH => "TEXT_TO_SPEECH", Self::EXTEND_TO_TITLE => "EXTEND_TO_TITLE", Self::SCREEN_CAPTURE => "SCREEN_CAPTURE", Self::STATUS_INDICATOR => "STATUS_INDICATOR", Self::NATIVE_HELP => "NATIVE_HELP", Self::NATIVE_DIALOG_INPUT => "NATIVE_DIALOG_INPUT", Self::NATIVE_DIALOG_FILE => "NATIVE_DIALOG_FILE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GLOBAL_MENU => "FEATURE_GLOBAL_MENU", Self::SUBWINDOWS => "FEATURE_SUBWINDOWS", Self::TOUCHSCREEN => "FEATURE_TOUCHSCREEN", Self::MOUSE => "FEATURE_MOUSE", Self::MOUSE_WARP => "FEATURE_MOUSE_WARP", Self::CLIPBOARD => "FEATURE_CLIPBOARD", Self::VIRTUAL_KEYBOARD => "FEATURE_VIRTUAL_KEYBOARD", Self::CURSOR_SHAPE => "FEATURE_CURSOR_SHAPE", Self::CUSTOM_CURSOR_SHAPE => "FEATURE_CUSTOM_CURSOR_SHAPE", Self::NATIVE_DIALOG => "FEATURE_NATIVE_DIALOG", Self::IME => "FEATURE_IME", Self::WINDOW_TRANSPARENCY => "FEATURE_WINDOW_TRANSPARENCY", Self::HIDPI => "FEATURE_HIDPI", Self::ICON => "FEATURE_ICON", Self::NATIVE_ICON => "FEATURE_NATIVE_ICON", Self::ORIENTATION => "FEATURE_ORIENTATION", Self::SWAP_BUFFERS => "FEATURE_SWAP_BUFFERS", Self::CLIPBOARD_PRIMARY => "FEATURE_CLIPBOARD_PRIMARY", Self::TEXT_TO_SPEECH => "FEATURE_TEXT_TO_SPEECH", Self::EXTEND_TO_TITLE => "FEATURE_EXTEND_TO_TITLE", Self::SCREEN_CAPTURE => "FEATURE_SCREEN_CAPTURE", Self::STATUS_INDICATOR => "FEATURE_STATUS_INDICATOR", Self::NATIVE_HELP => "FEATURE_NATIVE_HELP", Self::NATIVE_DIALOG_INPUT => "FEATURE_NATIVE_DIALOG_INPUT", Self::NATIVE_DIALOG_FILE => "FEATURE_NATIVE_DIALOG_FILE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Feature { + type Via = i32; + +} +impl crate::meta::ToGodot for Feature { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Feature { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MouseMode { + ord: i32 +} +impl MouseMode { + #[doc(alias = "MOUSE_MODE_VISIBLE")] + #[doc = "Godot enumerator name: `MOUSE_MODE_VISIBLE`"] + pub const VISIBLE: MouseMode = MouseMode { + ord: 0i32 + }; + #[doc(alias = "MOUSE_MODE_HIDDEN")] + #[doc = "Godot enumerator name: `MOUSE_MODE_HIDDEN`"] + pub const HIDDEN: MouseMode = MouseMode { + ord: 1i32 + }; + #[doc(alias = "MOUSE_MODE_CAPTURED")] + #[doc = "Godot enumerator name: `MOUSE_MODE_CAPTURED`"] + pub const CAPTURED: MouseMode = MouseMode { + ord: 2i32 + }; + #[doc(alias = "MOUSE_MODE_CONFINED")] + #[doc = "Godot enumerator name: `MOUSE_MODE_CONFINED`"] + pub const CONFINED: MouseMode = MouseMode { + ord: 3i32 + }; + #[doc(alias = "MOUSE_MODE_CONFINED_HIDDEN")] + #[doc = "Godot enumerator name: `MOUSE_MODE_CONFINED_HIDDEN`"] + pub const CONFINED_HIDDEN: MouseMode = MouseMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for MouseMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MouseMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MouseMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VISIBLE => "VISIBLE", Self::HIDDEN => "HIDDEN", Self::CAPTURED => "CAPTURED", Self::CONFINED => "CONFINED", Self::CONFINED_HIDDEN => "CONFINED_HIDDEN", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VISIBLE => "MOUSE_MODE_VISIBLE", Self::HIDDEN => "MOUSE_MODE_HIDDEN", Self::CAPTURED => "MOUSE_MODE_CAPTURED", Self::CONFINED => "MOUSE_MODE_CONFINED", Self::CONFINED_HIDDEN => "MOUSE_MODE_CONFINED_HIDDEN", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for MouseMode { + type Via = i32; + +} +impl crate::meta::ToGodot for MouseMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MouseMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ScreenOrientation { + ord: i32 +} +impl ScreenOrientation { + #[doc(alias = "SCREEN_LANDSCAPE")] + #[doc = "Godot enumerator name: `SCREEN_LANDSCAPE`"] + pub const LANDSCAPE: ScreenOrientation = ScreenOrientation { + ord: 0i32 + }; + #[doc(alias = "SCREEN_PORTRAIT")] + #[doc = "Godot enumerator name: `SCREEN_PORTRAIT`"] + pub const PORTRAIT: ScreenOrientation = ScreenOrientation { + ord: 1i32 + }; + #[doc(alias = "SCREEN_REVERSE_LANDSCAPE")] + #[doc = "Godot enumerator name: `SCREEN_REVERSE_LANDSCAPE`"] + pub const REVERSE_LANDSCAPE: ScreenOrientation = ScreenOrientation { + ord: 2i32 + }; + #[doc(alias = "SCREEN_REVERSE_PORTRAIT")] + #[doc = "Godot enumerator name: `SCREEN_REVERSE_PORTRAIT`"] + pub const REVERSE_PORTRAIT: ScreenOrientation = ScreenOrientation { + ord: 3i32 + }; + #[doc(alias = "SCREEN_SENSOR_LANDSCAPE")] + #[doc = "Godot enumerator name: `SCREEN_SENSOR_LANDSCAPE`"] + pub const SENSOR_LANDSCAPE: ScreenOrientation = ScreenOrientation { + ord: 4i32 + }; + #[doc(alias = "SCREEN_SENSOR_PORTRAIT")] + #[doc = "Godot enumerator name: `SCREEN_SENSOR_PORTRAIT`"] + pub const SENSOR_PORTRAIT: ScreenOrientation = ScreenOrientation { + ord: 5i32 + }; + #[doc(alias = "SCREEN_SENSOR")] + #[doc = "Godot enumerator name: `SCREEN_SENSOR`"] + pub const SENSOR: ScreenOrientation = ScreenOrientation { + ord: 6i32 + }; + +} +impl std::fmt::Debug for ScreenOrientation { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ScreenOrientation") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ScreenOrientation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LANDSCAPE => "LANDSCAPE", Self::PORTRAIT => "PORTRAIT", Self::REVERSE_LANDSCAPE => "REVERSE_LANDSCAPE", Self::REVERSE_PORTRAIT => "REVERSE_PORTRAIT", Self::SENSOR_LANDSCAPE => "SENSOR_LANDSCAPE", Self::SENSOR_PORTRAIT => "SENSOR_PORTRAIT", Self::SENSOR => "SENSOR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LANDSCAPE => "SCREEN_LANDSCAPE", Self::PORTRAIT => "SCREEN_PORTRAIT", Self::REVERSE_LANDSCAPE => "SCREEN_REVERSE_LANDSCAPE", Self::REVERSE_PORTRAIT => "SCREEN_REVERSE_PORTRAIT", Self::SENSOR_LANDSCAPE => "SCREEN_SENSOR_LANDSCAPE", Self::SENSOR_PORTRAIT => "SCREEN_SENSOR_PORTRAIT", Self::SENSOR => "SCREEN_SENSOR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ScreenOrientation { + type Via = i32; + +} +impl crate::meta::ToGodot for ScreenOrientation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ScreenOrientation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct VirtualKeyboardType { + ord: i32 +} +impl VirtualKeyboardType { + #[doc(alias = "KEYBOARD_TYPE_DEFAULT")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_DEFAULT`"] + pub const DEFAULT: VirtualKeyboardType = VirtualKeyboardType { + ord: 0i32 + }; + #[doc(alias = "KEYBOARD_TYPE_MULTILINE")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_MULTILINE`"] + pub const MULTILINE: VirtualKeyboardType = VirtualKeyboardType { + ord: 1i32 + }; + #[doc(alias = "KEYBOARD_TYPE_NUMBER")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_NUMBER`"] + pub const NUMBER: VirtualKeyboardType = VirtualKeyboardType { + ord: 2i32 + }; + #[doc(alias = "KEYBOARD_TYPE_NUMBER_DECIMAL")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_NUMBER_DECIMAL`"] + pub const NUMBER_DECIMAL: VirtualKeyboardType = VirtualKeyboardType { + ord: 3i32 + }; + #[doc(alias = "KEYBOARD_TYPE_PHONE")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_PHONE`"] + pub const PHONE: VirtualKeyboardType = VirtualKeyboardType { + ord: 4i32 + }; + #[doc(alias = "KEYBOARD_TYPE_EMAIL_ADDRESS")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_EMAIL_ADDRESS`"] + pub const EMAIL_ADDRESS: VirtualKeyboardType = VirtualKeyboardType { + ord: 5i32 + }; + #[doc(alias = "KEYBOARD_TYPE_PASSWORD")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_PASSWORD`"] + pub const PASSWORD: VirtualKeyboardType = VirtualKeyboardType { + ord: 6i32 + }; + #[doc(alias = "KEYBOARD_TYPE_URL")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_URL`"] + pub const URL: VirtualKeyboardType = VirtualKeyboardType { + ord: 7i32 + }; + +} +impl std::fmt::Debug for VirtualKeyboardType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("VirtualKeyboardType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for VirtualKeyboardType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "DEFAULT", Self::MULTILINE => "MULTILINE", Self::NUMBER => "NUMBER", Self::NUMBER_DECIMAL => "NUMBER_DECIMAL", Self::PHONE => "PHONE", Self::EMAIL_ADDRESS => "EMAIL_ADDRESS", Self::PASSWORD => "PASSWORD", Self::URL => "URL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "KEYBOARD_TYPE_DEFAULT", Self::MULTILINE => "KEYBOARD_TYPE_MULTILINE", Self::NUMBER => "KEYBOARD_TYPE_NUMBER", Self::NUMBER_DECIMAL => "KEYBOARD_TYPE_NUMBER_DECIMAL", Self::PHONE => "KEYBOARD_TYPE_PHONE", Self::EMAIL_ADDRESS => "KEYBOARD_TYPE_EMAIL_ADDRESS", Self::PASSWORD => "KEYBOARD_TYPE_PASSWORD", Self::URL => "KEYBOARD_TYPE_URL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for VirtualKeyboardType { + type Via = i32; + +} +impl crate::meta::ToGodot for VirtualKeyboardType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for VirtualKeyboardType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CursorShape { + ord: i32 +} +impl CursorShape { + #[doc(alias = "CURSOR_ARROW")] + #[doc = "Godot enumerator name: `CURSOR_ARROW`"] + pub const ARROW: CursorShape = CursorShape { + ord: 0i32 + }; + #[doc(alias = "CURSOR_IBEAM")] + #[doc = "Godot enumerator name: `CURSOR_IBEAM`"] + pub const IBEAM: CursorShape = CursorShape { + ord: 1i32 + }; + #[doc(alias = "CURSOR_POINTING_HAND")] + #[doc = "Godot enumerator name: `CURSOR_POINTING_HAND`"] + pub const POINTING_HAND: CursorShape = CursorShape { + ord: 2i32 + }; + #[doc(alias = "CURSOR_CROSS")] + #[doc = "Godot enumerator name: `CURSOR_CROSS`"] + pub const CROSS: CursorShape = CursorShape { + ord: 3i32 + }; + #[doc(alias = "CURSOR_WAIT")] + #[doc = "Godot enumerator name: `CURSOR_WAIT`"] + pub const WAIT: CursorShape = CursorShape { + ord: 4i32 + }; + #[doc(alias = "CURSOR_BUSY")] + #[doc = "Godot enumerator name: `CURSOR_BUSY`"] + pub const BUSY: CursorShape = CursorShape { + ord: 5i32 + }; + #[doc(alias = "CURSOR_DRAG")] + #[doc = "Godot enumerator name: `CURSOR_DRAG`"] + pub const DRAG: CursorShape = CursorShape { + ord: 6i32 + }; + #[doc(alias = "CURSOR_CAN_DROP")] + #[doc = "Godot enumerator name: `CURSOR_CAN_DROP`"] + pub const CAN_DROP: CursorShape = CursorShape { + ord: 7i32 + }; + #[doc(alias = "CURSOR_FORBIDDEN")] + #[doc = "Godot enumerator name: `CURSOR_FORBIDDEN`"] + pub const FORBIDDEN: CursorShape = CursorShape { + ord: 8i32 + }; + #[doc(alias = "CURSOR_VSIZE")] + #[doc = "Godot enumerator name: `CURSOR_VSIZE`"] + pub const VSIZE: CursorShape = CursorShape { + ord: 9i32 + }; + #[doc(alias = "CURSOR_HSIZE")] + #[doc = "Godot enumerator name: `CURSOR_HSIZE`"] + pub const HSIZE: CursorShape = CursorShape { + ord: 10i32 + }; + #[doc(alias = "CURSOR_BDIAGSIZE")] + #[doc = "Godot enumerator name: `CURSOR_BDIAGSIZE`"] + pub const BDIAGSIZE: CursorShape = CursorShape { + ord: 11i32 + }; + #[doc(alias = "CURSOR_FDIAGSIZE")] + #[doc = "Godot enumerator name: `CURSOR_FDIAGSIZE`"] + pub const FDIAGSIZE: CursorShape = CursorShape { + ord: 12i32 + }; + #[doc(alias = "CURSOR_MOVE")] + #[doc = "Godot enumerator name: `CURSOR_MOVE`"] + pub const MOVE: CursorShape = CursorShape { + ord: 13i32 + }; + #[doc(alias = "CURSOR_VSPLIT")] + #[doc = "Godot enumerator name: `CURSOR_VSPLIT`"] + pub const VSPLIT: CursorShape = CursorShape { + ord: 14i32 + }; + #[doc(alias = "CURSOR_HSPLIT")] + #[doc = "Godot enumerator name: `CURSOR_HSPLIT`"] + pub const HSPLIT: CursorShape = CursorShape { + ord: 15i32 + }; + #[doc(alias = "CURSOR_HELP")] + #[doc = "Godot enumerator name: `CURSOR_HELP`"] + pub const HELP: CursorShape = CursorShape { + ord: 16i32 + }; + #[doc(alias = "CURSOR_MAX")] + #[doc = "Godot enumerator name: `CURSOR_MAX`"] + pub const MAX: CursorShape = CursorShape { + ord: 17i32 + }; + +} +impl std::fmt::Debug for CursorShape { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CursorShape") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CursorShape { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ARROW => "ARROW", Self::IBEAM => "IBEAM", Self::POINTING_HAND => "POINTING_HAND", Self::CROSS => "CROSS", Self::WAIT => "WAIT", Self::BUSY => "BUSY", Self::DRAG => "DRAG", Self::CAN_DROP => "CAN_DROP", Self::FORBIDDEN => "FORBIDDEN", Self::VSIZE => "VSIZE", Self::HSIZE => "HSIZE", Self::BDIAGSIZE => "BDIAGSIZE", Self::FDIAGSIZE => "FDIAGSIZE", Self::MOVE => "MOVE", Self::VSPLIT => "VSPLIT", Self::HSPLIT => "HSPLIT", Self::HELP => "HELP", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ARROW => "CURSOR_ARROW", Self::IBEAM => "CURSOR_IBEAM", Self::POINTING_HAND => "CURSOR_POINTING_HAND", Self::CROSS => "CURSOR_CROSS", Self::WAIT => "CURSOR_WAIT", Self::BUSY => "CURSOR_BUSY", Self::DRAG => "CURSOR_DRAG", Self::CAN_DROP => "CURSOR_CAN_DROP", Self::FORBIDDEN => "CURSOR_FORBIDDEN", Self::VSIZE => "CURSOR_VSIZE", Self::HSIZE => "CURSOR_HSIZE", Self::BDIAGSIZE => "CURSOR_BDIAGSIZE", Self::FDIAGSIZE => "CURSOR_FDIAGSIZE", Self::MOVE => "CURSOR_MOVE", Self::VSPLIT => "CURSOR_VSPLIT", Self::HSPLIT => "CURSOR_HSPLIT", Self::HELP => "CURSOR_HELP", Self::MAX => "CURSOR_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for CursorShape { + const ENUMERATOR_COUNT: usize = 17usize; + +} +impl crate::meta::GodotConvert for CursorShape { + type Via = i32; + +} +impl crate::meta::ToGodot for CursorShape { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CursorShape { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FileDialogMode { + ord: i32 +} +impl FileDialogMode { + #[doc(alias = "FILE_DIALOG_MODE_OPEN_FILE")] + #[doc = "Godot enumerator name: `FILE_DIALOG_MODE_OPEN_FILE`"] + pub const OPEN_FILE: FileDialogMode = FileDialogMode { + ord: 0i32 + }; + #[doc(alias = "FILE_DIALOG_MODE_OPEN_FILES")] + #[doc = "Godot enumerator name: `FILE_DIALOG_MODE_OPEN_FILES`"] + pub const OPEN_FILES: FileDialogMode = FileDialogMode { + ord: 1i32 + }; + #[doc(alias = "FILE_DIALOG_MODE_OPEN_DIR")] + #[doc = "Godot enumerator name: `FILE_DIALOG_MODE_OPEN_DIR`"] + pub const OPEN_DIR: FileDialogMode = FileDialogMode { + ord: 2i32 + }; + #[doc(alias = "FILE_DIALOG_MODE_OPEN_ANY")] + #[doc = "Godot enumerator name: `FILE_DIALOG_MODE_OPEN_ANY`"] + pub const OPEN_ANY: FileDialogMode = FileDialogMode { + ord: 3i32 + }; + #[doc(alias = "FILE_DIALOG_MODE_SAVE_FILE")] + #[doc = "Godot enumerator name: `FILE_DIALOG_MODE_SAVE_FILE`"] + pub const SAVE_FILE: FileDialogMode = FileDialogMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for FileDialogMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FileDialogMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FileDialogMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OPEN_FILE => "OPEN_FILE", Self::OPEN_FILES => "OPEN_FILES", Self::OPEN_DIR => "OPEN_DIR", Self::OPEN_ANY => "OPEN_ANY", Self::SAVE_FILE => "SAVE_FILE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OPEN_FILE => "FILE_DIALOG_MODE_OPEN_FILE", Self::OPEN_FILES => "FILE_DIALOG_MODE_OPEN_FILES", Self::OPEN_DIR => "FILE_DIALOG_MODE_OPEN_DIR", Self::OPEN_ANY => "FILE_DIALOG_MODE_OPEN_ANY", Self::SAVE_FILE => "FILE_DIALOG_MODE_SAVE_FILE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FileDialogMode { + type Via = i32; + +} +impl crate::meta::ToGodot for FileDialogMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FileDialogMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct WindowMode { + ord: i32 +} +impl WindowMode { + #[doc(alias = "WINDOW_MODE_WINDOWED")] + #[doc = "Godot enumerator name: `WINDOW_MODE_WINDOWED`"] + pub const WINDOWED: WindowMode = WindowMode { + ord: 0i32 + }; + #[doc(alias = "WINDOW_MODE_MINIMIZED")] + #[doc = "Godot enumerator name: `WINDOW_MODE_MINIMIZED`"] + pub const MINIMIZED: WindowMode = WindowMode { + ord: 1i32 + }; + #[doc(alias = "WINDOW_MODE_MAXIMIZED")] + #[doc = "Godot enumerator name: `WINDOW_MODE_MAXIMIZED`"] + pub const MAXIMIZED: WindowMode = WindowMode { + ord: 2i32 + }; + #[doc(alias = "WINDOW_MODE_FULLSCREEN")] + #[doc = "Godot enumerator name: `WINDOW_MODE_FULLSCREEN`"] + pub const FULLSCREEN: WindowMode = WindowMode { + ord: 3i32 + }; + #[doc(alias = "WINDOW_MODE_EXCLUSIVE_FULLSCREEN")] + #[doc = "Godot enumerator name: `WINDOW_MODE_EXCLUSIVE_FULLSCREEN`"] + pub const EXCLUSIVE_FULLSCREEN: WindowMode = WindowMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for WindowMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("WindowMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for WindowMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WINDOWED => "WINDOWED", Self::MINIMIZED => "MINIMIZED", Self::MAXIMIZED => "MAXIMIZED", Self::FULLSCREEN => "FULLSCREEN", Self::EXCLUSIVE_FULLSCREEN => "EXCLUSIVE_FULLSCREEN", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WINDOWED => "WINDOW_MODE_WINDOWED", Self::MINIMIZED => "WINDOW_MODE_MINIMIZED", Self::MAXIMIZED => "WINDOW_MODE_MAXIMIZED", Self::FULLSCREEN => "WINDOW_MODE_FULLSCREEN", Self::EXCLUSIVE_FULLSCREEN => "WINDOW_MODE_EXCLUSIVE_FULLSCREEN", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for WindowMode { + type Via = i32; + +} +impl crate::meta::ToGodot for WindowMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for WindowMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct WindowFlags { + ord: i32 +} +impl WindowFlags { + #[doc(alias = "WINDOW_FLAG_RESIZE_DISABLED")] + #[doc = "Godot enumerator name: `WINDOW_FLAG_RESIZE_DISABLED`"] + pub const RESIZE_DISABLED: WindowFlags = WindowFlags { + ord: 0i32 + }; + #[doc(alias = "WINDOW_FLAG_BORDERLESS")] + #[doc = "Godot enumerator name: `WINDOW_FLAG_BORDERLESS`"] + pub const BORDERLESS: WindowFlags = WindowFlags { + ord: 1i32 + }; + #[doc(alias = "WINDOW_FLAG_ALWAYS_ON_TOP")] + #[doc = "Godot enumerator name: `WINDOW_FLAG_ALWAYS_ON_TOP`"] + pub const ALWAYS_ON_TOP: WindowFlags = WindowFlags { + ord: 2i32 + }; + #[doc(alias = "WINDOW_FLAG_TRANSPARENT")] + #[doc = "Godot enumerator name: `WINDOW_FLAG_TRANSPARENT`"] + pub const TRANSPARENT: WindowFlags = WindowFlags { + ord: 3i32 + }; + #[doc(alias = "WINDOW_FLAG_NO_FOCUS")] + #[doc = "Godot enumerator name: `WINDOW_FLAG_NO_FOCUS`"] + pub const NO_FOCUS: WindowFlags = WindowFlags { + ord: 4i32 + }; + #[doc(alias = "WINDOW_FLAG_POPUP")] + #[doc = "Godot enumerator name: `WINDOW_FLAG_POPUP`"] + pub const POPUP: WindowFlags = WindowFlags { + ord: 5i32 + }; + #[doc(alias = "WINDOW_FLAG_EXTEND_TO_TITLE")] + #[doc = "Godot enumerator name: `WINDOW_FLAG_EXTEND_TO_TITLE`"] + pub const EXTEND_TO_TITLE: WindowFlags = WindowFlags { + ord: 6i32 + }; + #[doc(alias = "WINDOW_FLAG_MOUSE_PASSTHROUGH")] + #[doc = "Godot enumerator name: `WINDOW_FLAG_MOUSE_PASSTHROUGH`"] + pub const MOUSE_PASSTHROUGH: WindowFlags = WindowFlags { + ord: 7i32 + }; + #[doc(alias = "WINDOW_FLAG_MAX")] + #[doc = "Godot enumerator name: `WINDOW_FLAG_MAX`"] + pub const MAX: WindowFlags = WindowFlags { + ord: 8i32 + }; + +} +impl std::fmt::Debug for WindowFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("WindowFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for WindowFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RESIZE_DISABLED => "RESIZE_DISABLED", Self::BORDERLESS => "BORDERLESS", Self::ALWAYS_ON_TOP => "ALWAYS_ON_TOP", Self::TRANSPARENT => "TRANSPARENT", Self::NO_FOCUS => "NO_FOCUS", Self::POPUP => "POPUP", Self::EXTEND_TO_TITLE => "EXTEND_TO_TITLE", Self::MOUSE_PASSTHROUGH => "MOUSE_PASSTHROUGH", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RESIZE_DISABLED => "WINDOW_FLAG_RESIZE_DISABLED", Self::BORDERLESS => "WINDOW_FLAG_BORDERLESS", Self::ALWAYS_ON_TOP => "WINDOW_FLAG_ALWAYS_ON_TOP", Self::TRANSPARENT => "WINDOW_FLAG_TRANSPARENT", Self::NO_FOCUS => "WINDOW_FLAG_NO_FOCUS", Self::POPUP => "WINDOW_FLAG_POPUP", Self::EXTEND_TO_TITLE => "WINDOW_FLAG_EXTEND_TO_TITLE", Self::MOUSE_PASSTHROUGH => "WINDOW_FLAG_MOUSE_PASSTHROUGH", Self::MAX => "WINDOW_FLAG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for WindowFlags { + const ENUMERATOR_COUNT: usize = 8usize; + +} +impl crate::meta::GodotConvert for WindowFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for WindowFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for WindowFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct WindowEvent { + ord: i32 +} +impl WindowEvent { + #[doc(alias = "WINDOW_EVENT_MOUSE_ENTER")] + #[doc = "Godot enumerator name: `WINDOW_EVENT_MOUSE_ENTER`"] + pub const MOUSE_ENTER: WindowEvent = WindowEvent { + ord: 0i32 + }; + #[doc(alias = "WINDOW_EVENT_MOUSE_EXIT")] + #[doc = "Godot enumerator name: `WINDOW_EVENT_MOUSE_EXIT`"] + pub const MOUSE_EXIT: WindowEvent = WindowEvent { + ord: 1i32 + }; + #[doc(alias = "WINDOW_EVENT_FOCUS_IN")] + #[doc = "Godot enumerator name: `WINDOW_EVENT_FOCUS_IN`"] + pub const FOCUS_IN: WindowEvent = WindowEvent { + ord: 2i32 + }; + #[doc(alias = "WINDOW_EVENT_FOCUS_OUT")] + #[doc = "Godot enumerator name: `WINDOW_EVENT_FOCUS_OUT`"] + pub const FOCUS_OUT: WindowEvent = WindowEvent { + ord: 3i32 + }; + #[doc(alias = "WINDOW_EVENT_CLOSE_REQUEST")] + #[doc = "Godot enumerator name: `WINDOW_EVENT_CLOSE_REQUEST`"] + pub const CLOSE_REQUEST: WindowEvent = WindowEvent { + ord: 4i32 + }; + #[doc(alias = "WINDOW_EVENT_GO_BACK_REQUEST")] + #[doc = "Godot enumerator name: `WINDOW_EVENT_GO_BACK_REQUEST`"] + pub const GO_BACK_REQUEST: WindowEvent = WindowEvent { + ord: 5i32 + }; + #[doc(alias = "WINDOW_EVENT_DPI_CHANGE")] + #[doc = "Godot enumerator name: `WINDOW_EVENT_DPI_CHANGE`"] + pub const DPI_CHANGE: WindowEvent = WindowEvent { + ord: 6i32 + }; + #[doc(alias = "WINDOW_EVENT_TITLEBAR_CHANGE")] + #[doc = "Godot enumerator name: `WINDOW_EVENT_TITLEBAR_CHANGE`"] + pub const TITLEBAR_CHANGE: WindowEvent = WindowEvent { + ord: 7i32 + }; + +} +impl std::fmt::Debug for WindowEvent { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("WindowEvent") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for WindowEvent { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MOUSE_ENTER => "MOUSE_ENTER", Self::MOUSE_EXIT => "MOUSE_EXIT", Self::FOCUS_IN => "FOCUS_IN", Self::FOCUS_OUT => "FOCUS_OUT", Self::CLOSE_REQUEST => "CLOSE_REQUEST", Self::GO_BACK_REQUEST => "GO_BACK_REQUEST", Self::DPI_CHANGE => "DPI_CHANGE", Self::TITLEBAR_CHANGE => "TITLEBAR_CHANGE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MOUSE_ENTER => "WINDOW_EVENT_MOUSE_ENTER", Self::MOUSE_EXIT => "WINDOW_EVENT_MOUSE_EXIT", Self::FOCUS_IN => "WINDOW_EVENT_FOCUS_IN", Self::FOCUS_OUT => "WINDOW_EVENT_FOCUS_OUT", Self::CLOSE_REQUEST => "WINDOW_EVENT_CLOSE_REQUEST", Self::GO_BACK_REQUEST => "WINDOW_EVENT_GO_BACK_REQUEST", Self::DPI_CHANGE => "WINDOW_EVENT_DPI_CHANGE", Self::TITLEBAR_CHANGE => "WINDOW_EVENT_TITLEBAR_CHANGE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for WindowEvent { + type Via = i32; + +} +impl crate::meta::ToGodot for WindowEvent { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for WindowEvent { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct VSyncMode { + ord: i32 +} +impl VSyncMode { + #[doc(alias = "VSYNC_DISABLED")] + #[doc = "Godot enumerator name: `VSYNC_DISABLED`"] + pub const DISABLED: VSyncMode = VSyncMode { + ord: 0i32 + }; + #[doc(alias = "VSYNC_ENABLED")] + #[doc = "Godot enumerator name: `VSYNC_ENABLED`"] + pub const ENABLED: VSyncMode = VSyncMode { + ord: 1i32 + }; + #[doc(alias = "VSYNC_ADAPTIVE")] + #[doc = "Godot enumerator name: `VSYNC_ADAPTIVE`"] + pub const ADAPTIVE: VSyncMode = VSyncMode { + ord: 2i32 + }; + #[doc(alias = "VSYNC_MAILBOX")] + #[doc = "Godot enumerator name: `VSYNC_MAILBOX`"] + pub const MAILBOX: VSyncMode = VSyncMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for VSyncMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("VSyncMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for VSyncMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ENABLED => "ENABLED", Self::ADAPTIVE => "ADAPTIVE", Self::MAILBOX => "MAILBOX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "VSYNC_DISABLED", Self::ENABLED => "VSYNC_ENABLED", Self::ADAPTIVE => "VSYNC_ADAPTIVE", Self::MAILBOX => "VSYNC_MAILBOX", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for VSyncMode { + type Via = i32; + +} +impl crate::meta::ToGodot for VSyncMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for VSyncMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct HandleType { + ord: i32 +} +impl HandleType { + pub const DISPLAY_HANDLE: HandleType = HandleType { + ord: 0i32 + }; + pub const WINDOW_HANDLE: HandleType = HandleType { + ord: 1i32 + }; + pub const WINDOW_VIEW: HandleType = HandleType { + ord: 2i32 + }; + pub const OPENGL_CONTEXT: HandleType = HandleType { + ord: 3i32 + }; + +} +impl std::fmt::Debug for HandleType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("HandleType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for HandleType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISPLAY_HANDLE => "DISPLAY_HANDLE", Self::WINDOW_HANDLE => "WINDOW_HANDLE", Self::WINDOW_VIEW => "WINDOW_VIEW", Self::OPENGL_CONTEXT => "OPENGL_CONTEXT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + self.as_str() + } +} +impl crate::meta::GodotConvert for HandleType { + type Via = i32; + +} +impl crate::meta::ToGodot for HandleType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for HandleType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `TTSUtteranceEvent`."] +pub struct TtsUtteranceEvent { + ord: i32 +} +impl TtsUtteranceEvent { + #[doc(alias = "TTS_UTTERANCE_STARTED")] + #[doc = "Godot enumerator name: `TTS_UTTERANCE_STARTED`"] + pub const STARTED: TtsUtteranceEvent = TtsUtteranceEvent { + ord: 0i32 + }; + #[doc(alias = "TTS_UTTERANCE_ENDED")] + #[doc = "Godot enumerator name: `TTS_UTTERANCE_ENDED`"] + pub const ENDED: TtsUtteranceEvent = TtsUtteranceEvent { + ord: 1i32 + }; + #[doc(alias = "TTS_UTTERANCE_CANCELED")] + #[doc = "Godot enumerator name: `TTS_UTTERANCE_CANCELED`"] + pub const CANCELED: TtsUtteranceEvent = TtsUtteranceEvent { + ord: 2i32 + }; + #[doc(alias = "TTS_UTTERANCE_BOUNDARY")] + #[doc = "Godot enumerator name: `TTS_UTTERANCE_BOUNDARY`"] + pub const BOUNDARY: TtsUtteranceEvent = TtsUtteranceEvent { + ord: 3i32 + }; + +} +impl std::fmt::Debug for TtsUtteranceEvent { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TtsUtteranceEvent") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TtsUtteranceEvent { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STARTED => "STARTED", Self::ENDED => "ENDED", Self::CANCELED => "CANCELED", Self::BOUNDARY => "BOUNDARY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STARTED => "TTS_UTTERANCE_STARTED", Self::ENDED => "TTS_UTTERANCE_ENDED", Self::CANCELED => "TTS_UTTERANCE_CANCELED", Self::BOUNDARY => "TTS_UTTERANCE_BOUNDARY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TtsUtteranceEvent { + type Via = i32; + +} +impl crate::meta::ToGodot for TtsUtteranceEvent { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TtsUtteranceEvent { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/dtls_server.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/dtls_server.rs new file mode 100644 index 0000000..89009b5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/dtls_server.rs @@ -0,0 +1,209 @@ +#![doc = "Sidecar module for class [`DtlsServer`][crate::classes::DtlsServer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `DTLSServer` enums](https://docs.godotengine.org/en/stable/classes/class_dtlsserver.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `DTLSServer.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IDtlsServer`][crate::classes::IDtlsServer]: virtual methods\n\n\nSee also [Godot docs for `DTLSServer`](https://docs.godotengine.org/en/stable/classes/class_dtlsserver.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`DtlsServer::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct DtlsServer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`DtlsServer`][crate::classes::DtlsServer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `DTLSServer` methods](https://docs.godotengine.org/en/stable/classes/class_dtlsserver.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IDtlsServer: crate::obj::GodotClass < Base = DtlsServer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl DtlsServer { + pub fn setup(&mut self, server_options: impl AsObjectArg < crate::classes::TlsOptions >,) -> crate::global::Error { + type CallSig = (crate::global::Error, ObjectArg < crate::classes::TlsOptions >); + let args = (server_options.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2549usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DtlsServer", "setup", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn take_connection(&mut self, udp_peer: impl AsObjectArg < crate::classes::PacketPeerUdp >,) -> Option < Gd < crate::classes::PacketPeerDtls > > { + type CallSig = (Option < Gd < crate::classes::PacketPeerDtls > >, ObjectArg < crate::classes::PacketPeerUdp >); + let args = (udp_peer.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2550usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "DtlsServer", "take_connection", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for DtlsServer { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"DTLSServer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for DtlsServer { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for DtlsServer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for DtlsServer { + + } + impl crate::obj::cap::GodotDefault for DtlsServer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for DtlsServer { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for DtlsServer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`DtlsServer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_DtlsServer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::DtlsServer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_command_palette.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_command_palette.rs new file mode 100644 index 0000000..07678ba --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_command_palette.rs @@ -0,0 +1,303 @@ +#![doc = "Sidecar module for class [`EditorCommandPalette`][crate::classes::EditorCommandPalette].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorCommandPalette` enums](https://docs.godotengine.org/en/stable/classes/class_editorcommandpalette.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorCommandPalette.`\n\nInherits [`ConfirmationDialog`][crate::classes::ConfirmationDialog].\n\nRelated symbols:\n\n* [`editor_command_palette`][crate::classes::editor_command_palette]: sidecar module with related enum/flag types\n* [`IEditorCommandPalette`][crate::classes::IEditorCommandPalette]: virtual methods\n\n\nSee also [Godot docs for `EditorCommandPalette`](https://docs.godotengine.org/en/stable/classes/class_editorcommandpalette.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorCommandPalette::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorCommandPalette { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorCommandPalette`][crate::classes::EditorCommandPalette].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorCommandPalette` methods](https://docs.godotengine.org/en/stable/classes/class_editorcommandpalette.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorCommandPalette: crate::obj::GodotClass < Base = EditorCommandPalette > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: WindowNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_contents_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl EditorCommandPalette { + pub(crate) fn add_command_full(&mut self, command_name: CowArg < GString >, key_name: CowArg < GString >, binded_callable: RefArg < Callable >, shortcut_text: CowArg < GString >,) { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, RefArg < 'a2, Callable >, CowArg < 'a3, GString >); + let args = (command_name, key_name, binded_callable, shortcut_text,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(0usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorCommandPalette", "add_command", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_command_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_command(&mut self, command_name: impl AsArg < GString >, key_name: impl AsArg < GString >, binded_callable: &Callable,) { + self.add_command_ex(command_name, key_name, binded_callable,) . done() + } + #[inline] + pub fn add_command_ex < 'a > (&'a mut self, command_name: impl AsArg < GString > + 'a, key_name: impl AsArg < GString > + 'a, binded_callable: &'a Callable,) -> ExAddCommand < 'a > { + ExAddCommand::new(self, command_name, key_name, binded_callable,) + } + pub fn remove_command(&mut self, key_name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (key_name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(1usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorCommandPalette", "remove_command", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorCommandPalette { + type Base = crate::classes::ConfirmationDialog; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorCommandPalette")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorCommandPalette { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::ConfirmationDialog > for EditorCommandPalette { + + } + unsafe impl crate::obj::Inherits < crate::classes::AcceptDialog > for EditorCommandPalette { + + } + unsafe impl crate::obj::Inherits < crate::classes::Window > for EditorCommandPalette { + + } + unsafe impl crate::obj::Inherits < crate::classes::Viewport > for EditorCommandPalette { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for EditorCommandPalette { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorCommandPalette { + + } + impl crate::obj::cap::GodotDefault for EditorCommandPalette { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorCommandPalette { + type Target = crate::classes::ConfirmationDialog; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorCommandPalette { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorCommandPalette`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorCommandPalette { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorCommandPalette > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ConfirmationDialog > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AcceptDialog > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Window > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Viewport > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorCommandPalette::add_command_ex`][super::EditorCommandPalette::add_command_ex]."] +#[must_use] +pub struct ExAddCommand < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorCommandPalette, command_name: CowArg < 'a, GString >, key_name: CowArg < 'a, GString >, binded_callable: CowArg < 'a, Callable >, shortcut_text: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddCommand < 'a > { + fn new(surround_object: &'a mut re_export::EditorCommandPalette, command_name: impl AsArg < GString > + 'a, key_name: impl AsArg < GString > + 'a, binded_callable: &'a Callable,) -> Self { + let shortcut_text = GString::from("None"); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, command_name: command_name.into_arg(), key_name: key_name.into_arg(), binded_callable: CowArg::Borrowed(binded_callable), shortcut_text: CowArg::Owned(shortcut_text), + } + } + #[inline] + pub fn shortcut_text(self, shortcut_text: impl AsArg < GString > + 'a) -> Self { + Self { + shortcut_text: shortcut_text.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, command_name, key_name, binded_callable, shortcut_text, + } + = self; + re_export::EditorCommandPalette::add_command_full(surround_object, command_name, key_name, binded_callable.cow_as_arg(), shortcut_text,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_debugger_plugin.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_debugger_plugin.rs new file mode 100644 index 0000000..e18121b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_debugger_plugin.rs @@ -0,0 +1,227 @@ +#![doc = "Sidecar module for class [`EditorDebuggerPlugin`][crate::classes::EditorDebuggerPlugin].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorDebuggerPlugin` enums](https://docs.godotengine.org/en/stable/classes/class_editordebuggerplugin.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorDebuggerPlugin.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEditorDebuggerPlugin`][crate::classes::IEditorDebuggerPlugin]: virtual methods\n\n\nSee also [Godot docs for `EditorDebuggerPlugin`](https://docs.godotengine.org/en/stable/classes/class_editordebuggerplugin.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorDebuggerPlugin::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorDebuggerPlugin { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorDebuggerPlugin`][crate::classes::EditorDebuggerPlugin].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorDebuggerPlugin` methods](https://docs.godotengine.org/en/stable/classes/class_editordebuggerplugin.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorDebuggerPlugin: crate::obj::GodotClass < Base = EditorDebuggerPlugin > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_session(&mut self, session_id: i32,) { + unimplemented !() + } + fn has_capture(&self, capture: GString,) -> bool { + unimplemented !() + } + fn capture(&mut self, message: GString, data: VariantArray, session_id: i32,) -> bool { + unimplemented !() + } + fn goto_script_line(&mut self, script: Option < Gd < crate::classes::Script > >, line: i32,) { + unimplemented !() + } + fn breakpoints_cleared_in_tree(&mut self,) { + unimplemented !() + } + fn breakpoint_set_in_tree(&mut self, script: Option < Gd < crate::classes::Script > >, line: i32, enabled: bool,) { + unimplemented !() + } + } + impl EditorDebuggerPlugin { + pub fn get_session(&mut self, id: i32,) -> Option < Gd < crate::classes::EditorDebuggerSession > > { + type CallSig = (Option < Gd < crate::classes::EditorDebuggerSession > >, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(2usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorDebuggerPlugin", "get_session", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sessions(&mut self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(3usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorDebuggerPlugin", "get_sessions", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorDebuggerPlugin { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorDebuggerPlugin")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorDebuggerPlugin { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorDebuggerPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorDebuggerPlugin { + + } + impl crate::obj::cap::GodotDefault for EditorDebuggerPlugin { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorDebuggerPlugin { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorDebuggerPlugin { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorDebuggerPlugin`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorDebuggerPlugin { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorDebuggerPlugin > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_debugger_session.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_debugger_session.rs new file mode 100644 index 0000000..e6653ab --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_debugger_session.rs @@ -0,0 +1,326 @@ +#![doc = "Sidecar module for class [`EditorDebuggerSession`][crate::classes::EditorDebuggerSession].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorDebuggerSession` enums](https://docs.godotengine.org/en/stable/classes/class_editordebuggersession.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorDebuggerSession.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`editor_debugger_session`][crate::classes::editor_debugger_session]: sidecar module with related enum/flag types\n* [`IEditorDebuggerSession`][crate::classes::IEditorDebuggerSession]: virtual methods\n\n\nSee also [Godot docs for `EditorDebuggerSession`](https://docs.godotengine.org/en/stable/classes/class_editordebuggersession.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorDebuggerSession { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorDebuggerSession`][crate::classes::EditorDebuggerSession].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorDebuggerSession` methods](https://docs.godotengine.org/en/stable/classes/class_editordebuggersession.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorDebuggerSession: crate::obj::GodotClass < Base = EditorDebuggerSession > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorDebuggerSession { + pub(crate) fn send_message_full(&mut self, message: CowArg < GString >, data: RefArg < VariantArray >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, VariantArray >); + let args = (message, data,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(4usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorDebuggerSession", "send_message", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::send_message_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn send_message(&mut self, message: impl AsArg < GString >,) { + self.send_message_ex(message,) . done() + } + #[inline] + pub fn send_message_ex < 'a > (&'a mut self, message: impl AsArg < GString > + 'a,) -> ExSendMessage < 'a > { + ExSendMessage::new(self, message,) + } + pub(crate) fn toggle_profiler_full(&mut self, profiler: CowArg < GString >, enable: bool, data: RefArg < VariantArray >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, bool, RefArg < 'a1, VariantArray >); + let args = (profiler, enable, data,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(5usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorDebuggerSession", "toggle_profiler", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::toggle_profiler_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn toggle_profiler(&mut self, profiler: impl AsArg < GString >, enable: bool,) { + self.toggle_profiler_ex(profiler, enable,) . done() + } + #[inline] + pub fn toggle_profiler_ex < 'a > (&'a mut self, profiler: impl AsArg < GString > + 'a, enable: bool,) -> ExToggleProfiler < 'a > { + ExToggleProfiler::new(self, profiler, enable,) + } + pub fn is_breaked(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(6usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorDebuggerSession", "is_breaked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_debuggable(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(7usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorDebuggerSession", "is_debuggable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_active(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(8usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorDebuggerSession", "is_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_session_tab(&mut self, control: impl AsObjectArg < crate::classes::Control >,) { + type CallSig = ((), ObjectArg < crate::classes::Control >); + let args = (control.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(9usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorDebuggerSession", "add_session_tab", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_session_tab(&mut self, control: impl AsObjectArg < crate::classes::Control >,) { + type CallSig = ((), ObjectArg < crate::classes::Control >); + let args = (control.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(10usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorDebuggerSession", "remove_session_tab", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_breakpoint(&mut self, path: impl AsArg < GString >, line: i32, enabled: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, bool); + let args = (path.into_arg(), line, enabled,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(11usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorDebuggerSession", "set_breakpoint", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorDebuggerSession { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorDebuggerSession")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorDebuggerSession { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorDebuggerSession { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorDebuggerSession { + + } + impl std::ops::Deref for EditorDebuggerSession { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorDebuggerSession { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorDebuggerSession`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorDebuggerSession { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorDebuggerSession > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorDebuggerSession::send_message_ex`][super::EditorDebuggerSession::send_message_ex]."] +#[must_use] +pub struct ExSendMessage < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorDebuggerSession, message: CowArg < 'a, GString >, data: CowArg < 'a, VariantArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSendMessage < 'a > { + fn new(surround_object: &'a mut re_export::EditorDebuggerSession, message: impl AsArg < GString > + 'a,) -> Self { + let data = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, message: message.into_arg(), data: CowArg::Owned(data), + } + } + #[inline] + pub fn data(self, data: &'a VariantArray) -> Self { + Self { + data: CowArg::Borrowed(data), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, message, data, + } + = self; + re_export::EditorDebuggerSession::send_message_full(surround_object, message, data.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`EditorDebuggerSession::toggle_profiler_ex`][super::EditorDebuggerSession::toggle_profiler_ex]."] +#[must_use] +pub struct ExToggleProfiler < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorDebuggerSession, profiler: CowArg < 'a, GString >, enable: bool, data: CowArg < 'a, VariantArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExToggleProfiler < 'a > { + fn new(surround_object: &'a mut re_export::EditorDebuggerSession, profiler: impl AsArg < GString > + 'a, enable: bool,) -> Self { + let data = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, profiler: profiler.into_arg(), enable: enable, data: CowArg::Owned(data), + } + } + #[inline] + pub fn data(self, data: &'a VariantArray) -> Self { + Self { + data: CowArg::Borrowed(data), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, profiler, enable, data, + } + = self; + re_export::EditorDebuggerSession::toggle_profiler_full(surround_object, profiler, enable, data.cow_as_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform.rs new file mode 100644 index 0000000..122634f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform.rs @@ -0,0 +1,196 @@ +#![doc = "Sidecar module for class [`EditorExportPlatform`][crate::classes::EditorExportPlatform].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorExportPlatform` enums](https://docs.godotengine.org/en/stable/classes/class_editorexportplatform.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorExportPlatform.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEditorExportPlatform`][crate::classes::IEditorExportPlatform]: virtual methods\n\n\nSee also [Godot docs for `EditorExportPlatform`](https://docs.godotengine.org/en/stable/classes/class_editorexportplatform.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorExportPlatform { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorExportPlatform`][crate::classes::EditorExportPlatform].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorExportPlatform` methods](https://docs.godotengine.org/en/stable/classes/class_editorexportplatform.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorExportPlatform: crate::obj::GodotClass < Base = EditorExportPlatform > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorExportPlatform { + pub fn get_os_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(12usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlatform", "get_os_name", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorExportPlatform { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorExportPlatform")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorExportPlatform { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorExportPlatform { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorExportPlatform { + + } + impl std::ops::Deref for EditorExportPlatform { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorExportPlatform { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorExportPlatform`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorExportPlatform { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatform > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_android.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_android.rs new file mode 100644 index 0000000..a38b395 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_android.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`EditorExportPlatformAndroid`][crate::classes::EditorExportPlatformAndroid].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorExportPlatformAndroid` enums](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformandroid.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorExportPlatformAndroid.`\n\nInherits [`EditorExportPlatform`][crate::classes::EditorExportPlatform].\n\nRelated symbols:\n\n* [`IEditorExportPlatformAndroid`][crate::classes::IEditorExportPlatformAndroid]: virtual methods\n\n\nSee also [Godot docs for `EditorExportPlatformAndroid`](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformandroid.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorExportPlatformAndroid::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorExportPlatformAndroid { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorExportPlatformAndroid`][crate::classes::EditorExportPlatformAndroid].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorExportPlatformAndroid` methods](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformandroid.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorExportPlatformAndroid: crate::obj::GodotClass < Base = EditorExportPlatformAndroid > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorExportPlatformAndroid { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorExportPlatformAndroid { + type Base = crate::classes::EditorExportPlatform; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorExportPlatformAndroid")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorExportPlatformAndroid { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorExportPlatform > for EditorExportPlatformAndroid { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorExportPlatformAndroid { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorExportPlatformAndroid { + + } + impl crate::obj::cap::GodotDefault for EditorExportPlatformAndroid { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorExportPlatformAndroid { + type Target = crate::classes::EditorExportPlatform; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorExportPlatformAndroid { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorExportPlatformAndroid`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorExportPlatformAndroid { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatformAndroid > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatform > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_ios.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_ios.rs new file mode 100644 index 0000000..82ace35 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_ios.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`EditorExportPlatformIos`][crate::classes::EditorExportPlatformIos].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorExportPlatformIOS` enums](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformios.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorExportPlatformIOS.`\n\nInherits [`EditorExportPlatform`][crate::classes::EditorExportPlatform].\n\nRelated symbols:\n\n* [`IEditorExportPlatformIos`][crate::classes::IEditorExportPlatformIos]: virtual methods\n\n\nSee also [Godot docs for `EditorExportPlatformIOS`](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformios.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorExportPlatformIos::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorExportPlatformIos { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorExportPlatformIos`][crate::classes::EditorExportPlatformIos].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorExportPlatformIOS` methods](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformios.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorExportPlatformIos: crate::obj::GodotClass < Base = EditorExportPlatformIos > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorExportPlatformIos { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorExportPlatformIos { + type Base = crate::classes::EditorExportPlatform; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorExportPlatformIOS")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorExportPlatformIos { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorExportPlatform > for EditorExportPlatformIos { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorExportPlatformIos { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorExportPlatformIos { + + } + impl crate::obj::cap::GodotDefault for EditorExportPlatformIos { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorExportPlatformIos { + type Target = crate::classes::EditorExportPlatform; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorExportPlatformIos { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorExportPlatformIos`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorExportPlatformIos { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatformIos > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatform > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_linux_bsd.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_linux_bsd.rs new file mode 100644 index 0000000..5dcac5d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_linux_bsd.rs @@ -0,0 +1,205 @@ +#![doc = "Sidecar module for class [`EditorExportPlatformLinuxBsd`][crate::classes::EditorExportPlatformLinuxBsd].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorExportPlatformLinuxBSD` enums](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformlinuxbsd.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorExportPlatformLinuxBSD.`\n\nInherits [`EditorExportPlatformPc`][crate::classes::EditorExportPlatformPc].\n\nRelated symbols:\n\n* [`IEditorExportPlatformLinuxBsd`][crate::classes::IEditorExportPlatformLinuxBsd]: virtual methods\n\n\nSee also [Godot docs for `EditorExportPlatformLinuxBSD`](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformlinuxbsd.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorExportPlatformLinuxBsd::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorExportPlatformLinuxBsd { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorExportPlatformLinuxBsd`][crate::classes::EditorExportPlatformLinuxBsd].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorExportPlatformLinuxBSD` methods](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformlinuxbsd.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorExportPlatformLinuxBsd: crate::obj::GodotClass < Base = EditorExportPlatformLinuxBsd > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorExportPlatformLinuxBsd { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorExportPlatformLinuxBsd { + type Base = crate::classes::EditorExportPlatformPc; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorExportPlatformLinuxBSD")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorExportPlatformLinuxBsd { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorExportPlatformPc > for EditorExportPlatformLinuxBsd { + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorExportPlatform > for EditorExportPlatformLinuxBsd { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorExportPlatformLinuxBsd { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorExportPlatformLinuxBsd { + + } + impl crate::obj::cap::GodotDefault for EditorExportPlatformLinuxBsd { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorExportPlatformLinuxBsd { + type Target = crate::classes::EditorExportPlatformPc; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorExportPlatformLinuxBsd { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorExportPlatformLinuxBsd`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorExportPlatformLinuxBsd { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatformLinuxBsd > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatformPc > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatform > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_mac_os.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_mac_os.rs new file mode 100644 index 0000000..a2993a5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_mac_os.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`EditorExportPlatformMacOs`][crate::classes::EditorExportPlatformMacOs].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorExportPlatformMacOS` enums](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformmacos.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorExportPlatformMacOS.`\n\nInherits [`EditorExportPlatform`][crate::classes::EditorExportPlatform].\n\nRelated symbols:\n\n* [`IEditorExportPlatformMacOs`][crate::classes::IEditorExportPlatformMacOs]: virtual methods\n\n\nSee also [Godot docs for `EditorExportPlatformMacOS`](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformmacos.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorExportPlatformMacOs::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorExportPlatformMacOs { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorExportPlatformMacOs`][crate::classes::EditorExportPlatformMacOs].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorExportPlatformMacOS` methods](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformmacos.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorExportPlatformMacOs: crate::obj::GodotClass < Base = EditorExportPlatformMacOs > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorExportPlatformMacOs { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorExportPlatformMacOs { + type Base = crate::classes::EditorExportPlatform; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorExportPlatformMacOS")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorExportPlatformMacOs { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorExportPlatform > for EditorExportPlatformMacOs { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorExportPlatformMacOs { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorExportPlatformMacOs { + + } + impl crate::obj::cap::GodotDefault for EditorExportPlatformMacOs { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorExportPlatformMacOs { + type Target = crate::classes::EditorExportPlatform; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorExportPlatformMacOs { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorExportPlatformMacOs`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorExportPlatformMacOs { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatformMacOs > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatform > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_pc.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_pc.rs new file mode 100644 index 0000000..adaaaa6 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_pc.rs @@ -0,0 +1,194 @@ +#![doc = "Sidecar module for class [`EditorExportPlatformPc`][crate::classes::EditorExportPlatformPc].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorExportPlatformPC` enums](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformpc.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorExportPlatformPC.`\n\nInherits [`EditorExportPlatform`][crate::classes::EditorExportPlatform].\n\nRelated symbols:\n\n* [`IEditorExportPlatformPc`][crate::classes::IEditorExportPlatformPc]: virtual methods\n\n\nSee also [Godot docs for `EditorExportPlatformPC`](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformpc.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorExportPlatformPc { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorExportPlatformPc`][crate::classes::EditorExportPlatformPc].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorExportPlatformPC` methods](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformpc.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorExportPlatformPc: crate::obj::GodotClass < Base = EditorExportPlatformPc > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorExportPlatformPc { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorExportPlatformPc { + type Base = crate::classes::EditorExportPlatform; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorExportPlatformPC")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorExportPlatformPc { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorExportPlatform > for EditorExportPlatformPc { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorExportPlatformPc { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorExportPlatformPc { + + } + impl std::ops::Deref for EditorExportPlatformPc { + type Target = crate::classes::EditorExportPlatform; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorExportPlatformPc { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorExportPlatformPc`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorExportPlatformPc { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatformPc > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatform > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_web.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_web.rs new file mode 100644 index 0000000..fd8b7ec --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_web.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`EditorExportPlatformWeb`][crate::classes::EditorExportPlatformWeb].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorExportPlatformWeb` enums](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformweb.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorExportPlatformWeb.`\n\nInherits [`EditorExportPlatform`][crate::classes::EditorExportPlatform].\n\nRelated symbols:\n\n* [`IEditorExportPlatformWeb`][crate::classes::IEditorExportPlatformWeb]: virtual methods\n\n\nSee also [Godot docs for `EditorExportPlatformWeb`](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformweb.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorExportPlatformWeb::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorExportPlatformWeb { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorExportPlatformWeb`][crate::classes::EditorExportPlatformWeb].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorExportPlatformWeb` methods](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformweb.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorExportPlatformWeb: crate::obj::GodotClass < Base = EditorExportPlatformWeb > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorExportPlatformWeb { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorExportPlatformWeb { + type Base = crate::classes::EditorExportPlatform; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorExportPlatformWeb")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorExportPlatformWeb { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorExportPlatform > for EditorExportPlatformWeb { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorExportPlatformWeb { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorExportPlatformWeb { + + } + impl crate::obj::cap::GodotDefault for EditorExportPlatformWeb { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorExportPlatformWeb { + type Target = crate::classes::EditorExportPlatform; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorExportPlatformWeb { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorExportPlatformWeb`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorExportPlatformWeb { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatformWeb > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatform > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_windows.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_windows.rs new file mode 100644 index 0000000..18cb7e2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_platform_windows.rs @@ -0,0 +1,205 @@ +#![doc = "Sidecar module for class [`EditorExportPlatformWindows`][crate::classes::EditorExportPlatformWindows].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorExportPlatformWindows` enums](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformwindows.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorExportPlatformWindows.`\n\nInherits [`EditorExportPlatformPc`][crate::classes::EditorExportPlatformPc].\n\nRelated symbols:\n\n* [`IEditorExportPlatformWindows`][crate::classes::IEditorExportPlatformWindows]: virtual methods\n\n\nSee also [Godot docs for `EditorExportPlatformWindows`](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformwindows.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorExportPlatformWindows::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorExportPlatformWindows { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorExportPlatformWindows`][crate::classes::EditorExportPlatformWindows].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorExportPlatformWindows` methods](https://docs.godotengine.org/en/stable/classes/class_editorexportplatformwindows.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorExportPlatformWindows: crate::obj::GodotClass < Base = EditorExportPlatformWindows > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorExportPlatformWindows { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorExportPlatformWindows { + type Base = crate::classes::EditorExportPlatformPc; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorExportPlatformWindows")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorExportPlatformWindows { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorExportPlatformPc > for EditorExportPlatformWindows { + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorExportPlatform > for EditorExportPlatformWindows { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorExportPlatformWindows { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorExportPlatformWindows { + + } + impl crate::obj::cap::GodotDefault for EditorExportPlatformWindows { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorExportPlatformWindows { + type Target = crate::classes::EditorExportPlatformPc; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorExportPlatformWindows { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorExportPlatformWindows`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorExportPlatformWindows { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatformWindows > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatformPc > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlatform > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_plugin.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_plugin.rs new file mode 100644 index 0000000..fc32cbf --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_export_plugin.rs @@ -0,0 +1,350 @@ +#![doc = "Sidecar module for class [`EditorExportPlugin`][crate::classes::EditorExportPlugin].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorExportPlugin` enums](https://docs.godotengine.org/en/stable/classes/class_editorexportplugin.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorExportPlugin.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEditorExportPlugin`][crate::classes::IEditorExportPlugin]: virtual methods\n\n\nSee also [Godot docs for `EditorExportPlugin`](https://docs.godotengine.org/en/stable/classes/class_editorexportplugin.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorExportPlugin::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorExportPlugin { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorExportPlugin`][crate::classes::EditorExportPlugin].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorExportPlugin` methods](https://docs.godotengine.org/en/stable/classes/class_editorexportplugin.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorExportPlugin: crate::obj::GodotClass < Base = EditorExportPlugin > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn export_file(&mut self, path: GString, type_: GString, features: PackedStringArray,) { + unimplemented !() + } + fn export_begin(&mut self, features: PackedStringArray, is_debug: bool, path: GString, flags: u32,) { + unimplemented !() + } + fn export_end(&mut self,) { + unimplemented !() + } + fn begin_customize_resources(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >, features: PackedStringArray,) -> bool { + unimplemented !() + } + fn customize_resource(&mut self, resource: Gd < crate::classes::Resource >, path: GString,) -> Option < Gd < crate::classes::Resource > >; + fn begin_customize_scenes(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >, features: PackedStringArray,) -> bool { + unimplemented !() + } + fn customize_scene(&mut self, scene: Gd < crate::classes::Node >, path: GString,) -> Option < Gd < crate::classes::Node > >; + fn get_customization_configuration_hash(&self,) -> u64; + fn end_customize_scenes(&mut self,) { + unimplemented !() + } + fn end_customize_resources(&mut self,) { + unimplemented !() + } + fn get_export_options(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >,) -> Array < Dictionary > { + unimplemented !() + } + fn get_export_options_overrides(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >,) -> Dictionary { + unimplemented !() + } + fn should_update_export_options(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >,) -> bool { + unimplemented !() + } + fn get_export_option_warning(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >, option: GString,) -> GString { + unimplemented !() + } + fn get_export_features(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >, debug: bool,) -> PackedStringArray { + unimplemented !() + } + fn get_name(&self,) -> GString; + fn supports_platform(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >,) -> bool { + unimplemented !() + } + fn get_android_dependencies(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >, debug: bool,) -> PackedStringArray { + unimplemented !() + } + fn get_android_dependencies_maven_repos(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >, debug: bool,) -> PackedStringArray { + unimplemented !() + } + fn get_android_libraries(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >, debug: bool,) -> PackedStringArray { + unimplemented !() + } + fn get_android_manifest_activity_element_contents(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >, debug: bool,) -> GString { + unimplemented !() + } + fn get_android_manifest_application_element_contents(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >, debug: bool,) -> GString { + unimplemented !() + } + fn get_android_manifest_element_contents(&self, platform: Option < Gd < crate::classes::EditorExportPlatform > >, debug: bool,) -> GString { + unimplemented !() + } + } + impl EditorExportPlugin { + pub fn add_shared_object(&mut self, path: impl AsArg < GString >, tags: &PackedStringArray, target: impl AsArg < GString >,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >, CowArg < 'a2, GString >); + let args = (path.into_arg(), RefArg::new(tags), target.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(13usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "add_shared_object", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_ios_project_static_lib(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(14usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "add_ios_project_static_lib", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_file(&mut self, path: impl AsArg < GString >, file: &PackedByteArray, remap: bool,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, PackedByteArray >, bool); + let args = (path.into_arg(), RefArg::new(file), remap,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(15usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "add_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_ios_framework(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(16usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "add_ios_framework", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_ios_embedded_framework(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(17usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "add_ios_embedded_framework", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_ios_plist_content(&mut self, plist_content: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (plist_content.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(18usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "add_ios_plist_content", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_ios_linker_flags(&mut self, flags: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (flags.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(19usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "add_ios_linker_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_ios_bundle_file(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(20usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "add_ios_bundle_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_ios_cpp_code(&mut self, code: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (code.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(21usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "add_ios_cpp_code", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_macos_plugin_file(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(22usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "add_macos_plugin_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn skip(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(23usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "skip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_option(&self, name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(24usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorExportPlugin", "get_option", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorExportPlugin { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorExportPlugin")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorExportPlugin { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorExportPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorExportPlugin { + + } + impl crate::obj::cap::GodotDefault for EditorExportPlugin { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorExportPlugin { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorExportPlugin { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorExportPlugin`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorExportPlugin { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorExportPlugin > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_feature_profile.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_feature_profile.rs new file mode 100644 index 0000000..704da87 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_feature_profile.rs @@ -0,0 +1,388 @@ +#![doc = "Sidecar module for class [`EditorFeatureProfile`][crate::classes::EditorFeatureProfile].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorFeatureProfile` enums](https://docs.godotengine.org/en/stable/classes/class_editorfeatureprofile.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorFeatureProfile.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`editor_feature_profile`][crate::classes::editor_feature_profile]: sidecar module with related enum/flag types\n* [`IEditorFeatureProfile`][crate::classes::IEditorFeatureProfile]: virtual methods\n\n\nSee also [Godot docs for `EditorFeatureProfile`](https://docs.godotengine.org/en/stable/classes/class_editorfeatureprofile.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorFeatureProfile::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorFeatureProfile { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorFeatureProfile`][crate::classes::EditorFeatureProfile].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorFeatureProfile` methods](https://docs.godotengine.org/en/stable/classes/class_editorfeatureprofile.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorFeatureProfile: crate::obj::GodotClass < Base = EditorFeatureProfile > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorFeatureProfile { + pub fn set_disable_class(&mut self, class_name: impl AsArg < StringName >, disable: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, bool); + let args = (class_name.into_arg(), disable,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(25usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFeatureProfile", "set_disable_class", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_class_disabled(&self, class_name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (class_name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(26usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFeatureProfile", "is_class_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disable_class_editor(&mut self, class_name: impl AsArg < StringName >, disable: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, bool); + let args = (class_name.into_arg(), disable,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(27usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFeatureProfile", "set_disable_class_editor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_class_editor_disabled(&self, class_name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (class_name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(28usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFeatureProfile", "is_class_editor_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disable_class_property(&mut self, class_name: impl AsArg < StringName >, property: impl AsArg < StringName >, disable: bool,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, bool); + let args = (class_name.into_arg(), property.into_arg(), disable,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(29usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFeatureProfile", "set_disable_class_property", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_class_property_disabled(&self, class_name: impl AsArg < StringName >, property: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (class_name.into_arg(), property.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(30usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFeatureProfile", "is_class_property_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disable_feature(&mut self, feature: crate::classes::editor_feature_profile::Feature, disable: bool,) { + type CallSig = ((), crate::classes::editor_feature_profile::Feature, bool); + let args = (feature, disable,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(31usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFeatureProfile", "set_disable_feature", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_feature_disabled(&self, feature: crate::classes::editor_feature_profile::Feature,) -> bool { + type CallSig = (bool, crate::classes::editor_feature_profile::Feature); + let args = (feature,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(32usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFeatureProfile", "is_feature_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_feature_name(&mut self, feature: crate::classes::editor_feature_profile::Feature,) -> GString { + type CallSig = (GString, crate::classes::editor_feature_profile::Feature); + let args = (feature,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(33usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFeatureProfile", "get_feature_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn save_to_file(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(34usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFeatureProfile", "save_to_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load_from_file(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(35usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFeatureProfile", "load_from_file", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorFeatureProfile { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorFeatureProfile")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorFeatureProfile { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorFeatureProfile { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorFeatureProfile { + + } + impl crate::obj::cap::GodotDefault for EditorFeatureProfile { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorFeatureProfile { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorFeatureProfile { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorFeatureProfile`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorFeatureProfile { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorFeatureProfile > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Feature { + ord: i32 +} +impl Feature { + pub const FEATURE_3D: Feature = Feature { + ord: 0i32 + }; + #[doc(alias = "FEATURE_SCRIPT")] + #[doc = "Godot enumerator name: `FEATURE_SCRIPT`"] + pub const SCRIPT: Feature = Feature { + ord: 1i32 + }; + #[doc(alias = "FEATURE_ASSET_LIB")] + #[doc = "Godot enumerator name: `FEATURE_ASSET_LIB`"] + pub const ASSET_LIB: Feature = Feature { + ord: 2i32 + }; + #[doc(alias = "FEATURE_SCENE_TREE")] + #[doc = "Godot enumerator name: `FEATURE_SCENE_TREE`"] + pub const SCENE_TREE: Feature = Feature { + ord: 3i32 + }; + #[doc(alias = "FEATURE_NODE_DOCK")] + #[doc = "Godot enumerator name: `FEATURE_NODE_DOCK`"] + pub const NODE_DOCK: Feature = Feature { + ord: 4i32 + }; + #[doc(alias = "FEATURE_FILESYSTEM_DOCK")] + #[doc = "Godot enumerator name: `FEATURE_FILESYSTEM_DOCK`"] + pub const FILESYSTEM_DOCK: Feature = Feature { + ord: 5i32 + }; + #[doc(alias = "FEATURE_IMPORT_DOCK")] + #[doc = "Godot enumerator name: `FEATURE_IMPORT_DOCK`"] + pub const IMPORT_DOCK: Feature = Feature { + ord: 6i32 + }; + #[doc(alias = "FEATURE_HISTORY_DOCK")] + #[doc = "Godot enumerator name: `FEATURE_HISTORY_DOCK`"] + pub const HISTORY_DOCK: Feature = Feature { + ord: 7i32 + }; + #[doc(alias = "FEATURE_MAX")] + #[doc = "Godot enumerator name: `FEATURE_MAX`"] + pub const MAX: Feature = Feature { + ord: 8i32 + }; + +} +impl std::fmt::Debug for Feature { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Feature") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Feature { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FEATURE_3D => "FEATURE_3D", Self::SCRIPT => "SCRIPT", Self::ASSET_LIB => "ASSET_LIB", Self::SCENE_TREE => "SCENE_TREE", Self::NODE_DOCK => "NODE_DOCK", Self::FILESYSTEM_DOCK => "FILESYSTEM_DOCK", Self::IMPORT_DOCK => "IMPORT_DOCK", Self::HISTORY_DOCK => "HISTORY_DOCK", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCRIPT => "FEATURE_SCRIPT", Self::ASSET_LIB => "FEATURE_ASSET_LIB", Self::SCENE_TREE => "FEATURE_SCENE_TREE", Self::NODE_DOCK => "FEATURE_NODE_DOCK", Self::FILESYSTEM_DOCK => "FEATURE_FILESYSTEM_DOCK", Self::IMPORT_DOCK => "FEATURE_IMPORT_DOCK", Self::HISTORY_DOCK => "FEATURE_HISTORY_DOCK", Self::MAX => "FEATURE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Feature { + const ENUMERATOR_COUNT: usize = 8usize; + +} +impl crate::meta::GodotConvert for Feature { + type Via = i32; + +} +impl crate::meta::ToGodot for Feature { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Feature { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_dialog.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_dialog.rs new file mode 100644 index 0000000..ccc4922 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_dialog.rs @@ -0,0 +1,834 @@ +#![doc = "Sidecar module for class [`EditorFileDialog`][crate::classes::EditorFileDialog].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorFileDialog` enums](https://docs.godotengine.org/en/stable/classes/class_editorfiledialog.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorFileDialog.`\n\nInherits [`ConfirmationDialog`][crate::classes::ConfirmationDialog].\n\nRelated symbols:\n\n* [`editor_file_dialog`][crate::classes::editor_file_dialog]: sidecar module with related enum/flag types\n* [`IEditorFileDialog`][crate::classes::IEditorFileDialog]: virtual methods\n\n\nSee also [Godot docs for `EditorFileDialog`](https://docs.godotengine.org/en/stable/classes/class_editorfiledialog.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorFileDialog::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorFileDialog { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorFileDialog`][crate::classes::EditorFileDialog].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorFileDialog` methods](https://docs.godotengine.org/en/stable/classes/class_editorfiledialog.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorFileDialog: crate::obj::GodotClass < Base = EditorFileDialog > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: WindowNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_contents_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl EditorFileDialog { + pub fn clear_filters(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(36usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "clear_filters", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_filter_full(&mut self, filter: CowArg < GString >, description: CowArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (filter, description,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(37usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "add_filter", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_filter_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_filter(&mut self, filter: impl AsArg < GString >,) { + self.add_filter_ex(filter,) . done() + } + #[inline] + pub fn add_filter_ex < 'a > (&'a mut self, filter: impl AsArg < GString > + 'a,) -> ExAddFilter < 'a > { + ExAddFilter::new(self, filter,) + } + pub fn set_filters(&mut self, filters: &PackedStringArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(filters),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(38usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_filters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_filters(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(39usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_filters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_option_name(&self, option: i32,) -> GString { + type CallSig = (GString, i32); + let args = (option,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(40usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_option_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_option_values(&self, option: i32,) -> PackedStringArray { + type CallSig = (PackedStringArray, i32); + let args = (option,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(41usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_option_values", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_option_default(&self, option: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (option,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(42usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_option_default", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_option_name(&mut self, option: i32, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (option, name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(43usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_option_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_option_values(&mut self, option: i32, values: &PackedStringArray,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, PackedStringArray >); + let args = (option, RefArg::new(values),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(44usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_option_values", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_option_default(&mut self, option: i32, default_value_index: i32,) { + type CallSig = ((), i32, i32); + let args = (option, default_value_index,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(45usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_option_default", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_option_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(46usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_option_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_option_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(47usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_option_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_option(&mut self, name: impl AsArg < GString >, values: &PackedStringArray, default_value_index: i32,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >, i32); + let args = (name.into_arg(), RefArg::new(values), default_value_index,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(48usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "add_option", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selected_options(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(49usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_selected_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(50usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_current_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_file(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(51usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_current_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(52usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_current_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_current_dir(&mut self, dir: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (dir.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(53usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_current_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_current_file(&mut self, file: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (file.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(54usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_current_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_current_path(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(55usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_current_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_file_mode(&mut self, mode: crate::classes::editor_file_dialog::FileMode,) { + type CallSig = ((), crate::classes::editor_file_dialog::FileMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(56usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_file_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_file_mode(&self,) -> crate::classes::editor_file_dialog::FileMode { + type CallSig = (crate::classes::editor_file_dialog::FileMode,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(57usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_file_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vbox(&mut self,) -> Option < Gd < crate::classes::VBoxContainer > > { + type CallSig = (Option < Gd < crate::classes::VBoxContainer > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(58usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_vbox", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_line_edit(&mut self,) -> Option < Gd < crate::classes::LineEdit > > { + type CallSig = (Option < Gd < crate::classes::LineEdit > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(59usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_line_edit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_access(&mut self, access: crate::classes::editor_file_dialog::Access,) { + type CallSig = ((), crate::classes::editor_file_dialog::Access); + let args = (access,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(60usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_access", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_access(&self,) -> crate::classes::editor_file_dialog::Access { + type CallSig = (crate::classes::editor_file_dialog::Access,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(61usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_access", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_show_hidden_files(&mut self, show: bool,) { + type CallSig = ((), bool); + let args = (show,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(62usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_show_hidden_files", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_showing_hidden_files(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(63usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "is_showing_hidden_files", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_display_mode(&mut self, mode: crate::classes::editor_file_dialog::DisplayMode,) { + type CallSig = ((), crate::classes::editor_file_dialog::DisplayMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(64usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_display_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_display_mode(&self,) -> crate::classes::editor_file_dialog::DisplayMode { + type CallSig = (crate::classes::editor_file_dialog::DisplayMode,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(65usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "get_display_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disable_overwrite_warning(&mut self, disable: bool,) { + type CallSig = ((), bool); + let args = (disable,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(66usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "set_disable_overwrite_warning", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_overwrite_warning_disabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(67usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "is_overwrite_warning_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_side_menu_full(&mut self, menu: ObjectArg < crate::classes::Control >, title: CowArg < GString >,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Control >, CowArg < 'a0, GString >); + let args = (menu, title,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(68usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "add_side_menu", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_side_menu_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_side_menu(&mut self, menu: impl AsObjectArg < crate::classes::Control >,) { + self.add_side_menu_ex(menu,) . done() + } + #[inline] + pub fn add_side_menu_ex < 'a > (&'a mut self, menu: impl AsObjectArg < crate::classes::Control >,) -> ExAddSideMenu < 'a > { + ExAddSideMenu::new(self, menu,) + } + pub fn popup_file_dialog(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(69usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "popup_file_dialog", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn invalidate(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(70usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileDialog", "invalidate", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorFileDialog { + type Base = crate::classes::ConfirmationDialog; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorFileDialog")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorFileDialog { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::ConfirmationDialog > for EditorFileDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::AcceptDialog > for EditorFileDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Window > for EditorFileDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Viewport > for EditorFileDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for EditorFileDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorFileDialog { + + } + impl crate::obj::cap::GodotDefault for EditorFileDialog { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorFileDialog { + type Target = crate::classes::ConfirmationDialog; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorFileDialog { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorFileDialog`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorFileDialog { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorFileDialog > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ConfirmationDialog > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AcceptDialog > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Window > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Viewport > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorFileDialog::add_filter_ex`][super::EditorFileDialog::add_filter_ex]."] +#[must_use] +pub struct ExAddFilter < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorFileDialog, filter: CowArg < 'a, GString >, description: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddFilter < 'a > { + fn new(surround_object: &'a mut re_export::EditorFileDialog, filter: impl AsArg < GString > + 'a,) -> Self { + let description = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, filter: filter.into_arg(), description: CowArg::Owned(description), + } + } + #[inline] + pub fn description(self, description: impl AsArg < GString > + 'a) -> Self { + Self { + description: description.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, filter, description, + } + = self; + re_export::EditorFileDialog::add_filter_full(surround_object, filter, description,) + } +} +#[doc = "Default-param extender for [`EditorFileDialog::add_side_menu_ex`][super::EditorFileDialog::add_side_menu_ex]."] +#[must_use] +pub struct ExAddSideMenu < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorFileDialog, menu: ObjectCow < crate::classes::Control >, title: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddSideMenu < 'a > { + fn new(surround_object: &'a mut re_export::EditorFileDialog, menu: impl AsObjectArg < crate::classes::Control >,) -> Self { + let title = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, menu: menu.consume_arg(), title: CowArg::Owned(title), + } + } + #[inline] + pub fn title(self, title: impl AsArg < GString > + 'a) -> Self { + Self { + title: title.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, menu, title, + } + = self; + re_export::EditorFileDialog::add_side_menu_full(surround_object, menu.cow_as_object_arg(), title,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FileMode { + ord: i32 +} +impl FileMode { + #[doc(alias = "FILE_MODE_OPEN_FILE")] + #[doc = "Godot enumerator name: `FILE_MODE_OPEN_FILE`"] + pub const OPEN_FILE: FileMode = FileMode { + ord: 0i32 + }; + #[doc(alias = "FILE_MODE_OPEN_FILES")] + #[doc = "Godot enumerator name: `FILE_MODE_OPEN_FILES`"] + pub const OPEN_FILES: FileMode = FileMode { + ord: 1i32 + }; + #[doc(alias = "FILE_MODE_OPEN_DIR")] + #[doc = "Godot enumerator name: `FILE_MODE_OPEN_DIR`"] + pub const OPEN_DIR: FileMode = FileMode { + ord: 2i32 + }; + #[doc(alias = "FILE_MODE_OPEN_ANY")] + #[doc = "Godot enumerator name: `FILE_MODE_OPEN_ANY`"] + pub const OPEN_ANY: FileMode = FileMode { + ord: 3i32 + }; + #[doc(alias = "FILE_MODE_SAVE_FILE")] + #[doc = "Godot enumerator name: `FILE_MODE_SAVE_FILE`"] + pub const SAVE_FILE: FileMode = FileMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for FileMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FileMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FileMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OPEN_FILE => "OPEN_FILE", Self::OPEN_FILES => "OPEN_FILES", Self::OPEN_DIR => "OPEN_DIR", Self::OPEN_ANY => "OPEN_ANY", Self::SAVE_FILE => "SAVE_FILE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OPEN_FILE => "FILE_MODE_OPEN_FILE", Self::OPEN_FILES => "FILE_MODE_OPEN_FILES", Self::OPEN_DIR => "FILE_MODE_OPEN_DIR", Self::OPEN_ANY => "FILE_MODE_OPEN_ANY", Self::SAVE_FILE => "FILE_MODE_SAVE_FILE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FileMode { + type Via = i32; + +} +impl crate::meta::ToGodot for FileMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FileMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Access { + ord: i32 +} +impl Access { + #[doc(alias = "ACCESS_RESOURCES")] + #[doc = "Godot enumerator name: `ACCESS_RESOURCES`"] + pub const RESOURCES: Access = Access { + ord: 0i32 + }; + #[doc(alias = "ACCESS_USERDATA")] + #[doc = "Godot enumerator name: `ACCESS_USERDATA`"] + pub const USERDATA: Access = Access { + ord: 1i32 + }; + #[doc(alias = "ACCESS_FILESYSTEM")] + #[doc = "Godot enumerator name: `ACCESS_FILESYSTEM`"] + pub const FILESYSTEM: Access = Access { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Access { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Access") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Access { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RESOURCES => "RESOURCES", Self::USERDATA => "USERDATA", Self::FILESYSTEM => "FILESYSTEM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RESOURCES => "ACCESS_RESOURCES", Self::USERDATA => "ACCESS_USERDATA", Self::FILESYSTEM => "ACCESS_FILESYSTEM", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Access { + type Via = i32; + +} +impl crate::meta::ToGodot for Access { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Access { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DisplayMode { + ord: i32 +} +impl DisplayMode { + #[doc(alias = "DISPLAY_THUMBNAILS")] + #[doc = "Godot enumerator name: `DISPLAY_THUMBNAILS`"] + pub const THUMBNAILS: DisplayMode = DisplayMode { + ord: 0i32 + }; + #[doc(alias = "DISPLAY_LIST")] + #[doc = "Godot enumerator name: `DISPLAY_LIST`"] + pub const LIST: DisplayMode = DisplayMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for DisplayMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DisplayMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DisplayMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::THUMBNAILS => "THUMBNAILS", Self::LIST => "LIST", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::THUMBNAILS => "DISPLAY_THUMBNAILS", Self::LIST => "DISPLAY_LIST", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DisplayMode { + type Via = i32; + +} +impl crate::meta::ToGodot for DisplayMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DisplayMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_system.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_system.rs new file mode 100644 index 0000000..61de7ae --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_system.rs @@ -0,0 +1,290 @@ +#![doc = "Sidecar module for class [`EditorFileSystem`][crate::classes::EditorFileSystem].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorFileSystem` enums](https://docs.godotengine.org/en/stable/classes/class_editorfilesystem.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorFileSystem.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`IEditorFileSystem`][crate::classes::IEditorFileSystem]: virtual methods\n\n\nSee also [Godot docs for `EditorFileSystem`](https://docs.godotengine.org/en/stable/classes/class_editorfilesystem.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorFileSystem { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorFileSystem`][crate::classes::EditorFileSystem].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorFileSystem` methods](https://docs.godotengine.org/en/stable/classes/class_editorfilesystem.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorFileSystem: crate::obj::GodotClass < Base = EditorFileSystem > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl EditorFileSystem { + pub fn get_filesystem(&mut self,) -> Option < Gd < crate::classes::EditorFileSystemDirectory > > { + type CallSig = (Option < Gd < crate::classes::EditorFileSystemDirectory > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(71usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystem", "get_filesystem", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_scanning(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(72usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystem", "is_scanning", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scanning_progress(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(73usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystem", "get_scanning_progress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scan(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(74usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystem", "scan", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scan_sources(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(75usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystem", "scan_sources", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update_file(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(76usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystem", "update_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_filesystem_path(&mut self, path: impl AsArg < GString >,) -> Option < Gd < crate::classes::EditorFileSystemDirectory > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::EditorFileSystemDirectory > >, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(77usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystem", "get_filesystem_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_file_type(&self, path: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(78usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystem", "get_file_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reimport_files(&mut self, files: &PackedStringArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(files),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(79usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystem", "reimport_files", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorFileSystem { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorFileSystem")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorFileSystem { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for EditorFileSystem { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorFileSystem { + + } + impl std::ops::Deref for EditorFileSystem { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorFileSystem { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorFileSystem`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorFileSystem { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorFileSystem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_system_directory.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_system_directory.rs new file mode 100644 index 0000000..ea60e33 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_system_directory.rs @@ -0,0 +1,299 @@ +#![doc = "Sidecar module for class [`EditorFileSystemDirectory`][crate::classes::EditorFileSystemDirectory].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorFileSystemDirectory` enums](https://docs.godotengine.org/en/stable/classes/class_editorfilesystemdirectory.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorFileSystemDirectory.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IEditorFileSystemDirectory`][crate::classes::IEditorFileSystemDirectory]: virtual methods\n\n\nSee also [Godot docs for `EditorFileSystemDirectory`](https://docs.godotengine.org/en/stable/classes/class_editorfilesystemdirectory.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorFileSystemDirectory::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorFileSystemDirectory { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorFileSystemDirectory`][crate::classes::EditorFileSystemDirectory].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorFileSystemDirectory` methods](https://docs.godotengine.org/en/stable/classes/class_editorfilesystemdirectory.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorFileSystemDirectory: crate::obj::GodotClass < Base = EditorFileSystemDirectory > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorFileSystemDirectory { + pub fn get_subdir_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(80usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_subdir_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subdir(&mut self, idx: i32,) -> Option < Gd < crate::classes::EditorFileSystemDirectory > > { + type CallSig = (Option < Gd < crate::classes::EditorFileSystemDirectory > >, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(81usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_subdir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_file_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(82usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_file_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_file(&self, idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(83usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_file_path(&self, idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(84usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_file_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_file_type(&self, idx: i32,) -> StringName { + type CallSig = (StringName, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(85usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_file_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_file_script_class_name(&self, idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(86usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_file_script_class_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_file_script_class_extends(&self, idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(87usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_file_script_class_extends", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_file_import_is_valid(&self, idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(88usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_file_import_is_valid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_name(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(89usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(90usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_parent(&mut self,) -> Option < Gd < crate::classes::EditorFileSystemDirectory > > { + type CallSig = (Option < Gd < crate::classes::EditorFileSystemDirectory > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(91usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "get_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_file_index(&self, name: impl AsArg < GString >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(92usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "find_file_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_dir_index(&self, name: impl AsArg < GString >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(93usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorFileSystemDirectory", "find_dir_index", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorFileSystemDirectory { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorFileSystemDirectory")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorFileSystemDirectory { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorFileSystemDirectory { + + } + impl crate::obj::cap::GodotDefault for EditorFileSystemDirectory { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorFileSystemDirectory { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorFileSystemDirectory { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorFileSystemDirectory`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorFileSystemDirectory { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorFileSystemDirectory > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_system_import_format_support_query.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_system_import_format_support_query.rs new file mode 100644 index 0000000..b1f3575 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_file_system_import_format_support_query.rs @@ -0,0 +1,197 @@ +#![doc = "Sidecar module for class [`EditorFileSystemImportFormatSupportQuery`][crate::classes::EditorFileSystemImportFormatSupportQuery].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorFileSystemImportFormatSupportQuery` enums](https://docs.godotengine.org/en/stable/classes/class_editorfilesystemimportformatsupportquery.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorFileSystemImportFormatSupportQuery.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEditorFileSystemImportFormatSupportQuery`][crate::classes::IEditorFileSystemImportFormatSupportQuery]: virtual methods\n\n\nSee also [Godot docs for `EditorFileSystemImportFormatSupportQuery`](https://docs.godotengine.org/en/stable/classes/class_editorfilesystemimportformatsupportquery.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorFileSystemImportFormatSupportQuery::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorFileSystemImportFormatSupportQuery { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorFileSystemImportFormatSupportQuery`][crate::classes::EditorFileSystemImportFormatSupportQuery].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorFileSystemImportFormatSupportQuery` methods](https://docs.godotengine.org/en/stable/classes/class_editorfilesystemimportformatsupportquery.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorFileSystemImportFormatSupportQuery: crate::obj::GodotClass < Base = EditorFileSystemImportFormatSupportQuery > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn is_active(&self,) -> bool; + fn get_file_extensions(&self,) -> PackedStringArray; + fn query(&self,) -> bool; + + } + impl EditorFileSystemImportFormatSupportQuery { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorFileSystemImportFormatSupportQuery { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorFileSystemImportFormatSupportQuery")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorFileSystemImportFormatSupportQuery { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorFileSystemImportFormatSupportQuery { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorFileSystemImportFormatSupportQuery { + + } + impl crate::obj::cap::GodotDefault for EditorFileSystemImportFormatSupportQuery { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorFileSystemImportFormatSupportQuery { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorFileSystemImportFormatSupportQuery { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorFileSystemImportFormatSupportQuery`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorFileSystemImportFormatSupportQuery { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorFileSystemImportFormatSupportQuery > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_import_plugin.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_import_plugin.rs new file mode 100644 index 0000000..19418f3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_import_plugin.rs @@ -0,0 +1,297 @@ +#![doc = "Sidecar module for class [`EditorImportPlugin`][crate::classes::EditorImportPlugin].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorImportPlugin` enums](https://docs.godotengine.org/en/stable/classes/class_editorimportplugin.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorImportPlugin.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`editor_import_plugin`][crate::classes::editor_import_plugin]: sidecar module with related enum/flag types\n* [`IEditorImportPlugin`][crate::classes::IEditorImportPlugin]: virtual methods\n\n\nSee also [Godot docs for `EditorImportPlugin`](https://docs.godotengine.org/en/stable/classes/class_editorimportplugin.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorImportPlugin::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorImportPlugin { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorImportPlugin`][crate::classes::EditorImportPlugin].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorImportPlugin` methods](https://docs.godotengine.org/en/stable/classes/class_editorimportplugin.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorImportPlugin: crate::obj::GodotClass < Base = EditorImportPlugin > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_importer_name(&self,) -> GString { + unimplemented !() + } + fn get_visible_name(&self,) -> GString { + unimplemented !() + } + fn get_preset_count(&self,) -> i32 { + unimplemented !() + } + fn get_preset_name(&self, preset_index: i32,) -> GString { + unimplemented !() + } + fn get_recognized_extensions(&self,) -> PackedStringArray { + unimplemented !() + } + fn get_import_options(&self, path: GString, preset_index: i32,) -> Array < Dictionary > { + unimplemented !() + } + fn get_save_extension(&self,) -> GString { + unimplemented !() + } + fn get_resource_type(&self,) -> GString { + unimplemented !() + } + fn get_priority(&self,) -> f32 { + unimplemented !() + } + fn get_import_order(&self,) -> i32 { + unimplemented !() + } + fn get_option_visibility(&self, path: GString, option_name: StringName, options: Dictionary,) -> bool { + unimplemented !() + } + fn import(&self, source_file: GString, save_path: GString, options: Dictionary, platform_variants: Array < GString >, gen_files: Array < GString >,) -> crate::global::Error { + unimplemented !() + } + fn can_import_threaded(&self,) -> bool { + unimplemented !() + } + } + impl EditorImportPlugin { + pub(crate) fn append_import_external_resource_full(&mut self, path: CowArg < GString >, custom_options: RefArg < Dictionary >, custom_importer: CowArg < GString >, generator_parameters: RefArg < Variant >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (crate::global::Error, CowArg < 'a0, GString >, RefArg < 'a1, Dictionary >, CowArg < 'a2, GString >, RefArg < 'a3, Variant >); + let args = (path, custom_options, custom_importer, generator_parameters,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(94usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorImportPlugin", "append_import_external_resource", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::append_import_external_resource_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn append_import_external_resource(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + self.append_import_external_resource_ex(path,) . done() + } + #[inline] + pub fn append_import_external_resource_ex < 'a > (&'a mut self, path: impl AsArg < GString > + 'a,) -> ExAppendImportExternalResource < 'a > { + ExAppendImportExternalResource::new(self, path,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorImportPlugin { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorImportPlugin")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorImportPlugin { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for EditorImportPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorImportPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorImportPlugin { + + } + impl crate::obj::cap::GodotDefault for EditorImportPlugin { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorImportPlugin { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorImportPlugin { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorImportPlugin`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorImportPlugin { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorImportPlugin > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorImportPlugin::append_import_external_resource_ex`][super::EditorImportPlugin::append_import_external_resource_ex]."] +#[must_use] +pub struct ExAppendImportExternalResource < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorImportPlugin, path: CowArg < 'a, GString >, custom_options: CowArg < 'a, Dictionary >, custom_importer: CowArg < 'a, GString >, generator_parameters: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAppendImportExternalResource < 'a > { + fn new(surround_object: &'a mut re_export::EditorImportPlugin, path: impl AsArg < GString > + 'a,) -> Self { + let custom_options = Dictionary::new(); + let custom_importer = GString::from(""); + let generator_parameters = Variant::nil(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), custom_options: CowArg::Owned(custom_options), custom_importer: CowArg::Owned(custom_importer), generator_parameters: CowArg::Owned(generator_parameters), + } + } + #[inline] + pub fn custom_options(self, custom_options: &'a Dictionary) -> Self { + Self { + custom_options: CowArg::Borrowed(custom_options), .. self + } + } + #[inline] + pub fn custom_importer(self, custom_importer: impl AsArg < GString > + 'a) -> Self { + Self { + custom_importer: custom_importer.into_arg(), .. self + } + } + #[inline] + pub fn generator_parameters(self, generator_parameters: &'a Variant) -> Self { + Self { + generator_parameters: CowArg::Borrowed(generator_parameters), .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, path, custom_options, custom_importer, generator_parameters, + } + = self; + re_export::EditorImportPlugin::append_import_external_resource_full(surround_object, path, custom_options.cow_as_arg(), custom_importer, generator_parameters.cow_as_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_inspector.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_inspector.rs new file mode 100644 index 0000000..4c5cb6f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_inspector.rs @@ -0,0 +1,299 @@ +#![doc = "Sidecar module for class [`EditorInspector`][crate::classes::EditorInspector].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorInspector` enums](https://docs.godotengine.org/en/stable/classes/class_editorinspector.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorInspector.`\n\nInherits [`ScrollContainer`][crate::classes::ScrollContainer].\n\nRelated symbols:\n\n* [`IEditorInspector`][crate::classes::IEditorInspector]: virtual methods\n\n\nSee also [Godot docs for `EditorInspector`](https://docs.godotengine.org/en/stable/classes/class_editorinspector.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorInspector::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorInspector { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorInspector`][crate::classes::EditorInspector].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorInspector` methods](https://docs.godotengine.org/en/stable/classes/class_editorinspector.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorInspector: crate::obj::GodotClass < Base = EditorInspector > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl EditorInspector { + pub fn get_selected_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(95usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInspector", "get_selected_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_edited_object(&mut self,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(96usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInspector", "get_edited_object", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorInspector { + type Base = crate::classes::ScrollContainer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorInspector")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorInspector { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::ScrollContainer > for EditorInspector { + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for EditorInspector { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for EditorInspector { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for EditorInspector { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for EditorInspector { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorInspector { + + } + impl crate::obj::cap::GodotDefault for EditorInspector { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorInspector { + type Target = crate::classes::ScrollContainer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorInspector { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorInspector`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorInspector { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorInspector > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ScrollContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_inspector_plugin.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_inspector_plugin.rs new file mode 100644 index 0000000..b01f0d9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_inspector_plugin.rs @@ -0,0 +1,279 @@ +#![doc = "Sidecar module for class [`EditorInspectorPlugin`][crate::classes::EditorInspectorPlugin].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorInspectorPlugin` enums](https://docs.godotengine.org/en/stable/classes/class_editorinspectorplugin.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorInspectorPlugin.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`editor_inspector_plugin`][crate::classes::editor_inspector_plugin]: sidecar module with related enum/flag types\n* [`IEditorInspectorPlugin`][crate::classes::IEditorInspectorPlugin]: virtual methods\n\n\nSee also [Godot docs for `EditorInspectorPlugin`](https://docs.godotengine.org/en/stable/classes/class_editorinspectorplugin.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorInspectorPlugin::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorInspectorPlugin { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorInspectorPlugin`][crate::classes::EditorInspectorPlugin].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorInspectorPlugin` methods](https://docs.godotengine.org/en/stable/classes/class_editorinspectorplugin.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorInspectorPlugin: crate::obj::GodotClass < Base = EditorInspectorPlugin > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn can_handle(&self, object: Option < Gd < crate::classes::Object > >,) -> bool { + unimplemented !() + } + fn parse_begin(&mut self, object: Option < Gd < crate::classes::Object > >,) { + unimplemented !() + } + fn parse_category(&mut self, object: Option < Gd < crate::classes::Object > >, category: GString,) { + unimplemented !() + } + fn parse_group(&mut self, object: Option < Gd < crate::classes::Object > >, group: GString,) { + unimplemented !() + } + fn parse_property(&mut self, object: Option < Gd < crate::classes::Object > >, type_: VariantType, name: GString, hint_type: crate::global::PropertyHint, hint_string: GString, usage_flags: crate::global::PropertyUsageFlags, wide: bool,) -> bool { + unimplemented !() + } + fn parse_end(&mut self, object: Option < Gd < crate::classes::Object > >,) { + unimplemented !() + } + } + impl EditorInspectorPlugin { + pub fn add_custom_control(&mut self, control: impl AsObjectArg < crate::classes::Control >,) { + type CallSig = ((), ObjectArg < crate::classes::Control >); + let args = (control.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(97usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInspectorPlugin", "add_custom_control", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_property_editor_full(&mut self, property: CowArg < GString >, editor: ObjectArg < crate::classes::Control >, add_to_end: bool, label: CowArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, ObjectArg < crate::classes::Control >, bool, CowArg < 'a1, GString >); + let args = (property, editor, add_to_end, label,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(98usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInspectorPlugin", "add_property_editor", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_property_editor_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_property_editor(&mut self, property: impl AsArg < GString >, editor: impl AsObjectArg < crate::classes::Control >,) { + self.add_property_editor_ex(property, editor,) . done() + } + #[inline] + pub fn add_property_editor_ex < 'a > (&'a mut self, property: impl AsArg < GString > + 'a, editor: impl AsObjectArg < crate::classes::Control >,) -> ExAddPropertyEditor < 'a > { + ExAddPropertyEditor::new(self, property, editor,) + } + pub fn add_property_editor_for_multiple_properties(&mut self, label: impl AsArg < GString >, properties: &PackedStringArray, editor: impl AsObjectArg < crate::classes::Control >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >, ObjectArg < crate::classes::Control >); + let args = (label.into_arg(), RefArg::new(properties), editor.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(99usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInspectorPlugin", "add_property_editor_for_multiple_properties", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorInspectorPlugin { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorInspectorPlugin")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorInspectorPlugin { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorInspectorPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorInspectorPlugin { + + } + impl crate::obj::cap::GodotDefault for EditorInspectorPlugin { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorInspectorPlugin { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorInspectorPlugin { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorInspectorPlugin`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorInspectorPlugin { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorInspectorPlugin > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorInspectorPlugin::add_property_editor_ex`][super::EditorInspectorPlugin::add_property_editor_ex]."] +#[must_use] +pub struct ExAddPropertyEditor < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorInspectorPlugin, property: CowArg < 'a, GString >, editor: ObjectCow < crate::classes::Control >, add_to_end: bool, label: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddPropertyEditor < 'a > { + fn new(surround_object: &'a mut re_export::EditorInspectorPlugin, property: impl AsArg < GString > + 'a, editor: impl AsObjectArg < crate::classes::Control >,) -> Self { + let add_to_end = false; + let label = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, property: property.into_arg(), editor: editor.consume_arg(), add_to_end: add_to_end, label: CowArg::Owned(label), + } + } + #[inline] + pub fn add_to_end(self, add_to_end: bool) -> Self { + Self { + add_to_end: add_to_end, .. self + } + } + #[inline] + pub fn label(self, label: impl AsArg < GString > + 'a) -> Self { + Self { + label: label.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, property, editor, add_to_end, label, + } + = self; + re_export::EditorInspectorPlugin::add_property_editor_full(surround_object, property, editor.cow_as_object_arg(), add_to_end, label,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_interface.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_interface.rs new file mode 100644 index 0000000..a4944a4 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_interface.rs @@ -0,0 +1,1064 @@ +#![doc = "Sidecar module for class [`EditorInterface`][crate::classes::EditorInterface].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorInterface` enums](https://docs.godotengine.org/en/stable/classes/class_editorinterface.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorInterface.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`editor_interface`][crate::classes::editor_interface]: sidecar module with related enum/flag types\n* [`IEditorInterface`][crate::classes::IEditorInterface]: virtual methods\n\n\nSee also [Godot docs for `EditorInterface`](https://docs.godotengine.org/en/stable/classes/class_editorinterface.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`EditorInterface::singleton()`][EditorInterface::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorInterface { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorInterface`][crate::classes::EditorInterface].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorInterface` methods](https://docs.godotengine.org/en/stable/classes/class_editorinterface.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorInterface: crate::obj::GodotClass < Base = EditorInterface > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorInterface { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"EditorInterface"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub(crate) fn restart_editor_full(&mut self, save: bool,) { + type CallSig = ((), bool); + let args = (save,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(100usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "restart_editor", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::restart_editor_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn restart_editor(&mut self,) { + self.restart_editor_ex() . done() + } + #[inline] + pub fn restart_editor_ex < 'a > (&'a mut self,) -> ExRestartEditor < 'a > { + ExRestartEditor::new(self,) + } + pub fn get_command_palette(&self,) -> Option < Gd < crate::classes::EditorCommandPalette > > { + type CallSig = (Option < Gd < crate::classes::EditorCommandPalette > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(101usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_command_palette", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_resource_filesystem(&self,) -> Option < Gd < crate::classes::EditorFileSystem > > { + type CallSig = (Option < Gd < crate::classes::EditorFileSystem > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(102usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_resource_filesystem", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_editor_paths(&self,) -> Option < Gd < crate::classes::EditorPaths > > { + type CallSig = (Option < Gd < crate::classes::EditorPaths > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(103usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_editor_paths", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_resource_previewer(&self,) -> Option < Gd < crate::classes::EditorResourcePreview > > { + type CallSig = (Option < Gd < crate::classes::EditorResourcePreview > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(104usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_resource_previewer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selection(&self,) -> Option < Gd < crate::classes::EditorSelection > > { + type CallSig = (Option < Gd < crate::classes::EditorSelection > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(105usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_editor_settings(&self,) -> Option < Gd < crate::classes::EditorSettings > > { + type CallSig = (Option < Gd < crate::classes::EditorSettings > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(106usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_editor_settings", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_mesh_previews(&mut self, meshes: &Array < Gd < crate::classes::Mesh > >, preview_size: i32,) -> Array < Gd < crate::classes::Texture2D > > { + type CallSig < 'a0, > = (Array < Gd < crate::classes::Texture2D > >, RefArg < 'a0, Array < Gd < crate::classes::Mesh > > >, i32); + let args = (RefArg::new(meshes), preview_size,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(107usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "make_mesh_previews", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_plugin_enabled(&mut self, plugin: impl AsArg < GString >, enabled: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, bool); + let args = (plugin.into_arg(), enabled,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(108usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "set_plugin_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_plugin_enabled(&self, plugin: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (plugin.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(109usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "is_plugin_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_editor_theme(&self,) -> Option < Gd < crate::classes::Theme > > { + type CallSig = (Option < Gd < crate::classes::Theme > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(110usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_editor_theme", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_base_control(&self,) -> Option < Gd < crate::classes::Control > > { + type CallSig = (Option < Gd < crate::classes::Control > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(111usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_base_control", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_editor_main_screen(&self,) -> Option < Gd < crate::classes::VBoxContainer > > { + type CallSig = (Option < Gd < crate::classes::VBoxContainer > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(112usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_editor_main_screen", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_script_editor(&self,) -> Option < Gd < crate::classes::ScriptEditor > > { + type CallSig = (Option < Gd < crate::classes::ScriptEditor > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(113usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_script_editor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_editor_viewport_2d(&self,) -> Option < Gd < crate::classes::SubViewport > > { + type CallSig = (Option < Gd < crate::classes::SubViewport > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(114usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_editor_viewport_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_editor_viewport_3d_full(&self, idx: i32,) -> Option < Gd < crate::classes::SubViewport > > { + type CallSig = (Option < Gd < crate::classes::SubViewport > >, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(115usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_editor_viewport_3d", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_editor_viewport_3d_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_editor_viewport_3d(&self,) -> Option < Gd < crate::classes::SubViewport > > { + self.get_editor_viewport_3d_ex() . done() + } + #[inline] + pub fn get_editor_viewport_3d_ex < 'a > (&'a self,) -> ExGetEditorViewport3d < 'a > { + ExGetEditorViewport3d::new(self,) + } + pub fn set_main_screen_editor(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(116usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "set_main_screen_editor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_distraction_free_mode(&mut self, enter: bool,) { + type CallSig = ((), bool); + let args = (enter,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(117usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "set_distraction_free_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_distraction_free_mode_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(118usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "is_distraction_free_mode_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_multi_window_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(119usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "is_multi_window_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_editor_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(120usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_editor_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn popup_dialog_full(&mut self, dialog: ObjectArg < crate::classes::Window >, rect: Rect2i,) { + type CallSig = ((), ObjectArg < crate::classes::Window >, Rect2i); + let args = (dialog, rect,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(121usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "popup_dialog", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::popup_dialog_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn popup_dialog(&mut self, dialog: impl AsObjectArg < crate::classes::Window >,) { + self.popup_dialog_ex(dialog,) . done() + } + #[inline] + pub fn popup_dialog_ex < 'a > (&'a mut self, dialog: impl AsObjectArg < crate::classes::Window >,) -> ExPopupDialog < 'a > { + ExPopupDialog::new(self, dialog,) + } + pub(crate) fn popup_dialog_centered_full(&mut self, dialog: ObjectArg < crate::classes::Window >, minsize: Vector2i,) { + type CallSig = ((), ObjectArg < crate::classes::Window >, Vector2i); + let args = (dialog, minsize,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(122usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "popup_dialog_centered", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::popup_dialog_centered_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn popup_dialog_centered(&mut self, dialog: impl AsObjectArg < crate::classes::Window >,) { + self.popup_dialog_centered_ex(dialog,) . done() + } + #[inline] + pub fn popup_dialog_centered_ex < 'a > (&'a mut self, dialog: impl AsObjectArg < crate::classes::Window >,) -> ExPopupDialogCentered < 'a > { + ExPopupDialogCentered::new(self, dialog,) + } + pub(crate) fn popup_dialog_centered_ratio_full(&mut self, dialog: ObjectArg < crate::classes::Window >, ratio: f32,) { + type CallSig = ((), ObjectArg < crate::classes::Window >, f32); + let args = (dialog, ratio,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(123usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "popup_dialog_centered_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::popup_dialog_centered_ratio_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn popup_dialog_centered_ratio(&mut self, dialog: impl AsObjectArg < crate::classes::Window >,) { + self.popup_dialog_centered_ratio_ex(dialog,) . done() + } + #[inline] + pub fn popup_dialog_centered_ratio_ex < 'a > (&'a mut self, dialog: impl AsObjectArg < crate::classes::Window >,) -> ExPopupDialogCenteredRatio < 'a > { + ExPopupDialogCenteredRatio::new(self, dialog,) + } + pub(crate) fn popup_dialog_centered_clamped_full(&mut self, dialog: ObjectArg < crate::classes::Window >, minsize: Vector2i, fallback_ratio: f32,) { + type CallSig = ((), ObjectArg < crate::classes::Window >, Vector2i, f32); + let args = (dialog, minsize, fallback_ratio,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(124usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "popup_dialog_centered_clamped", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::popup_dialog_centered_clamped_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn popup_dialog_centered_clamped(&mut self, dialog: impl AsObjectArg < crate::classes::Window >,) { + self.popup_dialog_centered_clamped_ex(dialog,) . done() + } + #[inline] + pub fn popup_dialog_centered_clamped_ex < 'a > (&'a mut self, dialog: impl AsObjectArg < crate::classes::Window >,) -> ExPopupDialogCenteredClamped < 'a > { + ExPopupDialogCenteredClamped::new(self, dialog,) + } + pub fn get_current_feature_profile(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(125usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_current_feature_profile", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_current_feature_profile(&mut self, profile_name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (profile_name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(126usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "set_current_feature_profile", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn popup_node_selector_full(&mut self, callback: RefArg < Callable >, valid_types: RefArg < Array < StringName > >,) { + type CallSig < 'a0, 'a1, > = ((), RefArg < 'a0, Callable >, RefArg < 'a1, Array < StringName > >); + let args = (callback, valid_types,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(127usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "popup_node_selector", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::popup_node_selector_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn popup_node_selector(&mut self, callback: &Callable,) { + self.popup_node_selector_ex(callback,) . done() + } + #[inline] + pub fn popup_node_selector_ex < 'a > (&'a mut self, callback: &'a Callable,) -> ExPopupNodeSelector < 'a > { + ExPopupNodeSelector::new(self, callback,) + } + pub(crate) fn popup_property_selector_full(&mut self, object: ObjectArg < crate::classes::Object >, callback: RefArg < Callable >, type_filter: RefArg < PackedInt32Array >,) { + type CallSig < 'a0, 'a1, > = ((), ObjectArg < crate::classes::Object >, RefArg < 'a0, Callable >, RefArg < 'a1, PackedInt32Array >); + let args = (object, callback, type_filter,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(128usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "popup_property_selector", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::popup_property_selector_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn popup_property_selector(&mut self, object: impl AsObjectArg < crate::classes::Object >, callback: &Callable,) { + self.popup_property_selector_ex(object, callback,) . done() + } + #[inline] + pub fn popup_property_selector_ex < 'a > (&'a mut self, object: impl AsObjectArg < crate::classes::Object >, callback: &'a Callable,) -> ExPopupPropertySelector < 'a > { + ExPopupPropertySelector::new(self, object, callback,) + } + pub fn get_file_system_dock(&self,) -> Option < Gd < crate::classes::FileSystemDock > > { + type CallSig = (Option < Gd < crate::classes::FileSystemDock > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(129usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_file_system_dock", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn select_file(&mut self, file: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (file.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(130usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "select_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selected_paths(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(131usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_selected_paths", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(132usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_current_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_directory(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(133usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_current_directory", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inspector(&self,) -> Option < Gd < crate::classes::EditorInspector > > { + type CallSig = (Option < Gd < crate::classes::EditorInspector > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(134usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_inspector", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn inspect_object_full(&mut self, object: ObjectArg < crate::classes::Object >, for_property: CowArg < GString >, inspector_only: bool,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Object >, CowArg < 'a0, GString >, bool); + let args = (object, for_property, inspector_only,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(135usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "inspect_object", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::inspect_object_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn inspect_object(&mut self, object: impl AsObjectArg < crate::classes::Object >,) { + self.inspect_object_ex(object,) . done() + } + #[inline] + pub fn inspect_object_ex < 'a > (&'a mut self, object: impl AsObjectArg < crate::classes::Object >,) -> ExInspectObject < 'a > { + ExInspectObject::new(self, object,) + } + pub fn edit_resource(&mut self, resource: impl AsObjectArg < crate::classes::Resource >,) { + type CallSig = ((), ObjectArg < crate::classes::Resource >); + let args = (resource.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(136usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "edit_resource", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn edit_node(&mut self, node: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(137usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "edit_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn edit_script_full(&mut self, script: ObjectArg < crate::classes::Script >, line: i32, column: i32, grab_focus: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Script >, i32, i32, bool); + let args = (script, line, column, grab_focus,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(138usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "edit_script", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::edit_script_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn edit_script(&mut self, script: impl AsObjectArg < crate::classes::Script >,) { + self.edit_script_ex(script,) . done() + } + #[inline] + pub fn edit_script_ex < 'a > (&'a mut self, script: impl AsObjectArg < crate::classes::Script >,) -> ExEditScript < 'a > { + ExEditScript::new(self, script,) + } + pub fn open_scene_from_path(&mut self, scene_filepath: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (scene_filepath.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(139usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "open_scene_from_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reload_scene_from_path(&mut self, scene_filepath: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (scene_filepath.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(140usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "reload_scene_from_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_open_scenes(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(141usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_open_scenes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_edited_scene_root(&self,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(142usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_edited_scene_root", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn save_scene(&mut self,) -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(143usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "save_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn save_scene_as_full(&mut self, path: CowArg < GString >, with_preview: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, bool); + let args = (path, with_preview,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(144usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "save_scene_as", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::save_scene_as_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn save_scene_as(&mut self, path: impl AsArg < GString >,) { + self.save_scene_as_ex(path,) . done() + } + #[inline] + pub fn save_scene_as_ex < 'a > (&'a mut self, path: impl AsArg < GString > + 'a,) -> ExSaveSceneAs < 'a > { + ExSaveSceneAs::new(self, path,) + } + pub fn save_all_scenes(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(145usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "save_all_scenes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mark_scene_as_unsaved(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(146usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "mark_scene_as_unsaved", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn play_main_scene(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(147usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "play_main_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn play_current_scene(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(148usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "play_current_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn play_custom_scene(&mut self, scene_filepath: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (scene_filepath.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(149usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "play_custom_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn stop_playing_scene(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(150usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "stop_playing_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_playing_scene(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(151usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "is_playing_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_playing_scene(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(152usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "get_playing_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_movie_maker_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(153usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "set_movie_maker_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_movie_maker_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(154usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorInterface", "is_movie_maker_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorInterface { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorInterface")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorInterface { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorInterface { + + } + impl std::ops::Deref for EditorInterface { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorInterface { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorInterface`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorInterface { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorInterface > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorInterface::restart_editor_ex`][super::EditorInterface::restart_editor_ex]."] +#[must_use] +pub struct ExRestartEditor < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorInterface, save: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExRestartEditor < 'a > { + fn new(surround_object: &'a mut re_export::EditorInterface,) -> Self { + let save = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, save: save, + } + } + #[inline] + pub fn save(self, save: bool) -> Self { + Self { + save: save, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, save, + } + = self; + re_export::EditorInterface::restart_editor_full(surround_object, save,) + } +} +#[doc = "Default-param extender for [`EditorInterface::get_editor_viewport_3d_ex`][super::EditorInterface::get_editor_viewport_3d_ex]."] +#[must_use] +pub struct ExGetEditorViewport3d < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::EditorInterface, idx: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetEditorViewport3d < 'a > { + fn new(surround_object: &'a re_export::EditorInterface,) -> Self { + let idx = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, idx: idx, + } + } + #[inline] + pub fn idx(self, idx: i32) -> Self { + Self { + idx: idx, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::SubViewport > > { + let Self { + _phantom, surround_object, idx, + } + = self; + re_export::EditorInterface::get_editor_viewport_3d_full(surround_object, idx,) + } +} +#[doc = "Default-param extender for [`EditorInterface::popup_dialog_ex`][super::EditorInterface::popup_dialog_ex]."] +#[must_use] +pub struct ExPopupDialog < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorInterface, dialog: ObjectCow < crate::classes::Window >, rect: Rect2i, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPopupDialog < 'a > { + fn new(surround_object: &'a mut re_export::EditorInterface, dialog: impl AsObjectArg < crate::classes::Window >,) -> Self { + let rect = Rect2i::from_components(0 as _, 0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, dialog: dialog.consume_arg(), rect: rect, + } + } + #[inline] + pub fn rect(self, rect: Rect2i) -> Self { + Self { + rect: rect, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, dialog, rect, + } + = self; + re_export::EditorInterface::popup_dialog_full(surround_object, dialog.cow_as_object_arg(), rect,) + } +} +#[doc = "Default-param extender for [`EditorInterface::popup_dialog_centered_ex`][super::EditorInterface::popup_dialog_centered_ex]."] +#[must_use] +pub struct ExPopupDialogCentered < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorInterface, dialog: ObjectCow < crate::classes::Window >, minsize: Vector2i, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPopupDialogCentered < 'a > { + fn new(surround_object: &'a mut re_export::EditorInterface, dialog: impl AsObjectArg < crate::classes::Window >,) -> Self { + let minsize = Vector2i::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, dialog: dialog.consume_arg(), minsize: minsize, + } + } + #[inline] + pub fn minsize(self, minsize: Vector2i) -> Self { + Self { + minsize: minsize, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, dialog, minsize, + } + = self; + re_export::EditorInterface::popup_dialog_centered_full(surround_object, dialog.cow_as_object_arg(), minsize,) + } +} +#[doc = "Default-param extender for [`EditorInterface::popup_dialog_centered_ratio_ex`][super::EditorInterface::popup_dialog_centered_ratio_ex]."] +#[must_use] +pub struct ExPopupDialogCenteredRatio < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorInterface, dialog: ObjectCow < crate::classes::Window >, ratio: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPopupDialogCenteredRatio < 'a > { + fn new(surround_object: &'a mut re_export::EditorInterface, dialog: impl AsObjectArg < crate::classes::Window >,) -> Self { + let ratio = 0.8f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, dialog: dialog.consume_arg(), ratio: ratio, + } + } + #[inline] + pub fn ratio(self, ratio: f32) -> Self { + Self { + ratio: ratio, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, dialog, ratio, + } + = self; + re_export::EditorInterface::popup_dialog_centered_ratio_full(surround_object, dialog.cow_as_object_arg(), ratio,) + } +} +#[doc = "Default-param extender for [`EditorInterface::popup_dialog_centered_clamped_ex`][super::EditorInterface::popup_dialog_centered_clamped_ex]."] +#[must_use] +pub struct ExPopupDialogCenteredClamped < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorInterface, dialog: ObjectCow < crate::classes::Window >, minsize: Vector2i, fallback_ratio: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPopupDialogCenteredClamped < 'a > { + fn new(surround_object: &'a mut re_export::EditorInterface, dialog: impl AsObjectArg < crate::classes::Window >,) -> Self { + let minsize = Vector2i::new(0 as _, 0 as _); + let fallback_ratio = 0.75f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, dialog: dialog.consume_arg(), minsize: minsize, fallback_ratio: fallback_ratio, + } + } + #[inline] + pub fn minsize(self, minsize: Vector2i) -> Self { + Self { + minsize: minsize, .. self + } + } + #[inline] + pub fn fallback_ratio(self, fallback_ratio: f32) -> Self { + Self { + fallback_ratio: fallback_ratio, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, dialog, minsize, fallback_ratio, + } + = self; + re_export::EditorInterface::popup_dialog_centered_clamped_full(surround_object, dialog.cow_as_object_arg(), minsize, fallback_ratio,) + } +} +#[doc = "Default-param extender for [`EditorInterface::popup_node_selector_ex`][super::EditorInterface::popup_node_selector_ex]."] +#[must_use] +pub struct ExPopupNodeSelector < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorInterface, callback: CowArg < 'a, Callable >, valid_types: CowArg < 'a, Array < StringName > >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPopupNodeSelector < 'a > { + fn new(surround_object: &'a mut re_export::EditorInterface, callback: &'a Callable,) -> Self { + let valid_types = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, callback: CowArg::Borrowed(callback), valid_types: CowArg::Owned(valid_types), + } + } + #[inline] + pub fn valid_types(self, valid_types: &'a Array < StringName >) -> Self { + Self { + valid_types: CowArg::Borrowed(valid_types), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, callback, valid_types, + } + = self; + re_export::EditorInterface::popup_node_selector_full(surround_object, callback.cow_as_arg(), valid_types.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`EditorInterface::popup_property_selector_ex`][super::EditorInterface::popup_property_selector_ex]."] +#[must_use] +pub struct ExPopupPropertySelector < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorInterface, object: ObjectCow < crate::classes::Object >, callback: CowArg < 'a, Callable >, type_filter: CowArg < 'a, PackedInt32Array >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPopupPropertySelector < 'a > { + fn new(surround_object: &'a mut re_export::EditorInterface, object: impl AsObjectArg < crate::classes::Object >, callback: &'a Callable,) -> Self { + let type_filter = PackedInt32Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, object: object.consume_arg(), callback: CowArg::Borrowed(callback), type_filter: CowArg::Owned(type_filter), + } + } + #[inline] + pub fn type_filter(self, type_filter: &'a PackedInt32Array) -> Self { + Self { + type_filter: CowArg::Borrowed(type_filter), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, object, callback, type_filter, + } + = self; + re_export::EditorInterface::popup_property_selector_full(surround_object, object.cow_as_object_arg(), callback.cow_as_arg(), type_filter.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`EditorInterface::inspect_object_ex`][super::EditorInterface::inspect_object_ex]."] +#[must_use] +pub struct ExInspectObject < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorInterface, object: ObjectCow < crate::classes::Object >, for_property: CowArg < 'a, GString >, inspector_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExInspectObject < 'a > { + fn new(surround_object: &'a mut re_export::EditorInterface, object: impl AsObjectArg < crate::classes::Object >,) -> Self { + let for_property = GString::from(""); + let inspector_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, object: object.consume_arg(), for_property: CowArg::Owned(for_property), inspector_only: inspector_only, + } + } + #[inline] + pub fn for_property(self, for_property: impl AsArg < GString > + 'a) -> Self { + Self { + for_property: for_property.into_arg(), .. self + } + } + #[inline] + pub fn inspector_only(self, inspector_only: bool) -> Self { + Self { + inspector_only: inspector_only, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, object, for_property, inspector_only, + } + = self; + re_export::EditorInterface::inspect_object_full(surround_object, object.cow_as_object_arg(), for_property, inspector_only,) + } +} +#[doc = "Default-param extender for [`EditorInterface::edit_script_ex`][super::EditorInterface::edit_script_ex]."] +#[must_use] +pub struct ExEditScript < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorInterface, script: ObjectCow < crate::classes::Script >, line: i32, column: i32, grab_focus: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExEditScript < 'a > { + fn new(surround_object: &'a mut re_export::EditorInterface, script: impl AsObjectArg < crate::classes::Script >,) -> Self { + let line = - 1i32; + let column = 0i32; + let grab_focus = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, script: script.consume_arg(), line: line, column: column, grab_focus: grab_focus, + } + } + #[inline] + pub fn line(self, line: i32) -> Self { + Self { + line: line, .. self + } + } + #[inline] + pub fn column(self, column: i32) -> Self { + Self { + column: column, .. self + } + } + #[inline] + pub fn grab_focus(self, grab_focus: bool) -> Self { + Self { + grab_focus: grab_focus, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, script, line, column, grab_focus, + } + = self; + re_export::EditorInterface::edit_script_full(surround_object, script.cow_as_object_arg(), line, column, grab_focus,) + } +} +#[doc = "Default-param extender for [`EditorInterface::save_scene_as_ex`][super::EditorInterface::save_scene_as_ex]."] +#[must_use] +pub struct ExSaveSceneAs < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorInterface, path: CowArg < 'a, GString >, with_preview: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSaveSceneAs < 'a > { + fn new(surround_object: &'a mut re_export::EditorInterface, path: impl AsArg < GString > + 'a,) -> Self { + let with_preview = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), with_preview: with_preview, + } + } + #[inline] + pub fn with_preview(self, with_preview: bool) -> Self { + Self { + with_preview: with_preview, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, path, with_preview, + } + = self; + re_export::EditorInterface::save_scene_as_full(surround_object, path, with_preview,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_node_3d_gizmo.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_node_3d_gizmo.rs new file mode 100644 index 0000000..73e314f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_node_3d_gizmo.rs @@ -0,0 +1,522 @@ +#![doc = "Sidecar module for class [`EditorNode3DGizmo`][crate::classes::EditorNode3DGizmo].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorNode3DGizmo` enums](https://docs.godotengine.org/en/stable/classes/class_editornode3dgizmo.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorNode3DGizmo.`\n\nInherits [`Node3DGizmo`][crate::classes::Node3DGizmo].\n\nRelated symbols:\n\n* [`editor_node_3d_gizmo`][crate::classes::editor_node_3d_gizmo]: sidecar module with related enum/flag types\n* [`IEditorNode3DGizmo`][crate::classes::IEditorNode3DGizmo]: virtual methods\n\n\nSee also [Godot docs for `EditorNode3DGizmo`](https://docs.godotengine.org/en/stable/classes/class_editornode3dgizmo.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorNode3DGizmo::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorNode3DGizmo { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorNode3DGizmo`][crate::classes::EditorNode3DGizmo].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorNode3DGizmo` methods](https://docs.godotengine.org/en/stable/classes/class_editornode3dgizmo.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorNode3DGizmo: crate::obj::GodotClass < Base = EditorNode3DGizmo > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn redraw(&mut self,) { + unimplemented !() + } + fn get_handle_name(&self, id: i32, secondary: bool,) -> GString { + unimplemented !() + } + fn is_handle_highlighted(&self, id: i32, secondary: bool,) -> bool { + unimplemented !() + } + fn get_handle_value(&self, id: i32, secondary: bool,) -> Variant { + unimplemented !() + } + fn begin_handle_action(&mut self, id: i32, secondary: bool,) { + unimplemented !() + } + fn set_handle(&mut self, id: i32, secondary: bool, camera: Option < Gd < crate::classes::Camera3D > >, point: Vector2,) { + unimplemented !() + } + fn commit_handle(&mut self, id: i32, secondary: bool, restore: Variant, cancel: bool,) { + unimplemented !() + } + fn subgizmos_intersect_ray(&self, camera: Option < Gd < crate::classes::Camera3D > >, point: Vector2,) -> i32 { + unimplemented !() + } + fn subgizmos_intersect_frustum(&self, camera: Option < Gd < crate::classes::Camera3D > >, frustum: Array < Plane >,) -> PackedInt32Array { + unimplemented !() + } + fn set_subgizmo_transform(&mut self, id: i32, transform: Transform3D,) { + unimplemented !() + } + fn get_subgizmo_transform(&self, id: i32,) -> Transform3D { + unimplemented !() + } + fn commit_subgizmos(&mut self, ids: PackedInt32Array, restores: Array < Transform3D >, cancel: bool,) { + unimplemented !() + } + } + impl EditorNode3DGizmo { + pub(crate) fn add_lines_full(&mut self, lines: RefArg < PackedVector3Array >, material: ObjectArg < crate::classes::Material >, billboard: bool, modulate: Color,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector3Array >, ObjectArg < crate::classes::Material >, bool, Color); + let args = (lines, material, billboard, modulate,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(155usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "add_lines", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_lines_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_lines(&mut self, lines: &PackedVector3Array, material: impl AsObjectArg < crate::classes::Material >,) { + self.add_lines_ex(lines, material,) . done() + } + #[inline] + pub fn add_lines_ex < 'a > (&'a mut self, lines: &'a PackedVector3Array, material: impl AsObjectArg < crate::classes::Material >,) -> ExAddLines < 'a > { + ExAddLines::new(self, lines, material,) + } + pub(crate) fn add_mesh_full(&mut self, mesh: ObjectArg < crate::classes::Mesh >, material: ObjectArg < crate::classes::Material >, transform: Transform3D, skeleton: ObjectArg < crate::classes::SkinReference >,) { + type CallSig = ((), ObjectArg < crate::classes::Mesh >, ObjectArg < crate::classes::Material >, Transform3D, ObjectArg < crate::classes::SkinReference >); + let args = (mesh, material, transform, skeleton,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(156usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "add_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_mesh_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_mesh(&mut self, mesh: impl AsObjectArg < crate::classes::Mesh >,) { + self.add_mesh_ex(mesh,) . done() + } + #[inline] + pub fn add_mesh_ex < 'a > (&'a mut self, mesh: impl AsObjectArg < crate::classes::Mesh >,) -> ExAddMesh < 'a > { + ExAddMesh::new(self, mesh,) + } + pub fn add_collision_segments(&mut self, segments: &PackedVector3Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector3Array >); + let args = (RefArg::new(segments),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(157usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "add_collision_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_collision_triangles(&mut self, triangles: impl AsObjectArg < crate::classes::TriangleMesh >,) { + type CallSig = ((), ObjectArg < crate::classes::TriangleMesh >); + let args = (triangles.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(158usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "add_collision_triangles", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_unscaled_billboard_full(&mut self, material: ObjectArg < crate::classes::Material >, default_scale: f32, modulate: Color,) { + type CallSig = ((), ObjectArg < crate::classes::Material >, f32, Color); + let args = (material, default_scale, modulate,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(159usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "add_unscaled_billboard", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_unscaled_billboard_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_unscaled_billboard(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + self.add_unscaled_billboard_ex(material,) . done() + } + #[inline] + pub fn add_unscaled_billboard_ex < 'a > (&'a mut self, material: impl AsObjectArg < crate::classes::Material >,) -> ExAddUnscaledBillboard < 'a > { + ExAddUnscaledBillboard::new(self, material,) + } + pub(crate) fn add_handles_full(&mut self, handles: RefArg < PackedVector3Array >, material: ObjectArg < crate::classes::Material >, ids: RefArg < PackedInt32Array >, billboard: bool, secondary: bool,) { + type CallSig < 'a0, 'a1, > = ((), RefArg < 'a0, PackedVector3Array >, ObjectArg < crate::classes::Material >, RefArg < 'a1, PackedInt32Array >, bool, bool); + let args = (handles, material, ids, billboard, secondary,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(160usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "add_handles", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_handles_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_handles(&mut self, handles: &PackedVector3Array, material: impl AsObjectArg < crate::classes::Material >, ids: &PackedInt32Array,) { + self.add_handles_ex(handles, material, ids,) . done() + } + #[inline] + pub fn add_handles_ex < 'a > (&'a mut self, handles: &'a PackedVector3Array, material: impl AsObjectArg < crate::classes::Material >, ids: &'a PackedInt32Array,) -> ExAddHandles < 'a > { + ExAddHandles::new(self, handles, material, ids,) + } + pub fn set_node_3d(&mut self, node: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(161usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "set_node_3d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_3d(&self,) -> Option < Gd < crate::classes::Node3D > > { + type CallSig = (Option < Gd < crate::classes::Node3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(162usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "get_node_3d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_plugin(&self,) -> Option < Gd < crate::classes::EditorNode3DGizmoPlugin > > { + type CallSig = (Option < Gd < crate::classes::EditorNode3DGizmoPlugin > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(163usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "get_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(164usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hidden(&mut self, hidden: bool,) { + type CallSig = ((), bool); + let args = (hidden,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(165usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "set_hidden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_subgizmo_selected(&self, id: i32,) -> bool { + type CallSig = (bool, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(166usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "is_subgizmo_selected", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subgizmo_selection(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(167usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmo", "get_subgizmo_selection", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorNode3DGizmo { + type Base = crate::classes::Node3DGizmo; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorNode3DGizmo")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorNode3DGizmo { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3DGizmo > for EditorNode3DGizmo { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorNode3DGizmo { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorNode3DGizmo { + + } + impl crate::obj::cap::GodotDefault for EditorNode3DGizmo { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorNode3DGizmo { + type Target = crate::classes::Node3DGizmo; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorNode3DGizmo { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorNode3DGizmo`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorNode3DGizmo { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorNode3DGizmo > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3DGizmo > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorNode3DGizmo::add_lines_ex`][super::EditorNode3DGizmo::add_lines_ex]."] +#[must_use] +pub struct ExAddLines < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorNode3DGizmo, lines: CowArg < 'a, PackedVector3Array >, material: ObjectCow < crate::classes::Material >, billboard: bool, modulate: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddLines < 'a > { + fn new(surround_object: &'a mut re_export::EditorNode3DGizmo, lines: &'a PackedVector3Array, material: impl AsObjectArg < crate::classes::Material >,) -> Self { + let billboard = false; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, lines: CowArg::Borrowed(lines), material: material.consume_arg(), billboard: billboard, modulate: modulate, + } + } + #[inline] + pub fn billboard(self, billboard: bool) -> Self { + Self { + billboard: billboard, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, lines, material, billboard, modulate, + } + = self; + re_export::EditorNode3DGizmo::add_lines_full(surround_object, lines.cow_as_arg(), material.cow_as_object_arg(), billboard, modulate,) + } +} +#[doc = "Default-param extender for [`EditorNode3DGizmo::add_mesh_ex`][super::EditorNode3DGizmo::add_mesh_ex]."] +#[must_use] +pub struct ExAddMesh < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorNode3DGizmo, mesh: ObjectCow < crate::classes::Mesh >, material: ObjectCow < crate::classes::Material >, transform: Transform3D, skeleton: ObjectCow < crate::classes::SkinReference >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddMesh < 'a > { + fn new(surround_object: &'a mut re_export::EditorNode3DGizmo, mesh: impl AsObjectArg < crate::classes::Mesh >,) -> Self { + let material = Gd::null_arg(); + let transform = Transform3D::__internal_codegen(1 as _, 0 as _, 0 as _, 0 as _, 1 as _, 0 as _, 0 as _, 0 as _, 1 as _, 0 as _, 0 as _, 0 as _); + let skeleton = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, mesh: mesh.consume_arg(), material: material.consume_arg(), transform: transform, skeleton: skeleton.consume_arg(), + } + } + #[inline] + pub fn material(self, material: impl AsObjectArg < crate::classes::Material >) -> Self { + Self { + material: material.consume_arg(), .. self + } + } + #[inline] + pub fn transform(self, transform: Transform3D) -> Self { + Self { + transform: transform, .. self + } + } + #[inline] + pub fn skeleton(self, skeleton: impl AsObjectArg < crate::classes::SkinReference >) -> Self { + Self { + skeleton: skeleton.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, mesh, material, transform, skeleton, + } + = self; + re_export::EditorNode3DGizmo::add_mesh_full(surround_object, mesh.cow_as_object_arg(), material.cow_as_object_arg(), transform, skeleton.cow_as_object_arg(),) + } +} +#[doc = "Default-param extender for [`EditorNode3DGizmo::add_unscaled_billboard_ex`][super::EditorNode3DGizmo::add_unscaled_billboard_ex]."] +#[must_use] +pub struct ExAddUnscaledBillboard < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorNode3DGizmo, material: ObjectCow < crate::classes::Material >, default_scale: f32, modulate: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddUnscaledBillboard < 'a > { + fn new(surround_object: &'a mut re_export::EditorNode3DGizmo, material: impl AsObjectArg < crate::classes::Material >,) -> Self { + let default_scale = 1f32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, material: material.consume_arg(), default_scale: default_scale, modulate: modulate, + } + } + #[inline] + pub fn default_scale(self, default_scale: f32) -> Self { + Self { + default_scale: default_scale, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, material, default_scale, modulate, + } + = self; + re_export::EditorNode3DGizmo::add_unscaled_billboard_full(surround_object, material.cow_as_object_arg(), default_scale, modulate,) + } +} +#[doc = "Default-param extender for [`EditorNode3DGizmo::add_handles_ex`][super::EditorNode3DGizmo::add_handles_ex]."] +#[must_use] +pub struct ExAddHandles < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorNode3DGizmo, handles: CowArg < 'a, PackedVector3Array >, material: ObjectCow < crate::classes::Material >, ids: CowArg < 'a, PackedInt32Array >, billboard: bool, secondary: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddHandles < 'a > { + fn new(surround_object: &'a mut re_export::EditorNode3DGizmo, handles: &'a PackedVector3Array, material: impl AsObjectArg < crate::classes::Material >, ids: &'a PackedInt32Array,) -> Self { + let billboard = false; + let secondary = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, handles: CowArg::Borrowed(handles), material: material.consume_arg(), ids: CowArg::Borrowed(ids), billboard: billboard, secondary: secondary, + } + } + #[inline] + pub fn billboard(self, billboard: bool) -> Self { + Self { + billboard: billboard, .. self + } + } + #[inline] + pub fn secondary(self, secondary: bool) -> Self { + Self { + secondary: secondary, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, handles, material, ids, billboard, secondary, + } + = self; + re_export::EditorNode3DGizmo::add_handles_full(surround_object, handles.cow_as_arg(), material.cow_as_object_arg(), ids.cow_as_arg(), billboard, secondary,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_node_3d_gizmo_plugin.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_node_3d_gizmo_plugin.rs new file mode 100644 index 0000000..08281c1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_node_3d_gizmo_plugin.rs @@ -0,0 +1,472 @@ +#![doc = "Sidecar module for class [`EditorNode3DGizmoPlugin`][crate::classes::EditorNode3DGizmoPlugin].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorNode3DGizmoPlugin` enums](https://docs.godotengine.org/en/stable/classes/class_editornode3dgizmoplugin.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorNode3DGizmoPlugin.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`editor_node_3d_gizmo_plugin`][crate::classes::editor_node_3d_gizmo_plugin]: sidecar module with related enum/flag types\n* [`IEditorNode3DGizmoPlugin`][crate::classes::IEditorNode3DGizmoPlugin]: virtual methods\n\n\nSee also [Godot docs for `EditorNode3DGizmoPlugin`](https://docs.godotengine.org/en/stable/classes/class_editornode3dgizmoplugin.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorNode3DGizmoPlugin::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorNode3DGizmoPlugin { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorNode3DGizmoPlugin`][crate::classes::EditorNode3DGizmoPlugin].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorNode3DGizmoPlugin` methods](https://docs.godotengine.org/en/stable/classes/class_editornode3dgizmoplugin.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorNode3DGizmoPlugin: crate::obj::GodotClass < Base = EditorNode3DGizmoPlugin > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_gizmo(&self, for_node_3d: Option < Gd < crate::classes::Node3D > >,) -> bool { + unimplemented !() + } + fn create_gizmo(&self, for_node_3d: Option < Gd < crate::classes::Node3D > >,) -> Option < Gd < crate::classes::EditorNode3DGizmo > > { + unimplemented !() + } + fn get_gizmo_name(&self,) -> GString { + unimplemented !() + } + fn get_priority(&self,) -> i32 { + unimplemented !() + } + fn can_be_hidden(&self,) -> bool { + unimplemented !() + } + fn is_selectable_when_hidden(&self,) -> bool { + unimplemented !() + } + fn redraw(&mut self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >,) { + unimplemented !() + } + fn get_handle_name(&self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >, handle_id: i32, secondary: bool,) -> GString { + unimplemented !() + } + fn is_handle_highlighted(&self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >, handle_id: i32, secondary: bool,) -> bool { + unimplemented !() + } + fn get_handle_value(&self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >, handle_id: i32, secondary: bool,) -> Variant { + unimplemented !() + } + fn begin_handle_action(&mut self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >, handle_id: i32, secondary: bool,) { + unimplemented !() + } + fn set_handle(&mut self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >, handle_id: i32, secondary: bool, camera: Option < Gd < crate::classes::Camera3D > >, screen_pos: Vector2,) { + unimplemented !() + } + fn commit_handle(&mut self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >, handle_id: i32, secondary: bool, restore: Variant, cancel: bool,) { + unimplemented !() + } + fn subgizmos_intersect_ray(&self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >, camera: Option < Gd < crate::classes::Camera3D > >, screen_pos: Vector2,) -> i32 { + unimplemented !() + } + fn subgizmos_intersect_frustum(&self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >, camera: Option < Gd < crate::classes::Camera3D > >, frustum_planes: Array < Plane >,) -> PackedInt32Array { + unimplemented !() + } + fn get_subgizmo_transform(&self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >, subgizmo_id: i32,) -> Transform3D { + unimplemented !() + } + fn set_subgizmo_transform(&mut self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >, subgizmo_id: i32, transform: Transform3D,) { + unimplemented !() + } + fn commit_subgizmos(&mut self, gizmo: Option < Gd < crate::classes::EditorNode3DGizmo > >, ids: PackedInt32Array, restores: Array < Transform3D >, cancel: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl EditorNode3DGizmoPlugin { + pub(crate) fn create_material_full(&mut self, name: CowArg < GString >, color: Color, billboard: bool, on_top: bool, use_vertex_color: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, Color, bool, bool, bool); + let args = (name, color, billboard, on_top, use_vertex_color,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(168usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmoPlugin", "create_material", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_material_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_material(&mut self, name: impl AsArg < GString >, color: Color,) { + self.create_material_ex(name, color,) . done() + } + #[inline] + pub fn create_material_ex < 'a > (&'a mut self, name: impl AsArg < GString > + 'a, color: Color,) -> ExCreateMaterial < 'a > { + ExCreateMaterial::new(self, name, color,) + } + pub(crate) fn create_icon_material_full(&mut self, name: CowArg < GString >, texture: ObjectArg < crate::classes::Texture2D >, on_top: bool, color: Color,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, ObjectArg < crate::classes::Texture2D >, bool, Color); + let args = (name, texture, on_top, color,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(169usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmoPlugin", "create_icon_material", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_icon_material_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_icon_material(&mut self, name: impl AsArg < GString >, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + self.create_icon_material_ex(name, texture,) . done() + } + #[inline] + pub fn create_icon_material_ex < 'a > (&'a mut self, name: impl AsArg < GString > + 'a, texture: impl AsObjectArg < crate::classes::Texture2D >,) -> ExCreateIconMaterial < 'a > { + ExCreateIconMaterial::new(self, name, texture,) + } + pub(crate) fn create_handle_material_full(&mut self, name: CowArg < GString >, billboard: bool, texture: ObjectArg < crate::classes::Texture2D >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, bool, ObjectArg < crate::classes::Texture2D >); + let args = (name, billboard, texture,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(170usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmoPlugin", "create_handle_material", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_handle_material_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_handle_material(&mut self, name: impl AsArg < GString >,) { + self.create_handle_material_ex(name,) . done() + } + #[inline] + pub fn create_handle_material_ex < 'a > (&'a mut self, name: impl AsArg < GString > + 'a,) -> ExCreateHandleMaterial < 'a > { + ExCreateHandleMaterial::new(self, name,) + } + pub fn add_material(&mut self, name: impl AsArg < GString >, material: impl AsObjectArg < crate::classes::StandardMaterial3D >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, ObjectArg < crate::classes::StandardMaterial3D >); + let args = (name.into_arg(), material.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(171usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmoPlugin", "add_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_material_full(&mut self, name: CowArg < GString >, gizmo: ObjectArg < crate::classes::EditorNode3DGizmo >,) -> Option < Gd < crate::classes::StandardMaterial3D > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::StandardMaterial3D > >, CowArg < 'a0, GString >, ObjectArg < crate::classes::EditorNode3DGizmo >); + let args = (name, gizmo,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(172usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorNode3DGizmoPlugin", "get_material", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_material_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_material(&mut self, name: impl AsArg < GString >,) -> Option < Gd < crate::classes::StandardMaterial3D > > { + self.get_material_ex(name,) . done() + } + #[inline] + pub fn get_material_ex < 'a > (&'a mut self, name: impl AsArg < GString > + 'a,) -> ExGetMaterial < 'a > { + ExGetMaterial::new(self, name,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorNode3DGizmoPlugin { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorNode3DGizmoPlugin")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorNode3DGizmoPlugin { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for EditorNode3DGizmoPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorNode3DGizmoPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorNode3DGizmoPlugin { + + } + impl crate::obj::cap::GodotDefault for EditorNode3DGizmoPlugin { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorNode3DGizmoPlugin { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorNode3DGizmoPlugin { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorNode3DGizmoPlugin`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorNode3DGizmoPlugin { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorNode3DGizmoPlugin > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorNode3DGizmoPlugin::create_material_ex`][super::EditorNode3DGizmoPlugin::create_material_ex]."] +#[must_use] +pub struct ExCreateMaterial < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorNode3DGizmoPlugin, name: CowArg < 'a, GString >, color: Color, billboard: bool, on_top: bool, use_vertex_color: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateMaterial < 'a > { + fn new(surround_object: &'a mut re_export::EditorNode3DGizmoPlugin, name: impl AsArg < GString > + 'a, color: Color,) -> Self { + let billboard = false; + let on_top = false; + let use_vertex_color = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), color: color, billboard: billboard, on_top: on_top, use_vertex_color: use_vertex_color, + } + } + #[inline] + pub fn billboard(self, billboard: bool) -> Self { + Self { + billboard: billboard, .. self + } + } + #[inline] + pub fn on_top(self, on_top: bool) -> Self { + Self { + on_top: on_top, .. self + } + } + #[inline] + pub fn use_vertex_color(self, use_vertex_color: bool) -> Self { + Self { + use_vertex_color: use_vertex_color, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, color, billboard, on_top, use_vertex_color, + } + = self; + re_export::EditorNode3DGizmoPlugin::create_material_full(surround_object, name, color, billboard, on_top, use_vertex_color,) + } +} +#[doc = "Default-param extender for [`EditorNode3DGizmoPlugin::create_icon_material_ex`][super::EditorNode3DGizmoPlugin::create_icon_material_ex]."] +#[must_use] +pub struct ExCreateIconMaterial < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorNode3DGizmoPlugin, name: CowArg < 'a, GString >, texture: ObjectCow < crate::classes::Texture2D >, on_top: bool, color: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateIconMaterial < 'a > { + fn new(surround_object: &'a mut re_export::EditorNode3DGizmoPlugin, name: impl AsArg < GString > + 'a, texture: impl AsObjectArg < crate::classes::Texture2D >,) -> Self { + let on_top = false; + let color = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), texture: texture.consume_arg(), on_top: on_top, color: color, + } + } + #[inline] + pub fn on_top(self, on_top: bool) -> Self { + Self { + on_top: on_top, .. self + } + } + #[inline] + pub fn color(self, color: Color) -> Self { + Self { + color: color, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, texture, on_top, color, + } + = self; + re_export::EditorNode3DGizmoPlugin::create_icon_material_full(surround_object, name, texture.cow_as_object_arg(), on_top, color,) + } +} +#[doc = "Default-param extender for [`EditorNode3DGizmoPlugin::create_handle_material_ex`][super::EditorNode3DGizmoPlugin::create_handle_material_ex]."] +#[must_use] +pub struct ExCreateHandleMaterial < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorNode3DGizmoPlugin, name: CowArg < 'a, GString >, billboard: bool, texture: ObjectCow < crate::classes::Texture2D >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateHandleMaterial < 'a > { + fn new(surround_object: &'a mut re_export::EditorNode3DGizmoPlugin, name: impl AsArg < GString > + 'a,) -> Self { + let billboard = false; + let texture = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), billboard: billboard, texture: texture.consume_arg(), + } + } + #[inline] + pub fn billboard(self, billboard: bool) -> Self { + Self { + billboard: billboard, .. self + } + } + #[inline] + pub fn texture(self, texture: impl AsObjectArg < crate::classes::Texture2D >) -> Self { + Self { + texture: texture.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, billboard, texture, + } + = self; + re_export::EditorNode3DGizmoPlugin::create_handle_material_full(surround_object, name, billboard, texture.cow_as_object_arg(),) + } +} +#[doc = "Default-param extender for [`EditorNode3DGizmoPlugin::get_material_ex`][super::EditorNode3DGizmoPlugin::get_material_ex]."] +#[must_use] +pub struct ExGetMaterial < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorNode3DGizmoPlugin, name: CowArg < 'a, GString >, gizmo: ObjectCow < crate::classes::EditorNode3DGizmo >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetMaterial < 'a > { + fn new(surround_object: &'a mut re_export::EditorNode3DGizmoPlugin, name: impl AsArg < GString > + 'a,) -> Self { + let gizmo = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), gizmo: gizmo.consume_arg(), + } + } + #[inline] + pub fn gizmo(self, gizmo: impl AsObjectArg < crate::classes::EditorNode3DGizmo >) -> Self { + Self { + gizmo: gizmo.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::StandardMaterial3D > > { + let Self { + _phantom, surround_object, name, gizmo, + } + = self; + re_export::EditorNode3DGizmoPlugin::get_material_full(surround_object, name, gizmo.cow_as_object_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_paths.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_paths.rs new file mode 100644 index 0000000..83da12c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_paths.rs @@ -0,0 +1,235 @@ +#![doc = "Sidecar module for class [`EditorPaths`][crate::classes::EditorPaths].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorPaths` enums](https://docs.godotengine.org/en/stable/classes/class_editorpaths.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorPaths.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IEditorPaths`][crate::classes::IEditorPaths]: virtual methods\n\n\nSee also [Godot docs for `EditorPaths`](https://docs.godotengine.org/en/stable/classes/class_editorpaths.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorPaths::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorPaths { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorPaths`][crate::classes::EditorPaths].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorPaths` methods](https://docs.godotengine.org/en/stable/classes/class_editorpaths.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorPaths: crate::obj::GodotClass < Base = EditorPaths > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorPaths { + pub fn get_data_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(173usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPaths", "get_data_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_config_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(174usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPaths", "get_config_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cache_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(175usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPaths", "get_cache_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_self_contained(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(176usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPaths", "is_self_contained", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_self_contained_file(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(177usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPaths", "get_self_contained_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_project_settings_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(178usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPaths", "get_project_settings_dir", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorPaths { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorPaths")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorPaths { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorPaths { + + } + impl crate::obj::cap::GodotDefault for EditorPaths { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorPaths { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorPaths { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorPaths`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorPaths { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorPaths > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_plugin.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_plugin.rs new file mode 100644 index 0000000..bb70c0e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_plugin.rs @@ -0,0 +1,1145 @@ +#![doc = "Sidecar module for class [`EditorPlugin`][crate::classes::EditorPlugin].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorPlugin` enums](https://docs.godotengine.org/en/stable/classes/class_editorplugin.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorPlugin.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`editor_plugin`][crate::classes::editor_plugin]: sidecar module with related enum/flag types\n* [`IEditorPlugin`][crate::classes::IEditorPlugin]: virtual methods\n\n\nSee also [Godot docs for `EditorPlugin`](https://docs.godotengine.org/en/stable/classes/class_editorplugin.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorPlugin::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorPlugin { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorPlugin`][crate::classes::EditorPlugin].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorPlugin` methods](https://docs.godotengine.org/en/stable/classes/class_editorplugin.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorPlugin: crate::obj::GodotClass < Base = EditorPlugin > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn forward_canvas_gui_input(&mut self, event: Option < Gd < crate::classes::InputEvent > >,) -> bool { + unimplemented !() + } + fn forward_canvas_draw_over_viewport(&mut self, viewport_control: Option < Gd < crate::classes::Control > >,) { + unimplemented !() + } + fn forward_canvas_force_draw_over_viewport(&mut self, viewport_control: Option < Gd < crate::classes::Control > >,) { + unimplemented !() + } + fn forward_3d_gui_input(&mut self, viewport_camera: Option < Gd < crate::classes::Camera3D > >, event: Option < Gd < crate::classes::InputEvent > >,) -> i32 { + unimplemented !() + } + fn forward_3d_draw_over_viewport(&mut self, viewport_control: Option < Gd < crate::classes::Control > >,) { + unimplemented !() + } + fn forward_3d_force_draw_over_viewport(&mut self, viewport_control: Option < Gd < crate::classes::Control > >,) { + unimplemented !() + } + fn get_plugin_name(&self,) -> GString { + unimplemented !() + } + fn get_plugin_icon(&self,) -> Option < Gd < crate::classes::Texture2D > > { + unimplemented !() + } + fn has_main_screen(&self,) -> bool { + unimplemented !() + } + fn make_visible(&mut self, visible: bool,) { + unimplemented !() + } + fn edit(&mut self, object: Option < Gd < crate::classes::Object > >,) { + unimplemented !() + } + fn handles(&self, object: Gd < crate::classes::Object >,) -> bool { + unimplemented !() + } + fn get_state(&self,) -> Dictionary { + unimplemented !() + } + fn set_state(&mut self, state: Dictionary,) { + unimplemented !() + } + fn clear(&mut self,) { + unimplemented !() + } + fn get_unsaved_status(&self, for_scene: GString,) -> GString { + unimplemented !() + } + fn save_external_data(&mut self,) { + unimplemented !() + } + fn apply_changes(&mut self,) { + unimplemented !() + } + fn get_breakpoints(&self,) -> PackedStringArray { + unimplemented !() + } + fn set_window_layout(&mut self, configuration: Option < Gd < crate::classes::ConfigFile > >,) { + unimplemented !() + } + fn get_window_layout(&mut self, configuration: Option < Gd < crate::classes::ConfigFile > >,) { + unimplemented !() + } + fn build(&mut self,) -> bool { + unimplemented !() + } + fn enable_plugin(&mut self,) { + unimplemented !() + } + fn disable_plugin(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl EditorPlugin { + pub fn add_control_to_container(&mut self, container: crate::classes::editor_plugin::CustomControlContainer, control: impl AsObjectArg < crate::classes::Control >,) { + type CallSig = ((), crate::classes::editor_plugin::CustomControlContainer, ObjectArg < crate::classes::Control >); + let args = (container, control.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(179usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_control_to_container", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_control_to_bottom_panel_full(&mut self, control: ObjectArg < crate::classes::Control >, title: CowArg < GString >, shortcut: ObjectArg < crate::classes::Shortcut >,) -> Option < Gd < crate::classes::Button > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Button > >, ObjectArg < crate::classes::Control >, CowArg < 'a0, GString >, ObjectArg < crate::classes::Shortcut >); + let args = (control, title, shortcut,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(180usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_control_to_bottom_panel", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_control_to_bottom_panel_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_control_to_bottom_panel(&mut self, control: impl AsObjectArg < crate::classes::Control >, title: impl AsArg < GString >,) -> Option < Gd < crate::classes::Button > > { + self.add_control_to_bottom_panel_ex(control, title,) . done() + } + #[inline] + pub fn add_control_to_bottom_panel_ex < 'a > (&'a mut self, control: impl AsObjectArg < crate::classes::Control >, title: impl AsArg < GString > + 'a,) -> ExAddControlToBottomPanel < 'a > { + ExAddControlToBottomPanel::new(self, control, title,) + } + pub(crate) fn add_control_to_dock_full(&mut self, slot: crate::classes::editor_plugin::DockSlot, control: ObjectArg < crate::classes::Control >, shortcut: ObjectArg < crate::classes::Shortcut >,) { + type CallSig = ((), crate::classes::editor_plugin::DockSlot, ObjectArg < crate::classes::Control >, ObjectArg < crate::classes::Shortcut >); + let args = (slot, control, shortcut,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(181usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_control_to_dock", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_control_to_dock_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_control_to_dock(&mut self, slot: crate::classes::editor_plugin::DockSlot, control: impl AsObjectArg < crate::classes::Control >,) { + self.add_control_to_dock_ex(slot, control,) . done() + } + #[inline] + pub fn add_control_to_dock_ex < 'a > (&'a mut self, slot: crate::classes::editor_plugin::DockSlot, control: impl AsObjectArg < crate::classes::Control >,) -> ExAddControlToDock < 'a > { + ExAddControlToDock::new(self, slot, control,) + } + pub fn remove_control_from_docks(&mut self, control: impl AsObjectArg < crate::classes::Control >,) { + type CallSig = ((), ObjectArg < crate::classes::Control >); + let args = (control.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(182usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_control_from_docks", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_control_from_bottom_panel(&mut self, control: impl AsObjectArg < crate::classes::Control >,) { + type CallSig = ((), ObjectArg < crate::classes::Control >); + let args = (control.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(183usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_control_from_bottom_panel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_control_from_container(&mut self, container: crate::classes::editor_plugin::CustomControlContainer, control: impl AsObjectArg < crate::classes::Control >,) { + type CallSig = ((), crate::classes::editor_plugin::CustomControlContainer, ObjectArg < crate::classes::Control >); + let args = (container, control.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(184usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_control_from_container", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dock_tab_icon(&mut self, control: impl AsObjectArg < crate::classes::Control >, icon: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Control >, ObjectArg < crate::classes::Texture2D >); + let args = (control.as_object_arg(), icon.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(185usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "set_dock_tab_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_tool_menu_item(&mut self, name: impl AsArg < GString >, callable: &Callable,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, Callable >); + let args = (name.into_arg(), RefArg::new(callable),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(186usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_tool_menu_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_tool_submenu_item(&mut self, name: impl AsArg < GString >, submenu: impl AsObjectArg < crate::classes::PopupMenu >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, ObjectArg < crate::classes::PopupMenu >); + let args = (name.into_arg(), submenu.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(187usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_tool_submenu_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_tool_menu_item(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(188usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_tool_menu_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_export_as_menu(&mut self,) -> Option < Gd < crate::classes::PopupMenu > > { + type CallSig = (Option < Gd < crate::classes::PopupMenu > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(189usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "get_export_as_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_custom_type(&mut self, type_: impl AsArg < GString >, base: impl AsArg < GString >, script: impl AsObjectArg < crate::classes::Script >, icon: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, ObjectArg < crate::classes::Script >, ObjectArg < crate::classes::Texture2D >); + let args = (type_.into_arg(), base.into_arg(), script.as_object_arg(), icon.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(190usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_custom_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_custom_type(&mut self, type_: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (type_.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(191usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_custom_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_autoload_singleton(&mut self, name: impl AsArg < GString >, path: impl AsArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (name.into_arg(), path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(192usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_autoload_singleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_autoload_singleton(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(193usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_autoload_singleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update_overlays(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(194usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "update_overlays", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_bottom_panel_item_visible(&mut self, item: impl AsObjectArg < crate::classes::Control >,) { + type CallSig = ((), ObjectArg < crate::classes::Control >); + let args = (item.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(195usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "make_bottom_panel_item_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn hide_bottom_panel(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(196usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "hide_bottom_panel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_undo_redo(&mut self,) -> Option < Gd < crate::classes::EditorUndoRedoManager > > { + type CallSig = (Option < Gd < crate::classes::EditorUndoRedoManager > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(197usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "get_undo_redo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_undo_redo_inspector_hook_callback(&mut self, callable: &Callable,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >); + let args = (RefArg::new(callable),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(198usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_undo_redo_inspector_hook_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_undo_redo_inspector_hook_callback(&mut self, callable: &Callable,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >); + let args = (RefArg::new(callable),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(199usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_undo_redo_inspector_hook_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn queue_save_layout(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(200usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "queue_save_layout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_translation_parser_plugin(&mut self, parser: impl AsObjectArg < crate::classes::EditorTranslationParserPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorTranslationParserPlugin >); + let args = (parser.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(201usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_translation_parser_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_translation_parser_plugin(&mut self, parser: impl AsObjectArg < crate::classes::EditorTranslationParserPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorTranslationParserPlugin >); + let args = (parser.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(202usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_translation_parser_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_import_plugin_full(&mut self, importer: ObjectArg < crate::classes::EditorImportPlugin >, first_priority: bool,) { + type CallSig = ((), ObjectArg < crate::classes::EditorImportPlugin >, bool); + let args = (importer, first_priority,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(203usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_import_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_import_plugin_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_import_plugin(&mut self, importer: impl AsObjectArg < crate::classes::EditorImportPlugin >,) { + self.add_import_plugin_ex(importer,) . done() + } + #[inline] + pub fn add_import_plugin_ex < 'a > (&'a mut self, importer: impl AsObjectArg < crate::classes::EditorImportPlugin >,) -> ExAddImportPlugin < 'a > { + ExAddImportPlugin::new(self, importer,) + } + pub fn remove_import_plugin(&mut self, importer: impl AsObjectArg < crate::classes::EditorImportPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorImportPlugin >); + let args = (importer.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(204usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_import_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_scene_format_importer_plugin_full(&mut self, scene_format_importer: ObjectArg < crate::classes::EditorSceneFormatImporter >, first_priority: bool,) { + type CallSig = ((), ObjectArg < crate::classes::EditorSceneFormatImporter >, bool); + let args = (scene_format_importer, first_priority,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(205usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_scene_format_importer_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_scene_format_importer_plugin_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_scene_format_importer_plugin(&mut self, scene_format_importer: impl AsObjectArg < crate::classes::EditorSceneFormatImporter >,) { + self.add_scene_format_importer_plugin_ex(scene_format_importer,) . done() + } + #[inline] + pub fn add_scene_format_importer_plugin_ex < 'a > (&'a mut self, scene_format_importer: impl AsObjectArg < crate::classes::EditorSceneFormatImporter >,) -> ExAddSceneFormatImporterPlugin < 'a > { + ExAddSceneFormatImporterPlugin::new(self, scene_format_importer,) + } + pub fn remove_scene_format_importer_plugin(&mut self, scene_format_importer: impl AsObjectArg < crate::classes::EditorSceneFormatImporter >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorSceneFormatImporter >); + let args = (scene_format_importer.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(206usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_scene_format_importer_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_scene_post_import_plugin_full(&mut self, scene_import_plugin: ObjectArg < crate::classes::EditorScenePostImportPlugin >, first_priority: bool,) { + type CallSig = ((), ObjectArg < crate::classes::EditorScenePostImportPlugin >, bool); + let args = (scene_import_plugin, first_priority,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(207usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_scene_post_import_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_scene_post_import_plugin_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_scene_post_import_plugin(&mut self, scene_import_plugin: impl AsObjectArg < crate::classes::EditorScenePostImportPlugin >,) { + self.add_scene_post_import_plugin_ex(scene_import_plugin,) . done() + } + #[inline] + pub fn add_scene_post_import_plugin_ex < 'a > (&'a mut self, scene_import_plugin: impl AsObjectArg < crate::classes::EditorScenePostImportPlugin >,) -> ExAddScenePostImportPlugin < 'a > { + ExAddScenePostImportPlugin::new(self, scene_import_plugin,) + } + pub fn remove_scene_post_import_plugin(&mut self, scene_import_plugin: impl AsObjectArg < crate::classes::EditorScenePostImportPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorScenePostImportPlugin >); + let args = (scene_import_plugin.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(208usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_scene_post_import_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_export_plugin(&mut self, plugin: impl AsObjectArg < crate::classes::EditorExportPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorExportPlugin >); + let args = (plugin.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(209usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_export_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_export_plugin(&mut self, plugin: impl AsObjectArg < crate::classes::EditorExportPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorExportPlugin >); + let args = (plugin.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(210usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_export_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_node_3d_gizmo_plugin(&mut self, plugin: impl AsObjectArg < crate::classes::EditorNode3DGizmoPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorNode3DGizmoPlugin >); + let args = (plugin.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(211usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_node_3d_gizmo_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_node_3d_gizmo_plugin(&mut self, plugin: impl AsObjectArg < crate::classes::EditorNode3DGizmoPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorNode3DGizmoPlugin >); + let args = (plugin.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(212usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_node_3d_gizmo_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_inspector_plugin(&mut self, plugin: impl AsObjectArg < crate::classes::EditorInspectorPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorInspectorPlugin >); + let args = (plugin.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(213usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_inspector_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_inspector_plugin(&mut self, plugin: impl AsObjectArg < crate::classes::EditorInspectorPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorInspectorPlugin >); + let args = (plugin.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(214usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_inspector_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_resource_conversion_plugin(&mut self, plugin: impl AsObjectArg < crate::classes::EditorResourceConversionPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorResourceConversionPlugin >); + let args = (plugin.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(215usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_resource_conversion_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_resource_conversion_plugin(&mut self, plugin: impl AsObjectArg < crate::classes::EditorResourceConversionPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorResourceConversionPlugin >); + let args = (plugin.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(216usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_resource_conversion_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_input_event_forwarding_always_enabled(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(217usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "set_input_event_forwarding_always_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_force_draw_over_forwarding_enabled(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(218usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "set_force_draw_over_forwarding_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_editor_interface(&mut self,) -> Option < Gd < crate::classes::EditorInterface > > { + type CallSig = (Option < Gd < crate::classes::EditorInterface > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(219usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "get_editor_interface", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_script_create_dialog(&mut self,) -> Option < Gd < crate::classes::ScriptCreateDialog > > { + type CallSig = (Option < Gd < crate::classes::ScriptCreateDialog > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(220usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "get_script_create_dialog", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_debugger_plugin(&mut self, script: impl AsObjectArg < crate::classes::EditorDebuggerPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorDebuggerPlugin >); + let args = (script.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(221usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "add_debugger_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_debugger_plugin(&mut self, script: impl AsObjectArg < crate::classes::EditorDebuggerPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorDebuggerPlugin >); + let args = (script.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(222usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "remove_debugger_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_plugin_version(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(223usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorPlugin", "get_plugin_version", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorPlugin { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorPlugin")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorPlugin { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for EditorPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorPlugin { + + } + impl crate::obj::cap::GodotDefault for EditorPlugin { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorPlugin { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorPlugin { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorPlugin`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorPlugin { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorPlugin > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorPlugin::add_control_to_bottom_panel_ex`][super::EditorPlugin::add_control_to_bottom_panel_ex]."] +#[must_use] +pub struct ExAddControlToBottomPanel < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorPlugin, control: ObjectCow < crate::classes::Control >, title: CowArg < 'a, GString >, shortcut: ObjectCow < crate::classes::Shortcut >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddControlToBottomPanel < 'a > { + fn new(surround_object: &'a mut re_export::EditorPlugin, control: impl AsObjectArg < crate::classes::Control >, title: impl AsArg < GString > + 'a,) -> Self { + let shortcut = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, control: control.consume_arg(), title: title.into_arg(), shortcut: shortcut.consume_arg(), + } + } + #[inline] + pub fn shortcut(self, shortcut: impl AsObjectArg < crate::classes::Shortcut >) -> Self { + Self { + shortcut: shortcut.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Button > > { + let Self { + _phantom, surround_object, control, title, shortcut, + } + = self; + re_export::EditorPlugin::add_control_to_bottom_panel_full(surround_object, control.cow_as_object_arg(), title, shortcut.cow_as_object_arg(),) + } +} +#[doc = "Default-param extender for [`EditorPlugin::add_control_to_dock_ex`][super::EditorPlugin::add_control_to_dock_ex]."] +#[must_use] +pub struct ExAddControlToDock < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorPlugin, slot: crate::classes::editor_plugin::DockSlot, control: ObjectCow < crate::classes::Control >, shortcut: ObjectCow < crate::classes::Shortcut >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddControlToDock < 'a > { + fn new(surround_object: &'a mut re_export::EditorPlugin, slot: crate::classes::editor_plugin::DockSlot, control: impl AsObjectArg < crate::classes::Control >,) -> Self { + let shortcut = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, slot: slot, control: control.consume_arg(), shortcut: shortcut.consume_arg(), + } + } + #[inline] + pub fn shortcut(self, shortcut: impl AsObjectArg < crate::classes::Shortcut >) -> Self { + Self { + shortcut: shortcut.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, slot, control, shortcut, + } + = self; + re_export::EditorPlugin::add_control_to_dock_full(surround_object, slot, control.cow_as_object_arg(), shortcut.cow_as_object_arg(),) + } +} +#[doc = "Default-param extender for [`EditorPlugin::add_import_plugin_ex`][super::EditorPlugin::add_import_plugin_ex]."] +#[must_use] +pub struct ExAddImportPlugin < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorPlugin, importer: ObjectCow < crate::classes::EditorImportPlugin >, first_priority: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddImportPlugin < 'a > { + fn new(surround_object: &'a mut re_export::EditorPlugin, importer: impl AsObjectArg < crate::classes::EditorImportPlugin >,) -> Self { + let first_priority = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, importer: importer.consume_arg(), first_priority: first_priority, + } + } + #[inline] + pub fn first_priority(self, first_priority: bool) -> Self { + Self { + first_priority: first_priority, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, importer, first_priority, + } + = self; + re_export::EditorPlugin::add_import_plugin_full(surround_object, importer.cow_as_object_arg(), first_priority,) + } +} +#[doc = "Default-param extender for [`EditorPlugin::add_scene_format_importer_plugin_ex`][super::EditorPlugin::add_scene_format_importer_plugin_ex]."] +#[must_use] +pub struct ExAddSceneFormatImporterPlugin < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorPlugin, scene_format_importer: ObjectCow < crate::classes::EditorSceneFormatImporter >, first_priority: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddSceneFormatImporterPlugin < 'a > { + fn new(surround_object: &'a mut re_export::EditorPlugin, scene_format_importer: impl AsObjectArg < crate::classes::EditorSceneFormatImporter >,) -> Self { + let first_priority = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, scene_format_importer: scene_format_importer.consume_arg(), first_priority: first_priority, + } + } + #[inline] + pub fn first_priority(self, first_priority: bool) -> Self { + Self { + first_priority: first_priority, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, scene_format_importer, first_priority, + } + = self; + re_export::EditorPlugin::add_scene_format_importer_plugin_full(surround_object, scene_format_importer.cow_as_object_arg(), first_priority,) + } +} +#[doc = "Default-param extender for [`EditorPlugin::add_scene_post_import_plugin_ex`][super::EditorPlugin::add_scene_post_import_plugin_ex]."] +#[must_use] +pub struct ExAddScenePostImportPlugin < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorPlugin, scene_import_plugin: ObjectCow < crate::classes::EditorScenePostImportPlugin >, first_priority: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddScenePostImportPlugin < 'a > { + fn new(surround_object: &'a mut re_export::EditorPlugin, scene_import_plugin: impl AsObjectArg < crate::classes::EditorScenePostImportPlugin >,) -> Self { + let first_priority = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, scene_import_plugin: scene_import_plugin.consume_arg(), first_priority: first_priority, + } + } + #[inline] + pub fn first_priority(self, first_priority: bool) -> Self { + Self { + first_priority: first_priority, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, scene_import_plugin, first_priority, + } + = self; + re_export::EditorPlugin::add_scene_post_import_plugin_full(surround_object, scene_import_plugin.cow_as_object_arg(), first_priority,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CustomControlContainer { + ord: i32 +} +impl CustomControlContainer { + #[doc(alias = "CONTAINER_TOOLBAR")] + #[doc = "Godot enumerator name: `CONTAINER_TOOLBAR`"] + pub const TOOLBAR: CustomControlContainer = CustomControlContainer { + ord: 0i32 + }; + #[doc(alias = "CONTAINER_SPATIAL_EDITOR_MENU")] + #[doc = "Godot enumerator name: `CONTAINER_SPATIAL_EDITOR_MENU`"] + pub const SPATIAL_EDITOR_MENU: CustomControlContainer = CustomControlContainer { + ord: 1i32 + }; + #[doc(alias = "CONTAINER_SPATIAL_EDITOR_SIDE_LEFT")] + #[doc = "Godot enumerator name: `CONTAINER_SPATIAL_EDITOR_SIDE_LEFT`"] + pub const SPATIAL_EDITOR_SIDE_LEFT: CustomControlContainer = CustomControlContainer { + ord: 2i32 + }; + #[doc(alias = "CONTAINER_SPATIAL_EDITOR_SIDE_RIGHT")] + #[doc = "Godot enumerator name: `CONTAINER_SPATIAL_EDITOR_SIDE_RIGHT`"] + pub const SPATIAL_EDITOR_SIDE_RIGHT: CustomControlContainer = CustomControlContainer { + ord: 3i32 + }; + #[doc(alias = "CONTAINER_SPATIAL_EDITOR_BOTTOM")] + #[doc = "Godot enumerator name: `CONTAINER_SPATIAL_EDITOR_BOTTOM`"] + pub const SPATIAL_EDITOR_BOTTOM: CustomControlContainer = CustomControlContainer { + ord: 4i32 + }; + #[doc(alias = "CONTAINER_CANVAS_EDITOR_MENU")] + #[doc = "Godot enumerator name: `CONTAINER_CANVAS_EDITOR_MENU`"] + pub const CANVAS_EDITOR_MENU: CustomControlContainer = CustomControlContainer { + ord: 5i32 + }; + #[doc(alias = "CONTAINER_CANVAS_EDITOR_SIDE_LEFT")] + #[doc = "Godot enumerator name: `CONTAINER_CANVAS_EDITOR_SIDE_LEFT`"] + pub const CANVAS_EDITOR_SIDE_LEFT: CustomControlContainer = CustomControlContainer { + ord: 6i32 + }; + #[doc(alias = "CONTAINER_CANVAS_EDITOR_SIDE_RIGHT")] + #[doc = "Godot enumerator name: `CONTAINER_CANVAS_EDITOR_SIDE_RIGHT`"] + pub const CANVAS_EDITOR_SIDE_RIGHT: CustomControlContainer = CustomControlContainer { + ord: 7i32 + }; + #[doc(alias = "CONTAINER_CANVAS_EDITOR_BOTTOM")] + #[doc = "Godot enumerator name: `CONTAINER_CANVAS_EDITOR_BOTTOM`"] + pub const CANVAS_EDITOR_BOTTOM: CustomControlContainer = CustomControlContainer { + ord: 8i32 + }; + #[doc(alias = "CONTAINER_INSPECTOR_BOTTOM")] + #[doc = "Godot enumerator name: `CONTAINER_INSPECTOR_BOTTOM`"] + pub const INSPECTOR_BOTTOM: CustomControlContainer = CustomControlContainer { + ord: 9i32 + }; + #[doc(alias = "CONTAINER_PROJECT_SETTING_TAB_LEFT")] + #[doc = "Godot enumerator name: `CONTAINER_PROJECT_SETTING_TAB_LEFT`"] + pub const PROJECT_SETTING_TAB_LEFT: CustomControlContainer = CustomControlContainer { + ord: 10i32 + }; + #[doc(alias = "CONTAINER_PROJECT_SETTING_TAB_RIGHT")] + #[doc = "Godot enumerator name: `CONTAINER_PROJECT_SETTING_TAB_RIGHT`"] + pub const PROJECT_SETTING_TAB_RIGHT: CustomControlContainer = CustomControlContainer { + ord: 11i32 + }; + +} +impl std::fmt::Debug for CustomControlContainer { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CustomControlContainer") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CustomControlContainer { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOOLBAR => "TOOLBAR", Self::SPATIAL_EDITOR_MENU => "SPATIAL_EDITOR_MENU", Self::SPATIAL_EDITOR_SIDE_LEFT => "SPATIAL_EDITOR_SIDE_LEFT", Self::SPATIAL_EDITOR_SIDE_RIGHT => "SPATIAL_EDITOR_SIDE_RIGHT", Self::SPATIAL_EDITOR_BOTTOM => "SPATIAL_EDITOR_BOTTOM", Self::CANVAS_EDITOR_MENU => "CANVAS_EDITOR_MENU", Self::CANVAS_EDITOR_SIDE_LEFT => "CANVAS_EDITOR_SIDE_LEFT", Self::CANVAS_EDITOR_SIDE_RIGHT => "CANVAS_EDITOR_SIDE_RIGHT", Self::CANVAS_EDITOR_BOTTOM => "CANVAS_EDITOR_BOTTOM", Self::INSPECTOR_BOTTOM => "INSPECTOR_BOTTOM", Self::PROJECT_SETTING_TAB_LEFT => "PROJECT_SETTING_TAB_LEFT", Self::PROJECT_SETTING_TAB_RIGHT => "PROJECT_SETTING_TAB_RIGHT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOOLBAR => "CONTAINER_TOOLBAR", Self::SPATIAL_EDITOR_MENU => "CONTAINER_SPATIAL_EDITOR_MENU", Self::SPATIAL_EDITOR_SIDE_LEFT => "CONTAINER_SPATIAL_EDITOR_SIDE_LEFT", Self::SPATIAL_EDITOR_SIDE_RIGHT => "CONTAINER_SPATIAL_EDITOR_SIDE_RIGHT", Self::SPATIAL_EDITOR_BOTTOM => "CONTAINER_SPATIAL_EDITOR_BOTTOM", Self::CANVAS_EDITOR_MENU => "CONTAINER_CANVAS_EDITOR_MENU", Self::CANVAS_EDITOR_SIDE_LEFT => "CONTAINER_CANVAS_EDITOR_SIDE_LEFT", Self::CANVAS_EDITOR_SIDE_RIGHT => "CONTAINER_CANVAS_EDITOR_SIDE_RIGHT", Self::CANVAS_EDITOR_BOTTOM => "CONTAINER_CANVAS_EDITOR_BOTTOM", Self::INSPECTOR_BOTTOM => "CONTAINER_INSPECTOR_BOTTOM", Self::PROJECT_SETTING_TAB_LEFT => "CONTAINER_PROJECT_SETTING_TAB_LEFT", Self::PROJECT_SETTING_TAB_RIGHT => "CONTAINER_PROJECT_SETTING_TAB_RIGHT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CustomControlContainer { + type Via = i32; + +} +impl crate::meta::ToGodot for CustomControlContainer { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CustomControlContainer { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DockSlot { + ord: i32 +} +impl DockSlot { + #[doc(alias = "DOCK_SLOT_LEFT_UL")] + #[doc = "Godot enumerator name: `DOCK_SLOT_LEFT_UL`"] + pub const LEFT_UL: DockSlot = DockSlot { + ord: 0i32 + }; + #[doc(alias = "DOCK_SLOT_LEFT_BL")] + #[doc = "Godot enumerator name: `DOCK_SLOT_LEFT_BL`"] + pub const LEFT_BL: DockSlot = DockSlot { + ord: 1i32 + }; + #[doc(alias = "DOCK_SLOT_LEFT_UR")] + #[doc = "Godot enumerator name: `DOCK_SLOT_LEFT_UR`"] + pub const LEFT_UR: DockSlot = DockSlot { + ord: 2i32 + }; + #[doc(alias = "DOCK_SLOT_LEFT_BR")] + #[doc = "Godot enumerator name: `DOCK_SLOT_LEFT_BR`"] + pub const LEFT_BR: DockSlot = DockSlot { + ord: 3i32 + }; + #[doc(alias = "DOCK_SLOT_RIGHT_UL")] + #[doc = "Godot enumerator name: `DOCK_SLOT_RIGHT_UL`"] + pub const RIGHT_UL: DockSlot = DockSlot { + ord: 4i32 + }; + #[doc(alias = "DOCK_SLOT_RIGHT_BL")] + #[doc = "Godot enumerator name: `DOCK_SLOT_RIGHT_BL`"] + pub const RIGHT_BL: DockSlot = DockSlot { + ord: 5i32 + }; + #[doc(alias = "DOCK_SLOT_RIGHT_UR")] + #[doc = "Godot enumerator name: `DOCK_SLOT_RIGHT_UR`"] + pub const RIGHT_UR: DockSlot = DockSlot { + ord: 6i32 + }; + #[doc(alias = "DOCK_SLOT_RIGHT_BR")] + #[doc = "Godot enumerator name: `DOCK_SLOT_RIGHT_BR`"] + pub const RIGHT_BR: DockSlot = DockSlot { + ord: 7i32 + }; + #[doc(alias = "DOCK_SLOT_MAX")] + #[doc = "Godot enumerator name: `DOCK_SLOT_MAX`"] + pub const MAX: DockSlot = DockSlot { + ord: 8i32 + }; + +} +impl std::fmt::Debug for DockSlot { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DockSlot") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DockSlot { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT_UL => "LEFT_UL", Self::LEFT_BL => "LEFT_BL", Self::LEFT_UR => "LEFT_UR", Self::LEFT_BR => "LEFT_BR", Self::RIGHT_UL => "RIGHT_UL", Self::RIGHT_BL => "RIGHT_BL", Self::RIGHT_UR => "RIGHT_UR", Self::RIGHT_BR => "RIGHT_BR", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT_UL => "DOCK_SLOT_LEFT_UL", Self::LEFT_BL => "DOCK_SLOT_LEFT_BL", Self::LEFT_UR => "DOCK_SLOT_LEFT_UR", Self::LEFT_BR => "DOCK_SLOT_LEFT_BR", Self::RIGHT_UL => "DOCK_SLOT_RIGHT_UL", Self::RIGHT_BL => "DOCK_SLOT_RIGHT_BL", Self::RIGHT_UR => "DOCK_SLOT_RIGHT_UR", Self::RIGHT_BR => "DOCK_SLOT_RIGHT_BR", Self::MAX => "DOCK_SLOT_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for DockSlot { + const ENUMERATOR_COUNT: usize = 8usize; + +} +impl crate::meta::GodotConvert for DockSlot { + type Via = i32; + +} +impl crate::meta::ToGodot for DockSlot { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DockSlot { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `AfterGUIInput`."] +pub struct AfterGuiInput { + ord: i32 +} +impl AfterGuiInput { + #[doc(alias = "AFTER_GUI_INPUT_PASS")] + #[doc = "Godot enumerator name: `AFTER_GUI_INPUT_PASS`"] + pub const PASS: AfterGuiInput = AfterGuiInput { + ord: 0i32 + }; + #[doc(alias = "AFTER_GUI_INPUT_STOP")] + #[doc = "Godot enumerator name: `AFTER_GUI_INPUT_STOP`"] + pub const STOP: AfterGuiInput = AfterGuiInput { + ord: 1i32 + }; + #[doc(alias = "AFTER_GUI_INPUT_CUSTOM")] + #[doc = "Godot enumerator name: `AFTER_GUI_INPUT_CUSTOM`"] + pub const CUSTOM: AfterGuiInput = AfterGuiInput { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AfterGuiInput { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AfterGuiInput") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AfterGuiInput { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PASS => "PASS", Self::STOP => "STOP", Self::CUSTOM => "CUSTOM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PASS => "AFTER_GUI_INPUT_PASS", Self::STOP => "AFTER_GUI_INPUT_STOP", Self::CUSTOM => "AFTER_GUI_INPUT_CUSTOM", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AfterGuiInput { + type Via = i32; + +} +impl crate::meta::ToGodot for AfterGuiInput { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AfterGuiInput { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_property.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_property.rs new file mode 100644 index 0000000..0ec61a5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_property.rs @@ -0,0 +1,487 @@ +#![doc = "Sidecar module for class [`EditorProperty`][crate::classes::EditorProperty].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorProperty` enums](https://docs.godotengine.org/en/stable/classes/class_editorproperty.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorProperty.`\n\nInherits [`Container`][crate::classes::Container].\n\nRelated symbols:\n\n* [`editor_property`][crate::classes::editor_property]: sidecar module with related enum/flag types\n* [`IEditorProperty`][crate::classes::IEditorProperty]: virtual methods\n\n\nSee also [Godot docs for `EditorProperty`](https://docs.godotengine.org/en/stable/classes/class_editorproperty.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorProperty::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorProperty { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorProperty`][crate::classes::EditorProperty].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorProperty` methods](https://docs.godotengine.org/en/stable/classes/class_editorproperty.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorProperty: crate::obj::GodotClass < Base = EditorProperty > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn update_property(&mut self,) { + unimplemented !() + } + fn set_read_only(&mut self, read_only: bool,) { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl EditorProperty { + pub fn set_label(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(224usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "set_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_label(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(225usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "get_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_read_only(&mut self, read_only: bool,) { + type CallSig = ((), bool); + let args = (read_only,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(226usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "set_read_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_read_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(227usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "is_read_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_checkable(&mut self, checkable: bool,) { + type CallSig = ((), bool); + let args = (checkable,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(228usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "set_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_checkable(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(229usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "is_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_checked(&mut self, checked: bool,) { + type CallSig = ((), bool); + let args = (checked,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(230usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "set_checked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_checked(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(231usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "is_checked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_warning(&mut self, draw_warning: bool,) { + type CallSig = ((), bool); + let args = (draw_warning,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(232usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "set_draw_warning", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_draw_warning(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(233usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "is_draw_warning", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_keying(&mut self, keying: bool,) { + type CallSig = ((), bool); + let args = (keying,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(234usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "set_keying", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_keying(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(235usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "is_keying", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_deletable(&mut self, deletable: bool,) { + type CallSig = ((), bool); + let args = (deletable,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(236usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "set_deletable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_deletable(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(237usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "is_deletable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_edited_property(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(238usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "get_edited_property", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_edited_object(&mut self,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(239usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "get_edited_object", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update_property(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(240usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "update_property", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_focusable(&mut self, control: impl AsObjectArg < crate::classes::Control >,) { + type CallSig = ((), ObjectArg < crate::classes::Control >); + let args = (control.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(241usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "add_focusable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bottom_editor(&mut self, editor: impl AsObjectArg < crate::classes::Control >,) { + type CallSig = ((), ObjectArg < crate::classes::Control >); + let args = (editor.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(242usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "set_bottom_editor", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn emit_changed_full(&mut self, property: CowArg < StringName >, value: RefArg < Variant >, field: CowArg < StringName >, changing: bool,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >, CowArg < 'a2, StringName >, bool); + let args = (property, value, field, changing,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(243usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorProperty", "emit_changed", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::emit_changed_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn emit_changed(&mut self, property: impl AsArg < StringName >, value: &Variant,) { + self.emit_changed_ex(property, value,) . done() + } + #[inline] + pub fn emit_changed_ex < 'a > (&'a mut self, property: impl AsArg < StringName > + 'a, value: &'a Variant,) -> ExEmitChanged < 'a > { + ExEmitChanged::new(self, property, value,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorProperty { + type Base = crate::classes::Container; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorProperty")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorProperty { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for EditorProperty { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for EditorProperty { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for EditorProperty { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for EditorProperty { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorProperty { + + } + impl crate::obj::cap::GodotDefault for EditorProperty { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorProperty { + type Target = crate::classes::Container; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorProperty { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorProperty`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorProperty { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorProperty > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorProperty::emit_changed_ex`][super::EditorProperty::emit_changed_ex]."] +#[must_use] +pub struct ExEmitChanged < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorProperty, property: CowArg < 'a, StringName >, value: CowArg < 'a, Variant >, field: CowArg < 'a, StringName >, changing: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExEmitChanged < 'a > { + fn new(surround_object: &'a mut re_export::EditorProperty, property: impl AsArg < StringName > + 'a, value: &'a Variant,) -> Self { + let field = StringName::from(""); + let changing = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, property: property.into_arg(), value: CowArg::Borrowed(value), field: CowArg::Owned(field), changing: changing, + } + } + #[inline] + pub fn field(self, field: impl AsArg < StringName > + 'a) -> Self { + Self { + field: field.into_arg(), .. self + } + } + #[inline] + pub fn changing(self, changing: bool) -> Self { + Self { + changing: changing, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, property, value, field, changing, + } + = self; + re_export::EditorProperty::emit_changed_full(surround_object, property, value.cow_as_arg(), field, changing,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_conversion_plugin.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_conversion_plugin.rs new file mode 100644 index 0000000..e600bd2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_conversion_plugin.rs @@ -0,0 +1,202 @@ +#![doc = "Sidecar module for class [`EditorResourceConversionPlugin`][crate::classes::EditorResourceConversionPlugin].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorResourceConversionPlugin` enums](https://docs.godotengine.org/en/stable/classes/class_editorresourceconversionplugin.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorResourceConversionPlugin.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEditorResourceConversionPlugin`][crate::classes::IEditorResourceConversionPlugin]: virtual methods\n\n\nSee also [Godot docs for `EditorResourceConversionPlugin`](https://docs.godotengine.org/en/stable/classes/class_editorresourceconversionplugin.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorResourceConversionPlugin::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorResourceConversionPlugin { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorResourceConversionPlugin`][crate::classes::EditorResourceConversionPlugin].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorResourceConversionPlugin` methods](https://docs.godotengine.org/en/stable/classes/class_editorresourceconversionplugin.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorResourceConversionPlugin: crate::obj::GodotClass < Base = EditorResourceConversionPlugin > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn converts_to(&self,) -> GString { + unimplemented !() + } + fn handles(&self, resource: Option < Gd < crate::classes::Resource > >,) -> bool { + unimplemented !() + } + fn convert(&self, resource: Option < Gd < crate::classes::Resource > >,) -> Option < Gd < crate::classes::Resource > > { + unimplemented !() + } + } + impl EditorResourceConversionPlugin { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorResourceConversionPlugin { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorResourceConversionPlugin")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorResourceConversionPlugin { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorResourceConversionPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorResourceConversionPlugin { + + } + impl crate::obj::cap::GodotDefault for EditorResourceConversionPlugin { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorResourceConversionPlugin { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorResourceConversionPlugin { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorResourceConversionPlugin`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorResourceConversionPlugin { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorResourceConversionPlugin > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_picker.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_picker.rs new file mode 100644 index 0000000..e5c39af --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_picker.rs @@ -0,0 +1,375 @@ +#![doc = "Sidecar module for class [`EditorResourcePicker`][crate::classes::EditorResourcePicker].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorResourcePicker` enums](https://docs.godotengine.org/en/stable/classes/class_editorresourcepicker.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorResourcePicker.`\n\nInherits [`HBoxContainer`][crate::classes::HBoxContainer].\n\nRelated symbols:\n\n* [`IEditorResourcePicker`][crate::classes::IEditorResourcePicker]: virtual methods\n\n\nSee also [Godot docs for `EditorResourcePicker`](https://docs.godotengine.org/en/stable/classes/class_editorresourcepicker.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorResourcePicker::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorResourcePicker { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorResourcePicker`][crate::classes::EditorResourcePicker].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorResourcePicker` methods](https://docs.godotengine.org/en/stable/classes/class_editorresourcepicker.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorResourcePicker: crate::obj::GodotClass < Base = EditorResourcePicker > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn set_create_options(&mut self, menu_node: Option < Gd < crate::classes::Object > >,) { + unimplemented !() + } + fn handle_menu_selected(&mut self, id: i32,) -> bool { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl EditorResourcePicker { + pub fn set_base_type(&mut self, base_type: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (base_type.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(244usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePicker", "set_base_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_base_type(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(245usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePicker", "get_base_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_allowed_types(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(246usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePicker", "get_allowed_types", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_edited_resource(&mut self, resource: impl AsObjectArg < crate::classes::Resource >,) { + type CallSig = ((), ObjectArg < crate::classes::Resource >); + let args = (resource.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(247usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePicker", "set_edited_resource", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_edited_resource(&mut self,) -> Option < Gd < crate::classes::Resource > > { + type CallSig = (Option < Gd < crate::classes::Resource > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(248usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePicker", "get_edited_resource", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_toggle_mode(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(249usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePicker", "set_toggle_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_toggle_mode(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(250usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePicker", "is_toggle_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_toggle_pressed(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(251usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePicker", "set_toggle_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_editable(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(252usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePicker", "set_editable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_editable(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(253usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePicker", "is_editable", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorResourcePicker { + type Base = crate::classes::HBoxContainer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorResourcePicker")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorResourcePicker { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::HBoxContainer > for EditorResourcePicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::BoxContainer > for EditorResourcePicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for EditorResourcePicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for EditorResourcePicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for EditorResourcePicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for EditorResourcePicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorResourcePicker { + + } + impl crate::obj::cap::GodotDefault for EditorResourcePicker { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorResourcePicker { + type Target = crate::classes::HBoxContainer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorResourcePicker { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorResourcePicker`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorResourcePicker { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorResourcePicker > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::HBoxContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BoxContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_preview.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_preview.rs new file mode 100644 index 0000000..bc8d9b0 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_preview.rs @@ -0,0 +1,258 @@ +#![doc = "Sidecar module for class [`EditorResourcePreview`][crate::classes::EditorResourcePreview].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorResourcePreview` enums](https://docs.godotengine.org/en/stable/classes/class_editorresourcepreview.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorResourcePreview.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`IEditorResourcePreview`][crate::classes::IEditorResourcePreview]: virtual methods\n\n\nSee also [Godot docs for `EditorResourcePreview`](https://docs.godotengine.org/en/stable/classes/class_editorresourcepreview.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorResourcePreview { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorResourcePreview`][crate::classes::EditorResourcePreview].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorResourcePreview` methods](https://docs.godotengine.org/en/stable/classes/class_editorresourcepreview.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorResourcePreview: crate::obj::GodotClass < Base = EditorResourcePreview > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl EditorResourcePreview { + pub fn queue_resource_preview(&mut self, path: impl AsArg < GString >, receiver: impl AsObjectArg < crate::classes::Object >, receiver_func: impl AsArg < StringName >, userdata: &Variant,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), CowArg < 'a0, GString >, ObjectArg < crate::classes::Object >, CowArg < 'a1, StringName >, RefArg < 'a2, Variant >); + let args = (path.into_arg(), receiver.as_object_arg(), receiver_func.into_arg(), RefArg::new(userdata),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(254usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePreview", "queue_resource_preview", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn queue_edited_resource_preview(&mut self, resource: impl AsObjectArg < crate::classes::Resource >, receiver: impl AsObjectArg < crate::classes::Object >, receiver_func: impl AsArg < StringName >, userdata: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), ObjectArg < crate::classes::Resource >, ObjectArg < crate::classes::Object >, CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (resource.as_object_arg(), receiver.as_object_arg(), receiver_func.into_arg(), RefArg::new(userdata),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(255usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePreview", "queue_edited_resource_preview", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_preview_generator(&mut self, generator: impl AsObjectArg < crate::classes::EditorResourcePreviewGenerator >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorResourcePreviewGenerator >); + let args = (generator.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(256usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePreview", "add_preview_generator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_preview_generator(&mut self, generator: impl AsObjectArg < crate::classes::EditorResourcePreviewGenerator >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorResourcePreviewGenerator >); + let args = (generator.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(257usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePreview", "remove_preview_generator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn check_for_invalidation(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(258usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourcePreview", "check_for_invalidation", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorResourcePreview { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorResourcePreview")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorResourcePreview { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for EditorResourcePreview { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorResourcePreview { + + } + impl std::ops::Deref for EditorResourcePreview { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorResourcePreview { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorResourcePreview`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorResourcePreview { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorResourcePreview > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_preview_generator.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_preview_generator.rs new file mode 100644 index 0000000..04199f1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_preview_generator.rs @@ -0,0 +1,208 @@ +#![doc = "Sidecar module for class [`EditorResourcePreviewGenerator`][crate::classes::EditorResourcePreviewGenerator].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorResourcePreviewGenerator` enums](https://docs.godotengine.org/en/stable/classes/class_editorresourcepreviewgenerator.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorResourcePreviewGenerator.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEditorResourcePreviewGenerator`][crate::classes::IEditorResourcePreviewGenerator]: virtual methods\n\n\nSee also [Godot docs for `EditorResourcePreviewGenerator`](https://docs.godotengine.org/en/stable/classes/class_editorresourcepreviewgenerator.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorResourcePreviewGenerator::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorResourcePreviewGenerator { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorResourcePreviewGenerator`][crate::classes::EditorResourcePreviewGenerator].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorResourcePreviewGenerator` methods](https://docs.godotengine.org/en/stable/classes/class_editorresourcepreviewgenerator.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorResourcePreviewGenerator: crate::obj::GodotClass < Base = EditorResourcePreviewGenerator > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn handles(&self, type_: GString,) -> bool { + unimplemented !() + } + fn generate(&self, resource: Option < Gd < crate::classes::Resource > >, size: Vector2i, metadata: Dictionary,) -> Option < Gd < crate::classes::Texture2D > > { + unimplemented !() + } + fn generate_from_path(&self, path: GString, size: Vector2i, metadata: Dictionary,) -> Option < Gd < crate::classes::Texture2D > > { + unimplemented !() + } + fn generate_small_preview_automatically(&self,) -> bool { + unimplemented !() + } + fn can_generate_small_preview(&self,) -> bool { + unimplemented !() + } + } + impl EditorResourcePreviewGenerator { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorResourcePreviewGenerator { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorResourcePreviewGenerator")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorResourcePreviewGenerator { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorResourcePreviewGenerator { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorResourcePreviewGenerator { + + } + impl crate::obj::cap::GodotDefault for EditorResourcePreviewGenerator { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorResourcePreviewGenerator { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorResourcePreviewGenerator { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorResourcePreviewGenerator`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorResourcePreviewGenerator { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorResourcePreviewGenerator > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_tooltip_plugin.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_tooltip_plugin.rs new file mode 100644 index 0000000..13dae5e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_resource_tooltip_plugin.rs @@ -0,0 +1,207 @@ +#![doc = "Sidecar module for class [`EditorResourceTooltipPlugin`][crate::classes::EditorResourceTooltipPlugin].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorResourceTooltipPlugin` enums](https://docs.godotengine.org/en/stable/classes/class_editorresourcetooltipplugin.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorResourceTooltipPlugin.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEditorResourceTooltipPlugin`][crate::classes::IEditorResourceTooltipPlugin]: virtual methods\n\n\nSee also [Godot docs for `EditorResourceTooltipPlugin`](https://docs.godotengine.org/en/stable/classes/class_editorresourcetooltipplugin.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorResourceTooltipPlugin::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorResourceTooltipPlugin { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorResourceTooltipPlugin`][crate::classes::EditorResourceTooltipPlugin].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorResourceTooltipPlugin` methods](https://docs.godotengine.org/en/stable/classes/class_editorresourcetooltipplugin.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorResourceTooltipPlugin: crate::obj::GodotClass < Base = EditorResourceTooltipPlugin > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn handles(&self, type_: GString,) -> bool { + unimplemented !() + } + fn make_tooltip_for_path(&self, path: GString, metadata: Dictionary, base: Option < Gd < crate::classes::Control > >,) -> Option < Gd < crate::classes::Control > > { + unimplemented !() + } + } + impl EditorResourceTooltipPlugin { + pub fn request_thumbnail(&self, path: impl AsArg < GString >, control: impl AsObjectArg < crate::classes::TextureRect >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, ObjectArg < crate::classes::TextureRect >); + let args = (path.into_arg(), control.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(259usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorResourceTooltipPlugin", "request_thumbnail", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorResourceTooltipPlugin { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorResourceTooltipPlugin")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorResourceTooltipPlugin { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorResourceTooltipPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorResourceTooltipPlugin { + + } + impl crate::obj::cap::GodotDefault for EditorResourceTooltipPlugin { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorResourceTooltipPlugin { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorResourceTooltipPlugin { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorResourceTooltipPlugin`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorResourceTooltipPlugin { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorResourceTooltipPlugin > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer.rs new file mode 100644 index 0000000..21bf80d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer.rs @@ -0,0 +1,216 @@ +#![doc = "Sidecar module for class [`EditorSceneFormatImporter`][crate::classes::EditorSceneFormatImporter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorSceneFormatImporter` enums](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorSceneFormatImporter.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEditorSceneFormatImporter`][crate::classes::IEditorSceneFormatImporter]: virtual methods\n\n\nSee also [Godot docs for `EditorSceneFormatImporter`](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorSceneFormatImporter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorSceneFormatImporter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorSceneFormatImporter`][crate::classes::EditorSceneFormatImporter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorSceneFormatImporter` methods](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorSceneFormatImporter: crate::obj::GodotClass < Base = EditorSceneFormatImporter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_import_flags(&self,) -> u32 { + unimplemented !() + } + fn get_extensions(&self,) -> PackedStringArray { + unimplemented !() + } + fn import_scene(&mut self, path: GString, flags: u32, options: Dictionary,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn get_import_options(&mut self, path: GString,) { + unimplemented !() + } + fn get_option_visibility(&self, path: GString, for_animation: bool, option: GString,) -> Variant { + unimplemented !() + } + } + impl EditorSceneFormatImporter { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const IMPORT_SCENE: i32 = 1i32; + pub const IMPORT_ANIMATION: i32 = 2i32; + pub const IMPORT_FAIL_ON_MISSING_DEPENDENCIES: i32 = 4i32; + pub const IMPORT_GENERATE_TANGENT_ARRAYS: i32 = 8i32; + pub const IMPORT_USE_NAMED_SKIN_BINDS: i32 = 16i32; + pub const IMPORT_DISCARD_MESHES_AND_MATERIALS: i32 = 32i32; + pub const IMPORT_FORCE_DISABLE_MESH_COMPRESSION: i32 = 64i32; + + } + impl crate::obj::GodotClass for EditorSceneFormatImporter { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorSceneFormatImporter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorSceneFormatImporter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorSceneFormatImporter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorSceneFormatImporter { + + } + impl crate::obj::cap::GodotDefault for EditorSceneFormatImporter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorSceneFormatImporter { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorSceneFormatImporter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorSceneFormatImporter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorSceneFormatImporter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSceneFormatImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_blend.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_blend.rs new file mode 100644 index 0000000..261752b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_blend.rs @@ -0,0 +1,214 @@ +#![doc = "Sidecar module for class [`EditorSceneFormatImporterBlend`][crate::classes::EditorSceneFormatImporterBlend].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorSceneFormatImporterBlend` enums](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporterblend.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorSceneFormatImporterBlend.`\n\nInherits [`EditorSceneFormatImporter`][crate::classes::EditorSceneFormatImporter].\n\nRelated symbols:\n\n* [`IEditorSceneFormatImporterBlend`][crate::classes::IEditorSceneFormatImporterBlend]: virtual methods\n\n\nSee also [Godot docs for `EditorSceneFormatImporterBlend`](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporterblend.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorSceneFormatImporterBlend::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorSceneFormatImporterBlend { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorSceneFormatImporterBlend`][crate::classes::EditorSceneFormatImporterBlend].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorSceneFormatImporterBlend` methods](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporterblend.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorSceneFormatImporterBlend: crate::obj::GodotClass < Base = EditorSceneFormatImporterBlend > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_import_flags(&self,) -> u32 { + unimplemented !() + } + fn get_extensions(&self,) -> PackedStringArray { + unimplemented !() + } + fn import_scene(&mut self, path: GString, flags: u32, options: Dictionary,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn get_import_options(&mut self, path: GString,) { + unimplemented !() + } + fn get_option_visibility(&self, path: GString, for_animation: bool, option: GString,) -> Variant { + unimplemented !() + } + } + impl EditorSceneFormatImporterBlend { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorSceneFormatImporterBlend { + type Base = crate::classes::EditorSceneFormatImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorSceneFormatImporterBlend")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorSceneFormatImporterBlend { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorSceneFormatImporter > for EditorSceneFormatImporterBlend { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorSceneFormatImporterBlend { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorSceneFormatImporterBlend { + + } + impl crate::obj::cap::GodotDefault for EditorSceneFormatImporterBlend { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorSceneFormatImporterBlend { + type Target = crate::classes::EditorSceneFormatImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorSceneFormatImporterBlend { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorSceneFormatImporterBlend`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorSceneFormatImporterBlend { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSceneFormatImporterBlend > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSceneFormatImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_fbx2gltf.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_fbx2gltf.rs new file mode 100644 index 0000000..e407c57 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_fbx2gltf.rs @@ -0,0 +1,214 @@ +#![doc = "Sidecar module for class [`EditorSceneFormatImporterFbx2gltf`][crate::classes::EditorSceneFormatImporterFbx2gltf].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorSceneFormatImporterFBX2GLTF` enums](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporterfbx2gltf.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorSceneFormatImporterFBX2GLTF.`\n\nInherits [`EditorSceneFormatImporter`][crate::classes::EditorSceneFormatImporter].\n\nRelated symbols:\n\n* [`IEditorSceneFormatImporterFbx2gltf`][crate::classes::IEditorSceneFormatImporterFbx2gltf]: virtual methods\n\n\nSee also [Godot docs for `EditorSceneFormatImporterFBX2GLTF`](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporterfbx2gltf.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorSceneFormatImporterFbx2gltf::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorSceneFormatImporterFbx2gltf { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorSceneFormatImporterFbx2gltf`][crate::classes::EditorSceneFormatImporterFbx2gltf].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorSceneFormatImporterFBX2GLTF` methods](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporterfbx2gltf.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorSceneFormatImporterFbx2gltf: crate::obj::GodotClass < Base = EditorSceneFormatImporterFbx2gltf > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_import_flags(&self,) -> u32 { + unimplemented !() + } + fn get_extensions(&self,) -> PackedStringArray { + unimplemented !() + } + fn import_scene(&mut self, path: GString, flags: u32, options: Dictionary,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn get_import_options(&mut self, path: GString,) { + unimplemented !() + } + fn get_option_visibility(&self, path: GString, for_animation: bool, option: GString,) -> Variant { + unimplemented !() + } + } + impl EditorSceneFormatImporterFbx2gltf { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorSceneFormatImporterFbx2gltf { + type Base = crate::classes::EditorSceneFormatImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorSceneFormatImporterFBX2GLTF")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorSceneFormatImporterFbx2gltf { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorSceneFormatImporter > for EditorSceneFormatImporterFbx2gltf { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorSceneFormatImporterFbx2gltf { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorSceneFormatImporterFbx2gltf { + + } + impl crate::obj::cap::GodotDefault for EditorSceneFormatImporterFbx2gltf { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorSceneFormatImporterFbx2gltf { + type Target = crate::classes::EditorSceneFormatImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorSceneFormatImporterFbx2gltf { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorSceneFormatImporterFbx2gltf`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorSceneFormatImporterFbx2gltf { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSceneFormatImporterFbx2gltf > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSceneFormatImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_gltf.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_gltf.rs new file mode 100644 index 0000000..01ad037 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_gltf.rs @@ -0,0 +1,214 @@ +#![doc = "Sidecar module for class [`EditorSceneFormatImporterGltf`][crate::classes::EditorSceneFormatImporterGltf].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorSceneFormatImporterGLTF` enums](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimportergltf.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorSceneFormatImporterGLTF.`\n\nInherits [`EditorSceneFormatImporter`][crate::classes::EditorSceneFormatImporter].\n\nRelated symbols:\n\n* [`IEditorSceneFormatImporterGltf`][crate::classes::IEditorSceneFormatImporterGltf]: virtual methods\n\n\nSee also [Godot docs for `EditorSceneFormatImporterGLTF`](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimportergltf.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorSceneFormatImporterGltf::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorSceneFormatImporterGltf { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorSceneFormatImporterGltf`][crate::classes::EditorSceneFormatImporterGltf].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorSceneFormatImporterGLTF` methods](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimportergltf.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorSceneFormatImporterGltf: crate::obj::GodotClass < Base = EditorSceneFormatImporterGltf > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_import_flags(&self,) -> u32 { + unimplemented !() + } + fn get_extensions(&self,) -> PackedStringArray { + unimplemented !() + } + fn import_scene(&mut self, path: GString, flags: u32, options: Dictionary,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn get_import_options(&mut self, path: GString,) { + unimplemented !() + } + fn get_option_visibility(&self, path: GString, for_animation: bool, option: GString,) -> Variant { + unimplemented !() + } + } + impl EditorSceneFormatImporterGltf { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorSceneFormatImporterGltf { + type Base = crate::classes::EditorSceneFormatImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorSceneFormatImporterGLTF")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorSceneFormatImporterGltf { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorSceneFormatImporter > for EditorSceneFormatImporterGltf { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorSceneFormatImporterGltf { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorSceneFormatImporterGltf { + + } + impl crate::obj::cap::GodotDefault for EditorSceneFormatImporterGltf { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorSceneFormatImporterGltf { + type Target = crate::classes::EditorSceneFormatImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorSceneFormatImporterGltf { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorSceneFormatImporterGltf`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorSceneFormatImporterGltf { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSceneFormatImporterGltf > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSceneFormatImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_ufbx.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_ufbx.rs new file mode 100644 index 0000000..58645c6 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_format_importer_ufbx.rs @@ -0,0 +1,214 @@ +#![doc = "Sidecar module for class [`EditorSceneFormatImporterUfbx`][crate::classes::EditorSceneFormatImporterUfbx].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorSceneFormatImporterUFBX` enums](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporterufbx.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorSceneFormatImporterUFBX.`\n\nInherits [`EditorSceneFormatImporter`][crate::classes::EditorSceneFormatImporter].\n\nRelated symbols:\n\n* [`IEditorSceneFormatImporterUfbx`][crate::classes::IEditorSceneFormatImporterUfbx]: virtual methods\n\n\nSee also [Godot docs for `EditorSceneFormatImporterUFBX`](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporterufbx.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorSceneFormatImporterUfbx::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorSceneFormatImporterUfbx { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorSceneFormatImporterUfbx`][crate::classes::EditorSceneFormatImporterUfbx].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorSceneFormatImporterUFBX` methods](https://docs.godotengine.org/en/stable/classes/class_editorsceneformatimporterufbx.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorSceneFormatImporterUfbx: crate::obj::GodotClass < Base = EditorSceneFormatImporterUfbx > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_import_flags(&self,) -> u32 { + unimplemented !() + } + fn get_extensions(&self,) -> PackedStringArray { + unimplemented !() + } + fn import_scene(&mut self, path: GString, flags: u32, options: Dictionary,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn get_import_options(&mut self, path: GString,) { + unimplemented !() + } + fn get_option_visibility(&self, path: GString, for_animation: bool, option: GString,) -> Variant { + unimplemented !() + } + } + impl EditorSceneFormatImporterUfbx { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorSceneFormatImporterUfbx { + type Base = crate::classes::EditorSceneFormatImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorSceneFormatImporterUFBX")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorSceneFormatImporterUfbx { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorSceneFormatImporter > for EditorSceneFormatImporterUfbx { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorSceneFormatImporterUfbx { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorSceneFormatImporterUfbx { + + } + impl crate::obj::cap::GodotDefault for EditorSceneFormatImporterUfbx { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorSceneFormatImporterUfbx { + type Target = crate::classes::EditorSceneFormatImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorSceneFormatImporterUfbx { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorSceneFormatImporterUfbx`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorSceneFormatImporterUfbx { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSceneFormatImporterUfbx > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSceneFormatImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_post_import.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_post_import.rs new file mode 100644 index 0000000..41425a9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_post_import.rs @@ -0,0 +1,204 @@ +#![doc = "Sidecar module for class [`EditorScenePostImport`][crate::classes::EditorScenePostImport].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorScenePostImport` enums](https://docs.godotengine.org/en/stable/classes/class_editorscenepostimport.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorScenePostImport.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEditorScenePostImport`][crate::classes::IEditorScenePostImport]: virtual methods\n\n\nSee also [Godot docs for `EditorScenePostImport`](https://docs.godotengine.org/en/stable/classes/class_editorscenepostimport.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorScenePostImport::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorScenePostImport { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorScenePostImport`][crate::classes::EditorScenePostImport].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorScenePostImport` methods](https://docs.godotengine.org/en/stable/classes/class_editorscenepostimport.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorScenePostImport: crate::obj::GodotClass < Base = EditorScenePostImport > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn post_import(&mut self, scene: Option < Gd < crate::classes::Node > >,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + } + impl EditorScenePostImport { + pub fn get_source_file(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(260usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorScenePostImport", "get_source_file", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorScenePostImport { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorScenePostImport")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorScenePostImport { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorScenePostImport { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorScenePostImport { + + } + impl crate::obj::cap::GodotDefault for EditorScenePostImport { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorScenePostImport { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorScenePostImport { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorScenePostImport`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorScenePostImport { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorScenePostImport > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_post_import_plugin.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_post_import_plugin.rs new file mode 100644 index 0000000..da7591a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_scene_post_import_plugin.rs @@ -0,0 +1,396 @@ +#![doc = "Sidecar module for class [`EditorScenePostImportPlugin`][crate::classes::EditorScenePostImportPlugin].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorScenePostImportPlugin` enums](https://docs.godotengine.org/en/stable/classes/class_editorscenepostimportplugin.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorScenePostImportPlugin.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`editor_scene_post_import_plugin`][crate::classes::editor_scene_post_import_plugin]: sidecar module with related enum/flag types\n* [`IEditorScenePostImportPlugin`][crate::classes::IEditorScenePostImportPlugin]: virtual methods\n\n\nSee also [Godot docs for `EditorScenePostImportPlugin`](https://docs.godotengine.org/en/stable/classes/class_editorscenepostimportplugin.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorScenePostImportPlugin::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorScenePostImportPlugin { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorScenePostImportPlugin`][crate::classes::EditorScenePostImportPlugin].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorScenePostImportPlugin` methods](https://docs.godotengine.org/en/stable/classes/class_editorscenepostimportplugin.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorScenePostImportPlugin: crate::obj::GodotClass < Base = EditorScenePostImportPlugin > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_internal_import_options(&mut self, category: i32,) { + unimplemented !() + } + fn get_internal_option_visibility(&self, category: i32, for_animation: bool, option: GString,) -> Variant { + unimplemented !() + } + fn get_internal_option_update_view_required(&self, category: i32, option: GString,) -> Variant { + unimplemented !() + } + fn internal_process(&mut self, category: i32, base_node: Option < Gd < crate::classes::Node > >, node: Option < Gd < crate::classes::Node > >, resource: Option < Gd < crate::classes::Resource > >,) { + unimplemented !() + } + fn get_import_options(&mut self, path: GString,) { + unimplemented !() + } + fn get_option_visibility(&self, path: GString, for_animation: bool, option: GString,) -> Variant { + unimplemented !() + } + fn pre_process(&mut self, scene: Option < Gd < crate::classes::Node > >,) { + unimplemented !() + } + fn post_process(&mut self, scene: Option < Gd < crate::classes::Node > >,) { + unimplemented !() + } + } + impl EditorScenePostImportPlugin { + pub fn get_option_value(&self, name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(261usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorScenePostImportPlugin", "get_option_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_import_option(&mut self, name: impl AsArg < GString >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, Variant >); + let args = (name.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(262usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorScenePostImportPlugin", "add_import_option", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_import_option_advanced_full(&mut self, type_: VariantType, name: CowArg < GString >, default_value: RefArg < Variant >, hint: crate::global::PropertyHint, hint_string: CowArg < GString >, usage_flags: i32,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), VariantType, CowArg < 'a0, GString >, RefArg < 'a1, Variant >, crate::global::PropertyHint, CowArg < 'a2, GString >, i32); + let args = (type_, name, default_value, hint, hint_string, usage_flags,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(263usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorScenePostImportPlugin", "add_import_option_advanced", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_import_option_advanced_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_import_option_advanced(&mut self, type_: VariantType, name: impl AsArg < GString >, default_value: &Variant,) { + self.add_import_option_advanced_ex(type_, name, default_value,) . done() + } + #[inline] + pub fn add_import_option_advanced_ex < 'a > (&'a mut self, type_: VariantType, name: impl AsArg < GString > + 'a, default_value: &'a Variant,) -> ExAddImportOptionAdvanced < 'a > { + ExAddImportOptionAdvanced::new(self, type_, name, default_value,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorScenePostImportPlugin { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorScenePostImportPlugin")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorScenePostImportPlugin { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorScenePostImportPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorScenePostImportPlugin { + + } + impl crate::obj::cap::GodotDefault for EditorScenePostImportPlugin { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorScenePostImportPlugin { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorScenePostImportPlugin { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorScenePostImportPlugin`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorScenePostImportPlugin { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorScenePostImportPlugin > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorScenePostImportPlugin::add_import_option_advanced_ex`][super::EditorScenePostImportPlugin::add_import_option_advanced_ex]."] +#[must_use] +pub struct ExAddImportOptionAdvanced < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorScenePostImportPlugin, type_: VariantType, name: CowArg < 'a, GString >, default_value: CowArg < 'a, Variant >, hint: crate::global::PropertyHint, hint_string: CowArg < 'a, GString >, usage_flags: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddImportOptionAdvanced < 'a > { + fn new(surround_object: &'a mut re_export::EditorScenePostImportPlugin, type_: VariantType, name: impl AsArg < GString > + 'a, default_value: &'a Variant,) -> Self { + let hint = crate::obj::EngineEnum::from_ord(0); + let hint_string = GString::from(""); + let usage_flags = 6i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, type_: type_, name: name.into_arg(), default_value: CowArg::Borrowed(default_value), hint: hint, hint_string: CowArg::Owned(hint_string), usage_flags: usage_flags, + } + } + #[inline] + pub fn hint(self, hint: crate::global::PropertyHint) -> Self { + Self { + hint: hint, .. self + } + } + #[inline] + pub fn hint_string(self, hint_string: impl AsArg < GString > + 'a) -> Self { + Self { + hint_string: hint_string.into_arg(), .. self + } + } + #[inline] + pub fn usage_flags(self, usage_flags: i32) -> Self { + Self { + usage_flags: usage_flags, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, type_, name, default_value, hint, hint_string, usage_flags, + } + = self; + re_export::EditorScenePostImportPlugin::add_import_option_advanced_full(surround_object, type_, name, default_value.cow_as_arg(), hint, hint_string, usage_flags,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct InternalImportCategory { + ord: i32 +} +impl InternalImportCategory { + #[doc(alias = "INTERNAL_IMPORT_CATEGORY_NODE")] + #[doc = "Godot enumerator name: `INTERNAL_IMPORT_CATEGORY_NODE`"] + pub const NODE: InternalImportCategory = InternalImportCategory { + ord: 0i32 + }; + #[doc(alias = "INTERNAL_IMPORT_CATEGORY_MESH_3D_NODE")] + #[doc = "Godot enumerator name: `INTERNAL_IMPORT_CATEGORY_MESH_3D_NODE`"] + pub const MESH_3D_NODE: InternalImportCategory = InternalImportCategory { + ord: 1i32 + }; + #[doc(alias = "INTERNAL_IMPORT_CATEGORY_MESH")] + #[doc = "Godot enumerator name: `INTERNAL_IMPORT_CATEGORY_MESH`"] + pub const MESH: InternalImportCategory = InternalImportCategory { + ord: 2i32 + }; + #[doc(alias = "INTERNAL_IMPORT_CATEGORY_MATERIAL")] + #[doc = "Godot enumerator name: `INTERNAL_IMPORT_CATEGORY_MATERIAL`"] + pub const MATERIAL: InternalImportCategory = InternalImportCategory { + ord: 3i32 + }; + #[doc(alias = "INTERNAL_IMPORT_CATEGORY_ANIMATION")] + #[doc = "Godot enumerator name: `INTERNAL_IMPORT_CATEGORY_ANIMATION`"] + pub const ANIMATION: InternalImportCategory = InternalImportCategory { + ord: 4i32 + }; + #[doc(alias = "INTERNAL_IMPORT_CATEGORY_ANIMATION_NODE")] + #[doc = "Godot enumerator name: `INTERNAL_IMPORT_CATEGORY_ANIMATION_NODE`"] + pub const ANIMATION_NODE: InternalImportCategory = InternalImportCategory { + ord: 5i32 + }; + #[doc(alias = "INTERNAL_IMPORT_CATEGORY_SKELETON_3D_NODE")] + #[doc = "Godot enumerator name: `INTERNAL_IMPORT_CATEGORY_SKELETON_3D_NODE`"] + pub const SKELETON_3D_NODE: InternalImportCategory = InternalImportCategory { + ord: 6i32 + }; + #[doc(alias = "INTERNAL_IMPORT_CATEGORY_MAX")] + #[doc = "Godot enumerator name: `INTERNAL_IMPORT_CATEGORY_MAX`"] + pub const MAX: InternalImportCategory = InternalImportCategory { + ord: 7i32 + }; + +} +impl std::fmt::Debug for InternalImportCategory { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("InternalImportCategory") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for InternalImportCategory { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NODE => "NODE", Self::MESH_3D_NODE => "MESH_3D_NODE", Self::MESH => "MESH", Self::MATERIAL => "MATERIAL", Self::ANIMATION => "ANIMATION", Self::ANIMATION_NODE => "ANIMATION_NODE", Self::SKELETON_3D_NODE => "SKELETON_3D_NODE", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NODE => "INTERNAL_IMPORT_CATEGORY_NODE", Self::MESH_3D_NODE => "INTERNAL_IMPORT_CATEGORY_MESH_3D_NODE", Self::MESH => "INTERNAL_IMPORT_CATEGORY_MESH", Self::MATERIAL => "INTERNAL_IMPORT_CATEGORY_MATERIAL", Self::ANIMATION => "INTERNAL_IMPORT_CATEGORY_ANIMATION", Self::ANIMATION_NODE => "INTERNAL_IMPORT_CATEGORY_ANIMATION_NODE", Self::SKELETON_3D_NODE => "INTERNAL_IMPORT_CATEGORY_SKELETON_3D_NODE", Self::MAX => "INTERNAL_IMPORT_CATEGORY_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for InternalImportCategory { + const ENUMERATOR_COUNT: usize = 7usize; + +} +impl crate::meta::GodotConvert for InternalImportCategory { + type Via = i32; + +} +impl crate::meta::ToGodot for InternalImportCategory { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for InternalImportCategory { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_script.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_script.rs new file mode 100644 index 0000000..6187d62 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_script.rs @@ -0,0 +1,219 @@ +#![doc = "Sidecar module for class [`EditorScript`][crate::classes::EditorScript].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorScript` enums](https://docs.godotengine.org/en/stable/classes/class_editorscript.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorScript.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEditorScript`][crate::classes::IEditorScript]: virtual methods\n\n\nSee also [Godot docs for `EditorScript`](https://docs.godotengine.org/en/stable/classes/class_editorscript.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorScript::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorScript { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorScript`][crate::classes::EditorScript].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorScript` methods](https://docs.godotengine.org/en/stable/classes/class_editorscript.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorScript: crate::obj::GodotClass < Base = EditorScript > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn run(&mut self,); + + } + impl EditorScript { + pub fn add_root_node(&mut self, node: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(264usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorScript", "add_root_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scene(&self,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(265usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorScript", "get_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_editor_interface(&self,) -> Option < Gd < crate::classes::EditorInterface > > { + type CallSig = (Option < Gd < crate::classes::EditorInterface > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(266usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorScript", "get_editor_interface", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorScript { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorScript")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorScript { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorScript { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorScript { + + } + impl crate::obj::cap::GodotDefault for EditorScript { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorScript { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorScript { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorScript`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorScript { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorScript > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_script_picker.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_script_picker.rs new file mode 100644 index 0000000..351269f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_script_picker.rs @@ -0,0 +1,317 @@ +#![doc = "Sidecar module for class [`EditorScriptPicker`][crate::classes::EditorScriptPicker].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorScriptPicker` enums](https://docs.godotengine.org/en/stable/classes/class_editorscriptpicker.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorScriptPicker.`\n\nInherits [`EditorResourcePicker`][crate::classes::EditorResourcePicker].\n\nRelated symbols:\n\n* [`IEditorScriptPicker`][crate::classes::IEditorScriptPicker]: virtual methods\n\n\nSee also [Godot docs for `EditorScriptPicker`](https://docs.godotengine.org/en/stable/classes/class_editorscriptpicker.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorScriptPicker::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorScriptPicker { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorScriptPicker`][crate::classes::EditorScriptPicker].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorScriptPicker` methods](https://docs.godotengine.org/en/stable/classes/class_editorscriptpicker.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorScriptPicker: crate::obj::GodotClass < Base = EditorScriptPicker > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn set_create_options(&mut self, menu_node: Option < Gd < crate::classes::Object > >,) { + unimplemented !() + } + fn handle_menu_selected(&mut self, id: i32,) -> bool { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl EditorScriptPicker { + pub fn set_script_owner(&mut self, owner_node: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (owner_node.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(267usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorScriptPicker", "set_script_owner", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_script_owner(&self,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(268usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorScriptPicker", "get_script_owner", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorScriptPicker { + type Base = crate::classes::EditorResourcePicker; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorScriptPicker")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorScriptPicker { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::EditorResourcePicker > for EditorScriptPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::HBoxContainer > for EditorScriptPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::BoxContainer > for EditorScriptPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for EditorScriptPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for EditorScriptPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for EditorScriptPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for EditorScriptPicker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorScriptPicker { + + } + impl crate::obj::cap::GodotDefault for EditorScriptPicker { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorScriptPicker { + type Target = crate::classes::EditorResourcePicker; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorScriptPicker { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorScriptPicker`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorScriptPicker { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorScriptPicker > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorResourcePicker > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::HBoxContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BoxContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_selection.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_selection.rs new file mode 100644 index 0000000..494ce47 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_selection.rs @@ -0,0 +1,227 @@ +#![doc = "Sidecar module for class [`EditorSelection`][crate::classes::EditorSelection].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorSelection` enums](https://docs.godotengine.org/en/stable/classes/class_editorselection.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorSelection.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IEditorSelection`][crate::classes::IEditorSelection]: virtual methods\n\n\nSee also [Godot docs for `EditorSelection`](https://docs.godotengine.org/en/stable/classes/class_editorselection.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorSelection::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorSelection { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorSelection`][crate::classes::EditorSelection].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorSelection` methods](https://docs.godotengine.org/en/stable/classes/class_editorselection.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorSelection: crate::obj::GodotClass < Base = EditorSelection > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorSelection { + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(269usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSelection", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_node(&mut self, node: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(270usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSelection", "add_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_node(&mut self, node: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(271usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSelection", "remove_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selected_nodes(&mut self,) -> Array < Gd < crate::classes::Node > > { + type CallSig = (Array < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(272usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSelection", "get_selected_nodes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transformable_selected_nodes(&mut self,) -> Array < Gd < crate::classes::Node > > { + type CallSig = (Array < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(273usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSelection", "get_transformable_selected_nodes", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorSelection { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorSelection")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorSelection { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorSelection { + + } + impl crate::obj::cap::GodotDefault for EditorSelection { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorSelection { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorSelection { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorSelection`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorSelection { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSelection > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_settings.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_settings.rs new file mode 100644 index 0000000..64a525e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_settings.rs @@ -0,0 +1,424 @@ +#![doc = "Sidecar module for class [`EditorSettings`][crate::classes::EditorSettings].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorSettings` enums](https://docs.godotengine.org/en/stable/classes/class_editorsettings.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorSettings.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`editor_settings`][crate::classes::editor_settings]: sidecar module with related enum/flag types\n* [`IEditorSettings`][crate::classes::IEditorSettings]: virtual methods\n* [`EditorSettingsNotification`][crate::classes::notify::EditorSettingsNotification]: notification type\n\n\nSee also [Godot docs for `EditorSettings`](https://docs.godotengine.org/en/stable/classes/class_editorsettings.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorSettings::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorSettings { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorSettings`][crate::classes::EditorSettings].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorSettings` methods](https://docs.godotengine.org/en/stable/classes/class_editorsettings.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorSettings: crate::obj::GodotClass < Base = EditorSettings > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: EditorSettingsNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + #[doc = "Notification type for class [`EditorSettings`][crate::classes::EditorSettings]."] + #[doc = r""] + #[doc = r" Makes it easier to keep an overview all possible notification variants for a given class, including"] + #[doc = r" notifications defined in base classes."] + #[doc = r""] + #[doc = r" Contains the [`Unknown`][Self::Unknown] variant for forward compatibility."] + #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] + #[repr(i32)] + #[allow(non_camel_case_types)] + pub enum EditorSettingsNotification { + EDITOR_SETTINGS_CHANGED = 10000i32, POSTINITIALIZE = 0i32, PREDELETE = 1i32, EXTENSION_RELOADED = 2i32, #[doc = r" Since Godot represents notifications as integers, it's always possible that a notification outside the known types"] + #[doc = r" is received. For example, the user can manually issue notifications through `Object::notify()`."] + #[doc = r""] + #[doc = r" This is also necessary if you develop an extension on a Godot version and want to be forward-compatible with newer"] + #[doc = r" versions. If Godot adds new notifications, they will be unknown to your extension, but you can still handle them."] + Unknown(i32), + } + impl From < i32 > for EditorSettingsNotification { + #[doc = r" Always succeeds, mapping unknown integers to the `Unknown` variant."] + fn from(enumerator: i32) -> Self { + match enumerator { + 10000i32 => Self::EDITOR_SETTINGS_CHANGED, 0i32 => Self::POSTINITIALIZE, 1i32 => Self::PREDELETE, 2i32 => Self::EXTENSION_RELOADED, other_int => Self::Unknown(other_int), + } + } + } + impl From < EditorSettingsNotification > for i32 { + fn from(notification: EditorSettingsNotification) -> i32 { + match notification { + EditorSettingsNotification::EDITOR_SETTINGS_CHANGED => 10000i32, EditorSettingsNotification::POSTINITIALIZE => 0i32, EditorSettingsNotification::PREDELETE => 1i32, EditorSettingsNotification::EXTENSION_RELOADED => 2i32, EditorSettingsNotification::Unknown(int) => int, + } + } + } + impl EditorSettings { + pub fn has_setting(&self, name: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(274usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "has_setting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_setting(&mut self, name: impl AsArg < GString >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, Variant >); + let args = (name.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(275usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "set_setting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_setting(&self, name: impl AsArg < GString >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(276usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "get_setting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn erase(&mut self, property: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (property.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(277usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "erase", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_initial_value(&mut self, name: impl AsArg < StringName >, value: &Variant, update_current: bool,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >, bool); + let args = (name.into_arg(), RefArg::new(value), update_current,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(278usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "set_initial_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_property_info(&mut self, info: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(info),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(279usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "add_property_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_project_metadata(&mut self, section: impl AsArg < GString >, key: impl AsArg < GString >, data: &Variant,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, RefArg < 'a2, Variant >); + let args = (section.into_arg(), key.into_arg(), RefArg::new(data),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(280usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "set_project_metadata", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_project_metadata_full(&self, section: CowArg < GString >, key: CowArg < GString >, default: RefArg < Variant >,) -> Variant { + type CallSig < 'a0, 'a1, 'a2, > = (Variant, CowArg < 'a0, GString >, CowArg < 'a1, GString >, RefArg < 'a2, Variant >); + let args = (section, key, default,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(281usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "get_project_metadata", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_project_metadata_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_project_metadata(&self, section: impl AsArg < GString >, key: impl AsArg < GString >,) -> Variant { + self.get_project_metadata_ex(section, key,) . done() + } + #[inline] + pub fn get_project_metadata_ex < 'a > (&'a self, section: impl AsArg < GString > + 'a, key: impl AsArg < GString > + 'a,) -> ExGetProjectMetadata < 'a > { + ExGetProjectMetadata::new(self, section, key,) + } + pub fn set_favorites(&mut self, dirs: &PackedStringArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(dirs),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(282usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "set_favorites", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_favorites(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(283usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "get_favorites", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_recent_dirs(&mut self, dirs: &PackedStringArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(dirs),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(284usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "set_recent_dirs", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_recent_dirs(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(285usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "get_recent_dirs", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_builtin_action_override(&mut self, name: impl AsArg < GString >, actions_list: &Array < Gd < crate::classes::InputEvent > >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, Array < Gd < crate::classes::InputEvent > > >); + let args = (name.into_arg(), RefArg::new(actions_list),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(286usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "set_builtin_action_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn check_changed_settings_in_group(&self, setting_prefix: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (setting_prefix.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(287usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "check_changed_settings_in_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_changed_settings(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(288usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "get_changed_settings", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mark_setting_changed(&mut self, setting: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (setting.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(289usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSettings", "mark_setting_changed", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" ⚠️ Sends a Godot notification to all classes inherited by the object."] + #[doc = r""] + #[doc = r" Triggers calls to `on_notification()`, and depending on the notification, also to Godot's lifecycle callbacks such as `ready()`."] + #[doc = r""] + #[doc = r" Starts from the highest ancestor (the `Object` class) and goes down the hierarchy."] + #[doc = r" See also [Godot docs for `Object::notification()`](https://docs.godotengine.org/en/latest/classes/class_object.html#id3)."] + #[doc = r""] + #[doc = r" # Panics"] + #[doc = r""] + #[doc = r" If you call this method on a user-defined object while holding a `GdRef` or `GdMut` guard on the instance, you will encounter"] + #[doc = r" a panic. The reason is that the receiving virtual method `on_notification()` acquires a `GdMut` lock dynamically, which must"] + #[doc = r" be exclusive."] + pub fn notify(&mut self, what: EditorSettingsNotification) { + self.notification(i32::from(what), false); + + } + #[doc = r" ⚠️ Like [`Self::notify()`], but starts at the most-derived class and goes up the hierarchy."] + #[doc = r""] + #[doc = r" See docs of that method, including the panics."] + pub fn notify_reversed(&mut self, what: EditorSettingsNotification) { + self.notification(i32::from(what), true); + + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub(crate) const NOTIFICATION_EDITOR_SETTINGS_CHANGED: i32 = 10000i32; + + } + impl crate::obj::GodotClass for EditorSettings { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorSettings")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorSettings { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for EditorSettings { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorSettings { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorSettings { + + } + impl crate::obj::cap::GodotDefault for EditorSettings { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorSettings { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorSettings { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorSettings`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorSettings { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSettings > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorSettings::get_project_metadata_ex`][super::EditorSettings::get_project_metadata_ex]."] +#[must_use] +pub struct ExGetProjectMetadata < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::EditorSettings, section: CowArg < 'a, GString >, key: CowArg < 'a, GString >, default: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetProjectMetadata < 'a > { + fn new(surround_object: &'a re_export::EditorSettings, section: impl AsArg < GString > + 'a, key: impl AsArg < GString > + 'a,) -> Self { + let default = Variant::nil(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, section: section.into_arg(), key: key.into_arg(), default: CowArg::Owned(default), + } + } + #[inline] + pub fn default(self, default: &'a Variant) -> Self { + Self { + default: CowArg::Borrowed(default), .. self + } + } + #[inline] + pub fn done(self) -> Variant { + let Self { + _phantom, surround_object, section, key, default, + } + = self; + re_export::EditorSettings::get_project_metadata_full(surround_object, section, key, default.cow_as_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_spin_slider.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_spin_slider.rs new file mode 100644 index 0000000..26fd153 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_spin_slider.rs @@ -0,0 +1,354 @@ +#![doc = "Sidecar module for class [`EditorSpinSlider`][crate::classes::EditorSpinSlider].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorSpinSlider` enums](https://docs.godotengine.org/en/stable/classes/class_editorspinslider.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorSpinSlider.`\n\nInherits [`Range`][crate::classes::Range].\n\nRelated symbols:\n\n* [`IEditorSpinSlider`][crate::classes::IEditorSpinSlider]: virtual methods\n\n\nSee also [Godot docs for `EditorSpinSlider`](https://docs.godotengine.org/en/stable/classes/class_editorspinslider.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorSpinSlider::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorSpinSlider { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorSpinSlider`][crate::classes::EditorSpinSlider].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorSpinSlider` methods](https://docs.godotengine.org/en/stable/classes/class_editorspinslider.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorSpinSlider: crate::obj::GodotClass < Base = EditorSpinSlider > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn value_changed(&mut self, new_value: f64,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl EditorSpinSlider { + pub fn set_label(&mut self, label: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (label.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(290usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSpinSlider", "set_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_label(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(291usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSpinSlider", "get_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_suffix(&mut self, suffix: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (suffix.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(292usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSpinSlider", "set_suffix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_suffix(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(293usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSpinSlider", "get_suffix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_read_only(&mut self, read_only: bool,) { + type CallSig = ((), bool); + let args = (read_only,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(294usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSpinSlider", "set_read_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_read_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(295usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSpinSlider", "is_read_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flat(&mut self, flat: bool,) { + type CallSig = ((), bool); + let args = (flat,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(296usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSpinSlider", "set_flat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_flat(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(297usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSpinSlider", "is_flat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hide_slider(&mut self, hide_slider: bool,) { + type CallSig = ((), bool); + let args = (hide_slider,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(298usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSpinSlider", "set_hide_slider", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hiding_slider(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(299usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorSpinSlider", "is_hiding_slider", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorSpinSlider { + type Base = crate::classes::Range; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorSpinSlider")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorSpinSlider { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Range > for EditorSpinSlider { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for EditorSpinSlider { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for EditorSpinSlider { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for EditorSpinSlider { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorSpinSlider { + + } + impl crate::obj::cap::GodotDefault for EditorSpinSlider { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorSpinSlider { + type Target = crate::classes::Range; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorSpinSlider { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorSpinSlider`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorSpinSlider { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSpinSlider > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Range > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_syntax_highlighter.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_syntax_highlighter.rs new file mode 100644 index 0000000..490be8d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_syntax_highlighter.rs @@ -0,0 +1,223 @@ +#![doc = "Sidecar module for class [`EditorSyntaxHighlighter`][crate::classes::EditorSyntaxHighlighter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorSyntaxHighlighter` enums](https://docs.godotengine.org/en/stable/classes/class_editorsyntaxhighlighter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorSyntaxHighlighter.`\n\nInherits [`SyntaxHighlighter`][crate::classes::SyntaxHighlighter].\n\nRelated symbols:\n\n* [`IEditorSyntaxHighlighter`][crate::classes::IEditorSyntaxHighlighter]: virtual methods\n\n\nSee also [Godot docs for `EditorSyntaxHighlighter`](https://docs.godotengine.org/en/stable/classes/class_editorsyntaxhighlighter.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorSyntaxHighlighter::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorSyntaxHighlighter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorSyntaxHighlighter`][crate::classes::EditorSyntaxHighlighter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorSyntaxHighlighter` methods](https://docs.godotengine.org/en/stable/classes/class_editorsyntaxhighlighter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorSyntaxHighlighter: crate::obj::GodotClass < Base = EditorSyntaxHighlighter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_name(&self,) -> GString { + unimplemented !() + } + fn get_supported_languages(&self,) -> PackedStringArray { + unimplemented !() + } + fn get_line_syntax_highlighting(&self, line: i32,) -> Dictionary { + unimplemented !() + } + fn clear_highlighting_cache(&mut self,) { + unimplemented !() + } + fn update_cache(&mut self,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl EditorSyntaxHighlighter { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorSyntaxHighlighter { + type Base = crate::classes::SyntaxHighlighter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorSyntaxHighlighter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorSyntaxHighlighter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::SyntaxHighlighter > for EditorSyntaxHighlighter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for EditorSyntaxHighlighter { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorSyntaxHighlighter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorSyntaxHighlighter { + + } + impl crate::obj::cap::GodotDefault for EditorSyntaxHighlighter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorSyntaxHighlighter { + type Target = crate::classes::SyntaxHighlighter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorSyntaxHighlighter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorSyntaxHighlighter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorSyntaxHighlighter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorSyntaxHighlighter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::SyntaxHighlighter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_translation_parser_plugin.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_translation_parser_plugin.rs new file mode 100644 index 0000000..1a1a214 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_translation_parser_plugin.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`EditorTranslationParserPlugin`][crate::classes::EditorTranslationParserPlugin].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorTranslationParserPlugin` enums](https://docs.godotengine.org/en/stable/classes/class_editortranslationparserplugin.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorTranslationParserPlugin.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEditorTranslationParserPlugin`][crate::classes::IEditorTranslationParserPlugin]: virtual methods\n\n\nSee also [Godot docs for `EditorTranslationParserPlugin`](https://docs.godotengine.org/en/stable/classes/class_editortranslationparserplugin.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EditorTranslationParserPlugin::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorTranslationParserPlugin { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorTranslationParserPlugin`][crate::classes::EditorTranslationParserPlugin].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorTranslationParserPlugin` methods](https://docs.godotengine.org/en/stable/classes/class_editortranslationparserplugin.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorTranslationParserPlugin: crate::obj::GodotClass < Base = EditorTranslationParserPlugin > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn parse_file(&mut self, path: GString, msgids: Array < GString >, msgids_context_plural: Array < VariantArray >,) { + unimplemented !() + } + fn get_recognized_extensions(&self,) -> PackedStringArray { + unimplemented !() + } + } + impl EditorTranslationParserPlugin { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorTranslationParserPlugin { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorTranslationParserPlugin")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorTranslationParserPlugin { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EditorTranslationParserPlugin { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorTranslationParserPlugin { + + } + impl crate::obj::cap::GodotDefault for EditorTranslationParserPlugin { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorTranslationParserPlugin { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorTranslationParserPlugin { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorTranslationParserPlugin`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorTranslationParserPlugin { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorTranslationParserPlugin > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_undo_redo_manager.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_undo_redo_manager.rs new file mode 100644 index 0000000..3c849cd --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_undo_redo_manager.rs @@ -0,0 +1,450 @@ +#![doc = "Sidecar module for class [`EditorUndoRedoManager`][crate::classes::EditorUndoRedoManager].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorUndoRedoManager` enums](https://docs.godotengine.org/en/stable/classes/class_editorundoredomanager.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorUndoRedoManager.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`editor_undo_redo_manager`][crate::classes::editor_undo_redo_manager]: sidecar module with related enum/flag types\n* [`IEditorUndoRedoManager`][crate::classes::IEditorUndoRedoManager]: virtual methods\n\n\nSee also [Godot docs for `EditorUndoRedoManager`](https://docs.godotengine.org/en/stable/classes/class_editorundoredomanager.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorUndoRedoManager { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorUndoRedoManager`][crate::classes::EditorUndoRedoManager].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorUndoRedoManager` methods](https://docs.godotengine.org/en/stable/classes/class_editorundoredomanager.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorUndoRedoManager: crate::obj::GodotClass < Base = EditorUndoRedoManager > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EditorUndoRedoManager { + pub(crate) fn create_action_full(&mut self, name: CowArg < GString >, merge_mode: crate::classes::undo_redo::MergeMode, custom_context: ObjectArg < crate::classes::Object >, backward_undo_ops: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, crate::classes::undo_redo::MergeMode, ObjectArg < crate::classes::Object >, bool); + let args = (name, merge_mode, custom_context, backward_undo_ops,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(300usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorUndoRedoManager", "create_action", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_action_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_action(&mut self, name: impl AsArg < GString >,) { + self.create_action_ex(name,) . done() + } + #[inline] + pub fn create_action_ex < 'a > (&'a mut self, name: impl AsArg < GString > + 'a,) -> ExCreateAction < 'a > { + ExCreateAction::new(self, name,) + } + pub(crate) fn commit_action_full(&mut self, execute: bool,) { + type CallSig = ((), bool); + let args = (execute,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(301usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorUndoRedoManager", "commit_action", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::commit_action_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn commit_action(&mut self,) { + self.commit_action_ex() . done() + } + #[inline] + pub fn commit_action_ex < 'a > (&'a mut self,) -> ExCommitAction < 'a > { + ExCommitAction::new(self,) + } + pub fn is_committing_action(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(302usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorUndoRedoManager", "is_committing_action", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_fixed_history(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(303usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorUndoRedoManager", "force_fixed_history", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn add_do_method(&mut self, object: impl AsObjectArg < crate::classes::Object >, method: impl AsArg < StringName >, varargs: &[Variant]) { + Self::try_add_do_method(self, object, method, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_add_do_method(&mut self, object: impl AsObjectArg < crate::classes::Object >, method: impl AsArg < StringName >, varargs: &[Variant]) -> Result < (), crate::meta::error::CallError > { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Object >, CowArg < 'a0, StringName >); + let args = (object.as_object_arg(), method.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(304usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "EditorUndoRedoManager", "add_do_method", self.object_ptr, self.__checked_id(), args, varargs) + } + } + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn add_undo_method(&mut self, object: impl AsObjectArg < crate::classes::Object >, method: impl AsArg < StringName >, varargs: &[Variant]) { + Self::try_add_undo_method(self, object, method, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_add_undo_method(&mut self, object: impl AsObjectArg < crate::classes::Object >, method: impl AsArg < StringName >, varargs: &[Variant]) -> Result < (), crate::meta::error::CallError > { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Object >, CowArg < 'a0, StringName >); + let args = (object.as_object_arg(), method.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(305usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "EditorUndoRedoManager", "add_undo_method", self.object_ptr, self.__checked_id(), args, varargs) + } + } + pub fn add_do_property(&mut self, object: impl AsObjectArg < crate::classes::Object >, property: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), ObjectArg < crate::classes::Object >, CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (object.as_object_arg(), property.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(306usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorUndoRedoManager", "add_do_property", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_undo_property(&mut self, object: impl AsObjectArg < crate::classes::Object >, property: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), ObjectArg < crate::classes::Object >, CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (object.as_object_arg(), property.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(307usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorUndoRedoManager", "add_undo_property", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_do_reference(&mut self, object: impl AsObjectArg < crate::classes::Object >,) { + type CallSig = ((), ObjectArg < crate::classes::Object >); + let args = (object.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(308usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorUndoRedoManager", "add_do_reference", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_undo_reference(&mut self, object: impl AsObjectArg < crate::classes::Object >,) { + type CallSig = ((), ObjectArg < crate::classes::Object >); + let args = (object.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(309usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorUndoRedoManager", "add_undo_reference", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_object_history_id(&self, object: impl AsObjectArg < crate::classes::Object >,) -> i32 { + type CallSig = (i32, ObjectArg < crate::classes::Object >); + let args = (object.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(310usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorUndoRedoManager", "get_object_history_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_history_undo_redo(&self, id: i32,) -> Option < Gd < crate::classes::UndoRedo > > { + type CallSig = (Option < Gd < crate::classes::UndoRedo > >, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(311usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorUndoRedoManager", "get_history_undo_redo", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorUndoRedoManager { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorUndoRedoManager")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorUndoRedoManager { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorUndoRedoManager { + + } + impl std::ops::Deref for EditorUndoRedoManager { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorUndoRedoManager { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorUndoRedoManager`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorUndoRedoManager { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorUndoRedoManager > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EditorUndoRedoManager::create_action_ex`][super::EditorUndoRedoManager::create_action_ex]."] +#[must_use] +pub struct ExCreateAction < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorUndoRedoManager, name: CowArg < 'a, GString >, merge_mode: crate::classes::undo_redo::MergeMode, custom_context: ObjectCow < crate::classes::Object >, backward_undo_ops: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateAction < 'a > { + fn new(surround_object: &'a mut re_export::EditorUndoRedoManager, name: impl AsArg < GString > + 'a,) -> Self { + let merge_mode = crate::obj::EngineEnum::from_ord(0); + let custom_context = Gd::null_arg(); + let backward_undo_ops = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), merge_mode: merge_mode, custom_context: custom_context.consume_arg(), backward_undo_ops: backward_undo_ops, + } + } + #[inline] + pub fn merge_mode(self, merge_mode: crate::classes::undo_redo::MergeMode) -> Self { + Self { + merge_mode: merge_mode, .. self + } + } + #[inline] + pub fn custom_context(self, custom_context: impl AsObjectArg < crate::classes::Object >) -> Self { + Self { + custom_context: custom_context.consume_arg(), .. self + } + } + #[inline] + pub fn backward_undo_ops(self, backward_undo_ops: bool) -> Self { + Self { + backward_undo_ops: backward_undo_ops, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, merge_mode, custom_context, backward_undo_ops, + } + = self; + re_export::EditorUndoRedoManager::create_action_full(surround_object, name, merge_mode, custom_context.cow_as_object_arg(), backward_undo_ops,) + } +} +#[doc = "Default-param extender for [`EditorUndoRedoManager::commit_action_ex`][super::EditorUndoRedoManager::commit_action_ex]."] +#[must_use] +pub struct ExCommitAction < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EditorUndoRedoManager, execute: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCommitAction < 'a > { + fn new(surround_object: &'a mut re_export::EditorUndoRedoManager,) -> Self { + let execute = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, execute: execute, + } + } + #[inline] + pub fn execute(self, execute: bool) -> Self { + Self { + execute: execute, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, execute, + } + = self; + re_export::EditorUndoRedoManager::commit_action_full(surround_object, execute,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SpecialHistory { + ord: i32 +} +impl SpecialHistory { + pub const GLOBAL_HISTORY: SpecialHistory = SpecialHistory { + ord: 0i32 + }; + pub const REMOTE_HISTORY: SpecialHistory = SpecialHistory { + ord: - 9i32 + }; + pub const INVALID_HISTORY: SpecialHistory = SpecialHistory { + ord: - 99i32 + }; + +} +impl std::fmt::Debug for SpecialHistory { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SpecialHistory") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SpecialHistory { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ - 99i32 | ord @ - 9i32 | ord @ 0i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GLOBAL_HISTORY => "GLOBAL_HISTORY", Self::REMOTE_HISTORY => "REMOTE_HISTORY", Self::INVALID_HISTORY => "INVALID_HISTORY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + self.as_str() + } +} +impl crate::meta::GodotConvert for SpecialHistory { + type Via = i32; + +} +impl crate::meta::ToGodot for SpecialHistory { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SpecialHistory { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_vcs_interface.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_vcs_interface.rs new file mode 100644 index 0000000..e46548a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/editor_vcs_interface.rs @@ -0,0 +1,440 @@ +#![doc = "Sidecar module for class [`EditorVcsInterface`][crate::classes::EditorVcsInterface].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EditorVCSInterface` enums](https://docs.godotengine.org/en/stable/classes/class_editorvcsinterface.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EditorVCSInterface.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`editor_vcs_interface`][crate::classes::editor_vcs_interface]: sidecar module with related enum/flag types\n* [`IEditorVcsInterface`][crate::classes::IEditorVcsInterface]: virtual methods\n\n\nSee also [Godot docs for `EditorVCSInterface`](https://docs.godotengine.org/en/stable/classes/class_editorvcsinterface.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`EditorVcsInterface::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct EditorVcsInterface { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EditorVcsInterface`][crate::classes::EditorVcsInterface].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EditorVCSInterface` methods](https://docs.godotengine.org/en/stable/classes/class_editorvcsinterface.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEditorVcsInterface: crate::obj::GodotClass < Base = EditorVcsInterface > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn initialize(&mut self, project_path: GString,) -> bool; + fn set_credentials(&mut self, username: GString, password: GString, ssh_public_key_path: GString, ssh_private_key_path: GString, ssh_passphrase: GString,); + fn get_modified_files_data(&mut self,) -> Array < Dictionary >; + fn stage_file(&mut self, file_path: GString,); + fn unstage_file(&mut self, file_path: GString,); + fn discard_file(&mut self, file_path: GString,); + fn commit(&mut self, msg: GString,); + fn get_diff(&mut self, identifier: GString, area: i32,) -> Array < Dictionary >; + fn shut_down(&mut self,) -> bool; + fn get_vcs_name(&mut self,) -> GString; + fn get_previous_commits(&mut self, max_commits: i32,) -> Array < Dictionary >; + fn get_branch_list(&mut self,) -> Array < GString >; + fn get_remotes(&mut self,) -> Array < GString >; + fn create_branch(&mut self, branch_name: GString,); + fn remove_branch(&mut self, branch_name: GString,); + fn create_remote(&mut self, remote_name: GString, remote_url: GString,); + fn remove_remote(&mut self, remote_name: GString,); + fn get_current_branch_name(&mut self,) -> GString; + fn checkout_branch(&mut self, branch_name: GString,) -> bool; + fn pull(&mut self, remote: GString,); + fn push(&mut self, remote: GString, force: bool,); + fn fetch(&mut self, remote: GString,); + fn get_line_diff(&mut self, file_path: GString, text: GString,) -> Array < Dictionary >; + + } + impl EditorVcsInterface { + pub fn create_diff_line(&mut self, new_line_no: i32, old_line_no: i32, content: impl AsArg < GString >, status: impl AsArg < GString >,) -> Dictionary { + type CallSig < 'a0, 'a1, > = (Dictionary, i32, i32, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (new_line_no, old_line_no, content.into_arg(), status.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(312usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorVcsInterface", "create_diff_line", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_diff_hunk(&mut self, old_start: i32, new_start: i32, old_lines: i32, new_lines: i32,) -> Dictionary { + type CallSig = (Dictionary, i32, i32, i32, i32); + let args = (old_start, new_start, old_lines, new_lines,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(313usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorVcsInterface", "create_diff_hunk", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_diff_file(&mut self, new_file: impl AsArg < GString >, old_file: impl AsArg < GString >,) -> Dictionary { + type CallSig < 'a0, 'a1, > = (Dictionary, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (new_file.into_arg(), old_file.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(314usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorVcsInterface", "create_diff_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_commit(&mut self, msg: impl AsArg < GString >, author: impl AsArg < GString >, id: impl AsArg < GString >, unix_timestamp: i64, offset_minutes: i64,) -> Dictionary { + type CallSig < 'a0, 'a1, 'a2, > = (Dictionary, CowArg < 'a0, GString >, CowArg < 'a1, GString >, CowArg < 'a2, GString >, i64, i64); + let args = (msg.into_arg(), author.into_arg(), id.into_arg(), unix_timestamp, offset_minutes,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(315usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorVcsInterface", "create_commit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_status_file(&mut self, file_path: impl AsArg < GString >, change_type: crate::classes::editor_vcs_interface::ChangeType, area: crate::classes::editor_vcs_interface::TreeArea,) -> Dictionary { + type CallSig < 'a0, > = (Dictionary, CowArg < 'a0, GString >, crate::classes::editor_vcs_interface::ChangeType, crate::classes::editor_vcs_interface::TreeArea); + let args = (file_path.into_arg(), change_type, area,); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(316usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorVcsInterface", "create_status_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_diff_hunks_into_diff_file(&mut self, diff_file: &Dictionary, diff_hunks: &Array < Dictionary >,) -> Dictionary { + type CallSig < 'a0, 'a1, > = (Dictionary, RefArg < 'a0, Dictionary >, RefArg < 'a1, Array < Dictionary > >); + let args = (RefArg::new(diff_file), RefArg::new(diff_hunks),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(317usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorVcsInterface", "add_diff_hunks_into_diff_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_line_diffs_into_diff_hunk(&mut self, diff_hunk: &Dictionary, line_diffs: &Array < Dictionary >,) -> Dictionary { + type CallSig < 'a0, 'a1, > = (Dictionary, RefArg < 'a0, Dictionary >, RefArg < 'a1, Array < Dictionary > >); + let args = (RefArg::new(diff_hunk), RefArg::new(line_diffs),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(318usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorVcsInterface", "add_line_diffs_into_diff_hunk", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn popup_error(&mut self, msg: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (msg.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(319usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EditorVcsInterface", "popup_error", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EditorVcsInterface { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EditorVCSInterface")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for EditorVcsInterface { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EditorVcsInterface { + + } + impl crate::obj::cap::GodotDefault for EditorVcsInterface { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EditorVcsInterface { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EditorVcsInterface { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EditorVcsInterface`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EditorVcsInterface { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EditorVcsInterface > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ChangeType { + ord: i32 +} +impl ChangeType { + #[doc(alias = "CHANGE_TYPE_NEW")] + #[doc = "Godot enumerator name: `CHANGE_TYPE_NEW`"] + pub const NEW: ChangeType = ChangeType { + ord: 0i32 + }; + #[doc(alias = "CHANGE_TYPE_MODIFIED")] + #[doc = "Godot enumerator name: `CHANGE_TYPE_MODIFIED`"] + pub const MODIFIED: ChangeType = ChangeType { + ord: 1i32 + }; + #[doc(alias = "CHANGE_TYPE_RENAMED")] + #[doc = "Godot enumerator name: `CHANGE_TYPE_RENAMED`"] + pub const RENAMED: ChangeType = ChangeType { + ord: 2i32 + }; + #[doc(alias = "CHANGE_TYPE_DELETED")] + #[doc = "Godot enumerator name: `CHANGE_TYPE_DELETED`"] + pub const DELETED: ChangeType = ChangeType { + ord: 3i32 + }; + #[doc(alias = "CHANGE_TYPE_TYPECHANGE")] + #[doc = "Godot enumerator name: `CHANGE_TYPE_TYPECHANGE`"] + pub const TYPECHANGE: ChangeType = ChangeType { + ord: 4i32 + }; + #[doc(alias = "CHANGE_TYPE_UNMERGED")] + #[doc = "Godot enumerator name: `CHANGE_TYPE_UNMERGED`"] + pub const UNMERGED: ChangeType = ChangeType { + ord: 5i32 + }; + +} +impl std::fmt::Debug for ChangeType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ChangeType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ChangeType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEW => "NEW", Self::MODIFIED => "MODIFIED", Self::RENAMED => "RENAMED", Self::DELETED => "DELETED", Self::TYPECHANGE => "TYPECHANGE", Self::UNMERGED => "UNMERGED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEW => "CHANGE_TYPE_NEW", Self::MODIFIED => "CHANGE_TYPE_MODIFIED", Self::RENAMED => "CHANGE_TYPE_RENAMED", Self::DELETED => "CHANGE_TYPE_DELETED", Self::TYPECHANGE => "CHANGE_TYPE_TYPECHANGE", Self::UNMERGED => "CHANGE_TYPE_UNMERGED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ChangeType { + type Via = i32; + +} +impl crate::meta::ToGodot for ChangeType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ChangeType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TreeArea { + ord: i32 +} +impl TreeArea { + #[doc(alias = "TREE_AREA_COMMIT")] + #[doc = "Godot enumerator name: `TREE_AREA_COMMIT`"] + pub const COMMIT: TreeArea = TreeArea { + ord: 0i32 + }; + #[doc(alias = "TREE_AREA_STAGED")] + #[doc = "Godot enumerator name: `TREE_AREA_STAGED`"] + pub const STAGED: TreeArea = TreeArea { + ord: 1i32 + }; + #[doc(alias = "TREE_AREA_UNSTAGED")] + #[doc = "Godot enumerator name: `TREE_AREA_UNSTAGED`"] + pub const UNSTAGED: TreeArea = TreeArea { + ord: 2i32 + }; + +} +impl std::fmt::Debug for TreeArea { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TreeArea") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TreeArea { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMMIT => "COMMIT", Self::STAGED => "STAGED", Self::UNSTAGED => "UNSTAGED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMMIT => "TREE_AREA_COMMIT", Self::STAGED => "TREE_AREA_STAGED", Self::UNSTAGED => "TREE_AREA_UNSTAGED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TreeArea { + type Via = i32; + +} +impl crate::meta::ToGodot for TreeArea { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TreeArea { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/encoded_object_as_id.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/encoded_object_as_id.rs new file mode 100644 index 0000000..c470fd3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/encoded_object_as_id.rs @@ -0,0 +1,209 @@ +#![doc = "Sidecar module for class [`EncodedObjectAsId`][crate::classes::EncodedObjectAsId].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EncodedObjectAsID` enums](https://docs.godotengine.org/en/stable/classes/class_encodedobjectasid.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EncodedObjectAsID.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEncodedObjectAsId`][crate::classes::IEncodedObjectAsId]: virtual methods\n\n\nSee also [Godot docs for `EncodedObjectAsID`](https://docs.godotengine.org/en/stable/classes/class_encodedobjectasid.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EncodedObjectAsId::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EncodedObjectAsId { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EncodedObjectAsId`][crate::classes::EncodedObjectAsId].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EncodedObjectAsID` methods](https://docs.godotengine.org/en/stable/classes/class_encodedobjectasid.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEncodedObjectAsId: crate::obj::GodotClass < Base = EncodedObjectAsId > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EncodedObjectAsId { + pub fn set_object_id(&mut self, id: u64,) { + type CallSig = ((), u64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2852usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EncodedObjectAsId", "set_object_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_object_id(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2853usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EncodedObjectAsId", "get_object_id", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EncodedObjectAsId { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EncodedObjectAsID")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for EncodedObjectAsId { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EncodedObjectAsId { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EncodedObjectAsId { + + } + impl crate::obj::cap::GodotDefault for EncodedObjectAsId { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EncodedObjectAsId { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EncodedObjectAsId { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EncodedObjectAsId`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EncodedObjectAsId { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EncodedObjectAsId > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/enet_connection.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/enet_connection.rs new file mode 100644 index 0000000..af6d404 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/enet_connection.rs @@ -0,0 +1,865 @@ +#![doc = "Sidecar module for class [`ENetConnection`][crate::classes::ENetConnection].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ENetConnection` enums](https://docs.godotengine.org/en/stable/classes/class_enetconnection.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ENetConnection.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`enet_connection`][crate::classes::enet_connection]: sidecar module with related enum/flag types\n* [`IENetConnection`][crate::classes::IENetConnection]: virtual methods\n\n\nSee also [Godot docs for `ENetConnection`](https://docs.godotengine.org/en/stable/classes/class_enetconnection.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ENetConnection::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ENetConnection { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ENetConnection`][crate::classes::ENetConnection].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ENetConnection` methods](https://docs.godotengine.org/en/stable/classes/class_enetconnection.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IENetConnection: crate::obj::GodotClass < Base = ENetConnection > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ENetConnection { + pub(crate) fn create_host_bound_full(&mut self, bind_address: CowArg < GString >, bind_port: i32, max_peers: i32, max_channels: i32, in_bandwidth: i32, out_bandwidth: i32,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, i32, i32, i32, i32, i32); + let args = (bind_address, bind_port, max_peers, max_channels, in_bandwidth, out_bandwidth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2812usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "create_host_bound", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_host_bound_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_host_bound(&mut self, bind_address: impl AsArg < GString >, bind_port: i32,) -> crate::global::Error { + self.create_host_bound_ex(bind_address, bind_port,) . done() + } + #[inline] + pub fn create_host_bound_ex < 'a > (&'a mut self, bind_address: impl AsArg < GString > + 'a, bind_port: i32,) -> ExCreateHostBound < 'a > { + ExCreateHostBound::new(self, bind_address, bind_port,) + } + pub(crate) fn create_host_full(&mut self, max_peers: i32, max_channels: i32, in_bandwidth: i32, out_bandwidth: i32,) -> crate::global::Error { + type CallSig = (crate::global::Error, i32, i32, i32, i32); + let args = (max_peers, max_channels, in_bandwidth, out_bandwidth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2813usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "create_host", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_host_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_host(&mut self,) -> crate::global::Error { + self.create_host_ex() . done() + } + #[inline] + pub fn create_host_ex < 'a > (&'a mut self,) -> ExCreateHost < 'a > { + ExCreateHost::new(self,) + } + pub fn destroy(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2814usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "destroy", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn connect_to_host_full(&mut self, address: CowArg < GString >, port: i32, channels: i32, data: i32,) -> Option < Gd < crate::classes::ENetPacketPeer > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::ENetPacketPeer > >, CowArg < 'a0, GString >, i32, i32, i32); + let args = (address, port, channels, data,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2815usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "connect_to_host", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::connect_to_host_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn connect_to_host(&mut self, address: impl AsArg < GString >, port: i32,) -> Option < Gd < crate::classes::ENetPacketPeer > > { + self.connect_to_host_ex(address, port,) . done() + } + #[inline] + pub fn connect_to_host_ex < 'a > (&'a mut self, address: impl AsArg < GString > + 'a, port: i32,) -> ExConnectToHost < 'a > { + ExConnectToHost::new(self, address, port,) + } + pub(crate) fn service_full(&mut self, timeout: i32,) -> VariantArray { + type CallSig = (VariantArray, i32); + let args = (timeout,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2816usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "service", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::service_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn service(&mut self,) -> VariantArray { + self.service_ex() . done() + } + #[inline] + pub fn service_ex < 'a > (&'a mut self,) -> ExService < 'a > { + ExService::new(self,) + } + pub fn flush(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2817usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "flush", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn bandwidth_limit_full(&mut self, in_bandwidth: i32, out_bandwidth: i32,) { + type CallSig = ((), i32, i32); + let args = (in_bandwidth, out_bandwidth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2818usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "bandwidth_limit", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::bandwidth_limit_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn bandwidth_limit(&mut self,) { + self.bandwidth_limit_ex() . done() + } + #[inline] + pub fn bandwidth_limit_ex < 'a > (&'a mut self,) -> ExBandwidthLimit < 'a > { + ExBandwidthLimit::new(self,) + } + pub fn channel_limit(&mut self, limit: i32,) { + type CallSig = ((), i32); + let args = (limit,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2819usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "channel_limit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn broadcast(&mut self, channel: i32, packet: &PackedByteArray, flags: i32,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, PackedByteArray >, i32); + let args = (channel, RefArg::new(packet), flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2820usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "broadcast", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compress(&mut self, mode: crate::classes::enet_connection::CompressionMode,) { + type CallSig = ((), crate::classes::enet_connection::CompressionMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2821usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "compress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn dtls_server_setup(&mut self, server_options: impl AsObjectArg < crate::classes::TlsOptions >,) -> crate::global::Error { + type CallSig = (crate::global::Error, ObjectArg < crate::classes::TlsOptions >); + let args = (server_options.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2822usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "dtls_server_setup", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn dtls_client_setup_full(&mut self, hostname: CowArg < GString >, client_options: ObjectArg < crate::classes::TlsOptions >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, ObjectArg < crate::classes::TlsOptions >); + let args = (hostname, client_options,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2823usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "dtls_client_setup", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::dtls_client_setup_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn dtls_client_setup(&mut self, hostname: impl AsArg < GString >,) -> crate::global::Error { + self.dtls_client_setup_ex(hostname,) . done() + } + #[inline] + pub fn dtls_client_setup_ex < 'a > (&'a mut self, hostname: impl AsArg < GString > + 'a,) -> ExDtlsClientSetup < 'a > { + ExDtlsClientSetup::new(self, hostname,) + } + pub fn refuse_new_connections(&mut self, refuse: bool,) { + type CallSig = ((), bool); + let args = (refuse,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2824usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "refuse_new_connections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pop_statistic(&mut self, statistic: crate::classes::enet_connection::HostStatistic,) -> f64 { + type CallSig = (f64, crate::classes::enet_connection::HostStatistic); + let args = (statistic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2825usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "pop_statistic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_channels(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2826usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "get_max_channels", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_local_port(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2827usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "get_local_port", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_peers(&mut self,) -> Array < Gd < crate::classes::ENetPacketPeer > > { + type CallSig = (Array < Gd < crate::classes::ENetPacketPeer > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2828usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "get_peers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn socket_send(&mut self, destination_address: impl AsArg < GString >, destination_port: i32, packet: &PackedByteArray,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, i32, RefArg < 'a1, PackedByteArray >); + let args = (destination_address.into_arg(), destination_port, RefArg::new(packet),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2829usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetConnection", "socket_send", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ENetConnection { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ENetConnection")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ENetConnection { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ENetConnection { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ENetConnection { + + } + impl crate::obj::cap::GodotDefault for ENetConnection { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ENetConnection { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ENetConnection { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ENetConnection`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ENetConnection { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ENetConnection > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ENetConnection::create_host_bound_ex`][super::ENetConnection::create_host_bound_ex]."] +#[must_use] +pub struct ExCreateHostBound < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ENetConnection, bind_address: CowArg < 'a, GString >, bind_port: i32, max_peers: i32, max_channels: i32, in_bandwidth: i32, out_bandwidth: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateHostBound < 'a > { + fn new(surround_object: &'a mut re_export::ENetConnection, bind_address: impl AsArg < GString > + 'a, bind_port: i32,) -> Self { + let max_peers = 32i32; + let max_channels = 0i32; + let in_bandwidth = 0i32; + let out_bandwidth = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, bind_address: bind_address.into_arg(), bind_port: bind_port, max_peers: max_peers, max_channels: max_channels, in_bandwidth: in_bandwidth, out_bandwidth: out_bandwidth, + } + } + #[inline] + pub fn max_peers(self, max_peers: i32) -> Self { + Self { + max_peers: max_peers, .. self + } + } + #[inline] + pub fn max_channels(self, max_channels: i32) -> Self { + Self { + max_channels: max_channels, .. self + } + } + #[inline] + pub fn in_bandwidth(self, in_bandwidth: i32) -> Self { + Self { + in_bandwidth: in_bandwidth, .. self + } + } + #[inline] + pub fn out_bandwidth(self, out_bandwidth: i32) -> Self { + Self { + out_bandwidth: out_bandwidth, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, bind_address, bind_port, max_peers, max_channels, in_bandwidth, out_bandwidth, + } + = self; + re_export::ENetConnection::create_host_bound_full(surround_object, bind_address, bind_port, max_peers, max_channels, in_bandwidth, out_bandwidth,) + } +} +#[doc = "Default-param extender for [`ENetConnection::create_host_ex`][super::ENetConnection::create_host_ex]."] +#[must_use] +pub struct ExCreateHost < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ENetConnection, max_peers: i32, max_channels: i32, in_bandwidth: i32, out_bandwidth: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateHost < 'a > { + fn new(surround_object: &'a mut re_export::ENetConnection,) -> Self { + let max_peers = 32i32; + let max_channels = 0i32; + let in_bandwidth = 0i32; + let out_bandwidth = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, max_peers: max_peers, max_channels: max_channels, in_bandwidth: in_bandwidth, out_bandwidth: out_bandwidth, + } + } + #[inline] + pub fn max_peers(self, max_peers: i32) -> Self { + Self { + max_peers: max_peers, .. self + } + } + #[inline] + pub fn max_channels(self, max_channels: i32) -> Self { + Self { + max_channels: max_channels, .. self + } + } + #[inline] + pub fn in_bandwidth(self, in_bandwidth: i32) -> Self { + Self { + in_bandwidth: in_bandwidth, .. self + } + } + #[inline] + pub fn out_bandwidth(self, out_bandwidth: i32) -> Self { + Self { + out_bandwidth: out_bandwidth, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, max_peers, max_channels, in_bandwidth, out_bandwidth, + } + = self; + re_export::ENetConnection::create_host_full(surround_object, max_peers, max_channels, in_bandwidth, out_bandwidth,) + } +} +#[doc = "Default-param extender for [`ENetConnection::connect_to_host_ex`][super::ENetConnection::connect_to_host_ex]."] +#[must_use] +pub struct ExConnectToHost < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ENetConnection, address: CowArg < 'a, GString >, port: i32, channels: i32, data: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExConnectToHost < 'a > { + fn new(surround_object: &'a mut re_export::ENetConnection, address: impl AsArg < GString > + 'a, port: i32,) -> Self { + let channels = 0i32; + let data = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, address: address.into_arg(), port: port, channels: channels, data: data, + } + } + #[inline] + pub fn channels(self, channels: i32) -> Self { + Self { + channels: channels, .. self + } + } + #[inline] + pub fn data(self, data: i32) -> Self { + Self { + data: data, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::ENetPacketPeer > > { + let Self { + _phantom, surround_object, address, port, channels, data, + } + = self; + re_export::ENetConnection::connect_to_host_full(surround_object, address, port, channels, data,) + } +} +#[doc = "Default-param extender for [`ENetConnection::service_ex`][super::ENetConnection::service_ex]."] +#[must_use] +pub struct ExService < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ENetConnection, timeout: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExService < 'a > { + fn new(surround_object: &'a mut re_export::ENetConnection,) -> Self { + let timeout = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, timeout: timeout, + } + } + #[inline] + pub fn timeout(self, timeout: i32) -> Self { + Self { + timeout: timeout, .. self + } + } + #[inline] + pub fn done(self) -> VariantArray { + let Self { + _phantom, surround_object, timeout, + } + = self; + re_export::ENetConnection::service_full(surround_object, timeout,) + } +} +#[doc = "Default-param extender for [`ENetConnection::bandwidth_limit_ex`][super::ENetConnection::bandwidth_limit_ex]."] +#[must_use] +pub struct ExBandwidthLimit < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ENetConnection, in_bandwidth: i32, out_bandwidth: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBandwidthLimit < 'a > { + fn new(surround_object: &'a mut re_export::ENetConnection,) -> Self { + let in_bandwidth = 0i32; + let out_bandwidth = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, in_bandwidth: in_bandwidth, out_bandwidth: out_bandwidth, + } + } + #[inline] + pub fn in_bandwidth(self, in_bandwidth: i32) -> Self { + Self { + in_bandwidth: in_bandwidth, .. self + } + } + #[inline] + pub fn out_bandwidth(self, out_bandwidth: i32) -> Self { + Self { + out_bandwidth: out_bandwidth, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, in_bandwidth, out_bandwidth, + } + = self; + re_export::ENetConnection::bandwidth_limit_full(surround_object, in_bandwidth, out_bandwidth,) + } +} +#[doc = "Default-param extender for [`ENetConnection::dtls_client_setup_ex`][super::ENetConnection::dtls_client_setup_ex]."] +#[must_use] +pub struct ExDtlsClientSetup < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ENetConnection, hostname: CowArg < 'a, GString >, client_options: ObjectCow < crate::classes::TlsOptions >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDtlsClientSetup < 'a > { + fn new(surround_object: &'a mut re_export::ENetConnection, hostname: impl AsArg < GString > + 'a,) -> Self { + let client_options = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, hostname: hostname.into_arg(), client_options: client_options.consume_arg(), + } + } + #[inline] + pub fn client_options(self, client_options: impl AsObjectArg < crate::classes::TlsOptions >) -> Self { + Self { + client_options: client_options.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, hostname, client_options, + } + = self; + re_export::ENetConnection::dtls_client_setup_full(surround_object, hostname, client_options.cow_as_object_arg(),) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CompressionMode { + ord: i32 +} +impl CompressionMode { + #[doc(alias = "COMPRESS_NONE")] + #[doc = "Godot enumerator name: `COMPRESS_NONE`"] + pub const NONE: CompressionMode = CompressionMode { + ord: 0i32 + }; + #[doc(alias = "COMPRESS_RANGE_CODER")] + #[doc = "Godot enumerator name: `COMPRESS_RANGE_CODER`"] + pub const RANGE_CODER: CompressionMode = CompressionMode { + ord: 1i32 + }; + #[doc(alias = "COMPRESS_FASTLZ")] + #[doc = "Godot enumerator name: `COMPRESS_FASTLZ`"] + pub const FASTLZ: CompressionMode = CompressionMode { + ord: 2i32 + }; + #[doc(alias = "COMPRESS_ZLIB")] + #[doc = "Godot enumerator name: `COMPRESS_ZLIB`"] + pub const ZLIB: CompressionMode = CompressionMode { + ord: 3i32 + }; + #[doc(alias = "COMPRESS_ZSTD")] + #[doc = "Godot enumerator name: `COMPRESS_ZSTD`"] + pub const ZSTD: CompressionMode = CompressionMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for CompressionMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CompressionMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CompressionMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::RANGE_CODER => "RANGE_CODER", Self::FASTLZ => "FASTLZ", Self::ZLIB => "ZLIB", Self::ZSTD => "ZSTD", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "COMPRESS_NONE", Self::RANGE_CODER => "COMPRESS_RANGE_CODER", Self::FASTLZ => "COMPRESS_FASTLZ", Self::ZLIB => "COMPRESS_ZLIB", Self::ZSTD => "COMPRESS_ZSTD", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CompressionMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CompressionMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CompressionMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EventType { + ord: i32 +} +impl EventType { + #[doc(alias = "EVENT_ERROR")] + #[doc = "Godot enumerator name: `EVENT_ERROR`"] + pub const ERROR: EventType = EventType { + ord: - 1i32 + }; + #[doc(alias = "EVENT_NONE")] + #[doc = "Godot enumerator name: `EVENT_NONE`"] + pub const NONE: EventType = EventType { + ord: 0i32 + }; + #[doc(alias = "EVENT_CONNECT")] + #[doc = "Godot enumerator name: `EVENT_CONNECT`"] + pub const CONNECT: EventType = EventType { + ord: 1i32 + }; + #[doc(alias = "EVENT_DISCONNECT")] + #[doc = "Godot enumerator name: `EVENT_DISCONNECT`"] + pub const DISCONNECT: EventType = EventType { + ord: 2i32 + }; + #[doc(alias = "EVENT_RECEIVE")] + #[doc = "Godot enumerator name: `EVENT_RECEIVE`"] + pub const RECEIVE: EventType = EventType { + ord: 3i32 + }; + +} +impl std::fmt::Debug for EventType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EventType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EventType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ - 1i32 | ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ERROR => "ERROR", Self::NONE => "NONE", Self::CONNECT => "CONNECT", Self::DISCONNECT => "DISCONNECT", Self::RECEIVE => "RECEIVE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ERROR => "EVENT_ERROR", Self::NONE => "EVENT_NONE", Self::CONNECT => "EVENT_CONNECT", Self::DISCONNECT => "EVENT_DISCONNECT", Self::RECEIVE => "EVENT_RECEIVE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EventType { + type Via = i32; + +} +impl crate::meta::ToGodot for EventType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EventType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct HostStatistic { + ord: i32 +} +impl HostStatistic { + #[doc(alias = "HOST_TOTAL_SENT_DATA")] + #[doc = "Godot enumerator name: `HOST_TOTAL_SENT_DATA`"] + pub const TOTAL_SENT_DATA: HostStatistic = HostStatistic { + ord: 0i32 + }; + #[doc(alias = "HOST_TOTAL_SENT_PACKETS")] + #[doc = "Godot enumerator name: `HOST_TOTAL_SENT_PACKETS`"] + pub const TOTAL_SENT_PACKETS: HostStatistic = HostStatistic { + ord: 1i32 + }; + #[doc(alias = "HOST_TOTAL_RECEIVED_DATA")] + #[doc = "Godot enumerator name: `HOST_TOTAL_RECEIVED_DATA`"] + pub const TOTAL_RECEIVED_DATA: HostStatistic = HostStatistic { + ord: 2i32 + }; + #[doc(alias = "HOST_TOTAL_RECEIVED_PACKETS")] + #[doc = "Godot enumerator name: `HOST_TOTAL_RECEIVED_PACKETS`"] + pub const TOTAL_RECEIVED_PACKETS: HostStatistic = HostStatistic { + ord: 3i32 + }; + +} +impl std::fmt::Debug for HostStatistic { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("HostStatistic") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for HostStatistic { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOTAL_SENT_DATA => "TOTAL_SENT_DATA", Self::TOTAL_SENT_PACKETS => "TOTAL_SENT_PACKETS", Self::TOTAL_RECEIVED_DATA => "TOTAL_RECEIVED_DATA", Self::TOTAL_RECEIVED_PACKETS => "TOTAL_RECEIVED_PACKETS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOTAL_SENT_DATA => "HOST_TOTAL_SENT_DATA", Self::TOTAL_SENT_PACKETS => "HOST_TOTAL_SENT_PACKETS", Self::TOTAL_RECEIVED_DATA => "HOST_TOTAL_RECEIVED_DATA", Self::TOTAL_RECEIVED_PACKETS => "HOST_TOTAL_RECEIVED_PACKETS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for HostStatistic { + type Via = i32; + +} +impl crate::meta::ToGodot for HostStatistic { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for HostStatistic { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/enet_multiplayer_peer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/enet_multiplayer_peer.rs new file mode 100644 index 0000000..dd7a09f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/enet_multiplayer_peer.rs @@ -0,0 +1,377 @@ +#![doc = "Sidecar module for class [`ENetMultiplayerPeer`][crate::classes::ENetMultiplayerPeer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ENetMultiplayerPeer` enums](https://docs.godotengine.org/en/stable/classes/class_enetmultiplayerpeer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ENetMultiplayerPeer.`\n\nInherits [`MultiplayerPeer`][crate::classes::MultiplayerPeer].\n\nRelated symbols:\n\n* [`enet_multiplayer_peer`][crate::classes::enet_multiplayer_peer]: sidecar module with related enum/flag types\n* [`IENetMultiplayerPeer`][crate::classes::IENetMultiplayerPeer]: virtual methods\n\n\nSee also [Godot docs for `ENetMultiplayerPeer`](https://docs.godotengine.org/en/stable/classes/class_enetmultiplayerpeer.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ENetMultiplayerPeer::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ENetMultiplayerPeer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ENetMultiplayerPeer`][crate::classes::ENetMultiplayerPeer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ENetMultiplayerPeer` methods](https://docs.godotengine.org/en/stable/classes/class_enetmultiplayerpeer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IENetMultiplayerPeer: crate::obj::GodotClass < Base = ENetMultiplayerPeer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ENetMultiplayerPeer { + pub(crate) fn create_server_full(&mut self, port: i32, max_clients: i32, max_channels: i32, in_bandwidth: i32, out_bandwidth: i32,) -> crate::global::Error { + type CallSig = (crate::global::Error, i32, i32, i32, i32, i32); + let args = (port, max_clients, max_channels, in_bandwidth, out_bandwidth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2830usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetMultiplayerPeer", "create_server", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_server_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_server(&mut self, port: i32,) -> crate::global::Error { + self.create_server_ex(port,) . done() + } + #[inline] + pub fn create_server_ex < 'a > (&'a mut self, port: i32,) -> ExCreateServer < 'a > { + ExCreateServer::new(self, port,) + } + pub(crate) fn create_client_full(&mut self, address: CowArg < GString >, port: i32, channel_count: i32, in_bandwidth: i32, out_bandwidth: i32, local_port: i32,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, i32, i32, i32, i32, i32); + let args = (address, port, channel_count, in_bandwidth, out_bandwidth, local_port,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2831usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetMultiplayerPeer", "create_client", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_client_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_client(&mut self, address: impl AsArg < GString >, port: i32,) -> crate::global::Error { + self.create_client_ex(address, port,) . done() + } + #[inline] + pub fn create_client_ex < 'a > (&'a mut self, address: impl AsArg < GString > + 'a, port: i32,) -> ExCreateClient < 'a > { + ExCreateClient::new(self, address, port,) + } + pub fn create_mesh(&mut self, unique_id: i32,) -> crate::global::Error { + type CallSig = (crate::global::Error, i32); + let args = (unique_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2832usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetMultiplayerPeer", "create_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_mesh_peer(&mut self, peer_id: i32, host: impl AsObjectArg < crate::classes::ENetConnection >,) -> crate::global::Error { + type CallSig = (crate::global::Error, i32, ObjectArg < crate::classes::ENetConnection >); + let args = (peer_id, host.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2833usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetMultiplayerPeer", "add_mesh_peer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bind_ip(&mut self, ip: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (ip.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2834usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetMultiplayerPeer", "set_bind_ip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_host(&self,) -> Option < Gd < crate::classes::ENetConnection > > { + type CallSig = (Option < Gd < crate::classes::ENetConnection > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2835usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetMultiplayerPeer", "get_host", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_peer(&self, id: i32,) -> Option < Gd < crate::classes::ENetPacketPeer > > { + type CallSig = (Option < Gd < crate::classes::ENetPacketPeer > >, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2836usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetMultiplayerPeer", "get_peer", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ENetMultiplayerPeer { + type Base = crate::classes::MultiplayerPeer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ENetMultiplayerPeer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ENetMultiplayerPeer { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::MultiplayerPeer > for ENetMultiplayerPeer { + + } + unsafe impl crate::obj::Inherits < crate::classes::PacketPeer > for ENetMultiplayerPeer { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ENetMultiplayerPeer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ENetMultiplayerPeer { + + } + impl crate::obj::cap::GodotDefault for ENetMultiplayerPeer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ENetMultiplayerPeer { + type Target = crate::classes::MultiplayerPeer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ENetMultiplayerPeer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ENetMultiplayerPeer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ENetMultiplayerPeer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ENetMultiplayerPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiplayerPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ENetMultiplayerPeer::create_server_ex`][super::ENetMultiplayerPeer::create_server_ex]."] +#[must_use] +pub struct ExCreateServer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ENetMultiplayerPeer, port: i32, max_clients: i32, max_channels: i32, in_bandwidth: i32, out_bandwidth: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateServer < 'a > { + fn new(surround_object: &'a mut re_export::ENetMultiplayerPeer, port: i32,) -> Self { + let max_clients = 32i32; + let max_channels = 0i32; + let in_bandwidth = 0i32; + let out_bandwidth = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, port: port, max_clients: max_clients, max_channels: max_channels, in_bandwidth: in_bandwidth, out_bandwidth: out_bandwidth, + } + } + #[inline] + pub fn max_clients(self, max_clients: i32) -> Self { + Self { + max_clients: max_clients, .. self + } + } + #[inline] + pub fn max_channels(self, max_channels: i32) -> Self { + Self { + max_channels: max_channels, .. self + } + } + #[inline] + pub fn in_bandwidth(self, in_bandwidth: i32) -> Self { + Self { + in_bandwidth: in_bandwidth, .. self + } + } + #[inline] + pub fn out_bandwidth(self, out_bandwidth: i32) -> Self { + Self { + out_bandwidth: out_bandwidth, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, port, max_clients, max_channels, in_bandwidth, out_bandwidth, + } + = self; + re_export::ENetMultiplayerPeer::create_server_full(surround_object, port, max_clients, max_channels, in_bandwidth, out_bandwidth,) + } +} +#[doc = "Default-param extender for [`ENetMultiplayerPeer::create_client_ex`][super::ENetMultiplayerPeer::create_client_ex]."] +#[must_use] +pub struct ExCreateClient < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ENetMultiplayerPeer, address: CowArg < 'a, GString >, port: i32, channel_count: i32, in_bandwidth: i32, out_bandwidth: i32, local_port: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateClient < 'a > { + fn new(surround_object: &'a mut re_export::ENetMultiplayerPeer, address: impl AsArg < GString > + 'a, port: i32,) -> Self { + let channel_count = 0i32; + let in_bandwidth = 0i32; + let out_bandwidth = 0i32; + let local_port = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, address: address.into_arg(), port: port, channel_count: channel_count, in_bandwidth: in_bandwidth, out_bandwidth: out_bandwidth, local_port: local_port, + } + } + #[inline] + pub fn channel_count(self, channel_count: i32) -> Self { + Self { + channel_count: channel_count, .. self + } + } + #[inline] + pub fn in_bandwidth(self, in_bandwidth: i32) -> Self { + Self { + in_bandwidth: in_bandwidth, .. self + } + } + #[inline] + pub fn out_bandwidth(self, out_bandwidth: i32) -> Self { + Self { + out_bandwidth: out_bandwidth, .. self + } + } + #[inline] + pub fn local_port(self, local_port: i32) -> Self { + Self { + local_port: local_port, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, address, port, channel_count, in_bandwidth, out_bandwidth, local_port, + } + = self; + re_export::ENetMultiplayerPeer::create_client_full(surround_object, address, port, channel_count, in_bandwidth, out_bandwidth, local_port,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/enet_packet_peer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/enet_packet_peer.rs new file mode 100644 index 0000000..4cf5261 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/enet_packet_peer.rs @@ -0,0 +1,671 @@ +#![doc = "Sidecar module for class [`ENetPacketPeer`][crate::classes::ENetPacketPeer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ENetPacketPeer` enums](https://docs.godotengine.org/en/stable/classes/class_enetpacketpeer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ENetPacketPeer.`\n\nInherits [`PacketPeer`][crate::classes::PacketPeer].\n\nRelated symbols:\n\n* [`enet_packet_peer`][crate::classes::enet_packet_peer]: sidecar module with related enum/flag types\n* [`IENetPacketPeer`][crate::classes::IENetPacketPeer]: virtual methods\n\n\nSee also [Godot docs for `ENetPacketPeer`](https://docs.godotengine.org/en/stable/classes/class_enetpacketpeer.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct ENetPacketPeer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ENetPacketPeer`][crate::classes::ENetPacketPeer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ENetPacketPeer` methods](https://docs.godotengine.org/en/stable/classes/class_enetpacketpeer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IENetPacketPeer: crate::obj::GodotClass < Base = ENetPacketPeer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ENetPacketPeer { + pub(crate) fn peer_disconnect_full(&mut self, data: i32,) { + type CallSig = ((), i32); + let args = (data,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2837usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "peer_disconnect", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::peer_disconnect_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn peer_disconnect(&mut self,) { + self.peer_disconnect_ex() . done() + } + #[inline] + pub fn peer_disconnect_ex < 'a > (&'a mut self,) -> ExPeerDisconnect < 'a > { + ExPeerDisconnect::new(self,) + } + pub(crate) fn peer_disconnect_later_full(&mut self, data: i32,) { + type CallSig = ((), i32); + let args = (data,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2838usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "peer_disconnect_later", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::peer_disconnect_later_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn peer_disconnect_later(&mut self,) { + self.peer_disconnect_later_ex() . done() + } + #[inline] + pub fn peer_disconnect_later_ex < 'a > (&'a mut self,) -> ExPeerDisconnectLater < 'a > { + ExPeerDisconnectLater::new(self,) + } + pub(crate) fn peer_disconnect_now_full(&mut self, data: i32,) { + type CallSig = ((), i32); + let args = (data,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2839usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "peer_disconnect_now", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::peer_disconnect_now_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn peer_disconnect_now(&mut self,) { + self.peer_disconnect_now_ex() . done() + } + #[inline] + pub fn peer_disconnect_now_ex < 'a > (&'a mut self,) -> ExPeerDisconnectNow < 'a > { + ExPeerDisconnectNow::new(self,) + } + pub fn ping(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2840usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "ping", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn ping_interval(&mut self, ping_interval: i32,) { + type CallSig = ((), i32); + let args = (ping_interval,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2841usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "ping_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reset(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2842usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "reset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn send(&mut self, channel: i32, packet: &PackedByteArray, flags: i32,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, i32, RefArg < 'a0, PackedByteArray >, i32); + let args = (channel, RefArg::new(packet), flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2843usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "send", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn throttle_configure(&mut self, interval: i32, acceleration: i32, deceleration: i32,) { + type CallSig = ((), i32, i32, i32); + let args = (interval, acceleration, deceleration,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2844usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "throttle_configure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_timeout(&mut self, timeout: i32, timeout_min: i32, timeout_max: i32,) { + type CallSig = ((), i32, i32, i32); + let args = (timeout, timeout_min, timeout_max,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2845usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "set_timeout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_remote_address(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2846usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "get_remote_address", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_remote_port(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2847usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "get_remote_port", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_statistic(&mut self, statistic: crate::classes::enet_packet_peer::PeerStatistic,) -> f64 { + type CallSig = (f64, crate::classes::enet_packet_peer::PeerStatistic); + let args = (statistic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2848usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "get_statistic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_state(&self,) -> crate::classes::enet_packet_peer::PeerState { + type CallSig = (crate::classes::enet_packet_peer::PeerState,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2849usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "get_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_channels(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2850usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "get_channels", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_active(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2851usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ENetPacketPeer", "is_active", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const PACKET_LOSS_SCALE: i32 = 65536i32; + pub const PACKET_THROTTLE_SCALE: i32 = 32i32; + pub const FLAG_RELIABLE: i32 = 1i32; + pub const FLAG_UNSEQUENCED: i32 = 2i32; + pub const FLAG_UNRELIABLE_FRAGMENT: i32 = 8i32; + + } + impl crate::obj::GodotClass for ENetPacketPeer { + type Base = crate::classes::PacketPeer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ENetPacketPeer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ENetPacketPeer { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PacketPeer > for ENetPacketPeer { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ENetPacketPeer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ENetPacketPeer { + + } + impl std::ops::Deref for ENetPacketPeer { + type Target = crate::classes::PacketPeer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ENetPacketPeer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ENetPacketPeer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ENetPacketPeer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ENetPacketPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ENetPacketPeer::peer_disconnect_ex`][super::ENetPacketPeer::peer_disconnect_ex]."] +#[must_use] +pub struct ExPeerDisconnect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ENetPacketPeer, data: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPeerDisconnect < 'a > { + fn new(surround_object: &'a mut re_export::ENetPacketPeer,) -> Self { + let data = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, data: data, + } + } + #[inline] + pub fn data(self, data: i32) -> Self { + Self { + data: data, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, data, + } + = self; + re_export::ENetPacketPeer::peer_disconnect_full(surround_object, data,) + } +} +#[doc = "Default-param extender for [`ENetPacketPeer::peer_disconnect_later_ex`][super::ENetPacketPeer::peer_disconnect_later_ex]."] +#[must_use] +pub struct ExPeerDisconnectLater < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ENetPacketPeer, data: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPeerDisconnectLater < 'a > { + fn new(surround_object: &'a mut re_export::ENetPacketPeer,) -> Self { + let data = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, data: data, + } + } + #[inline] + pub fn data(self, data: i32) -> Self { + Self { + data: data, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, data, + } + = self; + re_export::ENetPacketPeer::peer_disconnect_later_full(surround_object, data,) + } +} +#[doc = "Default-param extender for [`ENetPacketPeer::peer_disconnect_now_ex`][super::ENetPacketPeer::peer_disconnect_now_ex]."] +#[must_use] +pub struct ExPeerDisconnectNow < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ENetPacketPeer, data: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPeerDisconnectNow < 'a > { + fn new(surround_object: &'a mut re_export::ENetPacketPeer,) -> Self { + let data = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, data: data, + } + } + #[inline] + pub fn data(self, data: i32) -> Self { + Self { + data: data, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, data, + } + = self; + re_export::ENetPacketPeer::peer_disconnect_now_full(surround_object, data,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PeerState { + ord: i32 +} +impl PeerState { + #[doc(alias = "STATE_DISCONNECTED")] + #[doc = "Godot enumerator name: `STATE_DISCONNECTED`"] + pub const DISCONNECTED: PeerState = PeerState { + ord: 0i32 + }; + #[doc(alias = "STATE_CONNECTING")] + #[doc = "Godot enumerator name: `STATE_CONNECTING`"] + pub const CONNECTING: PeerState = PeerState { + ord: 1i32 + }; + #[doc(alias = "STATE_ACKNOWLEDGING_CONNECT")] + #[doc = "Godot enumerator name: `STATE_ACKNOWLEDGING_CONNECT`"] + pub const ACKNOWLEDGING_CONNECT: PeerState = PeerState { + ord: 2i32 + }; + #[doc(alias = "STATE_CONNECTION_PENDING")] + #[doc = "Godot enumerator name: `STATE_CONNECTION_PENDING`"] + pub const CONNECTION_PENDING: PeerState = PeerState { + ord: 3i32 + }; + #[doc(alias = "STATE_CONNECTION_SUCCEEDED")] + #[doc = "Godot enumerator name: `STATE_CONNECTION_SUCCEEDED`"] + pub const CONNECTION_SUCCEEDED: PeerState = PeerState { + ord: 4i32 + }; + #[doc(alias = "STATE_CONNECTED")] + #[doc = "Godot enumerator name: `STATE_CONNECTED`"] + pub const CONNECTED: PeerState = PeerState { + ord: 5i32 + }; + #[doc(alias = "STATE_DISCONNECT_LATER")] + #[doc = "Godot enumerator name: `STATE_DISCONNECT_LATER`"] + pub const DISCONNECT_LATER: PeerState = PeerState { + ord: 6i32 + }; + #[doc(alias = "STATE_DISCONNECTING")] + #[doc = "Godot enumerator name: `STATE_DISCONNECTING`"] + pub const DISCONNECTING: PeerState = PeerState { + ord: 7i32 + }; + #[doc(alias = "STATE_ACKNOWLEDGING_DISCONNECT")] + #[doc = "Godot enumerator name: `STATE_ACKNOWLEDGING_DISCONNECT`"] + pub const ACKNOWLEDGING_DISCONNECT: PeerState = PeerState { + ord: 8i32 + }; + #[doc(alias = "STATE_ZOMBIE")] + #[doc = "Godot enumerator name: `STATE_ZOMBIE`"] + pub const ZOMBIE: PeerState = PeerState { + ord: 9i32 + }; + +} +impl std::fmt::Debug for PeerState { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PeerState") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PeerState { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISCONNECTED => "DISCONNECTED", Self::CONNECTING => "CONNECTING", Self::ACKNOWLEDGING_CONNECT => "ACKNOWLEDGING_CONNECT", Self::CONNECTION_PENDING => "CONNECTION_PENDING", Self::CONNECTION_SUCCEEDED => "CONNECTION_SUCCEEDED", Self::CONNECTED => "CONNECTED", Self::DISCONNECT_LATER => "DISCONNECT_LATER", Self::DISCONNECTING => "DISCONNECTING", Self::ACKNOWLEDGING_DISCONNECT => "ACKNOWLEDGING_DISCONNECT", Self::ZOMBIE => "ZOMBIE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISCONNECTED => "STATE_DISCONNECTED", Self::CONNECTING => "STATE_CONNECTING", Self::ACKNOWLEDGING_CONNECT => "STATE_ACKNOWLEDGING_CONNECT", Self::CONNECTION_PENDING => "STATE_CONNECTION_PENDING", Self::CONNECTION_SUCCEEDED => "STATE_CONNECTION_SUCCEEDED", Self::CONNECTED => "STATE_CONNECTED", Self::DISCONNECT_LATER => "STATE_DISCONNECT_LATER", Self::DISCONNECTING => "STATE_DISCONNECTING", Self::ACKNOWLEDGING_DISCONNECT => "STATE_ACKNOWLEDGING_DISCONNECT", Self::ZOMBIE => "STATE_ZOMBIE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PeerState { + type Via = i32; + +} +impl crate::meta::ToGodot for PeerState { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PeerState { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PeerStatistic { + ord: i32 +} +impl PeerStatistic { + #[doc(alias = "PEER_PACKET_LOSS")] + #[doc = "Godot enumerator name: `PEER_PACKET_LOSS`"] + pub const PACKET_LOSS: PeerStatistic = PeerStatistic { + ord: 0i32 + }; + #[doc(alias = "PEER_PACKET_LOSS_VARIANCE")] + #[doc = "Godot enumerator name: `PEER_PACKET_LOSS_VARIANCE`"] + pub const PACKET_LOSS_VARIANCE: PeerStatistic = PeerStatistic { + ord: 1i32 + }; + #[doc(alias = "PEER_PACKET_LOSS_EPOCH")] + #[doc = "Godot enumerator name: `PEER_PACKET_LOSS_EPOCH`"] + pub const PACKET_LOSS_EPOCH: PeerStatistic = PeerStatistic { + ord: 2i32 + }; + #[doc(alias = "PEER_ROUND_TRIP_TIME")] + #[doc = "Godot enumerator name: `PEER_ROUND_TRIP_TIME`"] + pub const ROUND_TRIP_TIME: PeerStatistic = PeerStatistic { + ord: 3i32 + }; + #[doc(alias = "PEER_ROUND_TRIP_TIME_VARIANCE")] + #[doc = "Godot enumerator name: `PEER_ROUND_TRIP_TIME_VARIANCE`"] + pub const ROUND_TRIP_TIME_VARIANCE: PeerStatistic = PeerStatistic { + ord: 4i32 + }; + #[doc(alias = "PEER_LAST_ROUND_TRIP_TIME")] + #[doc = "Godot enumerator name: `PEER_LAST_ROUND_TRIP_TIME`"] + pub const LAST_ROUND_TRIP_TIME: PeerStatistic = PeerStatistic { + ord: 5i32 + }; + #[doc(alias = "PEER_LAST_ROUND_TRIP_TIME_VARIANCE")] + #[doc = "Godot enumerator name: `PEER_LAST_ROUND_TRIP_TIME_VARIANCE`"] + pub const LAST_ROUND_TRIP_TIME_VARIANCE: PeerStatistic = PeerStatistic { + ord: 6i32 + }; + #[doc(alias = "PEER_PACKET_THROTTLE")] + #[doc = "Godot enumerator name: `PEER_PACKET_THROTTLE`"] + pub const PACKET_THROTTLE: PeerStatistic = PeerStatistic { + ord: 7i32 + }; + #[doc(alias = "PEER_PACKET_THROTTLE_LIMIT")] + #[doc = "Godot enumerator name: `PEER_PACKET_THROTTLE_LIMIT`"] + pub const PACKET_THROTTLE_LIMIT: PeerStatistic = PeerStatistic { + ord: 8i32 + }; + #[doc(alias = "PEER_PACKET_THROTTLE_COUNTER")] + #[doc = "Godot enumerator name: `PEER_PACKET_THROTTLE_COUNTER`"] + pub const PACKET_THROTTLE_COUNTER: PeerStatistic = PeerStatistic { + ord: 9i32 + }; + #[doc(alias = "PEER_PACKET_THROTTLE_EPOCH")] + #[doc = "Godot enumerator name: `PEER_PACKET_THROTTLE_EPOCH`"] + pub const PACKET_THROTTLE_EPOCH: PeerStatistic = PeerStatistic { + ord: 10i32 + }; + #[doc(alias = "PEER_PACKET_THROTTLE_ACCELERATION")] + #[doc = "Godot enumerator name: `PEER_PACKET_THROTTLE_ACCELERATION`"] + pub const PACKET_THROTTLE_ACCELERATION: PeerStatistic = PeerStatistic { + ord: 11i32 + }; + #[doc(alias = "PEER_PACKET_THROTTLE_DECELERATION")] + #[doc = "Godot enumerator name: `PEER_PACKET_THROTTLE_DECELERATION`"] + pub const PACKET_THROTTLE_DECELERATION: PeerStatistic = PeerStatistic { + ord: 12i32 + }; + #[doc(alias = "PEER_PACKET_THROTTLE_INTERVAL")] + #[doc = "Godot enumerator name: `PEER_PACKET_THROTTLE_INTERVAL`"] + pub const PACKET_THROTTLE_INTERVAL: PeerStatistic = PeerStatistic { + ord: 13i32 + }; + +} +impl std::fmt::Debug for PeerStatistic { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PeerStatistic") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PeerStatistic { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PACKET_LOSS => "PACKET_LOSS", Self::PACKET_LOSS_VARIANCE => "PACKET_LOSS_VARIANCE", Self::PACKET_LOSS_EPOCH => "PACKET_LOSS_EPOCH", Self::ROUND_TRIP_TIME => "ROUND_TRIP_TIME", Self::ROUND_TRIP_TIME_VARIANCE => "ROUND_TRIP_TIME_VARIANCE", Self::LAST_ROUND_TRIP_TIME => "LAST_ROUND_TRIP_TIME", Self::LAST_ROUND_TRIP_TIME_VARIANCE => "LAST_ROUND_TRIP_TIME_VARIANCE", Self::PACKET_THROTTLE => "PACKET_THROTTLE", Self::PACKET_THROTTLE_LIMIT => "PACKET_THROTTLE_LIMIT", Self::PACKET_THROTTLE_COUNTER => "PACKET_THROTTLE_COUNTER", Self::PACKET_THROTTLE_EPOCH => "PACKET_THROTTLE_EPOCH", Self::PACKET_THROTTLE_ACCELERATION => "PACKET_THROTTLE_ACCELERATION", Self::PACKET_THROTTLE_DECELERATION => "PACKET_THROTTLE_DECELERATION", Self::PACKET_THROTTLE_INTERVAL => "PACKET_THROTTLE_INTERVAL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PACKET_LOSS => "PEER_PACKET_LOSS", Self::PACKET_LOSS_VARIANCE => "PEER_PACKET_LOSS_VARIANCE", Self::PACKET_LOSS_EPOCH => "PEER_PACKET_LOSS_EPOCH", Self::ROUND_TRIP_TIME => "PEER_ROUND_TRIP_TIME", Self::ROUND_TRIP_TIME_VARIANCE => "PEER_ROUND_TRIP_TIME_VARIANCE", Self::LAST_ROUND_TRIP_TIME => "PEER_LAST_ROUND_TRIP_TIME", Self::LAST_ROUND_TRIP_TIME_VARIANCE => "PEER_LAST_ROUND_TRIP_TIME_VARIANCE", Self::PACKET_THROTTLE => "PEER_PACKET_THROTTLE", Self::PACKET_THROTTLE_LIMIT => "PEER_PACKET_THROTTLE_LIMIT", Self::PACKET_THROTTLE_COUNTER => "PEER_PACKET_THROTTLE_COUNTER", Self::PACKET_THROTTLE_EPOCH => "PEER_PACKET_THROTTLE_EPOCH", Self::PACKET_THROTTLE_ACCELERATION => "PEER_PACKET_THROTTLE_ACCELERATION", Self::PACKET_THROTTLE_DECELERATION => "PEER_PACKET_THROTTLE_DECELERATION", Self::PACKET_THROTTLE_INTERVAL => "PEER_PACKET_THROTTLE_INTERVAL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PeerStatistic { + type Via = i32; + +} +impl crate::meta::ToGodot for PeerStatistic { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PeerStatistic { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/engine.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/engine.rs new file mode 100644 index 0000000..716f414 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/engine.rs @@ -0,0 +1,485 @@ +#![doc = "Sidecar module for class [`Engine`][crate::classes::Engine].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Engine` enums](https://docs.godotengine.org/en/stable/classes/class_engine.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Engine.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IEngine`][crate::classes::IEngine]: virtual methods\n\n\nSee also [Godot docs for `Engine`](https://docs.godotengine.org/en/stable/classes/class_engine.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`Engine::singleton()`][Engine::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct Engine { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Engine`][crate::classes::Engine].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Engine` methods](https://docs.godotengine.org/en/stable/classes/class_engine.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEngine: crate::obj::GodotClass < Base = Engine > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Engine { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"Engine"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn set_physics_ticks_per_second(&mut self, physics_ticks_per_second: i32,) { + type CallSig = ((), i32); + let args = (physics_ticks_per_second,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2854usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "set_physics_ticks_per_second", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physics_ticks_per_second(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2855usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_physics_ticks_per_second", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_physics_steps_per_frame(&mut self, max_physics_steps: i32,) { + type CallSig = ((), i32); + let args = (max_physics_steps,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2856usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "set_max_physics_steps_per_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_physics_steps_per_frame(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2857usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_max_physics_steps_per_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_physics_jitter_fix(&mut self, physics_jitter_fix: f64,) { + type CallSig = ((), f64); + let args = (physics_jitter_fix,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2858usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "set_physics_jitter_fix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physics_jitter_fix(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2859usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_physics_jitter_fix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physics_interpolation_fraction(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2860usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_physics_interpolation_fraction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_fps(&mut self, max_fps: i32,) { + type CallSig = ((), i32); + let args = (max_fps,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2861usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "set_max_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_fps(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2862usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_max_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_time_scale(&mut self, time_scale: f64,) { + type CallSig = ((), f64); + let args = (time_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2863usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "set_time_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_time_scale(&mut self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2864usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_time_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frames_drawn(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2865usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_frames_drawn", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frames_per_second(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2866usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_frames_per_second", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physics_frames(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2867usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_physics_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_frames(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2868usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_process_frames", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_main_loop(&self,) -> Option < Gd < crate::classes::MainLoop > > { + type CallSig = (Option < Gd < crate::classes::MainLoop > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2869usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_main_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_version_info(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2870usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_version_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_author_info(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2871usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_author_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_copyright_info(&self,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2872usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_copyright_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_donor_info(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2873usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_donor_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_license_info(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2874usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_license_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_license_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2875usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_license_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_architecture_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2876usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_architecture_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_in_physics_frame(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2877usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "is_in_physics_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_singleton(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2878usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "has_singleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_singleton(&self, name: impl AsArg < StringName >,) -> Option < Gd < crate::classes::Object > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Object > >, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2879usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_singleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn register_singleton(&mut self, name: impl AsArg < StringName >, instance: impl AsObjectArg < crate::classes::Object >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, ObjectArg < crate::classes::Object >); + let args = (name.into_arg(), instance.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2880usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "register_singleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unregister_singleton(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2881usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "unregister_singleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_singleton_list(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2882usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_singleton_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn register_script_language(&mut self, language: impl AsObjectArg < crate::classes::ScriptLanguage >,) -> crate::global::Error { + type CallSig = (crate::global::Error, ObjectArg < crate::classes::ScriptLanguage >); + let args = (language.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2883usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "register_script_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unregister_script_language(&mut self, language: impl AsObjectArg < crate::classes::ScriptLanguage >,) -> crate::global::Error { + type CallSig = (crate::global::Error, ObjectArg < crate::classes::ScriptLanguage >); + let args = (language.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2884usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "unregister_script_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_script_language_count(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2885usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_script_language_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_script_language(&self, index: i32,) -> Option < Gd < crate::classes::ScriptLanguage > > { + type CallSig = (Option < Gd < crate::classes::ScriptLanguage > >, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2886usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_script_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_editor_hint(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2887usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "is_editor_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_write_movie_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2888usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "get_write_movie_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_print_error_messages(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2889usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "set_print_error_messages", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_printing_error_messages(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2890usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Engine", "is_printing_error_messages", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Engine { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Engine")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Engine { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Engine { + + } + impl std::ops::Deref for Engine { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Engine { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Engine`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Engine { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Engine > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/engine_debugger.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/engine_debugger.rs new file mode 100644 index 0000000..3d21b72 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/engine_debugger.rs @@ -0,0 +1,498 @@ +#![doc = "Sidecar module for class [`EngineDebugger`][crate::classes::EngineDebugger].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EngineDebugger` enums](https://docs.godotengine.org/en/stable/classes/class_enginedebugger.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EngineDebugger.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`engine_debugger`][crate::classes::engine_debugger]: sidecar module with related enum/flag types\n* [`IEngineDebugger`][crate::classes::IEngineDebugger]: virtual methods\n\n\nSee also [Godot docs for `EngineDebugger`](https://docs.godotengine.org/en/stable/classes/class_enginedebugger.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`EngineDebugger::singleton()`][EngineDebugger::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct EngineDebugger { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EngineDebugger`][crate::classes::EngineDebugger].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EngineDebugger` methods](https://docs.godotengine.org/en/stable/classes/class_enginedebugger.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEngineDebugger: crate::obj::GodotClass < Base = EngineDebugger > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl EngineDebugger { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"EngineDebugger"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn is_active(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2891usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "is_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn register_profiler(&mut self, name: impl AsArg < StringName >, profiler: impl AsObjectArg < crate::classes::EngineProfiler >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, ObjectArg < crate::classes::EngineProfiler >); + let args = (name.into_arg(), profiler.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2892usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "register_profiler", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unregister_profiler(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2893usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "unregister_profiler", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_profiling(&mut self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2894usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "is_profiling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_profiler(&mut self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2895usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "has_profiler", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn profiler_add_frame_data(&mut self, name: impl AsArg < StringName >, data: &VariantArray,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, VariantArray >); + let args = (name.into_arg(), RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2896usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "profiler_add_frame_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn profiler_enable_full(&mut self, name: CowArg < StringName >, enable: bool, arguments: RefArg < VariantArray >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, bool, RefArg < 'a1, VariantArray >); + let args = (name, enable, arguments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2897usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "profiler_enable", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::profiler_enable_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn profiler_enable(&mut self, name: impl AsArg < StringName >, enable: bool,) { + self.profiler_enable_ex(name, enable,) . done() + } + #[inline] + pub fn profiler_enable_ex < 'a > (&'a mut self, name: impl AsArg < StringName > + 'a, enable: bool,) -> ExProfilerEnable < 'a > { + ExProfilerEnable::new(self, name, enable,) + } + pub fn register_message_capture(&mut self, name: impl AsArg < StringName >, callable: &Callable,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Callable >); + let args = (name.into_arg(), RefArg::new(callable),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2898usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "register_message_capture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unregister_message_capture(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2899usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "unregister_message_capture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_capture(&mut self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2900usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "has_capture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn line_poll(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2901usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "line_poll", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn send_message(&mut self, message: impl AsArg < GString >, data: &VariantArray,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, VariantArray >); + let args = (message.into_arg(), RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2902usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "send_message", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn debug_full(&mut self, can_continue: bool, is_error_breakpoint: bool,) { + type CallSig = ((), bool, bool); + let args = (can_continue, is_error_breakpoint,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2903usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "debug", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::debug_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn debug(&mut self,) { + self.debug_ex() . done() + } + #[inline] + pub fn debug_ex < 'a > (&'a mut self,) -> ExDebug < 'a > { + ExDebug::new(self,) + } + pub(crate) fn script_debug_full(&mut self, language: ObjectArg < crate::classes::ScriptLanguage >, can_continue: bool, is_error_breakpoint: bool,) { + type CallSig = ((), ObjectArg < crate::classes::ScriptLanguage >, bool, bool); + let args = (language, can_continue, is_error_breakpoint,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2904usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "script_debug", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::script_debug_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn script_debug(&mut self, language: impl AsObjectArg < crate::classes::ScriptLanguage >,) { + self.script_debug_ex(language,) . done() + } + #[inline] + pub fn script_debug_ex < 'a > (&'a mut self, language: impl AsObjectArg < crate::classes::ScriptLanguage >,) -> ExScriptDebug < 'a > { + ExScriptDebug::new(self, language,) + } + pub fn set_lines_left(&mut self, lines: i32,) { + type CallSig = ((), i32); + let args = (lines,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2905usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "set_lines_left", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lines_left(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2906usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "get_lines_left", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth(&mut self, depth: i32,) { + type CallSig = ((), i32); + let args = (depth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2907usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "set_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2908usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "get_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_breakpoint(&self, line: i32, source: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, i32, CowArg < 'a0, StringName >); + let args = (line, source.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2909usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "is_breakpoint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_skipping_breakpoints(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2910usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "is_skipping_breakpoints", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn insert_breakpoint(&mut self, line: i32, source: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, StringName >); + let args = (line, source.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2911usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "insert_breakpoint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_breakpoint(&mut self, line: i32, source: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, StringName >); + let args = (line, source.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2912usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "remove_breakpoint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_breakpoints(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2913usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "EngineDebugger", "clear_breakpoints", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EngineDebugger { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EngineDebugger")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for EngineDebugger { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EngineDebugger { + + } + impl std::ops::Deref for EngineDebugger { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EngineDebugger { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EngineDebugger`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EngineDebugger { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EngineDebugger > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`EngineDebugger::profiler_enable_ex`][super::EngineDebugger::profiler_enable_ex]."] +#[must_use] +pub struct ExProfilerEnable < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EngineDebugger, name: CowArg < 'a, StringName >, enable: bool, arguments: CowArg < 'a, VariantArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExProfilerEnable < 'a > { + fn new(surround_object: &'a mut re_export::EngineDebugger, name: impl AsArg < StringName > + 'a, enable: bool,) -> Self { + let arguments = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), enable: enable, arguments: CowArg::Owned(arguments), + } + } + #[inline] + pub fn arguments(self, arguments: &'a VariantArray) -> Self { + Self { + arguments: CowArg::Borrowed(arguments), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, name, enable, arguments, + } + = self; + re_export::EngineDebugger::profiler_enable_full(surround_object, name, enable, arguments.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`EngineDebugger::debug_ex`][super::EngineDebugger::debug_ex]."] +#[must_use] +pub struct ExDebug < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EngineDebugger, can_continue: bool, is_error_breakpoint: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDebug < 'a > { + fn new(surround_object: &'a mut re_export::EngineDebugger,) -> Self { + let can_continue = true; + let is_error_breakpoint = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, can_continue: can_continue, is_error_breakpoint: is_error_breakpoint, + } + } + #[inline] + pub fn can_continue(self, can_continue: bool) -> Self { + Self { + can_continue: can_continue, .. self + } + } + #[inline] + pub fn is_error_breakpoint(self, is_error_breakpoint: bool) -> Self { + Self { + is_error_breakpoint: is_error_breakpoint, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, can_continue, is_error_breakpoint, + } + = self; + re_export::EngineDebugger::debug_full(surround_object, can_continue, is_error_breakpoint,) + } +} +#[doc = "Default-param extender for [`EngineDebugger::script_debug_ex`][super::EngineDebugger::script_debug_ex]."] +#[must_use] +pub struct ExScriptDebug < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::EngineDebugger, language: ObjectCow < crate::classes::ScriptLanguage >, can_continue: bool, is_error_breakpoint: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScriptDebug < 'a > { + fn new(surround_object: &'a mut re_export::EngineDebugger, language: impl AsObjectArg < crate::classes::ScriptLanguage >,) -> Self { + let can_continue = true; + let is_error_breakpoint = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, language: language.consume_arg(), can_continue: can_continue, is_error_breakpoint: is_error_breakpoint, + } + } + #[inline] + pub fn can_continue(self, can_continue: bool) -> Self { + Self { + can_continue: can_continue, .. self + } + } + #[inline] + pub fn is_error_breakpoint(self, is_error_breakpoint: bool) -> Self { + Self { + is_error_breakpoint: is_error_breakpoint, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, language, can_continue, is_error_breakpoint, + } + = self; + re_export::EngineDebugger::script_debug_full(surround_object, language.cow_as_object_arg(), can_continue, is_error_breakpoint,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/engine_profiler.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/engine_profiler.rs new file mode 100644 index 0000000..ad61d44 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/engine_profiler.rs @@ -0,0 +1,202 @@ +#![doc = "Sidecar module for class [`EngineProfiler`][crate::classes::EngineProfiler].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `EngineProfiler` enums](https://docs.godotengine.org/en/stable/classes/class_engineprofiler.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `EngineProfiler.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IEngineProfiler`][crate::classes::IEngineProfiler]: virtual methods\n\n\nSee also [Godot docs for `EngineProfiler`](https://docs.godotengine.org/en/stable/classes/class_engineprofiler.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`EngineProfiler::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct EngineProfiler { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`EngineProfiler`][crate::classes::EngineProfiler].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `EngineProfiler` methods](https://docs.godotengine.org/en/stable/classes/class_engineprofiler.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEngineProfiler: crate::obj::GodotClass < Base = EngineProfiler > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn toggle(&mut self, enable: bool, options: VariantArray,) { + unimplemented !() + } + fn add_frame(&mut self, data: VariantArray,) { + unimplemented !() + } + fn tick(&mut self, frame_time: f64, process_time: f64, physics_time: f64, physics_frame_time: f64,) { + unimplemented !() + } + } + impl EngineProfiler { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for EngineProfiler { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"EngineProfiler")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for EngineProfiler { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for EngineProfiler { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for EngineProfiler { + + } + impl crate::obj::cap::GodotDefault for EngineProfiler { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for EngineProfiler { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for EngineProfiler { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`EngineProfiler`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_EngineProfiler { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::EngineProfiler > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/environment.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/environment.rs new file mode 100644 index 0000000..0eb8b46 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/environment.rs @@ -0,0 +1,2240 @@ +#![doc = "Sidecar module for class [`Environment`][crate::classes::Environment].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Environment` enums](https://docs.godotengine.org/en/stable/classes/class_environment.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Environment.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`environment`][crate::classes::environment]: sidecar module with related enum/flag types\n* [`IEnvironment`][crate::classes::IEnvironment]: virtual methods\n\n\nSee also [Godot docs for `Environment`](https://docs.godotengine.org/en/stable/classes/class_environment.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Environment::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Environment { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Environment`][crate::classes::Environment].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Environment` methods](https://docs.godotengine.org/en/stable/classes/class_environment.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IEnvironment: crate::obj::GodotClass < Base = Environment > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Environment { + pub fn set_background(&mut self, mode: crate::classes::environment::BgMode,) { + type CallSig = ((), crate::classes::environment::BgMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2914usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_background", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_background(&self,) -> crate::classes::environment::BgMode { + type CallSig = (crate::classes::environment::BgMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2915usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_background", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sky(&mut self, sky: impl AsObjectArg < crate::classes::Sky >,) { + type CallSig = ((), ObjectArg < crate::classes::Sky >); + let args = (sky.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2916usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sky", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sky(&self,) -> Option < Gd < crate::classes::Sky > > { + type CallSig = (Option < Gd < crate::classes::Sky > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2917usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sky", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sky_custom_fov(&mut self, scale: f32,) { + type CallSig = ((), f32); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2918usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sky_custom_fov", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sky_custom_fov(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2919usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sky_custom_fov", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sky_rotation(&mut self, euler_radians: Vector3,) { + type CallSig = ((), Vector3); + let args = (euler_radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2920usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sky_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sky_rotation(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2921usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sky_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bg_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2922usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_bg_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bg_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2923usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_bg_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bg_energy_multiplier(&mut self, energy: f32,) { + type CallSig = ((), f32); + let args = (energy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2924usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_bg_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bg_energy_multiplier(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2925usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_bg_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bg_intensity(&mut self, energy: f32,) { + type CallSig = ((), f32); + let args = (energy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2926usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_bg_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bg_intensity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2927usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_bg_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_canvas_max_layer(&mut self, layer: i32,) { + type CallSig = ((), i32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2928usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_canvas_max_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_canvas_max_layer(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2929usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_canvas_max_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_camera_feed_id(&mut self, id: i32,) { + type CallSig = ((), i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2930usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_camera_feed_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_camera_feed_id(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2931usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_camera_feed_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ambient_light_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2932usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ambient_light_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ambient_light_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2933usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ambient_light_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ambient_source(&mut self, source: crate::classes::environment::AmbientSource,) { + type CallSig = ((), crate::classes::environment::AmbientSource); + let args = (source,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2934usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ambient_source", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ambient_source(&self,) -> crate::classes::environment::AmbientSource { + type CallSig = (crate::classes::environment::AmbientSource,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2935usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ambient_source", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ambient_light_energy(&mut self, energy: f32,) { + type CallSig = ((), f32); + let args = (energy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2936usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ambient_light_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ambient_light_energy(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2937usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ambient_light_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ambient_light_sky_contribution(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2938usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ambient_light_sky_contribution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ambient_light_sky_contribution(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2939usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ambient_light_sky_contribution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_reflection_source(&mut self, source: crate::classes::environment::ReflectionSource,) { + type CallSig = ((), crate::classes::environment::ReflectionSource); + let args = (source,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2940usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_reflection_source", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_reflection_source(&self,) -> crate::classes::environment::ReflectionSource { + type CallSig = (crate::classes::environment::ReflectionSource,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2941usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_reflection_source", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tonemapper(&mut self, mode: crate::classes::environment::ToneMapper,) { + type CallSig = ((), crate::classes::environment::ToneMapper); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2942usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_tonemapper", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tonemapper(&self,) -> crate::classes::environment::ToneMapper { + type CallSig = (crate::classes::environment::ToneMapper,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2943usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_tonemapper", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tonemap_exposure(&mut self, exposure: f32,) { + type CallSig = ((), f32); + let args = (exposure,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2944usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_tonemap_exposure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tonemap_exposure(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2945usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_tonemap_exposure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tonemap_white(&mut self, white: f32,) { + type CallSig = ((), f32); + let args = (white,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2946usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_tonemap_white", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tonemap_white(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2947usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_tonemap_white", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssr_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2948usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssr_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_ssr_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2949usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_ssr_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssr_max_steps(&mut self, max_steps: i32,) { + type CallSig = ((), i32); + let args = (max_steps,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2950usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssr_max_steps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssr_max_steps(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2951usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssr_max_steps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssr_fade_in(&mut self, fade_in: f32,) { + type CallSig = ((), f32); + let args = (fade_in,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2952usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssr_fade_in", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssr_fade_in(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2953usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssr_fade_in", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssr_fade_out(&mut self, fade_out: f32,) { + type CallSig = ((), f32); + let args = (fade_out,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2954usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssr_fade_out", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssr_fade_out(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2955usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssr_fade_out", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssr_depth_tolerance(&mut self, depth_tolerance: f32,) { + type CallSig = ((), f32); + let args = (depth_tolerance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2956usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssr_depth_tolerance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssr_depth_tolerance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2957usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssr_depth_tolerance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssao_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2958usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssao_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_ssao_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2959usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_ssao_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssao_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2960usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssao_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssao_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2961usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssao_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssao_intensity(&mut self, intensity: f32,) { + type CallSig = ((), f32); + let args = (intensity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2962usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssao_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssao_intensity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2963usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssao_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssao_power(&mut self, power: f32,) { + type CallSig = ((), f32); + let args = (power,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2964usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssao_power", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssao_power(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2965usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssao_power", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssao_detail(&mut self, detail: f32,) { + type CallSig = ((), f32); + let args = (detail,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2966usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssao_detail", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssao_detail(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2967usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssao_detail", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssao_horizon(&mut self, horizon: f32,) { + type CallSig = ((), f32); + let args = (horizon,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2968usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssao_horizon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssao_horizon(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2969usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssao_horizon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssao_sharpness(&mut self, sharpness: f32,) { + type CallSig = ((), f32); + let args = (sharpness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2970usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssao_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssao_sharpness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2971usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssao_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssao_direct_light_affect(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2972usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssao_direct_light_affect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssao_direct_light_affect(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2973usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssao_direct_light_affect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssao_ao_channel_affect(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2974usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssao_ao_channel_affect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssao_ao_channel_affect(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2975usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssao_ao_channel_affect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssil_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2976usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssil_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_ssil_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2977usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_ssil_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssil_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2978usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssil_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssil_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2979usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssil_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssil_intensity(&mut self, intensity: f32,) { + type CallSig = ((), f32); + let args = (intensity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2980usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssil_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssil_intensity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2981usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssil_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssil_sharpness(&mut self, sharpness: f32,) { + type CallSig = ((), f32); + let args = (sharpness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2982usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssil_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssil_sharpness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2983usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssil_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ssil_normal_rejection(&mut self, normal_rejection: f32,) { + type CallSig = ((), f32); + let args = (normal_rejection,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2984usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_ssil_normal_rejection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ssil_normal_rejection(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2985usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_ssil_normal_rejection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2986usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_sdfgi_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2987usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_sdfgi_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_cascades(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2988usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_cascades", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sdfgi_cascades(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2989usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sdfgi_cascades", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_min_cell_size(&mut self, size: f32,) { + type CallSig = ((), f32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2990usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_min_cell_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sdfgi_min_cell_size(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2991usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sdfgi_min_cell_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_max_distance(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2992usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sdfgi_max_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2993usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sdfgi_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_cascade0_distance(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2994usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_cascade0_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sdfgi_cascade0_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2995usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sdfgi_cascade0_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_y_scale(&mut self, scale: crate::classes::environment::SdfgiYScale,) { + type CallSig = ((), crate::classes::environment::SdfgiYScale); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2996usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_y_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sdfgi_y_scale(&self,) -> crate::classes::environment::SdfgiYScale { + type CallSig = (crate::classes::environment::SdfgiYScale,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2997usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sdfgi_y_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_use_occlusion(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2998usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_use_occlusion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_sdfgi_using_occlusion(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(2999usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_sdfgi_using_occlusion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_bounce_feedback(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3000usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_bounce_feedback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sdfgi_bounce_feedback(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3001usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sdfgi_bounce_feedback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_read_sky_light(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3002usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_read_sky_light", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_sdfgi_reading_sky_light(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3003usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_sdfgi_reading_sky_light", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_energy(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3004usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sdfgi_energy(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3005usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sdfgi_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_normal_bias(&mut self, bias: f32,) { + type CallSig = ((), f32); + let args = (bias,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3006usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_normal_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sdfgi_normal_bias(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3007usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sdfgi_normal_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sdfgi_probe_bias(&mut self, bias: f32,) { + type CallSig = ((), f32); + let args = (bias,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3008usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_sdfgi_probe_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sdfgi_probe_bias(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3009usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_sdfgi_probe_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3010usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_glow_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3011usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_glow_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_level(&mut self, idx: i32, intensity: f32,) { + type CallSig = ((), i32, f32); + let args = (idx, intensity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3012usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glow_level(&self, idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3013usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_glow_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_normalized(&mut self, normalize: bool,) { + type CallSig = ((), bool); + let args = (normalize,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3014usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_normalized", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_glow_normalized(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3015usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_glow_normalized", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_intensity(&mut self, intensity: f32,) { + type CallSig = ((), f32); + let args = (intensity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3016usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glow_intensity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3017usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_glow_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_strength(&mut self, strength: f32,) { + type CallSig = ((), f32); + let args = (strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3018usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glow_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3019usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_glow_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_mix(&mut self, mix: f32,) { + type CallSig = ((), f32); + let args = (mix,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3020usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_mix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glow_mix(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3021usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_glow_mix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_bloom(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3022usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_bloom", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glow_bloom(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3023usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_glow_bloom", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_blend_mode(&mut self, mode: crate::classes::environment::GlowBlendMode,) { + type CallSig = ((), crate::classes::environment::GlowBlendMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3024usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glow_blend_mode(&self,) -> crate::classes::environment::GlowBlendMode { + type CallSig = (crate::classes::environment::GlowBlendMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3025usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_glow_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_hdr_bleed_threshold(&mut self, threshold: f32,) { + type CallSig = ((), f32); + let args = (threshold,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3026usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_hdr_bleed_threshold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glow_hdr_bleed_threshold(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3027usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_glow_hdr_bleed_threshold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_hdr_bleed_scale(&mut self, scale: f32,) { + type CallSig = ((), f32); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3028usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_hdr_bleed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glow_hdr_bleed_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3029usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_glow_hdr_bleed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_hdr_luminance_cap(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3030usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_hdr_luminance_cap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glow_hdr_luminance_cap(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3031usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_glow_hdr_luminance_cap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_map_strength(&mut self, strength: f32,) { + type CallSig = ((), f32); + let args = (strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3032usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_map_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glow_map_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3033usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_glow_map_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glow_map(&mut self, mode: impl AsObjectArg < crate::classes::Texture >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture >); + let args = (mode.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3034usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_glow_map", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glow_map(&self,) -> Option < Gd < crate::classes::Texture > > { + type CallSig = (Option < Gd < crate::classes::Texture > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3035usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_glow_map", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3036usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_fog_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3037usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_fog_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_mode(&mut self, mode: crate::classes::environment::FogMode,) { + type CallSig = ((), crate::classes::environment::FogMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3038usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_mode(&self,) -> crate::classes::environment::FogMode { + type CallSig = (crate::classes::environment::FogMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3039usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_light_color(&mut self, light_color: Color,) { + type CallSig = ((), Color); + let args = (light_color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3040usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_light_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_light_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3041usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_light_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_light_energy(&mut self, light_energy: f32,) { + type CallSig = ((), f32); + let args = (light_energy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3042usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_light_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_light_energy(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3043usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_light_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_sun_scatter(&mut self, sun_scatter: f32,) { + type CallSig = ((), f32); + let args = (sun_scatter,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3044usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_sun_scatter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_sun_scatter(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3045usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_sun_scatter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_density(&mut self, density: f32,) { + type CallSig = ((), f32); + let args = (density,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3046usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_density", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_density(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3047usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_density", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_height(&mut self, height: f32,) { + type CallSig = ((), f32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3048usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3049usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_height_density(&mut self, height_density: f32,) { + type CallSig = ((), f32); + let args = (height_density,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3050usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_height_density", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_height_density(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3051usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_height_density", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_aerial_perspective(&mut self, aerial_perspective: f32,) { + type CallSig = ((), f32); + let args = (aerial_perspective,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3052usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_aerial_perspective", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_aerial_perspective(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3053usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_aerial_perspective", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_sky_affect(&mut self, sky_affect: f32,) { + type CallSig = ((), f32); + let args = (sky_affect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3054usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_sky_affect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_sky_affect(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3055usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_sky_affect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_depth_curve(&mut self, curve: f32,) { + type CallSig = ((), f32); + let args = (curve,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3056usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_depth_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_depth_curve(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3057usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_depth_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_depth_begin(&mut self, begin: f32,) { + type CallSig = ((), f32); + let args = (begin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3058usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_depth_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_depth_begin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3059usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_depth_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fog_depth_end(&mut self, end: f32,) { + type CallSig = ((), f32); + let args = (end,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3060usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_fog_depth_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fog_depth_end(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3061usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_fog_depth_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3062usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_volumetric_fog_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3063usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_volumetric_fog_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_emission(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3064usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_emission", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volumetric_fog_emission(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3065usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_volumetric_fog_emission", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_albedo(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3066usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_albedo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volumetric_fog_albedo(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3067usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_volumetric_fog_albedo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_density(&mut self, density: f32,) { + type CallSig = ((), f32); + let args = (density,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3068usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_density", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volumetric_fog_density(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3069usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_volumetric_fog_density", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_emission_energy(&mut self, begin: f32,) { + type CallSig = ((), f32); + let args = (begin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3070usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_emission_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volumetric_fog_emission_energy(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3071usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_volumetric_fog_emission_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_anisotropy(&mut self, anisotropy: f32,) { + type CallSig = ((), f32); + let args = (anisotropy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3072usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_anisotropy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volumetric_fog_anisotropy(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3073usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_volumetric_fog_anisotropy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_length(&mut self, length: f32,) { + type CallSig = ((), f32); + let args = (length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3074usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volumetric_fog_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3075usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_volumetric_fog_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_detail_spread(&mut self, detail_spread: f32,) { + type CallSig = ((), f32); + let args = (detail_spread,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3076usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_detail_spread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volumetric_fog_detail_spread(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3077usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_volumetric_fog_detail_spread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_gi_inject(&mut self, gi_inject: f32,) { + type CallSig = ((), f32); + let args = (gi_inject,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3078usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_gi_inject", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volumetric_fog_gi_inject(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3079usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_volumetric_fog_gi_inject", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_ambient_inject(&mut self, enabled: f32,) { + type CallSig = ((), f32); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3080usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_ambient_inject", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volumetric_fog_ambient_inject(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3081usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_volumetric_fog_ambient_inject", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_sky_affect(&mut self, sky_affect: f32,) { + type CallSig = ((), f32); + let args = (sky_affect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3082usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_sky_affect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volumetric_fog_sky_affect(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3083usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_volumetric_fog_sky_affect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_temporal_reprojection_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3084usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_temporal_reprojection_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_volumetric_fog_temporal_reprojection_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3085usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_volumetric_fog_temporal_reprojection_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_volumetric_fog_temporal_reprojection_amount(&mut self, temporal_reprojection_amount: f32,) { + type CallSig = ((), f32); + let args = (temporal_reprojection_amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3086usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_volumetric_fog_temporal_reprojection_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_volumetric_fog_temporal_reprojection_amount(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3087usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_volumetric_fog_temporal_reprojection_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_adjustment_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3088usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_adjustment_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_adjustment_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3089usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "is_adjustment_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_adjustment_brightness(&mut self, brightness: f32,) { + type CallSig = ((), f32); + let args = (brightness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3090usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_adjustment_brightness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_adjustment_brightness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3091usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_adjustment_brightness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_adjustment_contrast(&mut self, contrast: f32,) { + type CallSig = ((), f32); + let args = (contrast,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3092usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_adjustment_contrast", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_adjustment_contrast(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3093usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_adjustment_contrast", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_adjustment_saturation(&mut self, saturation: f32,) { + type CallSig = ((), f32); + let args = (saturation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3094usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_adjustment_saturation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_adjustment_saturation(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3095usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_adjustment_saturation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_adjustment_color_correction(&mut self, color_correction: impl AsObjectArg < crate::classes::Texture >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture >); + let args = (color_correction.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3096usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "set_adjustment_color_correction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_adjustment_color_correction(&self,) -> Option < Gd < crate::classes::Texture > > { + type CallSig = (Option < Gd < crate::classes::Texture > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3097usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Environment", "get_adjustment_color_correction", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Environment { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Environment")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Environment { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Environment { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Environment { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Environment { + + } + impl crate::obj::cap::GodotDefault for Environment { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Environment { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Environment { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Environment`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Environment { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Environment > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `BGMode`."] +pub struct BgMode { + ord: i32 +} +impl BgMode { + #[doc(alias = "BG_CLEAR_COLOR")] + #[doc = "Godot enumerator name: `BG_CLEAR_COLOR`"] + pub const CLEAR_COLOR: BgMode = BgMode { + ord: 0i32 + }; + #[doc(alias = "BG_COLOR")] + #[doc = "Godot enumerator name: `BG_COLOR`"] + pub const COLOR: BgMode = BgMode { + ord: 1i32 + }; + #[doc(alias = "BG_SKY")] + #[doc = "Godot enumerator name: `BG_SKY`"] + pub const SKY: BgMode = BgMode { + ord: 2i32 + }; + #[doc(alias = "BG_CANVAS")] + #[doc = "Godot enumerator name: `BG_CANVAS`"] + pub const CANVAS: BgMode = BgMode { + ord: 3i32 + }; + #[doc(alias = "BG_KEEP")] + #[doc = "Godot enumerator name: `BG_KEEP`"] + pub const KEEP: BgMode = BgMode { + ord: 4i32 + }; + #[doc(alias = "BG_CAMERA_FEED")] + #[doc = "Godot enumerator name: `BG_CAMERA_FEED`"] + pub const CAMERA_FEED: BgMode = BgMode { + ord: 5i32 + }; + #[doc(alias = "BG_MAX")] + #[doc = "Godot enumerator name: `BG_MAX`"] + pub const MAX: BgMode = BgMode { + ord: 6i32 + }; + +} +impl std::fmt::Debug for BgMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BgMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BgMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLEAR_COLOR => "CLEAR_COLOR", Self::COLOR => "COLOR", Self::SKY => "SKY", Self::CANVAS => "CANVAS", Self::KEEP => "KEEP", Self::CAMERA_FEED => "CAMERA_FEED", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLEAR_COLOR => "BG_CLEAR_COLOR", Self::COLOR => "BG_COLOR", Self::SKY => "BG_SKY", Self::CANVAS => "BG_CANVAS", Self::KEEP => "BG_KEEP", Self::CAMERA_FEED => "BG_CAMERA_FEED", Self::MAX => "BG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for BgMode { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for BgMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BgMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BgMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AmbientSource { + ord: i32 +} +impl AmbientSource { + #[doc(alias = "AMBIENT_SOURCE_BG")] + #[doc = "Godot enumerator name: `AMBIENT_SOURCE_BG`"] + pub const BG: AmbientSource = AmbientSource { + ord: 0i32 + }; + #[doc(alias = "AMBIENT_SOURCE_DISABLED")] + #[doc = "Godot enumerator name: `AMBIENT_SOURCE_DISABLED`"] + pub const DISABLED: AmbientSource = AmbientSource { + ord: 1i32 + }; + #[doc(alias = "AMBIENT_SOURCE_COLOR")] + #[doc = "Godot enumerator name: `AMBIENT_SOURCE_COLOR`"] + pub const COLOR: AmbientSource = AmbientSource { + ord: 2i32 + }; + #[doc(alias = "AMBIENT_SOURCE_SKY")] + #[doc = "Godot enumerator name: `AMBIENT_SOURCE_SKY`"] + pub const SKY: AmbientSource = AmbientSource { + ord: 3i32 + }; + +} +impl std::fmt::Debug for AmbientSource { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AmbientSource") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AmbientSource { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BG => "BG", Self::DISABLED => "DISABLED", Self::COLOR => "COLOR", Self::SKY => "SKY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BG => "AMBIENT_SOURCE_BG", Self::DISABLED => "AMBIENT_SOURCE_DISABLED", Self::COLOR => "AMBIENT_SOURCE_COLOR", Self::SKY => "AMBIENT_SOURCE_SKY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AmbientSource { + type Via = i32; + +} +impl crate::meta::ToGodot for AmbientSource { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AmbientSource { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ReflectionSource { + ord: i32 +} +impl ReflectionSource { + #[doc(alias = "REFLECTION_SOURCE_BG")] + #[doc = "Godot enumerator name: `REFLECTION_SOURCE_BG`"] + pub const BG: ReflectionSource = ReflectionSource { + ord: 0i32 + }; + #[doc(alias = "REFLECTION_SOURCE_DISABLED")] + #[doc = "Godot enumerator name: `REFLECTION_SOURCE_DISABLED`"] + pub const DISABLED: ReflectionSource = ReflectionSource { + ord: 1i32 + }; + #[doc(alias = "REFLECTION_SOURCE_SKY")] + #[doc = "Godot enumerator name: `REFLECTION_SOURCE_SKY`"] + pub const SKY: ReflectionSource = ReflectionSource { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ReflectionSource { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ReflectionSource") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ReflectionSource { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BG => "BG", Self::DISABLED => "DISABLED", Self::SKY => "SKY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BG => "REFLECTION_SOURCE_BG", Self::DISABLED => "REFLECTION_SOURCE_DISABLED", Self::SKY => "REFLECTION_SOURCE_SKY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ReflectionSource { + type Via = i32; + +} +impl crate::meta::ToGodot for ReflectionSource { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ReflectionSource { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ToneMapper { + ord: i32 +} +impl ToneMapper { + #[doc(alias = "TONE_MAPPER_LINEAR")] + #[doc = "Godot enumerator name: `TONE_MAPPER_LINEAR`"] + pub const LINEAR: ToneMapper = ToneMapper { + ord: 0i32 + }; + #[doc(alias = "TONE_MAPPER_REINHARDT")] + #[doc = "Godot enumerator name: `TONE_MAPPER_REINHARDT`"] + pub const REINHARDT: ToneMapper = ToneMapper { + ord: 1i32 + }; + #[doc(alias = "TONE_MAPPER_FILMIC")] + #[doc = "Godot enumerator name: `TONE_MAPPER_FILMIC`"] + pub const FILMIC: ToneMapper = ToneMapper { + ord: 2i32 + }; + #[doc(alias = "TONE_MAPPER_ACES")] + #[doc = "Godot enumerator name: `TONE_MAPPER_ACES`"] + pub const ACES: ToneMapper = ToneMapper { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ToneMapper { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ToneMapper") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ToneMapper { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR => "LINEAR", Self::REINHARDT => "REINHARDT", Self::FILMIC => "FILMIC", Self::ACES => "ACES", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR => "TONE_MAPPER_LINEAR", Self::REINHARDT => "TONE_MAPPER_REINHARDT", Self::FILMIC => "TONE_MAPPER_FILMIC", Self::ACES => "TONE_MAPPER_ACES", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ToneMapper { + type Via = i32; + +} +impl crate::meta::ToGodot for ToneMapper { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ToneMapper { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct GlowBlendMode { + ord: i32 +} +impl GlowBlendMode { + #[doc(alias = "GLOW_BLEND_MODE_ADDITIVE")] + #[doc = "Godot enumerator name: `GLOW_BLEND_MODE_ADDITIVE`"] + pub const ADDITIVE: GlowBlendMode = GlowBlendMode { + ord: 0i32 + }; + #[doc(alias = "GLOW_BLEND_MODE_SCREEN")] + #[doc = "Godot enumerator name: `GLOW_BLEND_MODE_SCREEN`"] + pub const SCREEN: GlowBlendMode = GlowBlendMode { + ord: 1i32 + }; + #[doc(alias = "GLOW_BLEND_MODE_SOFTLIGHT")] + #[doc = "Godot enumerator name: `GLOW_BLEND_MODE_SOFTLIGHT`"] + pub const SOFTLIGHT: GlowBlendMode = GlowBlendMode { + ord: 2i32 + }; + #[doc(alias = "GLOW_BLEND_MODE_REPLACE")] + #[doc = "Godot enumerator name: `GLOW_BLEND_MODE_REPLACE`"] + pub const REPLACE: GlowBlendMode = GlowBlendMode { + ord: 3i32 + }; + #[doc(alias = "GLOW_BLEND_MODE_MIX")] + #[doc = "Godot enumerator name: `GLOW_BLEND_MODE_MIX`"] + pub const MIX: GlowBlendMode = GlowBlendMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for GlowBlendMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("GlowBlendMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for GlowBlendMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADDITIVE => "ADDITIVE", Self::SCREEN => "SCREEN", Self::SOFTLIGHT => "SOFTLIGHT", Self::REPLACE => "REPLACE", Self::MIX => "MIX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADDITIVE => "GLOW_BLEND_MODE_ADDITIVE", Self::SCREEN => "GLOW_BLEND_MODE_SCREEN", Self::SOFTLIGHT => "GLOW_BLEND_MODE_SOFTLIGHT", Self::REPLACE => "GLOW_BLEND_MODE_REPLACE", Self::MIX => "GLOW_BLEND_MODE_MIX", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for GlowBlendMode { + type Via = i32; + +} +impl crate::meta::ToGodot for GlowBlendMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for GlowBlendMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FogMode { + ord: i32 +} +impl FogMode { + #[doc(alias = "FOG_MODE_EXPONENTIAL")] + #[doc = "Godot enumerator name: `FOG_MODE_EXPONENTIAL`"] + pub const EXPONENTIAL: FogMode = FogMode { + ord: 0i32 + }; + #[doc(alias = "FOG_MODE_DEPTH")] + #[doc = "Godot enumerator name: `FOG_MODE_DEPTH`"] + pub const DEPTH: FogMode = FogMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for FogMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FogMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FogMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EXPONENTIAL => "EXPONENTIAL", Self::DEPTH => "DEPTH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EXPONENTIAL => "FOG_MODE_EXPONENTIAL", Self::DEPTH => "FOG_MODE_DEPTH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FogMode { + type Via = i32; + +} +impl crate::meta::ToGodot for FogMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FogMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `SDFGIYScale`."] +pub struct SdfgiYScale { + ord: i32 +} +impl SdfgiYScale { + #[doc(alias = "SDFGI_Y_SCALE_50_PERCENT")] + #[doc = "Godot enumerator name: `SDFGI_Y_SCALE_50_PERCENT`"] + pub const SCALE_50_PERCENT: SdfgiYScale = SdfgiYScale { + ord: 0i32 + }; + #[doc(alias = "SDFGI_Y_SCALE_75_PERCENT")] + #[doc = "Godot enumerator name: `SDFGI_Y_SCALE_75_PERCENT`"] + pub const SCALE_75_PERCENT: SdfgiYScale = SdfgiYScale { + ord: 1i32 + }; + #[doc(alias = "SDFGI_Y_SCALE_100_PERCENT")] + #[doc = "Godot enumerator name: `SDFGI_Y_SCALE_100_PERCENT`"] + pub const SCALE_100_PERCENT: SdfgiYScale = SdfgiYScale { + ord: 2i32 + }; + +} +impl std::fmt::Debug for SdfgiYScale { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SdfgiYScale") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SdfgiYScale { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCALE_50_PERCENT => "SCALE_50_PERCENT", Self::SCALE_75_PERCENT => "SCALE_75_PERCENT", Self::SCALE_100_PERCENT => "SCALE_100_PERCENT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCALE_50_PERCENT => "SDFGI_Y_SCALE_50_PERCENT", Self::SCALE_75_PERCENT => "SDFGI_Y_SCALE_75_PERCENT", Self::SCALE_100_PERCENT => "SDFGI_Y_SCALE_100_PERCENT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SdfgiYScale { + type Via = i32; + +} +impl crate::meta::ToGodot for SdfgiYScale { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SdfgiYScale { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/expression.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/expression.rs new file mode 100644 index 0000000..6f75b6d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/expression.rs @@ -0,0 +1,320 @@ +#![doc = "Sidecar module for class [`Expression`][crate::classes::Expression].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Expression` enums](https://docs.godotengine.org/en/stable/classes/class_expression.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Expression.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`expression`][crate::classes::expression]: sidecar module with related enum/flag types\n* [`IExpression`][crate::classes::IExpression]: virtual methods\n\n\nSee also [Godot docs for `Expression`](https://docs.godotengine.org/en/stable/classes/class_expression.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Expression::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Expression { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Expression`][crate::classes::Expression].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Expression` methods](https://docs.godotengine.org/en/stable/classes/class_expression.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IExpression: crate::obj::GodotClass < Base = Expression > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Expression { + pub(crate) fn parse_full(&mut self, expression: CowArg < GString >, input_names: RefArg < PackedStringArray >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >); + let args = (expression, input_names,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3098usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Expression", "parse", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::parse_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn parse(&mut self, expression: impl AsArg < GString >,) -> crate::global::Error { + self.parse_ex(expression,) . done() + } + #[inline] + pub fn parse_ex < 'a > (&'a mut self, expression: impl AsArg < GString > + 'a,) -> ExParse < 'a > { + ExParse::new(self, expression,) + } + pub(crate) fn execute_full(&mut self, inputs: RefArg < VariantArray >, base_instance: ObjectArg < crate::classes::Object >, show_error: bool, const_calls_only: bool,) -> Variant { + type CallSig < 'a0, > = (Variant, RefArg < 'a0, VariantArray >, ObjectArg < crate::classes::Object >, bool, bool); + let args = (inputs, base_instance, show_error, const_calls_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3099usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Expression", "execute", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::execute_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn execute(&mut self,) -> Variant { + self.execute_ex() . done() + } + #[inline] + pub fn execute_ex < 'a > (&'a mut self,) -> ExExecute < 'a > { + ExExecute::new(self,) + } + pub fn has_execute_failed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3100usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Expression", "has_execute_failed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_error_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3101usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Expression", "get_error_text", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Expression { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Expression")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Expression { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Expression { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Expression { + + } + impl crate::obj::cap::GodotDefault for Expression { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Expression { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Expression { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Expression`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Expression { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Expression > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Expression::parse_ex`][super::Expression::parse_ex]."] +#[must_use] +pub struct ExParse < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Expression, expression: CowArg < 'a, GString >, input_names: CowArg < 'a, PackedStringArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExParse < 'a > { + fn new(surround_object: &'a mut re_export::Expression, expression: impl AsArg < GString > + 'a,) -> Self { + let input_names = PackedStringArray::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, expression: expression.into_arg(), input_names: CowArg::Owned(input_names), + } + } + #[inline] + pub fn input_names(self, input_names: &'a PackedStringArray) -> Self { + Self { + input_names: CowArg::Borrowed(input_names), .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, expression, input_names, + } + = self; + re_export::Expression::parse_full(surround_object, expression, input_names.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`Expression::execute_ex`][super::Expression::execute_ex]."] +#[must_use] +pub struct ExExecute < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Expression, inputs: CowArg < 'a, VariantArray >, base_instance: ObjectCow < crate::classes::Object >, show_error: bool, const_calls_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExExecute < 'a > { + fn new(surround_object: &'a mut re_export::Expression,) -> Self { + let inputs = Array::new(); + let base_instance = Gd::null_arg(); + let show_error = true; + let const_calls_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, inputs: CowArg::Owned(inputs), base_instance: base_instance.consume_arg(), show_error: show_error, const_calls_only: const_calls_only, + } + } + #[inline] + pub fn inputs(self, inputs: &'a VariantArray) -> Self { + Self { + inputs: CowArg::Borrowed(inputs), .. self + } + } + #[inline] + pub fn base_instance(self, base_instance: impl AsObjectArg < crate::classes::Object >) -> Self { + Self { + base_instance: base_instance.consume_arg(), .. self + } + } + #[inline] + pub fn show_error(self, show_error: bool) -> Self { + Self { + show_error: show_error, .. self + } + } + #[inline] + pub fn const_calls_only(self, const_calls_only: bool) -> Self { + Self { + const_calls_only: const_calls_only, .. self + } + } + #[inline] + pub fn done(self) -> Variant { + let Self { + _phantom, surround_object, inputs, base_instance, show_error, const_calls_only, + } + = self; + re_export::Expression::execute_full(surround_object, inputs.cow_as_arg(), base_instance.cow_as_object_arg(), show_error, const_calls_only,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fast_noise_lite.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fast_noise_lite.rs new file mode 100644 index 0000000..99a7f9e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fast_noise_lite.rs @@ -0,0 +1,1039 @@ +#![doc = "Sidecar module for class [`FastNoiseLite`][crate::classes::FastNoiseLite].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `FastNoiseLite` enums](https://docs.godotengine.org/en/stable/classes/class_fastnoiselite.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `FastNoiseLite.`\n\nInherits [`Noise`][crate::classes::Noise].\n\nRelated symbols:\n\n* [`fast_noise_lite`][crate::classes::fast_noise_lite]: sidecar module with related enum/flag types\n* [`IFastNoiseLite`][crate::classes::IFastNoiseLite]: virtual methods\n\n\nSee also [Godot docs for `FastNoiseLite`](https://docs.godotengine.org/en/stable/classes/class_fastnoiselite.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`FastNoiseLite::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct FastNoiseLite { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`FastNoiseLite`][crate::classes::FastNoiseLite].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `FastNoiseLite` methods](https://docs.godotengine.org/en/stable/classes/class_fastnoiselite.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFastNoiseLite: crate::obj::GodotClass < Base = FastNoiseLite > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl FastNoiseLite { + pub fn set_noise_type(&mut self, type_: crate::classes::fast_noise_lite::NoiseType,) { + type CallSig = ((), crate::classes::fast_noise_lite::NoiseType); + let args = (type_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3104usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_noise_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_noise_type(&self,) -> crate::classes::fast_noise_lite::NoiseType { + type CallSig = (crate::classes::fast_noise_lite::NoiseType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3105usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_noise_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_seed(&mut self, seed: i32,) { + type CallSig = ((), i32); + let args = (seed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3106usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_seed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_seed(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3107usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_seed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frequency(&mut self, freq: f32,) { + type CallSig = ((), f32); + let args = (freq,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3108usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_frequency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frequency(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3109usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_frequency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offset(&mut self, offset: Vector3,) { + type CallSig = ((), Vector3); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3110usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3111usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fractal_type(&mut self, type_: crate::classes::fast_noise_lite::FractalType,) { + type CallSig = ((), crate::classes::fast_noise_lite::FractalType); + let args = (type_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3112usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_fractal_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fractal_type(&self,) -> crate::classes::fast_noise_lite::FractalType { + type CallSig = (crate::classes::fast_noise_lite::FractalType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3113usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_fractal_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fractal_octaves(&mut self, octave_count: i32,) { + type CallSig = ((), i32); + let args = (octave_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3114usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_fractal_octaves", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fractal_octaves(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3115usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_fractal_octaves", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fractal_lacunarity(&mut self, lacunarity: f32,) { + type CallSig = ((), f32); + let args = (lacunarity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3116usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_fractal_lacunarity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fractal_lacunarity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3117usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_fractal_lacunarity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fractal_gain(&mut self, gain: f32,) { + type CallSig = ((), f32); + let args = (gain,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3118usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_fractal_gain", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fractal_gain(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3119usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_fractal_gain", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fractal_weighted_strength(&mut self, weighted_strength: f32,) { + type CallSig = ((), f32); + let args = (weighted_strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3120usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_fractal_weighted_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fractal_weighted_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3121usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_fractal_weighted_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fractal_ping_pong_strength(&mut self, ping_pong_strength: f32,) { + type CallSig = ((), f32); + let args = (ping_pong_strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3122usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_fractal_ping_pong_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fractal_ping_pong_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3123usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_fractal_ping_pong_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cellular_distance_function(&mut self, func: crate::classes::fast_noise_lite::CellularDistanceFunction,) { + type CallSig = ((), crate::classes::fast_noise_lite::CellularDistanceFunction); + let args = (func,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3124usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_cellular_distance_function", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cellular_distance_function(&self,) -> crate::classes::fast_noise_lite::CellularDistanceFunction { + type CallSig = (crate::classes::fast_noise_lite::CellularDistanceFunction,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3125usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_cellular_distance_function", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cellular_jitter(&mut self, jitter: f32,) { + type CallSig = ((), f32); + let args = (jitter,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3126usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_cellular_jitter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cellular_jitter(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3127usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_cellular_jitter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cellular_return_type(&mut self, ret: crate::classes::fast_noise_lite::CellularReturnType,) { + type CallSig = ((), crate::classes::fast_noise_lite::CellularReturnType); + let args = (ret,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3128usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_cellular_return_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cellular_return_type(&self,) -> crate::classes::fast_noise_lite::CellularReturnType { + type CallSig = (crate::classes::fast_noise_lite::CellularReturnType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3129usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_cellular_return_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_domain_warp_enabled(&mut self, domain_warp_enabled: bool,) { + type CallSig = ((), bool); + let args = (domain_warp_enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3130usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_domain_warp_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_domain_warp_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3131usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "is_domain_warp_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_domain_warp_type(&mut self, domain_warp_type: crate::classes::fast_noise_lite::DomainWarpType,) { + type CallSig = ((), crate::classes::fast_noise_lite::DomainWarpType); + let args = (domain_warp_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3132usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_domain_warp_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_domain_warp_type(&self,) -> crate::classes::fast_noise_lite::DomainWarpType { + type CallSig = (crate::classes::fast_noise_lite::DomainWarpType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3133usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_domain_warp_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_domain_warp_amplitude(&mut self, domain_warp_amplitude: f32,) { + type CallSig = ((), f32); + let args = (domain_warp_amplitude,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3134usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_domain_warp_amplitude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_domain_warp_amplitude(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3135usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_domain_warp_amplitude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_domain_warp_frequency(&mut self, domain_warp_frequency: f32,) { + type CallSig = ((), f32); + let args = (domain_warp_frequency,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3136usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_domain_warp_frequency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_domain_warp_frequency(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3137usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_domain_warp_frequency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_domain_warp_fractal_type(&mut self, domain_warp_fractal_type: crate::classes::fast_noise_lite::DomainWarpFractalType,) { + type CallSig = ((), crate::classes::fast_noise_lite::DomainWarpFractalType); + let args = (domain_warp_fractal_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3138usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_domain_warp_fractal_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_domain_warp_fractal_type(&self,) -> crate::classes::fast_noise_lite::DomainWarpFractalType { + type CallSig = (crate::classes::fast_noise_lite::DomainWarpFractalType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3139usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_domain_warp_fractal_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_domain_warp_fractal_octaves(&mut self, domain_warp_octave_count: i32,) { + type CallSig = ((), i32); + let args = (domain_warp_octave_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3140usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_domain_warp_fractal_octaves", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_domain_warp_fractal_octaves(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3141usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_domain_warp_fractal_octaves", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_domain_warp_fractal_lacunarity(&mut self, domain_warp_lacunarity: f32,) { + type CallSig = ((), f32); + let args = (domain_warp_lacunarity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3142usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_domain_warp_fractal_lacunarity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_domain_warp_fractal_lacunarity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3143usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_domain_warp_fractal_lacunarity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_domain_warp_fractal_gain(&mut self, domain_warp_gain: f32,) { + type CallSig = ((), f32); + let args = (domain_warp_gain,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3144usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "set_domain_warp_fractal_gain", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_domain_warp_fractal_gain(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3145usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FastNoiseLite", "get_domain_warp_fractal_gain", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for FastNoiseLite { + type Base = crate::classes::Noise; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"FastNoiseLite")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for FastNoiseLite { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Noise > for FastNoiseLite { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for FastNoiseLite { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for FastNoiseLite { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for FastNoiseLite { + + } + impl crate::obj::cap::GodotDefault for FastNoiseLite { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for FastNoiseLite { + type Target = crate::classes::Noise; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for FastNoiseLite { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`FastNoiseLite`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_FastNoiseLite { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::FastNoiseLite > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Noise > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct NoiseType { + ord: i32 +} +impl NoiseType { + #[doc(alias = "TYPE_VALUE")] + #[doc = "Godot enumerator name: `TYPE_VALUE`"] + pub const VALUE: NoiseType = NoiseType { + ord: 5i32 + }; + #[doc(alias = "TYPE_VALUE_CUBIC")] + #[doc = "Godot enumerator name: `TYPE_VALUE_CUBIC`"] + pub const VALUE_CUBIC: NoiseType = NoiseType { + ord: 4i32 + }; + #[doc(alias = "TYPE_PERLIN")] + #[doc = "Godot enumerator name: `TYPE_PERLIN`"] + pub const PERLIN: NoiseType = NoiseType { + ord: 3i32 + }; + #[doc(alias = "TYPE_CELLULAR")] + #[doc = "Godot enumerator name: `TYPE_CELLULAR`"] + pub const CELLULAR: NoiseType = NoiseType { + ord: 2i32 + }; + #[doc(alias = "TYPE_SIMPLEX")] + #[doc = "Godot enumerator name: `TYPE_SIMPLEX`"] + pub const SIMPLEX: NoiseType = NoiseType { + ord: 0i32 + }; + #[doc(alias = "TYPE_SIMPLEX_SMOOTH")] + #[doc = "Godot enumerator name: `TYPE_SIMPLEX_SMOOTH`"] + pub const SIMPLEX_SMOOTH: NoiseType = NoiseType { + ord: 1i32 + }; + +} +impl std::fmt::Debug for NoiseType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("NoiseType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for NoiseType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VALUE => "VALUE", Self::VALUE_CUBIC => "VALUE_CUBIC", Self::PERLIN => "PERLIN", Self::CELLULAR => "CELLULAR", Self::SIMPLEX => "SIMPLEX", Self::SIMPLEX_SMOOTH => "SIMPLEX_SMOOTH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VALUE => "TYPE_VALUE", Self::VALUE_CUBIC => "TYPE_VALUE_CUBIC", Self::PERLIN => "TYPE_PERLIN", Self::CELLULAR => "TYPE_CELLULAR", Self::SIMPLEX => "TYPE_SIMPLEX", Self::SIMPLEX_SMOOTH => "TYPE_SIMPLEX_SMOOTH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for NoiseType { + type Via = i32; + +} +impl crate::meta::ToGodot for NoiseType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for NoiseType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FractalType { + ord: i32 +} +impl FractalType { + #[doc(alias = "FRACTAL_NONE")] + #[doc = "Godot enumerator name: `FRACTAL_NONE`"] + pub const NONE: FractalType = FractalType { + ord: 0i32 + }; + #[doc(alias = "FRACTAL_FBM")] + #[doc = "Godot enumerator name: `FRACTAL_FBM`"] + pub const FBM: FractalType = FractalType { + ord: 1i32 + }; + #[doc(alias = "FRACTAL_RIDGED")] + #[doc = "Godot enumerator name: `FRACTAL_RIDGED`"] + pub const RIDGED: FractalType = FractalType { + ord: 2i32 + }; + #[doc(alias = "FRACTAL_PING_PONG")] + #[doc = "Godot enumerator name: `FRACTAL_PING_PONG`"] + pub const PING_PONG: FractalType = FractalType { + ord: 3i32 + }; + +} +impl std::fmt::Debug for FractalType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FractalType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FractalType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::FBM => "FBM", Self::RIDGED => "RIDGED", Self::PING_PONG => "PING_PONG", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "FRACTAL_NONE", Self::FBM => "FRACTAL_FBM", Self::RIDGED => "FRACTAL_RIDGED", Self::PING_PONG => "FRACTAL_PING_PONG", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FractalType { + type Via = i32; + +} +impl crate::meta::ToGodot for FractalType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FractalType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CellularDistanceFunction { + ord: i32 +} +impl CellularDistanceFunction { + #[doc(alias = "DISTANCE_EUCLIDEAN")] + #[doc = "Godot enumerator name: `DISTANCE_EUCLIDEAN`"] + pub const EUCLIDEAN: CellularDistanceFunction = CellularDistanceFunction { + ord: 0i32 + }; + #[doc(alias = "DISTANCE_EUCLIDEAN_SQUARED")] + #[doc = "Godot enumerator name: `DISTANCE_EUCLIDEAN_SQUARED`"] + pub const EUCLIDEAN_SQUARED: CellularDistanceFunction = CellularDistanceFunction { + ord: 1i32 + }; + #[doc(alias = "DISTANCE_MANHATTAN")] + #[doc = "Godot enumerator name: `DISTANCE_MANHATTAN`"] + pub const MANHATTAN: CellularDistanceFunction = CellularDistanceFunction { + ord: 2i32 + }; + #[doc(alias = "DISTANCE_HYBRID")] + #[doc = "Godot enumerator name: `DISTANCE_HYBRID`"] + pub const HYBRID: CellularDistanceFunction = CellularDistanceFunction { + ord: 3i32 + }; + +} +impl std::fmt::Debug for CellularDistanceFunction { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CellularDistanceFunction") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CellularDistanceFunction { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EUCLIDEAN => "EUCLIDEAN", Self::EUCLIDEAN_SQUARED => "EUCLIDEAN_SQUARED", Self::MANHATTAN => "MANHATTAN", Self::HYBRID => "HYBRID", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EUCLIDEAN => "DISTANCE_EUCLIDEAN", Self::EUCLIDEAN_SQUARED => "DISTANCE_EUCLIDEAN_SQUARED", Self::MANHATTAN => "DISTANCE_MANHATTAN", Self::HYBRID => "DISTANCE_HYBRID", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CellularDistanceFunction { + type Via = i32; + +} +impl crate::meta::ToGodot for CellularDistanceFunction { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CellularDistanceFunction { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CellularReturnType { + ord: i32 +} +impl CellularReturnType { + #[doc(alias = "RETURN_CELL_VALUE")] + #[doc = "Godot enumerator name: `RETURN_CELL_VALUE`"] + pub const CELL_VALUE: CellularReturnType = CellularReturnType { + ord: 0i32 + }; + #[doc(alias = "RETURN_DISTANCE")] + #[doc = "Godot enumerator name: `RETURN_DISTANCE`"] + pub const DISTANCE: CellularReturnType = CellularReturnType { + ord: 1i32 + }; + #[doc(alias = "RETURN_DISTANCE2")] + #[doc = "Godot enumerator name: `RETURN_DISTANCE2`"] + pub const DISTANCE2: CellularReturnType = CellularReturnType { + ord: 2i32 + }; + #[doc(alias = "RETURN_DISTANCE2_ADD")] + #[doc = "Godot enumerator name: `RETURN_DISTANCE2_ADD`"] + pub const DISTANCE2_ADD: CellularReturnType = CellularReturnType { + ord: 3i32 + }; + #[doc(alias = "RETURN_DISTANCE2_SUB")] + #[doc = "Godot enumerator name: `RETURN_DISTANCE2_SUB`"] + pub const DISTANCE2_SUB: CellularReturnType = CellularReturnType { + ord: 4i32 + }; + #[doc(alias = "RETURN_DISTANCE2_MUL")] + #[doc = "Godot enumerator name: `RETURN_DISTANCE2_MUL`"] + pub const DISTANCE2_MUL: CellularReturnType = CellularReturnType { + ord: 5i32 + }; + #[doc(alias = "RETURN_DISTANCE2_DIV")] + #[doc = "Godot enumerator name: `RETURN_DISTANCE2_DIV`"] + pub const DISTANCE2_DIV: CellularReturnType = CellularReturnType { + ord: 6i32 + }; + +} +impl std::fmt::Debug for CellularReturnType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CellularReturnType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CellularReturnType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CELL_VALUE => "CELL_VALUE", Self::DISTANCE => "DISTANCE", Self::DISTANCE2 => "DISTANCE2", Self::DISTANCE2_ADD => "DISTANCE2_ADD", Self::DISTANCE2_SUB => "DISTANCE2_SUB", Self::DISTANCE2_MUL => "DISTANCE2_MUL", Self::DISTANCE2_DIV => "DISTANCE2_DIV", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CELL_VALUE => "RETURN_CELL_VALUE", Self::DISTANCE => "RETURN_DISTANCE", Self::DISTANCE2 => "RETURN_DISTANCE2", Self::DISTANCE2_ADD => "RETURN_DISTANCE2_ADD", Self::DISTANCE2_SUB => "RETURN_DISTANCE2_SUB", Self::DISTANCE2_MUL => "RETURN_DISTANCE2_MUL", Self::DISTANCE2_DIV => "RETURN_DISTANCE2_DIV", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CellularReturnType { + type Via = i32; + +} +impl crate::meta::ToGodot for CellularReturnType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CellularReturnType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DomainWarpType { + ord: i32 +} +impl DomainWarpType { + #[doc(alias = "DOMAIN_WARP_SIMPLEX")] + #[doc = "Godot enumerator name: `DOMAIN_WARP_SIMPLEX`"] + pub const SIMPLEX: DomainWarpType = DomainWarpType { + ord: 0i32 + }; + #[doc(alias = "DOMAIN_WARP_SIMPLEX_REDUCED")] + #[doc = "Godot enumerator name: `DOMAIN_WARP_SIMPLEX_REDUCED`"] + pub const SIMPLEX_REDUCED: DomainWarpType = DomainWarpType { + ord: 1i32 + }; + #[doc(alias = "DOMAIN_WARP_BASIC_GRID")] + #[doc = "Godot enumerator name: `DOMAIN_WARP_BASIC_GRID`"] + pub const BASIC_GRID: DomainWarpType = DomainWarpType { + ord: 2i32 + }; + +} +impl std::fmt::Debug for DomainWarpType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DomainWarpType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DomainWarpType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SIMPLEX => "SIMPLEX", Self::SIMPLEX_REDUCED => "SIMPLEX_REDUCED", Self::BASIC_GRID => "BASIC_GRID", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SIMPLEX => "DOMAIN_WARP_SIMPLEX", Self::SIMPLEX_REDUCED => "DOMAIN_WARP_SIMPLEX_REDUCED", Self::BASIC_GRID => "DOMAIN_WARP_BASIC_GRID", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DomainWarpType { + type Via = i32; + +} +impl crate::meta::ToGodot for DomainWarpType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DomainWarpType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DomainWarpFractalType { + ord: i32 +} +impl DomainWarpFractalType { + #[doc(alias = "DOMAIN_WARP_FRACTAL_NONE")] + #[doc = "Godot enumerator name: `DOMAIN_WARP_FRACTAL_NONE`"] + pub const NONE: DomainWarpFractalType = DomainWarpFractalType { + ord: 0i32 + }; + #[doc(alias = "DOMAIN_WARP_FRACTAL_PROGRESSIVE")] + #[doc = "Godot enumerator name: `DOMAIN_WARP_FRACTAL_PROGRESSIVE`"] + pub const PROGRESSIVE: DomainWarpFractalType = DomainWarpFractalType { + ord: 1i32 + }; + #[doc(alias = "DOMAIN_WARP_FRACTAL_INDEPENDENT")] + #[doc = "Godot enumerator name: `DOMAIN_WARP_FRACTAL_INDEPENDENT`"] + pub const INDEPENDENT: DomainWarpFractalType = DomainWarpFractalType { + ord: 2i32 + }; + +} +impl std::fmt::Debug for DomainWarpFractalType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DomainWarpFractalType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DomainWarpFractalType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::PROGRESSIVE => "PROGRESSIVE", Self::INDEPENDENT => "INDEPENDENT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "DOMAIN_WARP_FRACTAL_NONE", Self::PROGRESSIVE => "DOMAIN_WARP_FRACTAL_PROGRESSIVE", Self::INDEPENDENT => "DOMAIN_WARP_FRACTAL_INDEPENDENT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DomainWarpFractalType { + type Via = i32; + +} +impl crate::meta::ToGodot for DomainWarpFractalType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DomainWarpFractalType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fbx_document.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fbx_document.rs new file mode 100644 index 0000000..27353d8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fbx_document.rs @@ -0,0 +1,208 @@ +#![doc = "Sidecar module for class [`FbxDocument`][crate::classes::FbxDocument].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `FBXDocument` enums](https://docs.godotengine.org/en/stable/classes/class_fbxdocument.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `FBXDocument.`\n\nInherits [`GltfDocument`][crate::classes::GltfDocument].\n\nRelated symbols:\n\n* [`IFbxDocument`][crate::classes::IFbxDocument]: virtual methods\n\n\nSee also [Godot docs for `FBXDocument`](https://docs.godotengine.org/en/stable/classes/class_fbxdocument.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`FbxDocument::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct FbxDocument { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`FbxDocument`][crate::classes::FbxDocument].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `FBXDocument` methods](https://docs.godotengine.org/en/stable/classes/class_fbxdocument.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFbxDocument: crate::obj::GodotClass < Base = FbxDocument > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl FbxDocument { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for FbxDocument { + type Base = crate::classes::GltfDocument; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"FBXDocument")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for FbxDocument { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GltfDocument > for FbxDocument { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for FbxDocument { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for FbxDocument { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for FbxDocument { + + } + impl crate::obj::cap::GodotDefault for FbxDocument { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for FbxDocument { + type Target = crate::classes::GltfDocument; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for FbxDocument { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`FbxDocument`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_FbxDocument { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::FbxDocument > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfDocument > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fbx_state.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fbx_state.rs new file mode 100644 index 0000000..189cd04 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fbx_state.rs @@ -0,0 +1,224 @@ +#![doc = "Sidecar module for class [`FbxState`][crate::classes::FbxState].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `FBXState` enums](https://docs.godotengine.org/en/stable/classes/class_fbxstate.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `FBXState.`\n\nInherits [`GltfState`][crate::classes::GltfState].\n\nRelated symbols:\n\n* [`IFbxState`][crate::classes::IFbxState]: virtual methods\n\n\nSee also [Godot docs for `FBXState`](https://docs.godotengine.org/en/stable/classes/class_fbxstate.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`FbxState::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct FbxState { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`FbxState`][crate::classes::FbxState].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `FBXState` methods](https://docs.godotengine.org/en/stable/classes/class_fbxstate.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFbxState: crate::obj::GodotClass < Base = FbxState > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl FbxState { + pub fn get_allow_geometry_helper_nodes(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3102usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FbxState", "get_allow_geometry_helper_nodes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_geometry_helper_nodes(&mut self, allow: bool,) { + type CallSig = ((), bool); + let args = (allow,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3103usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FbxState", "set_allow_geometry_helper_nodes", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for FbxState { + type Base = crate::classes::GltfState; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"FBXState")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for FbxState { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GltfState > for FbxState { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for FbxState { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for FbxState { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for FbxState { + + } + impl crate::obj::cap::GodotDefault for FbxState { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for FbxState { + type Target = crate::classes::GltfState; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for FbxState { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`FbxState`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_FbxState { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::FbxState > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfState > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/file_access.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/file_access.rs new file mode 100644 index 0000000..9122cdb --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/file_access.rs @@ -0,0 +1,1172 @@ +#![doc = "Sidecar module for class [`FileAccess`][crate::classes::FileAccess].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `FileAccess` enums](https://docs.godotengine.org/en/stable/classes/class_fileaccess.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `FileAccess.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`file_access`][crate::classes::file_access]: sidecar module with related enum/flag types\n* [`IFileAccess`][crate::classes::IFileAccess]: virtual methods\n\n\nSee also [Godot docs for `FileAccess`](https://docs.godotengine.org/en/stable/classes/class_fileaccess.html).\n\n# Specific notes for this class\n\nThe gdext library provides a higher-level abstraction, which should be preferred: [`GFile`][crate::tools::GFile]."] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct FileAccess { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`FileAccess`][crate::classes::FileAccess].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `FileAccess` methods](https://docs.godotengine.org/en/stable/classes/class_fileaccess.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFileAccess: crate::obj::GodotClass < Base = FileAccess > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl FileAccess { + pub fn open(path: impl AsArg < GString >, flags: crate::classes::file_access::ModeFlags,) -> Option < Gd < crate::classes::FileAccess > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::FileAccess > >, CowArg < 'a0, GString >, crate::classes::file_access::ModeFlags); + let args = (path.into_arg(), flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3146usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "open", std::ptr::null_mut(), None, args,) + } + } + pub fn open_encrypted(path: impl AsArg < GString >, mode_flags: crate::classes::file_access::ModeFlags, key: &PackedByteArray,) -> Option < Gd < crate::classes::FileAccess > > { + type CallSig < 'a0, 'a1, > = (Option < Gd < crate::classes::FileAccess > >, CowArg < 'a0, GString >, crate::classes::file_access::ModeFlags, RefArg < 'a1, PackedByteArray >); + let args = (path.into_arg(), mode_flags, RefArg::new(key),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3147usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "open_encrypted", std::ptr::null_mut(), None, args,) + } + } + pub fn open_encrypted_with_pass(path: impl AsArg < GString >, mode_flags: crate::classes::file_access::ModeFlags, pass: impl AsArg < GString >,) -> Option < Gd < crate::classes::FileAccess > > { + type CallSig < 'a0, 'a1, > = (Option < Gd < crate::classes::FileAccess > >, CowArg < 'a0, GString >, crate::classes::file_access::ModeFlags, CowArg < 'a1, GString >); + let args = (path.into_arg(), mode_flags, pass.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3148usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "open_encrypted_with_pass", std::ptr::null_mut(), None, args,) + } + } + pub(crate) fn open_compressed_full(path: CowArg < GString >, mode_flags: crate::classes::file_access::ModeFlags, compression_mode: crate::classes::file_access::CompressionMode,) -> Option < Gd < crate::classes::FileAccess > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::FileAccess > >, CowArg < 'a0, GString >, crate::classes::file_access::ModeFlags, crate::classes::file_access::CompressionMode); + let args = (path, mode_flags, compression_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3149usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "open_compressed", std::ptr::null_mut(), None, args,) + } + } + #[doc = "To set the default parameters, use [`Self::open_compressed_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn open_compressed(path: impl AsArg < GString >, mode_flags: crate::classes::file_access::ModeFlags,) -> Option < Gd < crate::classes::FileAccess > > { + Self::open_compressed_ex(path, mode_flags,) . done() + } + #[inline] + pub fn open_compressed_ex < 'a > (path: impl AsArg < GString > + 'a, mode_flags: crate::classes::file_access::ModeFlags,) -> ExOpenCompressed < 'a > { + ExOpenCompressed::new(path, mode_flags,) + } + pub fn get_open_error() -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3150usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_open_error", std::ptr::null_mut(), None, args,) + } + } + pub fn get_file_as_bytes(path: impl AsArg < GString >,) -> PackedByteArray { + type CallSig < 'a0, > = (PackedByteArray, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3151usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_file_as_bytes", std::ptr::null_mut(), None, args,) + } + } + pub fn get_file_as_string(path: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3152usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_file_as_string", std::ptr::null_mut(), None, args,) + } + } + pub fn resize(&mut self, length: i64,) -> crate::global::Error { + type CallSig = (crate::global::Error, i64); + let args = (length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3153usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "resize", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn flush(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3154usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "flush", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3155usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path_absolute(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3156usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_path_absolute", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_open(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3157usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "is_open", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn seek(&mut self, position: u64,) { + type CallSig = ((), u64); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3158usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "seek", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn seek_end_full(&mut self, position: i64,) { + type CallSig = ((), i64); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3159usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "seek_end", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::seek_end_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn seek_end(&mut self,) { + self.seek_end_ex() . done() + } + #[inline] + pub fn seek_end_ex < 'a > (&'a mut self,) -> ExSeekEnd < 'a > { + ExSeekEnd::new(self,) + } + pub fn get_position(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3160usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_length(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3161usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn eof_reached(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3162usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "eof_reached", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_8(&self,) -> u8 { + type CallSig = (u8,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3163usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_8", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_16(&self,) -> u16 { + type CallSig = (u16,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3164usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_16", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_32(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3165usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_32", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_64(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3166usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_64", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_float(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3167usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_float", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_double(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3168usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_double", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_real(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3169usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_real", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_buffer(&self, length: i64,) -> PackedByteArray { + type CallSig = (PackedByteArray, i64); + let args = (length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3170usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_line(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3171usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_line", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_csv_line_full(&self, delim: CowArg < GString >,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >); + let args = (delim,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3172usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_csv_line", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_csv_line_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_csv_line(&self,) -> PackedStringArray { + self.get_csv_line_ex() . done() + } + #[inline] + pub fn get_csv_line_ex < 'a > (&'a self,) -> ExGetCsvLine < 'a > { + ExGetCsvLine::new(self,) + } + pub(crate) fn get_as_text_full(&self, skip_cr: bool,) -> GString { + type CallSig = (GString, bool); + let args = (skip_cr,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3173usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_as_text", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_as_text_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_as_text(&self,) -> GString { + self.get_as_text_ex() . done() + } + #[inline] + pub fn get_as_text_ex < 'a > (&'a self,) -> ExGetAsText < 'a > { + ExGetAsText::new(self,) + } + pub fn get_md5(path: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3174usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_md5", std::ptr::null_mut(), None, args,) + } + } + pub fn get_sha256(path: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3175usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_sha256", std::ptr::null_mut(), None, args,) + } + } + pub fn is_big_endian(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3176usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "is_big_endian", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_big_endian(&mut self, big_endian: bool,) { + type CallSig = ((), bool); + let args = (big_endian,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3177usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "set_big_endian", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_error(&self,) -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3178usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_error", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_var_full(&self, allow_objects: bool,) -> Variant { + type CallSig = (Variant, bool); + let args = (allow_objects,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3179usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_var", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_var_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_var(&self,) -> Variant { + self.get_var_ex() . done() + } + #[inline] + pub fn get_var_ex < 'a > (&'a self,) -> ExGetVar < 'a > { + ExGetVar::new(self,) + } + pub fn store_8(&mut self, value: u8,) { + type CallSig = ((), u8); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3180usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_8", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn store_16(&mut self, value: u16,) { + type CallSig = ((), u16); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3181usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_16", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn store_32(&mut self, value: u32,) { + type CallSig = ((), u32); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3182usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_32", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn store_64(&mut self, value: u64,) { + type CallSig = ((), u64); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3183usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_64", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn store_float(&mut self, value: f32,) { + type CallSig = ((), f32); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3184usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_float", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn store_double(&mut self, value: f64,) { + type CallSig = ((), f64); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3185usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_double", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn store_real(&mut self, value: f32,) { + type CallSig = ((), f32); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3186usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_real", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn store_buffer(&mut self, buffer: &PackedByteArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3187usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn store_line(&mut self, line: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (line.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3188usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_line", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn store_csv_line_full(&mut self, values: RefArg < PackedStringArray >, delim: CowArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), RefArg < 'a0, PackedStringArray >, CowArg < 'a1, GString >); + let args = (values, delim,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3189usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_csv_line", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::store_csv_line_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn store_csv_line(&mut self, values: &PackedStringArray,) { + self.store_csv_line_ex(values,) . done() + } + #[inline] + pub fn store_csv_line_ex < 'a > (&'a mut self, values: &'a PackedStringArray,) -> ExStoreCsvLine < 'a > { + ExStoreCsvLine::new(self, values,) + } + pub fn store_string(&mut self, string: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (string.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3190usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_string", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn store_var_full(&mut self, value: RefArg < Variant >, full_objects: bool,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >, bool); + let args = (value, full_objects,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3191usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_var", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::store_var_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn store_var(&mut self, value: &Variant,) { + self.store_var_ex(value,) . done() + } + #[inline] + pub fn store_var_ex < 'a > (&'a mut self, value: &'a Variant,) -> ExStoreVar < 'a > { + ExStoreVar::new(self, value,) + } + pub fn store_pascal_string(&mut self, string: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (string.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3192usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "store_pascal_string", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pascal_string(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3193usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_pascal_string", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn close(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3194usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "close", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn file_exists(path: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3195usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "file_exists", std::ptr::null_mut(), None, args,) + } + } + pub fn get_modified_time(file: impl AsArg < GString >,) -> u64 { + type CallSig < 'a0, > = (u64, CowArg < 'a0, GString >); + let args = (file.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3196usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_modified_time", std::ptr::null_mut(), None, args,) + } + } + pub fn get_unix_permissions(file: impl AsArg < GString >,) -> crate::classes::file_access::UnixPermissionFlags { + type CallSig < 'a0, > = (crate::classes::file_access::UnixPermissionFlags, CowArg < 'a0, GString >); + let args = (file.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3197usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_unix_permissions", std::ptr::null_mut(), None, args,) + } + } + pub fn set_unix_permissions(file: impl AsArg < GString >, permissions: crate::classes::file_access::UnixPermissionFlags,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, crate::classes::file_access::UnixPermissionFlags); + let args = (file.into_arg(), permissions,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3198usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "set_unix_permissions", std::ptr::null_mut(), None, args,) + } + } + pub fn get_hidden_attribute(file: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (file.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3199usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_hidden_attribute", std::ptr::null_mut(), None, args,) + } + } + pub fn set_hidden_attribute(file: impl AsArg < GString >, hidden: bool,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, bool); + let args = (file.into_arg(), hidden,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3200usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "set_hidden_attribute", std::ptr::null_mut(), None, args,) + } + } + pub fn set_read_only_attribute(file: impl AsArg < GString >, ro: bool,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, bool); + let args = (file.into_arg(), ro,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3201usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "set_read_only_attribute", std::ptr::null_mut(), None, args,) + } + } + pub fn get_read_only_attribute(file: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (file.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3202usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileAccess", "get_read_only_attribute", std::ptr::null_mut(), None, args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for FileAccess { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"FileAccess")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for FileAccess { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for FileAccess { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for FileAccess { + + } + impl std::ops::Deref for FileAccess { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for FileAccess { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`FileAccess`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_FileAccess { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::FileAccess > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`FileAccess::open_compressed_ex`][super::FileAccess::open_compressed_ex]."] +#[must_use] +pub struct ExOpenCompressed < 'a > { + _phantom: std::marker::PhantomData < &'a() >, path: CowArg < 'a, GString >, mode_flags: crate::classes::file_access::ModeFlags, compression_mode: crate::classes::file_access::CompressionMode, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExOpenCompressed < 'a > { + fn new(path: impl AsArg < GString > + 'a, mode_flags: crate::classes::file_access::ModeFlags,) -> Self { + let compression_mode = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, path: path.into_arg(), mode_flags: mode_flags, compression_mode: compression_mode, + } + } + #[inline] + pub fn compression_mode(self, compression_mode: crate::classes::file_access::CompressionMode) -> Self { + Self { + compression_mode: compression_mode, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::FileAccess > > { + let Self { + _phantom, path, mode_flags, compression_mode, + } + = self; + re_export::FileAccess::open_compressed_full(path, mode_flags, compression_mode,) + } +} +#[doc = "Default-param extender for [`FileAccess::seek_end_ex`][super::FileAccess::seek_end_ex]."] +#[must_use] +pub struct ExSeekEnd < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::FileAccess, position: i64, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSeekEnd < 'a > { + fn new(surround_object: &'a mut re_export::FileAccess,) -> Self { + let position = 0i64; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, + } + } + #[inline] + pub fn position(self, position: i64) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, + } + = self; + re_export::FileAccess::seek_end_full(surround_object, position,) + } +} +#[doc = "Default-param extender for [`FileAccess::get_csv_line_ex`][super::FileAccess::get_csv_line_ex]."] +#[must_use] +pub struct ExGetCsvLine < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::FileAccess, delim: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetCsvLine < 'a > { + fn new(surround_object: &'a re_export::FileAccess,) -> Self { + let delim = GString::from(","); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, delim: CowArg::Owned(delim), + } + } + #[inline] + pub fn delim(self, delim: impl AsArg < GString > + 'a) -> Self { + Self { + delim: delim.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> PackedStringArray { + let Self { + _phantom, surround_object, delim, + } + = self; + re_export::FileAccess::get_csv_line_full(surround_object, delim,) + } +} +#[doc = "Default-param extender for [`FileAccess::get_as_text_ex`][super::FileAccess::get_as_text_ex]."] +#[must_use] +pub struct ExGetAsText < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::FileAccess, skip_cr: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetAsText < 'a > { + fn new(surround_object: &'a re_export::FileAccess,) -> Self { + let skip_cr = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, skip_cr: skip_cr, + } + } + #[inline] + pub fn skip_cr(self, skip_cr: bool) -> Self { + Self { + skip_cr: skip_cr, .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, skip_cr, + } + = self; + re_export::FileAccess::get_as_text_full(surround_object, skip_cr,) + } +} +#[doc = "Default-param extender for [`FileAccess::get_var_ex`][super::FileAccess::get_var_ex]."] +#[must_use] +pub struct ExGetVar < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::FileAccess, allow_objects: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetVar < 'a > { + fn new(surround_object: &'a re_export::FileAccess,) -> Self { + let allow_objects = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, allow_objects: allow_objects, + } + } + #[inline] + pub fn allow_objects(self, allow_objects: bool) -> Self { + Self { + allow_objects: allow_objects, .. self + } + } + #[inline] + pub fn done(self) -> Variant { + let Self { + _phantom, surround_object, allow_objects, + } + = self; + re_export::FileAccess::get_var_full(surround_object, allow_objects,) + } +} +#[doc = "Default-param extender for [`FileAccess::store_csv_line_ex`][super::FileAccess::store_csv_line_ex]."] +#[must_use] +pub struct ExStoreCsvLine < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::FileAccess, values: CowArg < 'a, PackedStringArray >, delim: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExStoreCsvLine < 'a > { + fn new(surround_object: &'a mut re_export::FileAccess, values: &'a PackedStringArray,) -> Self { + let delim = GString::from(","); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, values: CowArg::Borrowed(values), delim: CowArg::Owned(delim), + } + } + #[inline] + pub fn delim(self, delim: impl AsArg < GString > + 'a) -> Self { + Self { + delim: delim.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, values, delim, + } + = self; + re_export::FileAccess::store_csv_line_full(surround_object, values.cow_as_arg(), delim,) + } +} +#[doc = "Default-param extender for [`FileAccess::store_var_ex`][super::FileAccess::store_var_ex]."] +#[must_use] +pub struct ExStoreVar < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::FileAccess, value: CowArg < 'a, Variant >, full_objects: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExStoreVar < 'a > { + fn new(surround_object: &'a mut re_export::FileAccess, value: &'a Variant,) -> Self { + let full_objects = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, value: CowArg::Borrowed(value), full_objects: full_objects, + } + } + #[inline] + pub fn full_objects(self, full_objects: bool) -> Self { + Self { + full_objects: full_objects, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, value, full_objects, + } + = self; + re_export::FileAccess::store_var_full(surround_object, value.cow_as_arg(), full_objects,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ModeFlags { + ord: i32 +} +impl ModeFlags { + pub const READ: ModeFlags = ModeFlags { + ord: 1i32 + }; + pub const WRITE: ModeFlags = ModeFlags { + ord: 2i32 + }; + pub const READ_WRITE: ModeFlags = ModeFlags { + ord: 3i32 + }; + pub const WRITE_READ: ModeFlags = ModeFlags { + ord: 7i32 + }; + +} +impl std::fmt::Debug for ModeFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ModeFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ModeFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::READ => "READ", Self::WRITE => "WRITE", Self::READ_WRITE => "READ_WRITE", Self::WRITE_READ => "WRITE_READ", _ => "", + } + } + fn godot_name(&self) -> &'static str { + self.as_str() + } +} +impl crate::meta::GodotConvert for ModeFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for ModeFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ModeFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CompressionMode { + ord: i32 +} +impl CompressionMode { + #[doc(alias = "COMPRESSION_FASTLZ")] + #[doc = "Godot enumerator name: `COMPRESSION_FASTLZ`"] + pub const FASTLZ: CompressionMode = CompressionMode { + ord: 0i32 + }; + #[doc(alias = "COMPRESSION_DEFLATE")] + #[doc = "Godot enumerator name: `COMPRESSION_DEFLATE`"] + pub const DEFLATE: CompressionMode = CompressionMode { + ord: 1i32 + }; + #[doc(alias = "COMPRESSION_ZSTD")] + #[doc = "Godot enumerator name: `COMPRESSION_ZSTD`"] + pub const ZSTD: CompressionMode = CompressionMode { + ord: 2i32 + }; + #[doc(alias = "COMPRESSION_GZIP")] + #[doc = "Godot enumerator name: `COMPRESSION_GZIP`"] + pub const GZIP: CompressionMode = CompressionMode { + ord: 3i32 + }; + #[doc(alias = "COMPRESSION_BROTLI")] + #[doc = "Godot enumerator name: `COMPRESSION_BROTLI`"] + pub const BROTLI: CompressionMode = CompressionMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for CompressionMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CompressionMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CompressionMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FASTLZ => "FASTLZ", Self::DEFLATE => "DEFLATE", Self::ZSTD => "ZSTD", Self::GZIP => "GZIP", Self::BROTLI => "BROTLI", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FASTLZ => "COMPRESSION_FASTLZ", Self::DEFLATE => "COMPRESSION_DEFLATE", Self::ZSTD => "COMPRESSION_ZSTD", Self::GZIP => "COMPRESSION_GZIP", Self::BROTLI => "COMPRESSION_BROTLI", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CompressionMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CompressionMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CompressionMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct UnixPermissionFlags { + ord: u64 +} +impl UnixPermissionFlags { + #[doc(alias = "UNIX_READ_OWNER")] + #[doc = "Godot enumerator name: `UNIX_READ_OWNER`"] + pub const READ_OWNER: UnixPermissionFlags = UnixPermissionFlags { + ord: 256u64 + }; + #[doc(alias = "UNIX_WRITE_OWNER")] + #[doc = "Godot enumerator name: `UNIX_WRITE_OWNER`"] + pub const WRITE_OWNER: UnixPermissionFlags = UnixPermissionFlags { + ord: 128u64 + }; + #[doc(alias = "UNIX_EXECUTE_OWNER")] + #[doc = "Godot enumerator name: `UNIX_EXECUTE_OWNER`"] + pub const EXECUTE_OWNER: UnixPermissionFlags = UnixPermissionFlags { + ord: 64u64 + }; + #[doc(alias = "UNIX_READ_GROUP")] + #[doc = "Godot enumerator name: `UNIX_READ_GROUP`"] + pub const READ_GROUP: UnixPermissionFlags = UnixPermissionFlags { + ord: 32u64 + }; + #[doc(alias = "UNIX_WRITE_GROUP")] + #[doc = "Godot enumerator name: `UNIX_WRITE_GROUP`"] + pub const WRITE_GROUP: UnixPermissionFlags = UnixPermissionFlags { + ord: 16u64 + }; + #[doc(alias = "UNIX_EXECUTE_GROUP")] + #[doc = "Godot enumerator name: `UNIX_EXECUTE_GROUP`"] + pub const EXECUTE_GROUP: UnixPermissionFlags = UnixPermissionFlags { + ord: 8u64 + }; + #[doc(alias = "UNIX_READ_OTHER")] + #[doc = "Godot enumerator name: `UNIX_READ_OTHER`"] + pub const READ_OTHER: UnixPermissionFlags = UnixPermissionFlags { + ord: 4u64 + }; + #[doc(alias = "UNIX_WRITE_OTHER")] + #[doc = "Godot enumerator name: `UNIX_WRITE_OTHER`"] + pub const WRITE_OTHER: UnixPermissionFlags = UnixPermissionFlags { + ord: 2u64 + }; + #[doc(alias = "UNIX_EXECUTE_OTHER")] + #[doc = "Godot enumerator name: `UNIX_EXECUTE_OTHER`"] + pub const EXECUTE_OTHER: UnixPermissionFlags = UnixPermissionFlags { + ord: 1u64 + }; + #[doc(alias = "UNIX_SET_USER_ID")] + #[doc = "Godot enumerator name: `UNIX_SET_USER_ID`"] + pub const SET_USER_ID: UnixPermissionFlags = UnixPermissionFlags { + ord: 2048u64 + }; + #[doc(alias = "UNIX_SET_GROUP_ID")] + #[doc = "Godot enumerator name: `UNIX_SET_GROUP_ID`"] + pub const SET_GROUP_ID: UnixPermissionFlags = UnixPermissionFlags { + ord: 1024u64 + }; + #[doc(alias = "UNIX_RESTRICTED_DELETE")] + #[doc = "Godot enumerator name: `UNIX_RESTRICTED_DELETE`"] + pub const RESTRICTED_DELETE: UnixPermissionFlags = UnixPermissionFlags { + ord: 512u64 + }; + +} +impl std::fmt::Debug for UnixPermissionFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::READ_OWNER => "READ_OWNER", Self::WRITE_OWNER => "WRITE_OWNER", Self::EXECUTE_OWNER => "EXECUTE_OWNER", Self::READ_GROUP => "READ_GROUP", Self::WRITE_GROUP => "WRITE_GROUP", Self::EXECUTE_GROUP => "EXECUTE_GROUP", Self::READ_OTHER => "READ_OTHER", Self::WRITE_OTHER => "WRITE_OTHER", Self::EXECUTE_OTHER => "EXECUTE_OTHER", Self::SET_USER_ID => "SET_USER_ID", Self::SET_GROUP_ID => "SET_GROUP_ID", Self::RESTRICTED_DELETE => "RESTRICTED_DELETE", _ => { + f.debug_struct("UnixPermissionFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for UnixPermissionFlags { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for UnixPermissionFlags { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for UnixPermissionFlags { + type Via = u64; + +} +impl crate::meta::ToGodot for UnixPermissionFlags { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for UnixPermissionFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/file_dialog.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/file_dialog.rs new file mode 100644 index 0000000..9ac9357 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/file_dialog.rs @@ -0,0 +1,735 @@ +#![doc = "Sidecar module for class [`FileDialog`][crate::classes::FileDialog].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `FileDialog` enums](https://docs.godotengine.org/en/stable/classes/class_filedialog.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `FileDialog.`\n\nInherits [`ConfirmationDialog`][crate::classes::ConfirmationDialog].\n\nRelated symbols:\n\n* [`file_dialog`][crate::classes::file_dialog]: sidecar module with related enum/flag types\n* [`IFileDialog`][crate::classes::IFileDialog]: virtual methods\n\n\nSee also [Godot docs for `FileDialog`](https://docs.godotengine.org/en/stable/classes/class_filedialog.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`FileDialog::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct FileDialog { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`FileDialog`][crate::classes::FileDialog].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `FileDialog` methods](https://docs.godotengine.org/en/stable/classes/class_filedialog.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFileDialog: crate::obj::GodotClass < Base = FileDialog > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: WindowNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_contents_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl FileDialog { + pub fn clear_filters(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3203usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "clear_filters", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_filter_full(&mut self, filter: CowArg < GString >, description: CowArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (filter, description,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3204usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "add_filter", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_filter_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_filter(&mut self, filter: impl AsArg < GString >,) { + self.add_filter_ex(filter,) . done() + } + #[inline] + pub fn add_filter_ex < 'a > (&'a mut self, filter: impl AsArg < GString > + 'a,) -> ExAddFilter < 'a > { + ExAddFilter::new(self, filter,) + } + pub fn set_filters(&mut self, filters: &PackedStringArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(filters),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3205usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_filters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_filters(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3206usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_filters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_option_name(&self, option: i32,) -> GString { + type CallSig = (GString, i32); + let args = (option,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3207usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_option_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_option_values(&self, option: i32,) -> PackedStringArray { + type CallSig = (PackedStringArray, i32); + let args = (option,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3208usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_option_values", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_option_default(&self, option: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (option,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3209usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_option_default", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_option_name(&mut self, option: i32, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (option, name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3210usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_option_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_option_values(&mut self, option: i32, values: &PackedStringArray,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, PackedStringArray >); + let args = (option, RefArg::new(values),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3211usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_option_values", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_option_default(&mut self, option: i32, default_value_index: i32,) { + type CallSig = ((), i32, i32); + let args = (option, default_value_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3212usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_option_default", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_option_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3213usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_option_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_option_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3214usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_option_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_option(&mut self, name: impl AsArg < GString >, values: &PackedStringArray, default_value_index: i32,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >, i32); + let args = (name.into_arg(), RefArg::new(values), default_value_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3215usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "add_option", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selected_options(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3216usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_selected_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3217usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_current_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_file(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3218usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_current_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3219usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_current_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_current_dir(&mut self, dir: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (dir.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3220usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_current_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_current_file(&mut self, file: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (file.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3221usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_current_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_current_path(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3222usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_current_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mode_overrides_title(&mut self, override_: bool,) { + type CallSig = ((), bool); + let args = (override_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3223usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_mode_overrides_title", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_mode_overriding_title(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3224usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "is_mode_overriding_title", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_file_mode(&mut self, mode: crate::classes::file_dialog::FileMode,) { + type CallSig = ((), crate::classes::file_dialog::FileMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3225usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_file_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_file_mode(&self,) -> crate::classes::file_dialog::FileMode { + type CallSig = (crate::classes::file_dialog::FileMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3226usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_file_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vbox(&mut self,) -> Option < Gd < crate::classes::VBoxContainer > > { + type CallSig = (Option < Gd < crate::classes::VBoxContainer > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3227usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_vbox", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_line_edit(&mut self,) -> Option < Gd < crate::classes::LineEdit > > { + type CallSig = (Option < Gd < crate::classes::LineEdit > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3228usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_line_edit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_access(&mut self, access: crate::classes::file_dialog::Access,) { + type CallSig = ((), crate::classes::file_dialog::Access); + let args = (access,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3229usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_access", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_access(&self,) -> crate::classes::file_dialog::Access { + type CallSig = (crate::classes::file_dialog::Access,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3230usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_access", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_root_subfolder(&mut self, dir: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (dir.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3231usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_root_subfolder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_subfolder(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3232usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_root_subfolder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_show_hidden_files(&mut self, show: bool,) { + type CallSig = ((), bool); + let args = (show,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3233usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_show_hidden_files", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_showing_hidden_files(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3234usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "is_showing_hidden_files", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_native_dialog(&mut self, native: bool,) { + type CallSig = ((), bool); + let args = (native,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3235usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "set_use_native_dialog", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_native_dialog(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3236usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "get_use_native_dialog", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn deselect_all(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3237usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "deselect_all", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn invalidate(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3238usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileDialog", "invalidate", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for FileDialog { + type Base = crate::classes::ConfirmationDialog; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"FileDialog")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for FileDialog { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::ConfirmationDialog > for FileDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::AcceptDialog > for FileDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Window > for FileDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Viewport > for FileDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for FileDialog { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for FileDialog { + + } + impl crate::obj::cap::GodotDefault for FileDialog { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for FileDialog { + type Target = crate::classes::ConfirmationDialog; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for FileDialog { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`FileDialog`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_FileDialog { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::FileDialog > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ConfirmationDialog > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::AcceptDialog > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Window > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Viewport > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`FileDialog::add_filter_ex`][super::FileDialog::add_filter_ex]."] +#[must_use] +pub struct ExAddFilter < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::FileDialog, filter: CowArg < 'a, GString >, description: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddFilter < 'a > { + fn new(surround_object: &'a mut re_export::FileDialog, filter: impl AsArg < GString > + 'a,) -> Self { + let description = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, filter: filter.into_arg(), description: CowArg::Owned(description), + } + } + #[inline] + pub fn description(self, description: impl AsArg < GString > + 'a) -> Self { + Self { + description: description.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, filter, description, + } + = self; + re_export::FileDialog::add_filter_full(surround_object, filter, description,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FileMode { + ord: i32 +} +impl FileMode { + #[doc(alias = "FILE_MODE_OPEN_FILE")] + #[doc = "Godot enumerator name: `FILE_MODE_OPEN_FILE`"] + pub const OPEN_FILE: FileMode = FileMode { + ord: 0i32 + }; + #[doc(alias = "FILE_MODE_OPEN_FILES")] + #[doc = "Godot enumerator name: `FILE_MODE_OPEN_FILES`"] + pub const OPEN_FILES: FileMode = FileMode { + ord: 1i32 + }; + #[doc(alias = "FILE_MODE_OPEN_DIR")] + #[doc = "Godot enumerator name: `FILE_MODE_OPEN_DIR`"] + pub const OPEN_DIR: FileMode = FileMode { + ord: 2i32 + }; + #[doc(alias = "FILE_MODE_OPEN_ANY")] + #[doc = "Godot enumerator name: `FILE_MODE_OPEN_ANY`"] + pub const OPEN_ANY: FileMode = FileMode { + ord: 3i32 + }; + #[doc(alias = "FILE_MODE_SAVE_FILE")] + #[doc = "Godot enumerator name: `FILE_MODE_SAVE_FILE`"] + pub const SAVE_FILE: FileMode = FileMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for FileMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FileMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FileMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OPEN_FILE => "OPEN_FILE", Self::OPEN_FILES => "OPEN_FILES", Self::OPEN_DIR => "OPEN_DIR", Self::OPEN_ANY => "OPEN_ANY", Self::SAVE_FILE => "SAVE_FILE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OPEN_FILE => "FILE_MODE_OPEN_FILE", Self::OPEN_FILES => "FILE_MODE_OPEN_FILES", Self::OPEN_DIR => "FILE_MODE_OPEN_DIR", Self::OPEN_ANY => "FILE_MODE_OPEN_ANY", Self::SAVE_FILE => "FILE_MODE_SAVE_FILE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FileMode { + type Via = i32; + +} +impl crate::meta::ToGodot for FileMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FileMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Access { + ord: i32 +} +impl Access { + #[doc(alias = "ACCESS_RESOURCES")] + #[doc = "Godot enumerator name: `ACCESS_RESOURCES`"] + pub const RESOURCES: Access = Access { + ord: 0i32 + }; + #[doc(alias = "ACCESS_USERDATA")] + #[doc = "Godot enumerator name: `ACCESS_USERDATA`"] + pub const USERDATA: Access = Access { + ord: 1i32 + }; + #[doc(alias = "ACCESS_FILESYSTEM")] + #[doc = "Godot enumerator name: `ACCESS_FILESYSTEM`"] + pub const FILESYSTEM: Access = Access { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Access { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Access") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Access { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RESOURCES => "RESOURCES", Self::USERDATA => "USERDATA", Self::FILESYSTEM => "FILESYSTEM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RESOURCES => "ACCESS_RESOURCES", Self::USERDATA => "ACCESS_USERDATA", Self::FILESYSTEM => "ACCESS_FILESYSTEM", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Access { + type Via = i32; + +} +impl crate::meta::ToGodot for Access { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Access { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/file_system_dock.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/file_system_dock.rs new file mode 100644 index 0000000..f932457 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/file_system_dock.rs @@ -0,0 +1,308 @@ +#![doc = "Sidecar module for class [`FileSystemDock`][crate::classes::FileSystemDock].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `FileSystemDock` enums](https://docs.godotengine.org/en/stable/classes/class_filesystemdock.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `FileSystemDock.`\n\nInherits [`VBoxContainer`][crate::classes::VBoxContainer].\n\nRelated symbols:\n\n* [`IFileSystemDock`][crate::classes::IFileSystemDock]: virtual methods\n\n\nSee also [Godot docs for `FileSystemDock`](https://docs.godotengine.org/en/stable/classes/class_filesystemdock.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct FileSystemDock { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`FileSystemDock`][crate::classes::FileSystemDock].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `FileSystemDock` methods](https://docs.godotengine.org/en/stable/classes/class_filesystemdock.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFileSystemDock: crate::obj::GodotClass < Base = FileSystemDock > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl FileSystemDock { + pub fn navigate_to_path(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(320usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileSystemDock", "navigate_to_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_resource_tooltip_plugin(&mut self, plugin: impl AsObjectArg < crate::classes::EditorResourceTooltipPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorResourceTooltipPlugin >); + let args = (plugin.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(321usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileSystemDock", "add_resource_tooltip_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_resource_tooltip_plugin(&mut self, plugin: impl AsObjectArg < crate::classes::EditorResourceTooltipPlugin >,) { + type CallSig = ((), ObjectArg < crate::classes::EditorResourceTooltipPlugin >); + let args = (plugin.as_object_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(322usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FileSystemDock", "remove_resource_tooltip_plugin", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for FileSystemDock { + type Base = crate::classes::VBoxContainer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"FileSystemDock")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for FileSystemDock { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VBoxContainer > for FileSystemDock { + + } + unsafe impl crate::obj::Inherits < crate::classes::BoxContainer > for FileSystemDock { + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for FileSystemDock { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for FileSystemDock { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for FileSystemDock { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for FileSystemDock { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for FileSystemDock { + + } + impl std::ops::Deref for FileSystemDock { + type Target = crate::classes::VBoxContainer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for FileSystemDock { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`FileSystemDock`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_FileSystemDock { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::FileSystemDock > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VBoxContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BoxContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/flow_container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/flow_container.rs new file mode 100644 index 0000000..dc38581 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/flow_container.rs @@ -0,0 +1,504 @@ +#![doc = "Sidecar module for class [`FlowContainer`][crate::classes::FlowContainer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `FlowContainer` enums](https://docs.godotengine.org/en/stable/classes/class_flowcontainer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `FlowContainer.`\n\nInherits [`Container`][crate::classes::Container].\n\nRelated symbols:\n\n* [`flow_container`][crate::classes::flow_container]: sidecar module with related enum/flag types\n* [`IFlowContainer`][crate::classes::IFlowContainer]: virtual methods\n\n\nSee also [Godot docs for `FlowContainer`](https://docs.godotengine.org/en/stable/classes/class_flowcontainer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`FlowContainer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct FlowContainer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`FlowContainer`][crate::classes::FlowContainer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `FlowContainer` methods](https://docs.godotengine.org/en/stable/classes/class_flowcontainer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFlowContainer: crate::obj::GodotClass < Base = FlowContainer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl FlowContainer { + pub fn get_line_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3239usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FlowContainer", "get_line_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alignment(&mut self, alignment: crate::classes::flow_container::AlignmentMode,) { + type CallSig = ((), crate::classes::flow_container::AlignmentMode); + let args = (alignment,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3240usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FlowContainer", "set_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alignment(&self,) -> crate::classes::flow_container::AlignmentMode { + type CallSig = (crate::classes::flow_container::AlignmentMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3241usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FlowContainer", "get_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_last_wrap_alignment(&mut self, last_wrap_alignment: crate::classes::flow_container::LastWrapAlignmentMode,) { + type CallSig = ((), crate::classes::flow_container::LastWrapAlignmentMode); + let args = (last_wrap_alignment,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3242usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FlowContainer", "set_last_wrap_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_last_wrap_alignment(&self,) -> crate::classes::flow_container::LastWrapAlignmentMode { + type CallSig = (crate::classes::flow_container::LastWrapAlignmentMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3243usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FlowContainer", "get_last_wrap_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertical(&mut self, vertical: bool,) { + type CallSig = ((), bool); + let args = (vertical,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3244usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FlowContainer", "set_vertical", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_vertical(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3245usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FlowContainer", "is_vertical", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_reverse_fill(&mut self, reverse_fill: bool,) { + type CallSig = ((), bool); + let args = (reverse_fill,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3246usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FlowContainer", "set_reverse_fill", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_reverse_fill(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3247usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FlowContainer", "is_reverse_fill", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for FlowContainer { + type Base = crate::classes::Container; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"FlowContainer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for FlowContainer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for FlowContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for FlowContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for FlowContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for FlowContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for FlowContainer { + + } + impl crate::obj::cap::GodotDefault for FlowContainer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for FlowContainer { + type Target = crate::classes::Container; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for FlowContainer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`FlowContainer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_FlowContainer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::FlowContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AlignmentMode { + ord: i32 +} +impl AlignmentMode { + #[doc(alias = "ALIGNMENT_BEGIN")] + #[doc = "Godot enumerator name: `ALIGNMENT_BEGIN`"] + pub const BEGIN: AlignmentMode = AlignmentMode { + ord: 0i32 + }; + #[doc(alias = "ALIGNMENT_CENTER")] + #[doc = "Godot enumerator name: `ALIGNMENT_CENTER`"] + pub const CENTER: AlignmentMode = AlignmentMode { + ord: 1i32 + }; + #[doc(alias = "ALIGNMENT_END")] + #[doc = "Godot enumerator name: `ALIGNMENT_END`"] + pub const END: AlignmentMode = AlignmentMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AlignmentMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AlignmentMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AlignmentMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN => "BEGIN", Self::CENTER => "CENTER", Self::END => "END", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN => "ALIGNMENT_BEGIN", Self::CENTER => "ALIGNMENT_CENTER", Self::END => "ALIGNMENT_END", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AlignmentMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AlignmentMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AlignmentMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LastWrapAlignmentMode { + ord: i32 +} +impl LastWrapAlignmentMode { + #[doc(alias = "LAST_WRAP_ALIGNMENT_INHERIT")] + #[doc = "Godot enumerator name: `LAST_WRAP_ALIGNMENT_INHERIT`"] + pub const INHERIT: LastWrapAlignmentMode = LastWrapAlignmentMode { + ord: 0i32 + }; + #[doc(alias = "LAST_WRAP_ALIGNMENT_BEGIN")] + #[doc = "Godot enumerator name: `LAST_WRAP_ALIGNMENT_BEGIN`"] + pub const BEGIN: LastWrapAlignmentMode = LastWrapAlignmentMode { + ord: 1i32 + }; + #[doc(alias = "LAST_WRAP_ALIGNMENT_CENTER")] + #[doc = "Godot enumerator name: `LAST_WRAP_ALIGNMENT_CENTER`"] + pub const CENTER: LastWrapAlignmentMode = LastWrapAlignmentMode { + ord: 2i32 + }; + #[doc(alias = "LAST_WRAP_ALIGNMENT_END")] + #[doc = "Godot enumerator name: `LAST_WRAP_ALIGNMENT_END`"] + pub const END: LastWrapAlignmentMode = LastWrapAlignmentMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for LastWrapAlignmentMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LastWrapAlignmentMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LastWrapAlignmentMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERIT => "INHERIT", Self::BEGIN => "BEGIN", Self::CENTER => "CENTER", Self::END => "END", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERIT => "LAST_WRAP_ALIGNMENT_INHERIT", Self::BEGIN => "LAST_WRAP_ALIGNMENT_BEGIN", Self::CENTER => "LAST_WRAP_ALIGNMENT_CENTER", Self::END => "LAST_WRAP_ALIGNMENT_END", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LastWrapAlignmentMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LastWrapAlignmentMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LastWrapAlignmentMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fog_material.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fog_material.rs new file mode 100644 index 0000000..0c4ad00 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fog_material.rs @@ -0,0 +1,312 @@ +#![doc = "Sidecar module for class [`FogMaterial`][crate::classes::FogMaterial].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `FogMaterial` enums](https://docs.godotengine.org/en/stable/classes/class_fogmaterial.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `FogMaterial.`\n\nInherits [`Material`][crate::classes::Material].\n\nRelated symbols:\n\n* [`IFogMaterial`][crate::classes::IFogMaterial]: virtual methods\n\n\nSee also [Godot docs for `FogMaterial`](https://docs.godotengine.org/en/stable/classes/class_fogmaterial.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`FogMaterial::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct FogMaterial { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`FogMaterial`][crate::classes::FogMaterial].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `FogMaterial` methods](https://docs.godotengine.org/en/stable/classes/class_fogmaterial.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFogMaterial: crate::obj::GodotClass < Base = FogMaterial > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_shader_rid(&self,) -> Rid; + fn get_shader_mode(&self,) -> crate::classes::shader::Mode; + fn can_do_next_pass(&self,) -> bool { + unimplemented !() + } + fn can_use_render_priority(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl FogMaterial { + pub fn set_density(&mut self, density: f32,) { + type CallSig = ((), f32); + let args = (density,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3248usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "set_density", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_density(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3249usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "get_density", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_albedo(&mut self, albedo: Color,) { + type CallSig = ((), Color); + let args = (albedo,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3250usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "set_albedo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_albedo(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3251usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "get_albedo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission(&mut self, emission: Color,) { + type CallSig = ((), Color); + let args = (emission,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3252usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "set_emission", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3253usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "get_emission", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height_falloff(&mut self, height_falloff: f32,) { + type CallSig = ((), f32); + let args = (height_falloff,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3254usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "set_height_falloff", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height_falloff(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3255usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "get_height_falloff", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_edge_fade(&mut self, edge_fade: f32,) { + type CallSig = ((), f32); + let args = (edge_fade,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3256usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "set_edge_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_edge_fade(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3257usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "get_edge_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_density_texture(&mut self, density_texture: impl AsObjectArg < crate::classes::Texture3D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture3D >); + let args = (density_texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3258usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "set_density_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_density_texture(&self,) -> Option < Gd < crate::classes::Texture3D > > { + type CallSig = (Option < Gd < crate::classes::Texture3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3259usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogMaterial", "get_density_texture", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for FogMaterial { + type Base = crate::classes::Material; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"FogMaterial")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for FogMaterial { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Material > for FogMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for FogMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for FogMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for FogMaterial { + + } + impl crate::obj::cap::GodotDefault for FogMaterial { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for FogMaterial { + type Target = crate::classes::Material; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for FogMaterial { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`FogMaterial`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_FogMaterial { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::FogMaterial > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Material > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fog_volume.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fog_volume.rs new file mode 100644 index 0000000..b918229 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/fog_volume.rs @@ -0,0 +1,286 @@ +#![doc = "Sidecar module for class [`FogVolume`][crate::classes::FogVolume].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `FogVolume` enums](https://docs.godotengine.org/en/stable/classes/class_fogvolume.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `FogVolume.`\n\nInherits [`VisualInstance3D`][crate::classes::VisualInstance3D].\n\nRelated symbols:\n\n* [`IFogVolume`][crate::classes::IFogVolume]: virtual methods\n\n\nSee also [Godot docs for `FogVolume`](https://docs.godotengine.org/en/stable/classes/class_fogvolume.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`FogVolume::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct FogVolume { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`FogVolume`][crate::classes::FogVolume].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `FogVolume` methods](https://docs.godotengine.org/en/stable/classes/class_fogvolume.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFogVolume: crate::obj::GodotClass < Base = FogVolume > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl FogVolume { + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3260usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogVolume", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3261usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogVolume", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shape(&mut self, shape: crate::classes::rendering_server::FogVolumeShape,) { + type CallSig = ((), crate::classes::rendering_server::FogVolumeShape); + let args = (shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3262usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogVolume", "set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape(&self,) -> crate::classes::rendering_server::FogVolumeShape { + type CallSig = (crate::classes::rendering_server::FogVolumeShape,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3263usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogVolume", "get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3264usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogVolume", "set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3265usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FogVolume", "get_material", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for FogVolume { + type Base = crate::classes::VisualInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"FogVolume")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for FogVolume { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for FogVolume { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for FogVolume { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for FogVolume { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for FogVolume { + + } + impl crate::obj::cap::GodotDefault for FogVolume { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for FogVolume { + type Target = crate::classes::VisualInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for FogVolume { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`FogVolume`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_FogVolume { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::FogVolume > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/font.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/font.rs new file mode 100644 index 0000000..0cfa71b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/font.rs @@ -0,0 +1,1337 @@ +#![doc = "Sidecar module for class [`Font`][crate::classes::Font].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Font` enums](https://docs.godotengine.org/en/stable/classes/class_font.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Font.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`font`][crate::classes::font]: sidecar module with related enum/flag types\n* [`IFont`][crate::classes::IFont]: virtual methods\n\n\nSee also [Godot docs for `Font`](https://docs.godotengine.org/en/stable/classes/class_font.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct Font { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Font`][crate::classes::Font].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Font` methods](https://docs.godotengine.org/en/stable/classes/class_font.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFont: crate::obj::GodotClass < Base = Font > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Font { + pub fn set_fallbacks(&mut self, fallbacks: &Array < Gd < crate::classes::Font > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::Font > > >); + let args = (RefArg::new(fallbacks),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3266usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "set_fallbacks", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fallbacks(&self,) -> Array < Gd < crate::classes::Font > > { + type CallSig = (Array < Gd < crate::classes::Font > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3267usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_fallbacks", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn find_variation_full(&self, variation_coordinates: RefArg < Dictionary >, face_index: i32, strength: f32, transform: Transform2D, spacing_top: i32, spacing_bottom: i32, spacing_space: i32, spacing_glyph: i32, baseline_offset: f32,) -> Rid { + type CallSig < 'a0, > = (Rid, RefArg < 'a0, Dictionary >, i32, f32, Transform2D, i32, i32, i32, i32, f32); + let args = (variation_coordinates, face_index, strength, transform, spacing_top, spacing_bottom, spacing_space, spacing_glyph, baseline_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3268usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "find_variation", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::find_variation_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn find_variation(&self, variation_coordinates: &Dictionary,) -> Rid { + self.find_variation_ex(variation_coordinates,) . done() + } + #[inline] + pub fn find_variation_ex < 'a > (&'a self, variation_coordinates: &'a Dictionary,) -> ExFindVariation < 'a > { + ExFindVariation::new(self, variation_coordinates,) + } + pub fn get_rids(&self,) -> Array < Rid > { + type CallSig = (Array < Rid >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3269usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_rids", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_height_full(&self, font_size: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (font_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3270usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_height_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_height(&self,) -> f32 { + self.get_height_ex() . done() + } + #[inline] + pub fn get_height_ex < 'a > (&'a self,) -> ExGetHeight < 'a > { + ExGetHeight::new(self,) + } + pub(crate) fn get_ascent_full(&self, font_size: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (font_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3271usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_ascent", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_ascent_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_ascent(&self,) -> f32 { + self.get_ascent_ex() . done() + } + #[inline] + pub fn get_ascent_ex < 'a > (&'a self,) -> ExGetAscent < 'a > { + ExGetAscent::new(self,) + } + pub(crate) fn get_descent_full(&self, font_size: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (font_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3272usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_descent", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_descent_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_descent(&self,) -> f32 { + self.get_descent_ex() . done() + } + #[inline] + pub fn get_descent_ex < 'a > (&'a self,) -> ExGetDescent < 'a > { + ExGetDescent::new(self,) + } + pub(crate) fn get_underline_position_full(&self, font_size: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (font_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3273usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_underline_position", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_underline_position_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_underline_position(&self,) -> f32 { + self.get_underline_position_ex() . done() + } + #[inline] + pub fn get_underline_position_ex < 'a > (&'a self,) -> ExGetUnderlinePosition < 'a > { + ExGetUnderlinePosition::new(self,) + } + pub(crate) fn get_underline_thickness_full(&self, font_size: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (font_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3274usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_underline_thickness", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_underline_thickness_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_underline_thickness(&self,) -> f32 { + self.get_underline_thickness_ex() . done() + } + #[inline] + pub fn get_underline_thickness_ex < 'a > (&'a self,) -> ExGetUnderlineThickness < 'a > { + ExGetUnderlineThickness::new(self,) + } + pub fn get_font_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3275usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_font_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_font_style_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3276usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_font_style_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ot_name_strings(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3277usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_ot_name_strings", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_font_style(&self,) -> crate::classes::text_server::FontStyle { + type CallSig = (crate::classes::text_server::FontStyle,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3278usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_font_style", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_font_weight(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3279usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_font_weight", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_font_stretch(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3280usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_font_stretch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spacing(&self, spacing: crate::classes::text_server::SpacingType,) -> i32 { + type CallSig = (i32, crate::classes::text_server::SpacingType); + let args = (spacing,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3281usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_spacing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_opentype_features(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3282usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_opentype_features", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cache_capacity(&mut self, single_line: i32, multi_line: i32,) { + type CallSig = ((), i32, i32); + let args = (single_line, multi_line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3283usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "set_cache_capacity", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_string_size_full(&self, text: CowArg < GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation,) -> Vector2 { + type CallSig < 'a0, > = (Vector2, CowArg < 'a0, GString >, crate::global::HorizontalAlignment, f32, i32, crate::classes::text_server::JustificationFlag, crate::classes::text_server::Direction, crate::classes::text_server::Orientation); + let args = (text, alignment, width, font_size, justification_flags, direction, orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3284usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_string_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_string_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_string_size(&self, text: impl AsArg < GString >,) -> Vector2 { + self.get_string_size_ex(text,) . done() + } + #[inline] + pub fn get_string_size_ex < 'a > (&'a self, text: impl AsArg < GString > + 'a,) -> ExGetStringSize < 'a > { + ExGetStringSize::new(self, text,) + } + pub(crate) fn get_multiline_string_size_full(&self, text: CowArg < GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, max_lines: i32, brk_flags: crate::classes::text_server::LineBreakFlag, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation,) -> Vector2 { + type CallSig < 'a0, > = (Vector2, CowArg < 'a0, GString >, crate::global::HorizontalAlignment, f32, i32, i32, crate::classes::text_server::LineBreakFlag, crate::classes::text_server::JustificationFlag, crate::classes::text_server::Direction, crate::classes::text_server::Orientation); + let args = (text, alignment, width, font_size, max_lines, brk_flags, justification_flags, direction, orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3285usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_multiline_string_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_multiline_string_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_multiline_string_size(&self, text: impl AsArg < GString >,) -> Vector2 { + self.get_multiline_string_size_ex(text,) . done() + } + #[inline] + pub fn get_multiline_string_size_ex < 'a > (&'a self, text: impl AsArg < GString > + 'a,) -> ExGetMultilineStringSize < 'a > { + ExGetMultilineStringSize::new(self, text,) + } + pub(crate) fn draw_string_full(&self, canvas_item: Rid, pos: Vector2, text: CowArg < GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, modulate: Color, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation,) { + type CallSig < 'a0, > = ((), Rid, Vector2, CowArg < 'a0, GString >, crate::global::HorizontalAlignment, f32, i32, Color, crate::classes::text_server::JustificationFlag, crate::classes::text_server::Direction, crate::classes::text_server::Orientation); + let args = (canvas_item, pos, text, alignment, width, font_size, modulate, justification_flags, direction, orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3286usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "draw_string", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_string_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_string(&self, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString >,) { + self.draw_string_ex(canvas_item, pos, text,) . done() + } + #[inline] + pub fn draw_string_ex < 'a > (&'a self, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString > + 'a,) -> ExDrawString < 'a > { + ExDrawString::new(self, canvas_item, pos, text,) + } + pub(crate) fn draw_multiline_string_full(&self, canvas_item: Rid, pos: Vector2, text: CowArg < GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, max_lines: i32, modulate: Color, brk_flags: crate::classes::text_server::LineBreakFlag, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation,) { + type CallSig < 'a0, > = ((), Rid, Vector2, CowArg < 'a0, GString >, crate::global::HorizontalAlignment, f32, i32, i32, Color, crate::classes::text_server::LineBreakFlag, crate::classes::text_server::JustificationFlag, crate::classes::text_server::Direction, crate::classes::text_server::Orientation); + let args = (canvas_item, pos, text, alignment, width, font_size, max_lines, modulate, brk_flags, justification_flags, direction, orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3287usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "draw_multiline_string", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_multiline_string_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_multiline_string(&self, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString >,) { + self.draw_multiline_string_ex(canvas_item, pos, text,) . done() + } + #[inline] + pub fn draw_multiline_string_ex < 'a > (&'a self, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString > + 'a,) -> ExDrawMultilineString < 'a > { + ExDrawMultilineString::new(self, canvas_item, pos, text,) + } + pub(crate) fn draw_string_outline_full(&self, canvas_item: Rid, pos: Vector2, text: CowArg < GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, size: i32, modulate: Color, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation,) { + type CallSig < 'a0, > = ((), Rid, Vector2, CowArg < 'a0, GString >, crate::global::HorizontalAlignment, f32, i32, i32, Color, crate::classes::text_server::JustificationFlag, crate::classes::text_server::Direction, crate::classes::text_server::Orientation); + let args = (canvas_item, pos, text, alignment, width, font_size, size, modulate, justification_flags, direction, orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3288usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "draw_string_outline", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_string_outline_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_string_outline(&self, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString >,) { + self.draw_string_outline_ex(canvas_item, pos, text,) . done() + } + #[inline] + pub fn draw_string_outline_ex < 'a > (&'a self, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString > + 'a,) -> ExDrawStringOutline < 'a > { + ExDrawStringOutline::new(self, canvas_item, pos, text,) + } + pub(crate) fn draw_multiline_string_outline_full(&self, canvas_item: Rid, pos: Vector2, text: CowArg < GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, max_lines: i32, size: i32, modulate: Color, brk_flags: crate::classes::text_server::LineBreakFlag, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation,) { + type CallSig < 'a0, > = ((), Rid, Vector2, CowArg < 'a0, GString >, crate::global::HorizontalAlignment, f32, i32, i32, i32, Color, crate::classes::text_server::LineBreakFlag, crate::classes::text_server::JustificationFlag, crate::classes::text_server::Direction, crate::classes::text_server::Orientation); + let args = (canvas_item, pos, text, alignment, width, font_size, max_lines, size, modulate, brk_flags, justification_flags, direction, orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3289usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "draw_multiline_string_outline", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_multiline_string_outline_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_multiline_string_outline(&self, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString >,) { + self.draw_multiline_string_outline_ex(canvas_item, pos, text,) . done() + } + #[inline] + pub fn draw_multiline_string_outline_ex < 'a > (&'a self, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString > + 'a,) -> ExDrawMultilineStringOutline < 'a > { + ExDrawMultilineStringOutline::new(self, canvas_item, pos, text,) + } + pub fn get_char_size(&self, char: i64, font_size: i32,) -> Vector2 { + type CallSig = (Vector2, i64, i32); + let args = (char, font_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3290usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_char_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn draw_char_full(&self, canvas_item: Rid, pos: Vector2, char: i64, font_size: i32, modulate: Color,) -> f32 { + type CallSig = (f32, Rid, Vector2, i64, i32, Color); + let args = (canvas_item, pos, char, font_size, modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3291usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "draw_char", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_char_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_char(&self, canvas_item: Rid, pos: Vector2, char: i64, font_size: i32,) -> f32 { + self.draw_char_ex(canvas_item, pos, char, font_size,) . done() + } + #[inline] + pub fn draw_char_ex < 'a > (&'a self, canvas_item: Rid, pos: Vector2, char: i64, font_size: i32,) -> ExDrawChar < 'a > { + ExDrawChar::new(self, canvas_item, pos, char, font_size,) + } + pub(crate) fn draw_char_outline_full(&self, canvas_item: Rid, pos: Vector2, char: i64, font_size: i32, size: i32, modulate: Color,) -> f32 { + type CallSig = (f32, Rid, Vector2, i64, i32, i32, Color); + let args = (canvas_item, pos, char, font_size, size, modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3292usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "draw_char_outline", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_char_outline_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_char_outline(&self, canvas_item: Rid, pos: Vector2, char: i64, font_size: i32,) -> f32 { + self.draw_char_outline_ex(canvas_item, pos, char, font_size,) . done() + } + #[inline] + pub fn draw_char_outline_ex < 'a > (&'a self, canvas_item: Rid, pos: Vector2, char: i64, font_size: i32,) -> ExDrawCharOutline < 'a > { + ExDrawCharOutline::new(self, canvas_item, pos, char, font_size,) + } + pub fn has_char(&self, char: i64,) -> bool { + type CallSig = (bool, i64); + let args = (char,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3293usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "has_char", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_supported_chars(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3294usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_supported_chars", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_language_supported(&self, language: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3295usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "is_language_supported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_script_supported(&self, script: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (script.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3296usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "is_script_supported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_supported_feature_list(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3297usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_supported_feature_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_supported_variation_list(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3298usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_supported_variation_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_face_count(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3299usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Font", "get_face_count", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Font { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Font")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Font { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Font { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Font { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Font { + + } + impl std::ops::Deref for Font { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Font { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Font`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Font { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Font > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Font::find_variation_ex`][super::Font::find_variation_ex]."] +#[must_use] +pub struct ExFindVariation < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, variation_coordinates: CowArg < 'a, Dictionary >, face_index: i32, strength: f32, transform: Transform2D, spacing_top: i32, spacing_bottom: i32, spacing_space: i32, spacing_glyph: i32, baseline_offset: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFindVariation < 'a > { + fn new(surround_object: &'a re_export::Font, variation_coordinates: &'a Dictionary,) -> Self { + let face_index = 0i32; + let strength = 0f32; + let transform = Transform2D::__internal_codegen(1 as _, 0 as _, 0 as _, 1 as _, 0 as _, 0 as _); + let spacing_top = 0i32; + let spacing_bottom = 0i32; + let spacing_space = 0i32; + let spacing_glyph = 0i32; + let baseline_offset = 0f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, variation_coordinates: CowArg::Borrowed(variation_coordinates), face_index: face_index, strength: strength, transform: transform, spacing_top: spacing_top, spacing_bottom: spacing_bottom, spacing_space: spacing_space, spacing_glyph: spacing_glyph, baseline_offset: baseline_offset, + } + } + #[inline] + pub fn face_index(self, face_index: i32) -> Self { + Self { + face_index: face_index, .. self + } + } + #[inline] + pub fn strength(self, strength: f32) -> Self { + Self { + strength: strength, .. self + } + } + #[inline] + pub fn transform(self, transform: Transform2D) -> Self { + Self { + transform: transform, .. self + } + } + #[inline] + pub fn spacing_top(self, spacing_top: i32) -> Self { + Self { + spacing_top: spacing_top, .. self + } + } + #[inline] + pub fn spacing_bottom(self, spacing_bottom: i32) -> Self { + Self { + spacing_bottom: spacing_bottom, .. self + } + } + #[inline] + pub fn spacing_space(self, spacing_space: i32) -> Self { + Self { + spacing_space: spacing_space, .. self + } + } + #[inline] + pub fn spacing_glyph(self, spacing_glyph: i32) -> Self { + Self { + spacing_glyph: spacing_glyph, .. self + } + } + #[inline] + pub fn baseline_offset(self, baseline_offset: f32) -> Self { + Self { + baseline_offset: baseline_offset, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, variation_coordinates, face_index, strength, transform, spacing_top, spacing_bottom, spacing_space, spacing_glyph, baseline_offset, + } + = self; + re_export::Font::find_variation_full(surround_object, variation_coordinates.cow_as_arg(), face_index, strength, transform, spacing_top, spacing_bottom, spacing_space, spacing_glyph, baseline_offset,) + } +} +#[doc = "Default-param extender for [`Font::get_height_ex`][super::Font::get_height_ex]."] +#[must_use] +pub struct ExGetHeight < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, font_size: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetHeight < 'a > { + fn new(surround_object: &'a re_export::Font,) -> Self { + let font_size = 16i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font_size: font_size, + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, font_size, + } + = self; + re_export::Font::get_height_full(surround_object, font_size,) + } +} +#[doc = "Default-param extender for [`Font::get_ascent_ex`][super::Font::get_ascent_ex]."] +#[must_use] +pub struct ExGetAscent < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, font_size: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetAscent < 'a > { + fn new(surround_object: &'a re_export::Font,) -> Self { + let font_size = 16i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font_size: font_size, + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, font_size, + } + = self; + re_export::Font::get_ascent_full(surround_object, font_size,) + } +} +#[doc = "Default-param extender for [`Font::get_descent_ex`][super::Font::get_descent_ex]."] +#[must_use] +pub struct ExGetDescent < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, font_size: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetDescent < 'a > { + fn new(surround_object: &'a re_export::Font,) -> Self { + let font_size = 16i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font_size: font_size, + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, font_size, + } + = self; + re_export::Font::get_descent_full(surround_object, font_size,) + } +} +#[doc = "Default-param extender for [`Font::get_underline_position_ex`][super::Font::get_underline_position_ex]."] +#[must_use] +pub struct ExGetUnderlinePosition < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, font_size: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetUnderlinePosition < 'a > { + fn new(surround_object: &'a re_export::Font,) -> Self { + let font_size = 16i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font_size: font_size, + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, font_size, + } + = self; + re_export::Font::get_underline_position_full(surround_object, font_size,) + } +} +#[doc = "Default-param extender for [`Font::get_underline_thickness_ex`][super::Font::get_underline_thickness_ex]."] +#[must_use] +pub struct ExGetUnderlineThickness < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, font_size: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetUnderlineThickness < 'a > { + fn new(surround_object: &'a re_export::Font,) -> Self { + let font_size = 16i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font_size: font_size, + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, font_size, + } + = self; + re_export::Font::get_underline_thickness_full(surround_object, font_size,) + } +} +#[doc = "Default-param extender for [`Font::get_string_size_ex`][super::Font::get_string_size_ex]."] +#[must_use] +pub struct ExGetStringSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, text: CowArg < 'a, GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetStringSize < 'a > { + fn new(surround_object: &'a re_export::Font, text: impl AsArg < GString > + 'a,) -> Self { + let alignment = crate::obj::EngineEnum::from_ord(0); + let width = - 1f32; + let font_size = 16i32; + let justification_flags = crate::obj::EngineBitfield::from_ord(3); + let direction = crate::obj::EngineEnum::from_ord(0); + let orientation = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, text: text.into_arg(), alignment: alignment, width: width, font_size: font_size, justification_flags: justification_flags, direction: direction, orientation: orientation, + } + } + #[inline] + pub fn alignment(self, alignment: crate::global::HorizontalAlignment) -> Self { + Self { + alignment: alignment, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn justification_flags(self, justification_flags: crate::classes::text_server::JustificationFlag) -> Self { + Self { + justification_flags: justification_flags, .. self + } + } + #[inline] + pub fn direction(self, direction: crate::classes::text_server::Direction) -> Self { + Self { + direction: direction, .. self + } + } + #[inline] + pub fn orientation(self, orientation: crate::classes::text_server::Orientation) -> Self { + Self { + orientation: orientation, .. self + } + } + #[inline] + pub fn done(self) -> Vector2 { + let Self { + _phantom, surround_object, text, alignment, width, font_size, justification_flags, direction, orientation, + } + = self; + re_export::Font::get_string_size_full(surround_object, text, alignment, width, font_size, justification_flags, direction, orientation,) + } +} +#[doc = "Default-param extender for [`Font::get_multiline_string_size_ex`][super::Font::get_multiline_string_size_ex]."] +#[must_use] +pub struct ExGetMultilineStringSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, text: CowArg < 'a, GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, max_lines: i32, brk_flags: crate::classes::text_server::LineBreakFlag, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetMultilineStringSize < 'a > { + fn new(surround_object: &'a re_export::Font, text: impl AsArg < GString > + 'a,) -> Self { + let alignment = crate::obj::EngineEnum::from_ord(0); + let width = - 1f32; + let font_size = 16i32; + let max_lines = - 1i32; + let brk_flags = crate::obj::EngineBitfield::from_ord(3); + let justification_flags = crate::obj::EngineBitfield::from_ord(3); + let direction = crate::obj::EngineEnum::from_ord(0); + let orientation = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, text: text.into_arg(), alignment: alignment, width: width, font_size: font_size, max_lines: max_lines, brk_flags: brk_flags, justification_flags: justification_flags, direction: direction, orientation: orientation, + } + } + #[inline] + pub fn alignment(self, alignment: crate::global::HorizontalAlignment) -> Self { + Self { + alignment: alignment, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn max_lines(self, max_lines: i32) -> Self { + Self { + max_lines: max_lines, .. self + } + } + #[inline] + pub fn brk_flags(self, brk_flags: crate::classes::text_server::LineBreakFlag) -> Self { + Self { + brk_flags: brk_flags, .. self + } + } + #[inline] + pub fn justification_flags(self, justification_flags: crate::classes::text_server::JustificationFlag) -> Self { + Self { + justification_flags: justification_flags, .. self + } + } + #[inline] + pub fn direction(self, direction: crate::classes::text_server::Direction) -> Self { + Self { + direction: direction, .. self + } + } + #[inline] + pub fn orientation(self, orientation: crate::classes::text_server::Orientation) -> Self { + Self { + orientation: orientation, .. self + } + } + #[inline] + pub fn done(self) -> Vector2 { + let Self { + _phantom, surround_object, text, alignment, width, font_size, max_lines, brk_flags, justification_flags, direction, orientation, + } + = self; + re_export::Font::get_multiline_string_size_full(surround_object, text, alignment, width, font_size, max_lines, brk_flags, justification_flags, direction, orientation,) + } +} +#[doc = "Default-param extender for [`Font::draw_string_ex`][super::Font::draw_string_ex]."] +#[must_use] +pub struct ExDrawString < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, text: CowArg < 'a, GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, modulate: Color, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawString < 'a > { + fn new(surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString > + 'a,) -> Self { + let alignment = crate::obj::EngineEnum::from_ord(0); + let width = - 1f32; + let font_size = 16i32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let justification_flags = crate::obj::EngineBitfield::from_ord(3); + let direction = crate::obj::EngineEnum::from_ord(0); + let orientation = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, canvas_item: canvas_item, pos: pos, text: text.into_arg(), alignment: alignment, width: width, font_size: font_size, modulate: modulate, justification_flags: justification_flags, direction: direction, orientation: orientation, + } + } + #[inline] + pub fn alignment(self, alignment: crate::global::HorizontalAlignment) -> Self { + Self { + alignment: alignment, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn justification_flags(self, justification_flags: crate::classes::text_server::JustificationFlag) -> Self { + Self { + justification_flags: justification_flags, .. self + } + } + #[inline] + pub fn direction(self, direction: crate::classes::text_server::Direction) -> Self { + Self { + direction: direction, .. self + } + } + #[inline] + pub fn orientation(self, orientation: crate::classes::text_server::Orientation) -> Self { + Self { + orientation: orientation, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, canvas_item, pos, text, alignment, width, font_size, modulate, justification_flags, direction, orientation, + } + = self; + re_export::Font::draw_string_full(surround_object, canvas_item, pos, text, alignment, width, font_size, modulate, justification_flags, direction, orientation,) + } +} +#[doc = "Default-param extender for [`Font::draw_multiline_string_ex`][super::Font::draw_multiline_string_ex]."] +#[must_use] +pub struct ExDrawMultilineString < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, text: CowArg < 'a, GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, max_lines: i32, modulate: Color, brk_flags: crate::classes::text_server::LineBreakFlag, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawMultilineString < 'a > { + fn new(surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString > + 'a,) -> Self { + let alignment = crate::obj::EngineEnum::from_ord(0); + let width = - 1f32; + let font_size = 16i32; + let max_lines = - 1i32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let brk_flags = crate::obj::EngineBitfield::from_ord(3); + let justification_flags = crate::obj::EngineBitfield::from_ord(3); + let direction = crate::obj::EngineEnum::from_ord(0); + let orientation = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, canvas_item: canvas_item, pos: pos, text: text.into_arg(), alignment: alignment, width: width, font_size: font_size, max_lines: max_lines, modulate: modulate, brk_flags: brk_flags, justification_flags: justification_flags, direction: direction, orientation: orientation, + } + } + #[inline] + pub fn alignment(self, alignment: crate::global::HorizontalAlignment) -> Self { + Self { + alignment: alignment, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn max_lines(self, max_lines: i32) -> Self { + Self { + max_lines: max_lines, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn brk_flags(self, brk_flags: crate::classes::text_server::LineBreakFlag) -> Self { + Self { + brk_flags: brk_flags, .. self + } + } + #[inline] + pub fn justification_flags(self, justification_flags: crate::classes::text_server::JustificationFlag) -> Self { + Self { + justification_flags: justification_flags, .. self + } + } + #[inline] + pub fn direction(self, direction: crate::classes::text_server::Direction) -> Self { + Self { + direction: direction, .. self + } + } + #[inline] + pub fn orientation(self, orientation: crate::classes::text_server::Orientation) -> Self { + Self { + orientation: orientation, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, canvas_item, pos, text, alignment, width, font_size, max_lines, modulate, brk_flags, justification_flags, direction, orientation, + } + = self; + re_export::Font::draw_multiline_string_full(surround_object, canvas_item, pos, text, alignment, width, font_size, max_lines, modulate, brk_flags, justification_flags, direction, orientation,) + } +} +#[doc = "Default-param extender for [`Font::draw_string_outline_ex`][super::Font::draw_string_outline_ex]."] +#[must_use] +pub struct ExDrawStringOutline < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, text: CowArg < 'a, GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, size: i32, modulate: Color, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawStringOutline < 'a > { + fn new(surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString > + 'a,) -> Self { + let alignment = crate::obj::EngineEnum::from_ord(0); + let width = - 1f32; + let font_size = 16i32; + let size = 1i32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let justification_flags = crate::obj::EngineBitfield::from_ord(3); + let direction = crate::obj::EngineEnum::from_ord(0); + let orientation = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, canvas_item: canvas_item, pos: pos, text: text.into_arg(), alignment: alignment, width: width, font_size: font_size, size: size, modulate: modulate, justification_flags: justification_flags, direction: direction, orientation: orientation, + } + } + #[inline] + pub fn alignment(self, alignment: crate::global::HorizontalAlignment) -> Self { + Self { + alignment: alignment, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn size(self, size: i32) -> Self { + Self { + size: size, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn justification_flags(self, justification_flags: crate::classes::text_server::JustificationFlag) -> Self { + Self { + justification_flags: justification_flags, .. self + } + } + #[inline] + pub fn direction(self, direction: crate::classes::text_server::Direction) -> Self { + Self { + direction: direction, .. self + } + } + #[inline] + pub fn orientation(self, orientation: crate::classes::text_server::Orientation) -> Self { + Self { + orientation: orientation, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, canvas_item, pos, text, alignment, width, font_size, size, modulate, justification_flags, direction, orientation, + } + = self; + re_export::Font::draw_string_outline_full(surround_object, canvas_item, pos, text, alignment, width, font_size, size, modulate, justification_flags, direction, orientation,) + } +} +#[doc = "Default-param extender for [`Font::draw_multiline_string_outline_ex`][super::Font::draw_multiline_string_outline_ex]."] +#[must_use] +pub struct ExDrawMultilineStringOutline < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, text: CowArg < 'a, GString >, alignment: crate::global::HorizontalAlignment, width: f32, font_size: i32, max_lines: i32, size: i32, modulate: Color, brk_flags: crate::classes::text_server::LineBreakFlag, justification_flags: crate::classes::text_server::JustificationFlag, direction: crate::classes::text_server::Direction, orientation: crate::classes::text_server::Orientation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawMultilineStringOutline < 'a > { + fn new(surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, text: impl AsArg < GString > + 'a,) -> Self { + let alignment = crate::obj::EngineEnum::from_ord(0); + let width = - 1f32; + let font_size = 16i32; + let max_lines = - 1i32; + let size = 1i32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let brk_flags = crate::obj::EngineBitfield::from_ord(3); + let justification_flags = crate::obj::EngineBitfield::from_ord(3); + let direction = crate::obj::EngineEnum::from_ord(0); + let orientation = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, canvas_item: canvas_item, pos: pos, text: text.into_arg(), alignment: alignment, width: width, font_size: font_size, max_lines: max_lines, size: size, modulate: modulate, brk_flags: brk_flags, justification_flags: justification_flags, direction: direction, orientation: orientation, + } + } + #[inline] + pub fn alignment(self, alignment: crate::global::HorizontalAlignment) -> Self { + Self { + alignment: alignment, .. self + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn max_lines(self, max_lines: i32) -> Self { + Self { + max_lines: max_lines, .. self + } + } + #[inline] + pub fn size(self, size: i32) -> Self { + Self { + size: size, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn brk_flags(self, brk_flags: crate::classes::text_server::LineBreakFlag) -> Self { + Self { + brk_flags: brk_flags, .. self + } + } + #[inline] + pub fn justification_flags(self, justification_flags: crate::classes::text_server::JustificationFlag) -> Self { + Self { + justification_flags: justification_flags, .. self + } + } + #[inline] + pub fn direction(self, direction: crate::classes::text_server::Direction) -> Self { + Self { + direction: direction, .. self + } + } + #[inline] + pub fn orientation(self, orientation: crate::classes::text_server::Orientation) -> Self { + Self { + orientation: orientation, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, canvas_item, pos, text, alignment, width, font_size, max_lines, size, modulate, brk_flags, justification_flags, direction, orientation, + } + = self; + re_export::Font::draw_multiline_string_outline_full(surround_object, canvas_item, pos, text, alignment, width, font_size, max_lines, size, modulate, brk_flags, justification_flags, direction, orientation,) + } +} +#[doc = "Default-param extender for [`Font::draw_char_ex`][super::Font::draw_char_ex]."] +#[must_use] +pub struct ExDrawChar < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, char: i64, font_size: i32, modulate: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawChar < 'a > { + fn new(surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, char: i64, font_size: i32,) -> Self { + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, canvas_item: canvas_item, pos: pos, char: char, font_size: font_size, modulate: modulate, + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, canvas_item, pos, char, font_size, modulate, + } + = self; + re_export::Font::draw_char_full(surround_object, canvas_item, pos, char, font_size, modulate,) + } +} +#[doc = "Default-param extender for [`Font::draw_char_outline_ex`][super::Font::draw_char_outline_ex]."] +#[must_use] +pub struct ExDrawCharOutline < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, char: i64, font_size: i32, size: i32, modulate: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawCharOutline < 'a > { + fn new(surround_object: &'a re_export::Font, canvas_item: Rid, pos: Vector2, char: i64, font_size: i32,) -> Self { + let size = - 1i32; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, canvas_item: canvas_item, pos: pos, char: char, font_size: font_size, size: size, modulate: modulate, + } + } + #[inline] + pub fn size(self, size: i32) -> Self { + Self { + size: size, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, canvas_item, pos, char, font_size, size, modulate, + } + = self; + re_export::Font::draw_char_outline_full(surround_object, canvas_item, pos, char, font_size, size, modulate,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/font_file.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/font_file.rs new file mode 100644 index 0000000..a6329d2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/font_file.rs @@ -0,0 +1,1024 @@ +#![doc = "Sidecar module for class [`FontFile`][crate::classes::FontFile].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `FontFile` enums](https://docs.godotengine.org/en/stable/classes/class_fontfile.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `FontFile.`\n\nInherits [`Font`][crate::classes::Font].\n\nRelated symbols:\n\n* [`IFontFile`][crate::classes::IFontFile]: virtual methods\n\n\nSee also [Godot docs for `FontFile`](https://docs.godotengine.org/en/stable/classes/class_fontfile.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`FontFile::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct FontFile { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`FontFile`][crate::classes::FontFile].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `FontFile` methods](https://docs.godotengine.org/en/stable/classes/class_fontfile.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFontFile: crate::obj::GodotClass < Base = FontFile > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl FontFile { + pub fn load_bitmap_font(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3300usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "load_bitmap_font", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load_dynamic_font(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3301usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "load_dynamic_font", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_data(&mut self, data: &PackedByteArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3302usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_data(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3303usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_font_name(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3304usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_font_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_font_style_name(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3305usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_font_style_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_font_style(&mut self, style: crate::classes::text_server::FontStyle,) { + type CallSig = ((), crate::classes::text_server::FontStyle); + let args = (style,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3306usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_font_style", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_font_weight(&mut self, weight: i32,) { + type CallSig = ((), i32); + let args = (weight,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3307usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_font_weight", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_font_stretch(&mut self, stretch: i32,) { + type CallSig = ((), i32); + let args = (stretch,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3308usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_font_stretch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_antialiasing(&mut self, antialiasing: crate::classes::text_server::FontAntialiasing,) { + type CallSig = ((), crate::classes::text_server::FontAntialiasing); + let args = (antialiasing,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3309usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_antialiasing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_antialiasing(&self,) -> crate::classes::text_server::FontAntialiasing { + type CallSig = (crate::classes::text_server::FontAntialiasing,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3310usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_antialiasing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disable_embedded_bitmaps(&mut self, disable_embedded_bitmaps: bool,) { + type CallSig = ((), bool); + let args = (disable_embedded_bitmaps,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3311usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_disable_embedded_bitmaps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_disable_embedded_bitmaps(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3312usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_disable_embedded_bitmaps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_generate_mipmaps(&mut self, generate_mipmaps: bool,) { + type CallSig = ((), bool); + let args = (generate_mipmaps,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3313usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_generate_mipmaps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_generate_mipmaps(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3314usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_generate_mipmaps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_multichannel_signed_distance_field(&mut self, msdf: bool,) { + type CallSig = ((), bool); + let args = (msdf,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3315usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_multichannel_signed_distance_field", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_multichannel_signed_distance_field(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3316usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "is_multichannel_signed_distance_field", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_msdf_pixel_range(&mut self, msdf_pixel_range: i32,) { + type CallSig = ((), i32); + let args = (msdf_pixel_range,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3317usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_msdf_pixel_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_msdf_pixel_range(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3318usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_msdf_pixel_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_msdf_size(&mut self, msdf_size: i32,) { + type CallSig = ((), i32); + let args = (msdf_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3319usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_msdf_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_msdf_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3320usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_msdf_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fixed_size(&mut self, fixed_size: i32,) { + type CallSig = ((), i32); + let args = (fixed_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3321usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_fixed_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fixed_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3322usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_fixed_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fixed_size_scale_mode(&mut self, fixed_size_scale_mode: crate::classes::text_server::FixedSizeScaleMode,) { + type CallSig = ((), crate::classes::text_server::FixedSizeScaleMode); + let args = (fixed_size_scale_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3323usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_fixed_size_scale_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fixed_size_scale_mode(&self,) -> crate::classes::text_server::FixedSizeScaleMode { + type CallSig = (crate::classes::text_server::FixedSizeScaleMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3324usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_fixed_size_scale_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_system_fallback(&mut self, allow_system_fallback: bool,) { + type CallSig = ((), bool); + let args = (allow_system_fallback,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3325usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_allow_system_fallback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_allow_system_fallback(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3326usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "is_allow_system_fallback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_force_autohinter(&mut self, force_autohinter: bool,) { + type CallSig = ((), bool); + let args = (force_autohinter,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3327usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_force_autohinter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_force_autohinter(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3328usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "is_force_autohinter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hinting(&mut self, hinting: crate::classes::text_server::Hinting,) { + type CallSig = ((), crate::classes::text_server::Hinting); + let args = (hinting,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3329usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_hinting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hinting(&self,) -> crate::classes::text_server::Hinting { + type CallSig = (crate::classes::text_server::Hinting,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3330usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_hinting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_subpixel_positioning(&mut self, subpixel_positioning: crate::classes::text_server::SubpixelPositioning,) { + type CallSig = ((), crate::classes::text_server::SubpixelPositioning); + let args = (subpixel_positioning,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3331usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_subpixel_positioning", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subpixel_positioning(&self,) -> crate::classes::text_server::SubpixelPositioning { + type CallSig = (crate::classes::text_server::SubpixelPositioning,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3332usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_subpixel_positioning", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_oversampling(&mut self, oversampling: f32,) { + type CallSig = ((), f32); + let args = (oversampling,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3333usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_oversampling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_oversampling(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3334usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_oversampling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cache_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3335usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_cache_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_cache(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3336usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "clear_cache", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_cache(&mut self, cache_index: i32,) { + type CallSig = ((), i32); + let args = (cache_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3337usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "remove_cache", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size_cache_list(&self, cache_index: i32,) -> Array < Vector2i > { + type CallSig = (Array < Vector2i >, i32); + let args = (cache_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3338usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_size_cache_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_size_cache(&mut self, cache_index: i32,) { + type CallSig = ((), i32); + let args = (cache_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3339usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "clear_size_cache", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_size_cache(&mut self, cache_index: i32, size: Vector2i,) { + type CallSig = ((), i32, Vector2i); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3340usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "remove_size_cache", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_variation_coordinates(&mut self, cache_index: i32, variation_coordinates: &Dictionary,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, Dictionary >); + let args = (cache_index, RefArg::new(variation_coordinates),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3341usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_variation_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_variation_coordinates(&self, cache_index: i32,) -> Dictionary { + type CallSig = (Dictionary, i32); + let args = (cache_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3342usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_variation_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_embolden(&mut self, cache_index: i32, strength: f32,) { + type CallSig = ((), i32, f32); + let args = (cache_index, strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3343usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_embolden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_embolden(&self, cache_index: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (cache_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3344usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_embolden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transform(&mut self, cache_index: i32, transform: Transform2D,) { + type CallSig = ((), i32, Transform2D); + let args = (cache_index, transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3345usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transform(&self, cache_index: i32,) -> Transform2D { + type CallSig = (Transform2D, i32); + let args = (cache_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3346usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_extra_spacing(&mut self, cache_index: i32, spacing: crate::classes::text_server::SpacingType, value: i64,) { + type CallSig = ((), i32, crate::classes::text_server::SpacingType, i64); + let args = (cache_index, spacing, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3347usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_extra_spacing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_extra_spacing(&self, cache_index: i32, spacing: crate::classes::text_server::SpacingType,) -> i64 { + type CallSig = (i64, i32, crate::classes::text_server::SpacingType); + let args = (cache_index, spacing,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3348usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_extra_spacing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_extra_baseline_offset(&mut self, cache_index: i32, baseline_offset: f32,) { + type CallSig = ((), i32, f32); + let args = (cache_index, baseline_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3349usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_extra_baseline_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_extra_baseline_offset(&self, cache_index: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (cache_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3350usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_extra_baseline_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_face_index(&mut self, cache_index: i32, face_index: i64,) { + type CallSig = ((), i32, i64); + let args = (cache_index, face_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3351usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_face_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_face_index(&self, cache_index: i32,) -> i64 { + type CallSig = (i64, i32); + let args = (cache_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3352usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_face_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cache_ascent(&mut self, cache_index: i32, size: i32, ascent: f32,) { + type CallSig = ((), i32, i32, f32); + let args = (cache_index, size, ascent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3353usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_cache_ascent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cache_ascent(&self, cache_index: i32, size: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3354usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_cache_ascent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cache_descent(&mut self, cache_index: i32, size: i32, descent: f32,) { + type CallSig = ((), i32, i32, f32); + let args = (cache_index, size, descent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3355usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_cache_descent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cache_descent(&self, cache_index: i32, size: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3356usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_cache_descent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cache_underline_position(&mut self, cache_index: i32, size: i32, underline_position: f32,) { + type CallSig = ((), i32, i32, f32); + let args = (cache_index, size, underline_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3357usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_cache_underline_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cache_underline_position(&self, cache_index: i32, size: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3358usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_cache_underline_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cache_underline_thickness(&mut self, cache_index: i32, size: i32, underline_thickness: f32,) { + type CallSig = ((), i32, i32, f32); + let args = (cache_index, size, underline_thickness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3359usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_cache_underline_thickness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cache_underline_thickness(&self, cache_index: i32, size: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3360usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_cache_underline_thickness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cache_scale(&mut self, cache_index: i32, size: i32, scale: f32,) { + type CallSig = ((), i32, i32, f32); + let args = (cache_index, size, scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3361usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_cache_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cache_scale(&self, cache_index: i32, size: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3362usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_cache_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_count(&self, cache_index: i32, size: Vector2i,) -> i32 { + type CallSig = (i32, i32, Vector2i); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3363usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_texture_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_textures(&mut self, cache_index: i32, size: Vector2i,) { + type CallSig = ((), i32, Vector2i); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3364usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "clear_textures", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_texture(&mut self, cache_index: i32, size: Vector2i, texture_index: i32,) { + type CallSig = ((), i32, Vector2i, i32); + let args = (cache_index, size, texture_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3365usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "remove_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_image(&mut self, cache_index: i32, size: Vector2i, texture_index: i32, image: impl AsObjectArg < crate::classes::Image >,) { + type CallSig = ((), i32, Vector2i, i32, ObjectArg < crate::classes::Image >); + let args = (cache_index, size, texture_index, image.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3366usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_texture_image", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_image(&self, cache_index: i32, size: Vector2i, texture_index: i32,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >, i32, Vector2i, i32); + let args = (cache_index, size, texture_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3367usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_texture_image", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_offsets(&mut self, cache_index: i32, size: Vector2i, texture_index: i32, offset: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), i32, Vector2i, i32, RefArg < 'a0, PackedInt32Array >); + let args = (cache_index, size, texture_index, RefArg::new(offset),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3368usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_texture_offsets", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_offsets(&self, cache_index: i32, size: Vector2i, texture_index: i32,) -> PackedInt32Array { + type CallSig = (PackedInt32Array, i32, Vector2i, i32); + let args = (cache_index, size, texture_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3369usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_texture_offsets", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glyph_list(&self, cache_index: i32, size: Vector2i,) -> PackedInt32Array { + type CallSig = (PackedInt32Array, i32, Vector2i); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3370usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_glyph_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_glyphs(&mut self, cache_index: i32, size: Vector2i,) { + type CallSig = ((), i32, Vector2i); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3371usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "clear_glyphs", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_glyph(&mut self, cache_index: i32, size: Vector2i, glyph: i32,) { + type CallSig = ((), i32, Vector2i, i32); + let args = (cache_index, size, glyph,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3372usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "remove_glyph", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glyph_advance(&mut self, cache_index: i32, size: i32, glyph: i32, advance: Vector2,) { + type CallSig = ((), i32, i32, i32, Vector2); + let args = (cache_index, size, glyph, advance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3373usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_glyph_advance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glyph_advance(&self, cache_index: i32, size: i32, glyph: i32,) -> Vector2 { + type CallSig = (Vector2, i32, i32, i32); + let args = (cache_index, size, glyph,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3374usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_glyph_advance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glyph_offset(&mut self, cache_index: i32, size: Vector2i, glyph: i32, offset: Vector2,) { + type CallSig = ((), i32, Vector2i, i32, Vector2); + let args = (cache_index, size, glyph, offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3375usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_glyph_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glyph_offset(&self, cache_index: i32, size: Vector2i, glyph: i32,) -> Vector2 { + type CallSig = (Vector2, i32, Vector2i, i32); + let args = (cache_index, size, glyph,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3376usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_glyph_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glyph_size(&mut self, cache_index: i32, size: Vector2i, glyph: i32, gl_size: Vector2,) { + type CallSig = ((), i32, Vector2i, i32, Vector2); + let args = (cache_index, size, glyph, gl_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3377usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_glyph_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glyph_size(&self, cache_index: i32, size: Vector2i, glyph: i32,) -> Vector2 { + type CallSig = (Vector2, i32, Vector2i, i32); + let args = (cache_index, size, glyph,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3378usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_glyph_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glyph_uv_rect(&mut self, cache_index: i32, size: Vector2i, glyph: i32, uv_rect: Rect2,) { + type CallSig = ((), i32, Vector2i, i32, Rect2); + let args = (cache_index, size, glyph, uv_rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3379usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_glyph_uv_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glyph_uv_rect(&self, cache_index: i32, size: Vector2i, glyph: i32,) -> Rect2 { + type CallSig = (Rect2, i32, Vector2i, i32); + let args = (cache_index, size, glyph,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3380usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_glyph_uv_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glyph_texture_idx(&mut self, cache_index: i32, size: Vector2i, glyph: i32, texture_idx: i32,) { + type CallSig = ((), i32, Vector2i, i32, i32); + let args = (cache_index, size, glyph, texture_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3381usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_glyph_texture_idx", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glyph_texture_idx(&self, cache_index: i32, size: Vector2i, glyph: i32,) -> i32 { + type CallSig = (i32, i32, Vector2i, i32); + let args = (cache_index, size, glyph,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3382usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_glyph_texture_idx", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_kerning_list(&self, cache_index: i32, size: i32,) -> Array < Vector2i > { + type CallSig = (Array < Vector2i >, i32, i32); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3383usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_kerning_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_kerning_map(&mut self, cache_index: i32, size: i32,) { + type CallSig = ((), i32, i32); + let args = (cache_index, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3384usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "clear_kerning_map", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_kerning(&mut self, cache_index: i32, size: i32, glyph_pair: Vector2i,) { + type CallSig = ((), i32, i32, Vector2i); + let args = (cache_index, size, glyph_pair,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3385usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "remove_kerning", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_kerning(&mut self, cache_index: i32, size: i32, glyph_pair: Vector2i, kerning: Vector2,) { + type CallSig = ((), i32, i32, Vector2i, Vector2); + let args = (cache_index, size, glyph_pair, kerning,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3386usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_kerning", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_kerning(&self, cache_index: i32, size: i32, glyph_pair: Vector2i,) -> Vector2 { + type CallSig = (Vector2, i32, i32, Vector2i); + let args = (cache_index, size, glyph_pair,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3387usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_kerning", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn render_range(&mut self, cache_index: i32, size: Vector2i, start: i64, end: i64,) { + type CallSig = ((), i32, Vector2i, i64, i64); + let args = (cache_index, size, start, end,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3388usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "render_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn render_glyph(&mut self, cache_index: i32, size: Vector2i, index: i32,) { + type CallSig = ((), i32, Vector2i, i32); + let args = (cache_index, size, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3389usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "render_glyph", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_language_support_override(&mut self, language: impl AsArg < GString >, supported: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, bool); + let args = (language.into_arg(), supported,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3390usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_language_support_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_language_support_override(&self, language: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3391usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_language_support_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_language_support_override(&mut self, language: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3392usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "remove_language_support_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_language_support_overrides(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3393usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_language_support_overrides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_script_support_override(&mut self, script: impl AsArg < GString >, supported: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, bool); + let args = (script.into_arg(), supported,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3394usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_script_support_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_script_support_override(&self, script: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (script.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3395usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_script_support_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_script_support_override(&mut self, script: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (script.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3396usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "remove_script_support_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_script_support_overrides(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3397usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_script_support_overrides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_opentype_feature_overrides(&mut self, overrides: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(overrides),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3398usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "set_opentype_feature_overrides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_opentype_feature_overrides(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3399usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_opentype_feature_overrides", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glyph_index(&self, size: i32, char: i64, variation_selector: i64,) -> i32 { + type CallSig = (i32, i32, i64, i64); + let args = (size, char, variation_selector,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3400usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_glyph_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_char_from_glyph_index(&self, size: i32, glyph_index: i32,) -> i64 { + type CallSig = (i64, i32, i32); + let args = (size, glyph_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3401usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontFile", "get_char_from_glyph_index", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for FontFile { + type Base = crate::classes::Font; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"FontFile")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for FontFile { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Font > for FontFile { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for FontFile { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for FontFile { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for FontFile { + + } + impl crate::obj::cap::GodotDefault for FontFile { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for FontFile { + type Target = crate::classes::Font; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for FontFile { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`FontFile`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_FontFile { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::FontFile > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Font > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/font_variation.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/font_variation.rs new file mode 100644 index 0000000..771e4df --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/font_variation.rs @@ -0,0 +1,320 @@ +#![doc = "Sidecar module for class [`FontVariation`][crate::classes::FontVariation].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `FontVariation` enums](https://docs.godotengine.org/en/stable/classes/class_fontvariation.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `FontVariation.`\n\nInherits [`Font`][crate::classes::Font].\n\nRelated symbols:\n\n* [`IFontVariation`][crate::classes::IFontVariation]: virtual methods\n\n\nSee also [Godot docs for `FontVariation`](https://docs.godotengine.org/en/stable/classes/class_fontvariation.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`FontVariation::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct FontVariation { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`FontVariation`][crate::classes::FontVariation].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `FontVariation` methods](https://docs.godotengine.org/en/stable/classes/class_fontvariation.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IFontVariation: crate::obj::GodotClass < Base = FontVariation > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl FontVariation { + pub fn set_base_font(&mut self, font: impl AsObjectArg < crate::classes::Font >,) { + type CallSig = ((), ObjectArg < crate::classes::Font >); + let args = (font.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3402usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "set_base_font", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_base_font(&self,) -> Option < Gd < crate::classes::Font > > { + type CallSig = (Option < Gd < crate::classes::Font > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3403usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "get_base_font", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_variation_opentype(&mut self, coords: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(coords),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3404usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "set_variation_opentype", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_variation_opentype(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3405usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "get_variation_opentype", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_variation_embolden(&mut self, strength: f32,) { + type CallSig = ((), f32); + let args = (strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3406usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "set_variation_embolden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_variation_embolden(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3407usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "get_variation_embolden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_variation_face_index(&mut self, face_index: i32,) { + type CallSig = ((), i32); + let args = (face_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3408usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "set_variation_face_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_variation_face_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3409usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "get_variation_face_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_variation_transform(&mut self, transform: Transform2D,) { + type CallSig = ((), Transform2D); + let args = (transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3410usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "set_variation_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_variation_transform(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3411usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "get_variation_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_opentype_features(&mut self, features: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(features),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3412usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "set_opentype_features", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_spacing(&mut self, spacing: crate::classes::text_server::SpacingType, value: i32,) { + type CallSig = ((), crate::classes::text_server::SpacingType, i32); + let args = (spacing, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3413usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "set_spacing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_baseline_offset(&mut self, baseline_offset: f32,) { + type CallSig = ((), f32); + let args = (baseline_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3414usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "set_baseline_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_baseline_offset(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3415usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "FontVariation", "get_baseline_offset", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for FontVariation { + type Base = crate::classes::Font; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"FontVariation")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for FontVariation { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Font > for FontVariation { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for FontVariation { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for FontVariation { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for FontVariation { + + } + impl crate::obj::cap::GodotDefault for FontVariation { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for FontVariation { + type Target = crate::classes::Font; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for FontVariation { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`FontVariation`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_FontVariation { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::FontVariation > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Font > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gdextension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gdextension.rs new file mode 100644 index 0000000..be769eb --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gdextension.rs @@ -0,0 +1,298 @@ +#![doc = "Sidecar module for class [`GDExtension`][crate::classes::GDExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GDExtension` enums](https://docs.godotengine.org/en/stable/classes/class_gdextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GDExtension.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`gdextension`][crate::classes::gdextension]: sidecar module with related enum/flag types\n* [`IGDExtension`][crate::classes::IGDExtension]: virtual methods\n\n\nSee also [Godot docs for `GDExtension`](https://docs.godotengine.org/en/stable/classes/class_gdextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GDExtension::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GDExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GDExtension`][crate::classes::GDExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GDExtension` methods](https://docs.godotengine.org/en/stable/classes/class_gdextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGDExtension: crate::obj::GodotClass < Base = GDExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GDExtension { + pub fn is_library_open(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3416usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GDExtension", "is_library_open", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_minimum_library_initialization_level(&self,) -> crate::classes::gdextension::InitializationLevel { + type CallSig = (crate::classes::gdextension::InitializationLevel,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3417usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GDExtension", "get_minimum_library_initialization_level", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GDExtension { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GDExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GDExtension { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GDExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GDExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GDExtension { + + } + impl crate::obj::cap::GodotDefault for GDExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GDExtension { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GDExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GDExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GDExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GDExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct InitializationLevel { + ord: i32 +} +impl InitializationLevel { + #[doc(alias = "INITIALIZATION_LEVEL_CORE")] + #[doc = "Godot enumerator name: `INITIALIZATION_LEVEL_CORE`"] + pub const CORE: InitializationLevel = InitializationLevel { + ord: 0i32 + }; + #[doc(alias = "INITIALIZATION_LEVEL_SERVERS")] + #[doc = "Godot enumerator name: `INITIALIZATION_LEVEL_SERVERS`"] + pub const SERVERS: InitializationLevel = InitializationLevel { + ord: 1i32 + }; + #[doc(alias = "INITIALIZATION_LEVEL_SCENE")] + #[doc = "Godot enumerator name: `INITIALIZATION_LEVEL_SCENE`"] + pub const SCENE: InitializationLevel = InitializationLevel { + ord: 2i32 + }; + #[doc(alias = "INITIALIZATION_LEVEL_EDITOR")] + #[doc = "Godot enumerator name: `INITIALIZATION_LEVEL_EDITOR`"] + pub const EDITOR: InitializationLevel = InitializationLevel { + ord: 3i32 + }; + +} +impl std::fmt::Debug for InitializationLevel { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("InitializationLevel") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for InitializationLevel { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CORE => "CORE", Self::SERVERS => "SERVERS", Self::SCENE => "SCENE", Self::EDITOR => "EDITOR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CORE => "INITIALIZATION_LEVEL_CORE", Self::SERVERS => "INITIALIZATION_LEVEL_SERVERS", Self::SCENE => "INITIALIZATION_LEVEL_SCENE", Self::EDITOR => "INITIALIZATION_LEVEL_EDITOR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for InitializationLevel { + type Via = i32; + +} +impl crate::meta::ToGodot for InitializationLevel { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for InitializationLevel { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gdextension_manager.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gdextension_manager.rs new file mode 100644 index 0000000..a492e97 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gdextension_manager.rs @@ -0,0 +1,322 @@ +#![doc = "Sidecar module for class [`GDExtensionManager`][crate::classes::GDExtensionManager].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GDExtensionManager` enums](https://docs.godotengine.org/en/stable/classes/class_gdextensionmanager.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GDExtensionManager.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`gdextension_manager`][crate::classes::gdextension_manager]: sidecar module with related enum/flag types\n* [`IGDExtensionManager`][crate::classes::IGDExtensionManager]: virtual methods\n\n\nSee also [Godot docs for `GDExtensionManager`](https://docs.godotengine.org/en/stable/classes/class_gdextensionmanager.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`GDExtensionManager::singleton()`][GDExtensionManager::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct GDExtensionManager { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GDExtensionManager`][crate::classes::GDExtensionManager].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GDExtensionManager` methods](https://docs.godotengine.org/en/stable/classes/class_gdextensionmanager.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGDExtensionManager: crate::obj::GodotClass < Base = GDExtensionManager > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl GDExtensionManager { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"GDExtensionManager"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn load_extension(&mut self, path: impl AsArg < GString >,) -> crate::classes::gdextension_manager::LoadStatus { + type CallSig < 'a0, > = (crate::classes::gdextension_manager::LoadStatus, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3418usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GDExtensionManager", "load_extension", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reload_extension(&mut self, path: impl AsArg < GString >,) -> crate::classes::gdextension_manager::LoadStatus { + type CallSig < 'a0, > = (crate::classes::gdextension_manager::LoadStatus, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3419usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GDExtensionManager", "reload_extension", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unload_extension(&mut self, path: impl AsArg < GString >,) -> crate::classes::gdextension_manager::LoadStatus { + type CallSig < 'a0, > = (crate::classes::gdextension_manager::LoadStatus, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3420usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GDExtensionManager", "unload_extension", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_extension_loaded(&self, path: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3421usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GDExtensionManager", "is_extension_loaded", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_loaded_extensions(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3422usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GDExtensionManager", "get_loaded_extensions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_extension(&mut self, path: impl AsArg < GString >,) -> Option < Gd < crate::classes::GDExtension > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::GDExtension > >, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3423usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GDExtensionManager", "get_extension", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GDExtensionManager { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GDExtensionManager")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GDExtensionManager { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GDExtensionManager { + + } + impl std::ops::Deref for GDExtensionManager { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GDExtensionManager { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GDExtensionManager`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GDExtensionManager { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GDExtensionManager > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LoadStatus { + ord: i32 +} +impl LoadStatus { + #[doc(alias = "LOAD_STATUS_OK")] + #[doc = "Godot enumerator name: `LOAD_STATUS_OK`"] + pub const OK: LoadStatus = LoadStatus { + ord: 0i32 + }; + #[doc(alias = "LOAD_STATUS_FAILED")] + #[doc = "Godot enumerator name: `LOAD_STATUS_FAILED`"] + pub const FAILED: LoadStatus = LoadStatus { + ord: 1i32 + }; + #[doc(alias = "LOAD_STATUS_ALREADY_LOADED")] + #[doc = "Godot enumerator name: `LOAD_STATUS_ALREADY_LOADED`"] + pub const ALREADY_LOADED: LoadStatus = LoadStatus { + ord: 2i32 + }; + #[doc(alias = "LOAD_STATUS_NOT_LOADED")] + #[doc = "Godot enumerator name: `LOAD_STATUS_NOT_LOADED`"] + pub const NOT_LOADED: LoadStatus = LoadStatus { + ord: 3i32 + }; + #[doc(alias = "LOAD_STATUS_NEEDS_RESTART")] + #[doc = "Godot enumerator name: `LOAD_STATUS_NEEDS_RESTART`"] + pub const NEEDS_RESTART: LoadStatus = LoadStatus { + ord: 4i32 + }; + +} +impl std::fmt::Debug for LoadStatus { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LoadStatus") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LoadStatus { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OK => "OK", Self::FAILED => "FAILED", Self::ALREADY_LOADED => "ALREADY_LOADED", Self::NOT_LOADED => "NOT_LOADED", Self::NEEDS_RESTART => "NEEDS_RESTART", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OK => "LOAD_STATUS_OK", Self::FAILED => "LOAD_STATUS_FAILED", Self::ALREADY_LOADED => "LOAD_STATUS_ALREADY_LOADED", Self::NOT_LOADED => "LOAD_STATUS_NOT_LOADED", Self::NEEDS_RESTART => "LOAD_STATUS_NEEDS_RESTART", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LoadStatus { + type Via = i32; + +} +impl crate::meta::ToGodot for LoadStatus { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LoadStatus { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gdscript.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gdscript.rs new file mode 100644 index 0000000..1f2f41a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gdscript.rs @@ -0,0 +1,225 @@ +#![doc = "Sidecar module for class [`GDScript`][crate::classes::GDScript].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GDScript` enums](https://docs.godotengine.org/en/stable/classes/class_gdscript.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GDScript.`\n\nInherits [`Script`][crate::classes::Script].\n\nRelated symbols:\n\n* [`IGDScript`][crate::classes::IGDScript]: virtual methods\n\n\nSee also [Godot docs for `GDScript`](https://docs.godotengine.org/en/stable/classes/class_gdscript.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GDScript::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GDScript { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GDScript`][crate::classes::GDScript].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GDScript` methods](https://docs.godotengine.org/en/stable/classes/class_gdscript.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGDScript: crate::obj::GodotClass < Base = GDScript > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GDScript { + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn instantiate(&mut self, varargs: &[Variant]) -> Variant { + Self::try_instantiate(self, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_instantiate(&mut self, varargs: &[Variant]) -> Result < Variant, crate::meta::error::CallError > { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3424usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "GDScript", "instantiate", self.object_ptr, self.__checked_id(), args, varargs) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GDScript { + type Base = crate::classes::Script; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GDScript")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GDScript { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Script > for GDScript { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GDScript { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GDScript { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GDScript { + + } + impl crate::obj::cap::GodotDefault for GDScript { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GDScript { + type Target = crate::classes::Script; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GDScript { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GDScript`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GDScript { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GDScript > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Script > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/generic6_dof_joint_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/generic6_dof_joint_3d.rs new file mode 100644 index 0000000..54556a9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/generic6_dof_joint_3d.rs @@ -0,0 +1,609 @@ +#![doc = "Sidecar module for class [`Generic6DofJoint3D`][crate::classes::Generic6DofJoint3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Generic6DOFJoint3D` enums](https://docs.godotengine.org/en/stable/classes/class_generic6dofjoint3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Generic6DOFJoint3D.`\n\nInherits [`Joint3D`][crate::classes::Joint3D].\n\nRelated symbols:\n\n* [`generic6_dof_joint_3d`][crate::classes::generic6_dof_joint_3d]: sidecar module with related enum/flag types\n* [`IGeneric6DofJoint3D`][crate::classes::IGeneric6DofJoint3D]: virtual methods\n\n\nSee also [Godot docs for `Generic6DOFJoint3D`](https://docs.godotengine.org/en/stable/classes/class_generic6dofjoint3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Generic6DofJoint3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Generic6DofJoint3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Generic6DofJoint3D`][crate::classes::Generic6DofJoint3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Generic6DOFJoint3D` methods](https://docs.godotengine.org/en/stable/classes/class_generic6dofjoint3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGeneric6DofJoint3D: crate::obj::GodotClass < Base = Generic6DofJoint3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Generic6DofJoint3D { + pub fn set_param_x(&mut self, param: crate::classes::generic6_dof_joint_3d::Param, value: f32,) { + type CallSig = ((), crate::classes::generic6_dof_joint_3d::Param, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3867usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "set_param_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_x(&self, param: crate::classes::generic6_dof_joint_3d::Param,) -> f32 { + type CallSig = (f32, crate::classes::generic6_dof_joint_3d::Param); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3868usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "get_param_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param_y(&mut self, param: crate::classes::generic6_dof_joint_3d::Param, value: f32,) { + type CallSig = ((), crate::classes::generic6_dof_joint_3d::Param, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3869usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "set_param_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_y(&self, param: crate::classes::generic6_dof_joint_3d::Param,) -> f32 { + type CallSig = (f32, crate::classes::generic6_dof_joint_3d::Param); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3870usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "get_param_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param_z(&mut self, param: crate::classes::generic6_dof_joint_3d::Param, value: f32,) { + type CallSig = ((), crate::classes::generic6_dof_joint_3d::Param, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3871usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "set_param_z", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_z(&self, param: crate::classes::generic6_dof_joint_3d::Param,) -> f32 { + type CallSig = (f32, crate::classes::generic6_dof_joint_3d::Param); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3872usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "get_param_z", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flag_x(&mut self, flag: crate::classes::generic6_dof_joint_3d::Flag, value: bool,) { + type CallSig = ((), crate::classes::generic6_dof_joint_3d::Flag, bool); + let args = (flag, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3873usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "set_flag_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_flag_x(&self, flag: crate::classes::generic6_dof_joint_3d::Flag,) -> bool { + type CallSig = (bool, crate::classes::generic6_dof_joint_3d::Flag); + let args = (flag,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3874usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "get_flag_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flag_y(&mut self, flag: crate::classes::generic6_dof_joint_3d::Flag, value: bool,) { + type CallSig = ((), crate::classes::generic6_dof_joint_3d::Flag, bool); + let args = (flag, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3875usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "set_flag_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_flag_y(&self, flag: crate::classes::generic6_dof_joint_3d::Flag,) -> bool { + type CallSig = (bool, crate::classes::generic6_dof_joint_3d::Flag); + let args = (flag,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3876usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "get_flag_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flag_z(&mut self, flag: crate::classes::generic6_dof_joint_3d::Flag, value: bool,) { + type CallSig = ((), crate::classes::generic6_dof_joint_3d::Flag, bool); + let args = (flag, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3877usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "set_flag_z", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_flag_z(&self, flag: crate::classes::generic6_dof_joint_3d::Flag,) -> bool { + type CallSig = (bool, crate::classes::generic6_dof_joint_3d::Flag); + let args = (flag,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3878usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Generic6DofJoint3D", "get_flag_z", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Generic6DofJoint3D { + type Base = crate::classes::Joint3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Generic6DOFJoint3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Generic6DofJoint3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Joint3D > for Generic6DofJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for Generic6DofJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Generic6DofJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Generic6DofJoint3D { + + } + impl crate::obj::cap::GodotDefault for Generic6DofJoint3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Generic6DofJoint3D { + type Target = crate::classes::Joint3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Generic6DofJoint3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Generic6DofJoint3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Generic6DofJoint3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Generic6DofJoint3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Joint3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Param { + ord: i32 +} +impl Param { + #[doc(alias = "PARAM_LINEAR_LOWER_LIMIT")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_LOWER_LIMIT`"] + pub const LINEAR_LOWER_LIMIT: Param = Param { + ord: 0i32 + }; + #[doc(alias = "PARAM_LINEAR_UPPER_LIMIT")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_UPPER_LIMIT`"] + pub const LINEAR_UPPER_LIMIT: Param = Param { + ord: 1i32 + }; + #[doc(alias = "PARAM_LINEAR_LIMIT_SOFTNESS")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_LIMIT_SOFTNESS`"] + pub const LINEAR_LIMIT_SOFTNESS: Param = Param { + ord: 2i32 + }; + #[doc(alias = "PARAM_LINEAR_RESTITUTION")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_RESTITUTION`"] + pub const LINEAR_RESTITUTION: Param = Param { + ord: 3i32 + }; + #[doc(alias = "PARAM_LINEAR_DAMPING")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_DAMPING`"] + pub const LINEAR_DAMPING: Param = Param { + ord: 4i32 + }; + #[doc(alias = "PARAM_LINEAR_MOTOR_TARGET_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_MOTOR_TARGET_VELOCITY`"] + pub const LINEAR_MOTOR_TARGET_VELOCITY: Param = Param { + ord: 5i32 + }; + #[doc(alias = "PARAM_LINEAR_MOTOR_FORCE_LIMIT")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_MOTOR_FORCE_LIMIT`"] + pub const LINEAR_MOTOR_FORCE_LIMIT: Param = Param { + ord: 6i32 + }; + #[doc(alias = "PARAM_LINEAR_SPRING_STIFFNESS")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_SPRING_STIFFNESS`"] + pub const LINEAR_SPRING_STIFFNESS: Param = Param { + ord: 7i32 + }; + #[doc(alias = "PARAM_LINEAR_SPRING_DAMPING")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_SPRING_DAMPING`"] + pub const LINEAR_SPRING_DAMPING: Param = Param { + ord: 8i32 + }; + #[doc(alias = "PARAM_LINEAR_SPRING_EQUILIBRIUM_POINT")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_SPRING_EQUILIBRIUM_POINT`"] + pub const LINEAR_SPRING_EQUILIBRIUM_POINT: Param = Param { + ord: 9i32 + }; + #[doc(alias = "PARAM_ANGULAR_LOWER_LIMIT")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_LOWER_LIMIT`"] + pub const ANGULAR_LOWER_LIMIT: Param = Param { + ord: 10i32 + }; + #[doc(alias = "PARAM_ANGULAR_UPPER_LIMIT")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_UPPER_LIMIT`"] + pub const ANGULAR_UPPER_LIMIT: Param = Param { + ord: 11i32 + }; + #[doc(alias = "PARAM_ANGULAR_LIMIT_SOFTNESS")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_LIMIT_SOFTNESS`"] + pub const ANGULAR_LIMIT_SOFTNESS: Param = Param { + ord: 12i32 + }; + #[doc(alias = "PARAM_ANGULAR_DAMPING")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_DAMPING`"] + pub const ANGULAR_DAMPING: Param = Param { + ord: 13i32 + }; + #[doc(alias = "PARAM_ANGULAR_RESTITUTION")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_RESTITUTION`"] + pub const ANGULAR_RESTITUTION: Param = Param { + ord: 14i32 + }; + #[doc(alias = "PARAM_ANGULAR_FORCE_LIMIT")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_FORCE_LIMIT`"] + pub const ANGULAR_FORCE_LIMIT: Param = Param { + ord: 15i32 + }; + #[doc(alias = "PARAM_ANGULAR_ERP")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_ERP`"] + pub const ANGULAR_ERP: Param = Param { + ord: 16i32 + }; + #[doc(alias = "PARAM_ANGULAR_MOTOR_TARGET_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_MOTOR_TARGET_VELOCITY`"] + pub const ANGULAR_MOTOR_TARGET_VELOCITY: Param = Param { + ord: 17i32 + }; + #[doc(alias = "PARAM_ANGULAR_MOTOR_FORCE_LIMIT")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_MOTOR_FORCE_LIMIT`"] + pub const ANGULAR_MOTOR_FORCE_LIMIT: Param = Param { + ord: 18i32 + }; + #[doc(alias = "PARAM_ANGULAR_SPRING_STIFFNESS")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_SPRING_STIFFNESS`"] + pub const ANGULAR_SPRING_STIFFNESS: Param = Param { + ord: 19i32 + }; + #[doc(alias = "PARAM_ANGULAR_SPRING_DAMPING")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_SPRING_DAMPING`"] + pub const ANGULAR_SPRING_DAMPING: Param = Param { + ord: 20i32 + }; + #[doc(alias = "PARAM_ANGULAR_SPRING_EQUILIBRIUM_POINT")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_SPRING_EQUILIBRIUM_POINT`"] + pub const ANGULAR_SPRING_EQUILIBRIUM_POINT: Param = Param { + ord: 21i32 + }; + #[doc(alias = "PARAM_MAX")] + #[doc = "Godot enumerator name: `PARAM_MAX`"] + pub const MAX: Param = Param { + ord: 22i32 + }; + +} +impl std::fmt::Debug for Param { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Param") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Param { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR_LOWER_LIMIT => "LINEAR_LOWER_LIMIT", Self::LINEAR_UPPER_LIMIT => "LINEAR_UPPER_LIMIT", Self::LINEAR_LIMIT_SOFTNESS => "LINEAR_LIMIT_SOFTNESS", Self::LINEAR_RESTITUTION => "LINEAR_RESTITUTION", Self::LINEAR_DAMPING => "LINEAR_DAMPING", Self::LINEAR_MOTOR_TARGET_VELOCITY => "LINEAR_MOTOR_TARGET_VELOCITY", Self::LINEAR_MOTOR_FORCE_LIMIT => "LINEAR_MOTOR_FORCE_LIMIT", Self::LINEAR_SPRING_STIFFNESS => "LINEAR_SPRING_STIFFNESS", Self::LINEAR_SPRING_DAMPING => "LINEAR_SPRING_DAMPING", Self::LINEAR_SPRING_EQUILIBRIUM_POINT => "LINEAR_SPRING_EQUILIBRIUM_POINT", Self::ANGULAR_LOWER_LIMIT => "ANGULAR_LOWER_LIMIT", Self::ANGULAR_UPPER_LIMIT => "ANGULAR_UPPER_LIMIT", Self::ANGULAR_LIMIT_SOFTNESS => "ANGULAR_LIMIT_SOFTNESS", Self::ANGULAR_DAMPING => "ANGULAR_DAMPING", Self::ANGULAR_RESTITUTION => "ANGULAR_RESTITUTION", Self::ANGULAR_FORCE_LIMIT => "ANGULAR_FORCE_LIMIT", Self::ANGULAR_ERP => "ANGULAR_ERP", Self::ANGULAR_MOTOR_TARGET_VELOCITY => "ANGULAR_MOTOR_TARGET_VELOCITY", Self::ANGULAR_MOTOR_FORCE_LIMIT => "ANGULAR_MOTOR_FORCE_LIMIT", Self::ANGULAR_SPRING_STIFFNESS => "ANGULAR_SPRING_STIFFNESS", Self::ANGULAR_SPRING_DAMPING => "ANGULAR_SPRING_DAMPING", Self::ANGULAR_SPRING_EQUILIBRIUM_POINT => "ANGULAR_SPRING_EQUILIBRIUM_POINT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR_LOWER_LIMIT => "PARAM_LINEAR_LOWER_LIMIT", Self::LINEAR_UPPER_LIMIT => "PARAM_LINEAR_UPPER_LIMIT", Self::LINEAR_LIMIT_SOFTNESS => "PARAM_LINEAR_LIMIT_SOFTNESS", Self::LINEAR_RESTITUTION => "PARAM_LINEAR_RESTITUTION", Self::LINEAR_DAMPING => "PARAM_LINEAR_DAMPING", Self::LINEAR_MOTOR_TARGET_VELOCITY => "PARAM_LINEAR_MOTOR_TARGET_VELOCITY", Self::LINEAR_MOTOR_FORCE_LIMIT => "PARAM_LINEAR_MOTOR_FORCE_LIMIT", Self::LINEAR_SPRING_STIFFNESS => "PARAM_LINEAR_SPRING_STIFFNESS", Self::LINEAR_SPRING_DAMPING => "PARAM_LINEAR_SPRING_DAMPING", Self::LINEAR_SPRING_EQUILIBRIUM_POINT => "PARAM_LINEAR_SPRING_EQUILIBRIUM_POINT", Self::ANGULAR_LOWER_LIMIT => "PARAM_ANGULAR_LOWER_LIMIT", Self::ANGULAR_UPPER_LIMIT => "PARAM_ANGULAR_UPPER_LIMIT", Self::ANGULAR_LIMIT_SOFTNESS => "PARAM_ANGULAR_LIMIT_SOFTNESS", Self::ANGULAR_DAMPING => "PARAM_ANGULAR_DAMPING", Self::ANGULAR_RESTITUTION => "PARAM_ANGULAR_RESTITUTION", Self::ANGULAR_FORCE_LIMIT => "PARAM_ANGULAR_FORCE_LIMIT", Self::ANGULAR_ERP => "PARAM_ANGULAR_ERP", Self::ANGULAR_MOTOR_TARGET_VELOCITY => "PARAM_ANGULAR_MOTOR_TARGET_VELOCITY", Self::ANGULAR_MOTOR_FORCE_LIMIT => "PARAM_ANGULAR_MOTOR_FORCE_LIMIT", Self::ANGULAR_SPRING_STIFFNESS => "PARAM_ANGULAR_SPRING_STIFFNESS", Self::ANGULAR_SPRING_DAMPING => "PARAM_ANGULAR_SPRING_DAMPING", Self::ANGULAR_SPRING_EQUILIBRIUM_POINT => "PARAM_ANGULAR_SPRING_EQUILIBRIUM_POINT", Self::MAX => "PARAM_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Param { + const ENUMERATOR_COUNT: usize = 22usize; + +} +impl crate::meta::GodotConvert for Param { + type Via = i32; + +} +impl crate::meta::ToGodot for Param { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Param { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Flag { + ord: i32 +} +impl Flag { + #[doc(alias = "FLAG_ENABLE_LINEAR_LIMIT")] + #[doc = "Godot enumerator name: `FLAG_ENABLE_LINEAR_LIMIT`"] + pub const ENABLE_LINEAR_LIMIT: Flag = Flag { + ord: 0i32 + }; + #[doc(alias = "FLAG_ENABLE_ANGULAR_LIMIT")] + #[doc = "Godot enumerator name: `FLAG_ENABLE_ANGULAR_LIMIT`"] + pub const ENABLE_ANGULAR_LIMIT: Flag = Flag { + ord: 1i32 + }; + #[doc(alias = "FLAG_ENABLE_LINEAR_SPRING")] + #[doc = "Godot enumerator name: `FLAG_ENABLE_LINEAR_SPRING`"] + pub const ENABLE_LINEAR_SPRING: Flag = Flag { + ord: 3i32 + }; + #[doc(alias = "FLAG_ENABLE_ANGULAR_SPRING")] + #[doc = "Godot enumerator name: `FLAG_ENABLE_ANGULAR_SPRING`"] + pub const ENABLE_ANGULAR_SPRING: Flag = Flag { + ord: 2i32 + }; + #[doc(alias = "FLAG_ENABLE_MOTOR")] + #[doc = "Godot enumerator name: `FLAG_ENABLE_MOTOR`"] + pub const ENABLE_MOTOR: Flag = Flag { + ord: 4i32 + }; + #[doc(alias = "FLAG_ENABLE_LINEAR_MOTOR")] + #[doc = "Godot enumerator name: `FLAG_ENABLE_LINEAR_MOTOR`"] + pub const ENABLE_LINEAR_MOTOR: Flag = Flag { + ord: 5i32 + }; + #[doc(alias = "FLAG_MAX")] + #[doc = "Godot enumerator name: `FLAG_MAX`"] + pub const MAX: Flag = Flag { + ord: 6i32 + }; + +} +impl std::fmt::Debug for Flag { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Flag") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Flag { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ENABLE_LINEAR_LIMIT => "ENABLE_LINEAR_LIMIT", Self::ENABLE_ANGULAR_LIMIT => "ENABLE_ANGULAR_LIMIT", Self::ENABLE_LINEAR_SPRING => "ENABLE_LINEAR_SPRING", Self::ENABLE_ANGULAR_SPRING => "ENABLE_ANGULAR_SPRING", Self::ENABLE_MOTOR => "ENABLE_MOTOR", Self::ENABLE_LINEAR_MOTOR => "ENABLE_LINEAR_MOTOR", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ENABLE_LINEAR_LIMIT => "FLAG_ENABLE_LINEAR_LIMIT", Self::ENABLE_ANGULAR_LIMIT => "FLAG_ENABLE_ANGULAR_LIMIT", Self::ENABLE_LINEAR_SPRING => "FLAG_ENABLE_LINEAR_SPRING", Self::ENABLE_ANGULAR_SPRING => "FLAG_ENABLE_ANGULAR_SPRING", Self::ENABLE_MOTOR => "FLAG_ENABLE_MOTOR", Self::ENABLE_LINEAR_MOTOR => "FLAG_ENABLE_LINEAR_MOTOR", Self::MAX => "FLAG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Flag { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for Flag { + type Via = i32; + +} +impl crate::meta::ToGodot for Flag { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Flag { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/geometry_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/geometry_2d.rs new file mode 100644 index 0000000..9e76731 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/geometry_2d.rs @@ -0,0 +1,694 @@ +#![doc = "Sidecar module for class [`Geometry2D`][crate::classes::Geometry2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Geometry2D` enums](https://docs.godotengine.org/en/stable/classes/class_geometry2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Geometry2D.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`geometry_2d`][crate::classes::geometry_2d]: sidecar module with related enum/flag types\n* [`IGeometry2D`][crate::classes::IGeometry2D]: virtual methods\n\n\nSee also [Godot docs for `Geometry2D`](https://docs.godotengine.org/en/stable/classes/class_geometry2d.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`Geometry2D::singleton()`][Geometry2D::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct Geometry2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Geometry2D`][crate::classes::Geometry2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Geometry2D` methods](https://docs.godotengine.org/en/stable/classes/class_geometry2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGeometry2D: crate::obj::GodotClass < Base = Geometry2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Geometry2D { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"Geometry2D"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn is_point_in_circle(&mut self, point: Vector2, circle_position: Vector2, circle_radius: f32,) -> bool { + type CallSig = (bool, Vector2, Vector2, f32); + let args = (point, circle_position, circle_radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3879usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "is_point_in_circle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn segment_intersects_circle(&mut self, segment_from: Vector2, segment_to: Vector2, circle_position: Vector2, circle_radius: f32,) -> f32 { + type CallSig = (f32, Vector2, Vector2, Vector2, f32); + let args = (segment_from, segment_to, circle_position, circle_radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3880usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "segment_intersects_circle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn segment_intersects_segment(&mut self, from_a: Vector2, to_a: Vector2, from_b: Vector2, to_b: Vector2,) -> Variant { + type CallSig = (Variant, Vector2, Vector2, Vector2, Vector2); + let args = (from_a, to_a, from_b, to_b,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3881usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "segment_intersects_segment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn line_intersects_line(&mut self, from_a: Vector2, dir_a: Vector2, from_b: Vector2, dir_b: Vector2,) -> Variant { + type CallSig = (Variant, Vector2, Vector2, Vector2, Vector2); + let args = (from_a, dir_a, from_b, dir_b,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3882usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "line_intersects_line", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_closest_points_between_segments(&mut self, p1: Vector2, q1: Vector2, p2: Vector2, q2: Vector2,) -> PackedVector2Array { + type CallSig = (PackedVector2Array, Vector2, Vector2, Vector2, Vector2); + let args = (p1, q1, p2, q2,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3883usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "get_closest_points_between_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_closest_point_to_segment(&mut self, point: Vector2, s1: Vector2, s2: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2, Vector2, Vector2); + let args = (point, s1, s2,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3884usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "get_closest_point_to_segment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_closest_point_to_segment_uncapped(&mut self, point: Vector2, s1: Vector2, s2: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2, Vector2, Vector2); + let args = (point, s1, s2,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3885usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "get_closest_point_to_segment_uncapped", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn point_is_inside_triangle(&self, point: Vector2, a: Vector2, b: Vector2, c: Vector2,) -> bool { + type CallSig = (bool, Vector2, Vector2, Vector2, Vector2); + let args = (point, a, b, c,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3886usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "point_is_inside_triangle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_polygon_clockwise(&mut self, polygon: &PackedVector2Array,) -> bool { + type CallSig < 'a0, > = (bool, RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3887usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "is_polygon_clockwise", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_point_in_polygon(&mut self, point: Vector2, polygon: &PackedVector2Array,) -> bool { + type CallSig < 'a0, > = (bool, Vector2, RefArg < 'a0, PackedVector2Array >); + let args = (point, RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3888usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "is_point_in_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn triangulate_polygon(&mut self, polygon: &PackedVector2Array,) -> PackedInt32Array { + type CallSig < 'a0, > = (PackedInt32Array, RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3889usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "triangulate_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn triangulate_delaunay(&mut self, points: &PackedVector2Array,) -> PackedInt32Array { + type CallSig < 'a0, > = (PackedInt32Array, RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(points),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3890usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "triangulate_delaunay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn convex_hull(&mut self, points: &PackedVector2Array,) -> PackedVector2Array { + type CallSig < 'a0, > = (PackedVector2Array, RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(points),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3891usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "convex_hull", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decompose_polygon_in_convex(&mut self, polygon: &PackedVector2Array,) -> Array < PackedVector2Array > { + type CallSig < 'a0, > = (Array < PackedVector2Array >, RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3892usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "decompose_polygon_in_convex", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn merge_polygons(&mut self, polygon_a: &PackedVector2Array, polygon_b: &PackedVector2Array,) -> Array < PackedVector2Array > { + type CallSig < 'a0, 'a1, > = (Array < PackedVector2Array >, RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedVector2Array >); + let args = (RefArg::new(polygon_a), RefArg::new(polygon_b),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3893usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "merge_polygons", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clip_polygons(&mut self, polygon_a: &PackedVector2Array, polygon_b: &PackedVector2Array,) -> Array < PackedVector2Array > { + type CallSig < 'a0, 'a1, > = (Array < PackedVector2Array >, RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedVector2Array >); + let args = (RefArg::new(polygon_a), RefArg::new(polygon_b),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3894usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "clip_polygons", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn intersect_polygons(&mut self, polygon_a: &PackedVector2Array, polygon_b: &PackedVector2Array,) -> Array < PackedVector2Array > { + type CallSig < 'a0, 'a1, > = (Array < PackedVector2Array >, RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedVector2Array >); + let args = (RefArg::new(polygon_a), RefArg::new(polygon_b),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3895usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "intersect_polygons", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn exclude_polygons(&mut self, polygon_a: &PackedVector2Array, polygon_b: &PackedVector2Array,) -> Array < PackedVector2Array > { + type CallSig < 'a0, 'a1, > = (Array < PackedVector2Array >, RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedVector2Array >); + let args = (RefArg::new(polygon_a), RefArg::new(polygon_b),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3896usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "exclude_polygons", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clip_polyline_with_polygon(&mut self, polyline: &PackedVector2Array, polygon: &PackedVector2Array,) -> Array < PackedVector2Array > { + type CallSig < 'a0, 'a1, > = (Array < PackedVector2Array >, RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedVector2Array >); + let args = (RefArg::new(polyline), RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3897usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "clip_polyline_with_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn intersect_polyline_with_polygon(&mut self, polyline: &PackedVector2Array, polygon: &PackedVector2Array,) -> Array < PackedVector2Array > { + type CallSig < 'a0, 'a1, > = (Array < PackedVector2Array >, RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedVector2Array >); + let args = (RefArg::new(polyline), RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3898usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "intersect_polyline_with_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn offset_polygon_full(&mut self, polygon: RefArg < PackedVector2Array >, delta: f32, join_type: crate::classes::geometry_2d::PolyJoinType,) -> Array < PackedVector2Array > { + type CallSig < 'a0, > = (Array < PackedVector2Array >, RefArg < 'a0, PackedVector2Array >, f32, crate::classes::geometry_2d::PolyJoinType); + let args = (polygon, delta, join_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3899usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "offset_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::offset_polygon_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn offset_polygon(&mut self, polygon: &PackedVector2Array, delta: f32,) -> Array < PackedVector2Array > { + self.offset_polygon_ex(polygon, delta,) . done() + } + #[inline] + pub fn offset_polygon_ex < 'a > (&'a mut self, polygon: &'a PackedVector2Array, delta: f32,) -> ExOffsetPolygon < 'a > { + ExOffsetPolygon::new(self, polygon, delta,) + } + pub(crate) fn offset_polyline_full(&mut self, polyline: RefArg < PackedVector2Array >, delta: f32, join_type: crate::classes::geometry_2d::PolyJoinType, end_type: crate::classes::geometry_2d::PolyEndType,) -> Array < PackedVector2Array > { + type CallSig < 'a0, > = (Array < PackedVector2Array >, RefArg < 'a0, PackedVector2Array >, f32, crate::classes::geometry_2d::PolyJoinType, crate::classes::geometry_2d::PolyEndType); + let args = (polyline, delta, join_type, end_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3900usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "offset_polyline", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::offset_polyline_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn offset_polyline(&mut self, polyline: &PackedVector2Array, delta: f32,) -> Array < PackedVector2Array > { + self.offset_polyline_ex(polyline, delta,) . done() + } + #[inline] + pub fn offset_polyline_ex < 'a > (&'a mut self, polyline: &'a PackedVector2Array, delta: f32,) -> ExOffsetPolyline < 'a > { + ExOffsetPolyline::new(self, polyline, delta,) + } + pub fn make_atlas(&mut self, sizes: &PackedVector2Array,) -> Dictionary { + type CallSig < 'a0, > = (Dictionary, RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(sizes),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3901usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry2D", "make_atlas", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Geometry2D { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Geometry2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Geometry2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Geometry2D { + + } + impl std::ops::Deref for Geometry2D { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Geometry2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Geometry2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Geometry2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Geometry2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Geometry2D::offset_polygon_ex`][super::Geometry2D::offset_polygon_ex]."] +#[must_use] +pub struct ExOffsetPolygon < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Geometry2D, polygon: CowArg < 'a, PackedVector2Array >, delta: f32, join_type: crate::classes::geometry_2d::PolyJoinType, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExOffsetPolygon < 'a > { + fn new(surround_object: &'a mut re_export::Geometry2D, polygon: &'a PackedVector2Array, delta: f32,) -> Self { + let join_type = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, polygon: CowArg::Borrowed(polygon), delta: delta, join_type: join_type, + } + } + #[inline] + pub fn join_type(self, join_type: crate::classes::geometry_2d::PolyJoinType) -> Self { + Self { + join_type: join_type, .. self + } + } + #[inline] + pub fn done(self) -> Array < PackedVector2Array > { + let Self { + _phantom, surround_object, polygon, delta, join_type, + } + = self; + re_export::Geometry2D::offset_polygon_full(surround_object, polygon.cow_as_arg(), delta, join_type,) + } +} +#[doc = "Default-param extender for [`Geometry2D::offset_polyline_ex`][super::Geometry2D::offset_polyline_ex]."] +#[must_use] +pub struct ExOffsetPolyline < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Geometry2D, polyline: CowArg < 'a, PackedVector2Array >, delta: f32, join_type: crate::classes::geometry_2d::PolyJoinType, end_type: crate::classes::geometry_2d::PolyEndType, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExOffsetPolyline < 'a > { + fn new(surround_object: &'a mut re_export::Geometry2D, polyline: &'a PackedVector2Array, delta: f32,) -> Self { + let join_type = crate::obj::EngineEnum::from_ord(0); + let end_type = crate::obj::EngineEnum::from_ord(3); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, polyline: CowArg::Borrowed(polyline), delta: delta, join_type: join_type, end_type: end_type, + } + } + #[inline] + pub fn join_type(self, join_type: crate::classes::geometry_2d::PolyJoinType) -> Self { + Self { + join_type: join_type, .. self + } + } + #[inline] + pub fn end_type(self, end_type: crate::classes::geometry_2d::PolyEndType) -> Self { + Self { + end_type: end_type, .. self + } + } + #[inline] + pub fn done(self) -> Array < PackedVector2Array > { + let Self { + _phantom, surround_object, polyline, delta, join_type, end_type, + } + = self; + re_export::Geometry2D::offset_polyline_full(surround_object, polyline.cow_as_arg(), delta, join_type, end_type,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PolyBooleanOperation { + ord: i32 +} +impl PolyBooleanOperation { + #[doc(alias = "OPERATION_UNION")] + #[doc = "Godot enumerator name: `OPERATION_UNION`"] + pub const UNION: PolyBooleanOperation = PolyBooleanOperation { + ord: 0i32 + }; + #[doc(alias = "OPERATION_DIFFERENCE")] + #[doc = "Godot enumerator name: `OPERATION_DIFFERENCE`"] + pub const DIFFERENCE: PolyBooleanOperation = PolyBooleanOperation { + ord: 1i32 + }; + #[doc(alias = "OPERATION_INTERSECTION")] + #[doc = "Godot enumerator name: `OPERATION_INTERSECTION`"] + pub const INTERSECTION: PolyBooleanOperation = PolyBooleanOperation { + ord: 2i32 + }; + #[doc(alias = "OPERATION_XOR")] + #[doc = "Godot enumerator name: `OPERATION_XOR`"] + pub const XOR: PolyBooleanOperation = PolyBooleanOperation { + ord: 3i32 + }; + +} +impl std::fmt::Debug for PolyBooleanOperation { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PolyBooleanOperation") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PolyBooleanOperation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNION => "UNION", Self::DIFFERENCE => "DIFFERENCE", Self::INTERSECTION => "INTERSECTION", Self::XOR => "XOR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNION => "OPERATION_UNION", Self::DIFFERENCE => "OPERATION_DIFFERENCE", Self::INTERSECTION => "OPERATION_INTERSECTION", Self::XOR => "OPERATION_XOR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PolyBooleanOperation { + type Via = i32; + +} +impl crate::meta::ToGodot for PolyBooleanOperation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PolyBooleanOperation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PolyJoinType { + ord: i32 +} +impl PolyJoinType { + #[doc(alias = "JOIN_SQUARE")] + #[doc = "Godot enumerator name: `JOIN_SQUARE`"] + pub const SQUARE: PolyJoinType = PolyJoinType { + ord: 0i32 + }; + #[doc(alias = "JOIN_ROUND")] + #[doc = "Godot enumerator name: `JOIN_ROUND`"] + pub const ROUND: PolyJoinType = PolyJoinType { + ord: 1i32 + }; + #[doc(alias = "JOIN_MITER")] + #[doc = "Godot enumerator name: `JOIN_MITER`"] + pub const MITER: PolyJoinType = PolyJoinType { + ord: 2i32 + }; + +} +impl std::fmt::Debug for PolyJoinType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PolyJoinType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PolyJoinType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SQUARE => "SQUARE", Self::ROUND => "ROUND", Self::MITER => "MITER", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SQUARE => "JOIN_SQUARE", Self::ROUND => "JOIN_ROUND", Self::MITER => "JOIN_MITER", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PolyJoinType { + type Via = i32; + +} +impl crate::meta::ToGodot for PolyJoinType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PolyJoinType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PolyEndType { + ord: i32 +} +impl PolyEndType { + #[doc(alias = "END_POLYGON")] + #[doc = "Godot enumerator name: `END_POLYGON`"] + pub const POLYGON: PolyEndType = PolyEndType { + ord: 0i32 + }; + #[doc(alias = "END_JOINED")] + #[doc = "Godot enumerator name: `END_JOINED`"] + pub const JOINED: PolyEndType = PolyEndType { + ord: 1i32 + }; + #[doc(alias = "END_BUTT")] + #[doc = "Godot enumerator name: `END_BUTT`"] + pub const BUTT: PolyEndType = PolyEndType { + ord: 2i32 + }; + #[doc(alias = "END_SQUARE")] + #[doc = "Godot enumerator name: `END_SQUARE`"] + pub const SQUARE: PolyEndType = PolyEndType { + ord: 3i32 + }; + #[doc(alias = "END_ROUND")] + #[doc = "Godot enumerator name: `END_ROUND`"] + pub const ROUND: PolyEndType = PolyEndType { + ord: 4i32 + }; + +} +impl std::fmt::Debug for PolyEndType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PolyEndType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PolyEndType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POLYGON => "POLYGON", Self::JOINED => "JOINED", Self::BUTT => "BUTT", Self::SQUARE => "SQUARE", Self::ROUND => "ROUND", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POLYGON => "END_POLYGON", Self::JOINED => "END_JOINED", Self::BUTT => "END_BUTT", Self::SQUARE => "END_SQUARE", Self::ROUND => "END_ROUND", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PolyEndType { + type Via = i32; + +} +impl crate::meta::ToGodot for PolyEndType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PolyEndType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/geometry_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/geometry_3d.rs new file mode 100644 index 0000000..0c9c2c5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/geometry_3d.rs @@ -0,0 +1,383 @@ +#![doc = "Sidecar module for class [`Geometry3D`][crate::classes::Geometry3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Geometry3D` enums](https://docs.godotengine.org/en/stable/classes/class_geometry3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Geometry3D.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`geometry_3d`][crate::classes::geometry_3d]: sidecar module with related enum/flag types\n* [`IGeometry3D`][crate::classes::IGeometry3D]: virtual methods\n\n\nSee also [Godot docs for `Geometry3D`](https://docs.godotengine.org/en/stable/classes/class_geometry3d.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`Geometry3D::singleton()`][Geometry3D::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct Geometry3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Geometry3D`][crate::classes::Geometry3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Geometry3D` methods](https://docs.godotengine.org/en/stable/classes/class_geometry3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGeometry3D: crate::obj::GodotClass < Base = Geometry3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Geometry3D { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"Geometry3D"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn compute_convex_mesh_points(&mut self, planes: &Array < Plane >,) -> PackedVector3Array { + type CallSig < 'a0, > = (PackedVector3Array, RefArg < 'a0, Array < Plane > >); + let args = (RefArg::new(planes),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3902usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "compute_convex_mesh_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn build_box_planes(&mut self, extents: Vector3,) -> Array < Plane > { + type CallSig = (Array < Plane >, Vector3); + let args = (extents,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3903usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "build_box_planes", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn build_cylinder_planes_full(&mut self, radius: f32, height: f32, sides: i32, axis: Vector3Axis,) -> Array < Plane > { + type CallSig = (Array < Plane >, f32, f32, i32, Vector3Axis); + let args = (radius, height, sides, axis,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3904usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "build_cylinder_planes", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::build_cylinder_planes_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn build_cylinder_planes(&mut self, radius: f32, height: f32, sides: i32,) -> Array < Plane > { + self.build_cylinder_planes_ex(radius, height, sides,) . done() + } + #[inline] + pub fn build_cylinder_planes_ex < 'a > (&'a mut self, radius: f32, height: f32, sides: i32,) -> ExBuildCylinderPlanes < 'a > { + ExBuildCylinderPlanes::new(self, radius, height, sides,) + } + pub(crate) fn build_capsule_planes_full(&mut self, radius: f32, height: f32, sides: i32, lats: i32, axis: Vector3Axis,) -> Array < Plane > { + type CallSig = (Array < Plane >, f32, f32, i32, i32, Vector3Axis); + let args = (radius, height, sides, lats, axis,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3905usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "build_capsule_planes", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::build_capsule_planes_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn build_capsule_planes(&mut self, radius: f32, height: f32, sides: i32, lats: i32,) -> Array < Plane > { + self.build_capsule_planes_ex(radius, height, sides, lats,) . done() + } + #[inline] + pub fn build_capsule_planes_ex < 'a > (&'a mut self, radius: f32, height: f32, sides: i32, lats: i32,) -> ExBuildCapsulePlanes < 'a > { + ExBuildCapsulePlanes::new(self, radius, height, sides, lats,) + } + pub fn get_closest_points_between_segments(&mut self, p1: Vector3, p2: Vector3, q1: Vector3, q2: Vector3,) -> PackedVector3Array { + type CallSig = (PackedVector3Array, Vector3, Vector3, Vector3, Vector3); + let args = (p1, p2, q1, q2,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3906usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "get_closest_points_between_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_closest_point_to_segment(&mut self, point: Vector3, s1: Vector3, s2: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3, Vector3, Vector3); + let args = (point, s1, s2,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3907usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "get_closest_point_to_segment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_closest_point_to_segment_uncapped(&mut self, point: Vector3, s1: Vector3, s2: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3, Vector3, Vector3); + let args = (point, s1, s2,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3908usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "get_closest_point_to_segment_uncapped", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_triangle_barycentric_coords(&mut self, point: Vector3, a: Vector3, b: Vector3, c: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3, Vector3, Vector3, Vector3); + let args = (point, a, b, c,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3909usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "get_triangle_barycentric_coords", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn ray_intersects_triangle(&mut self, from: Vector3, dir: Vector3, a: Vector3, b: Vector3, c: Vector3,) -> Variant { + type CallSig = (Variant, Vector3, Vector3, Vector3, Vector3, Vector3); + let args = (from, dir, a, b, c,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3910usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "ray_intersects_triangle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn segment_intersects_triangle(&mut self, from: Vector3, to: Vector3, a: Vector3, b: Vector3, c: Vector3,) -> Variant { + type CallSig = (Variant, Vector3, Vector3, Vector3, Vector3, Vector3); + let args = (from, to, a, b, c,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3911usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "segment_intersects_triangle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn segment_intersects_sphere(&mut self, from: Vector3, to: Vector3, sphere_position: Vector3, sphere_radius: f32,) -> PackedVector3Array { + type CallSig = (PackedVector3Array, Vector3, Vector3, Vector3, f32); + let args = (from, to, sphere_position, sphere_radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3912usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "segment_intersects_sphere", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn segment_intersects_cylinder(&mut self, from: Vector3, to: Vector3, height: f32, radius: f32,) -> PackedVector3Array { + type CallSig = (PackedVector3Array, Vector3, Vector3, f32, f32); + let args = (from, to, height, radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3913usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "segment_intersects_cylinder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn segment_intersects_convex(&mut self, from: Vector3, to: Vector3, planes: &Array < Plane >,) -> PackedVector3Array { + type CallSig < 'a0, > = (PackedVector3Array, Vector3, Vector3, RefArg < 'a0, Array < Plane > >); + let args = (from, to, RefArg::new(planes),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3914usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "segment_intersects_convex", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clip_polygon(&mut self, points: &PackedVector3Array, plane: Plane,) -> PackedVector3Array { + type CallSig < 'a0, > = (PackedVector3Array, RefArg < 'a0, PackedVector3Array >, Plane); + let args = (RefArg::new(points), plane,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3915usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "clip_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn tetrahedralize_delaunay(&mut self, points: &PackedVector3Array,) -> PackedInt32Array { + type CallSig < 'a0, > = (PackedInt32Array, RefArg < 'a0, PackedVector3Array >); + let args = (RefArg::new(points),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3916usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Geometry3D", "tetrahedralize_delaunay", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Geometry3D { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Geometry3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Geometry3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Geometry3D { + + } + impl std::ops::Deref for Geometry3D { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Geometry3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Geometry3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Geometry3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Geometry3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Geometry3D::build_cylinder_planes_ex`][super::Geometry3D::build_cylinder_planes_ex]."] +#[must_use] +pub struct ExBuildCylinderPlanes < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Geometry3D, radius: f32, height: f32, sides: i32, axis: Vector3Axis, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBuildCylinderPlanes < 'a > { + fn new(surround_object: &'a mut re_export::Geometry3D, radius: f32, height: f32, sides: i32,) -> Self { + let axis = crate::obj::EngineEnum::from_ord(2); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, radius: radius, height: height, sides: sides, axis: axis, + } + } + #[inline] + pub fn axis(self, axis: Vector3Axis) -> Self { + Self { + axis: axis, .. self + } + } + #[inline] + pub fn done(self) -> Array < Plane > { + let Self { + _phantom, surround_object, radius, height, sides, axis, + } + = self; + re_export::Geometry3D::build_cylinder_planes_full(surround_object, radius, height, sides, axis,) + } +} +#[doc = "Default-param extender for [`Geometry3D::build_capsule_planes_ex`][super::Geometry3D::build_capsule_planes_ex]."] +#[must_use] +pub struct ExBuildCapsulePlanes < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Geometry3D, radius: f32, height: f32, sides: i32, lats: i32, axis: Vector3Axis, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBuildCapsulePlanes < 'a > { + fn new(surround_object: &'a mut re_export::Geometry3D, radius: f32, height: f32, sides: i32, lats: i32,) -> Self { + let axis = crate::obj::EngineEnum::from_ord(2); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, radius: radius, height: height, sides: sides, lats: lats, axis: axis, + } + } + #[inline] + pub fn axis(self, axis: Vector3Axis) -> Self { + Self { + axis: axis, .. self + } + } + #[inline] + pub fn done(self) -> Array < Plane > { + let Self { + _phantom, surround_object, radius, height, sides, lats, axis, + } + = self; + re_export::Geometry3D::build_capsule_planes_full(surround_object, radius, height, sides, lats, axis,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/geometry_instance_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/geometry_instance_3d.rs new file mode 100644 index 0000000..ba2f862 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/geometry_instance_3d.rs @@ -0,0 +1,814 @@ +#![doc = "Sidecar module for class [`GeometryInstance3D`][crate::classes::GeometryInstance3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GeometryInstance3D` enums](https://docs.godotengine.org/en/stable/classes/class_geometryinstance3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GeometryInstance3D.`\n\nInherits [`VisualInstance3D`][crate::classes::VisualInstance3D].\n\nRelated symbols:\n\n* [`geometry_instance_3d`][crate::classes::geometry_instance_3d]: sidecar module with related enum/flag types\n* [`IGeometryInstance3D`][crate::classes::IGeometryInstance3D]: virtual methods\n\n\nSee also [Godot docs for `GeometryInstance3D`](https://docs.godotengine.org/en/stable/classes/class_geometryinstance3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GeometryInstance3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GeometryInstance3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GeometryInstance3D`][crate::classes::GeometryInstance3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GeometryInstance3D` methods](https://docs.godotengine.org/en/stable/classes/class_geometryinstance3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGeometryInstance3D: crate::obj::GodotClass < Base = GeometryInstance3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GeometryInstance3D { + pub fn set_material_override(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3917usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_material_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material_override(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3918usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_material_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_material_overlay(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3919usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_material_overlay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material_overlay(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3920usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_material_overlay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cast_shadows_setting(&mut self, shadow_casting_setting: crate::classes::geometry_instance_3d::ShadowCastingSetting,) { + type CallSig = ((), crate::classes::geometry_instance_3d::ShadowCastingSetting); + let args = (shadow_casting_setting,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3921usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_cast_shadows_setting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cast_shadows_setting(&self,) -> crate::classes::geometry_instance_3d::ShadowCastingSetting { + type CallSig = (crate::classes::geometry_instance_3d::ShadowCastingSetting,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3922usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_cast_shadows_setting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lod_bias(&mut self, bias: f32,) { + type CallSig = ((), f32); + let args = (bias,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3923usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_lod_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lod_bias(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3924usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_lod_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transparency(&mut self, transparency: f32,) { + type CallSig = ((), f32); + let args = (transparency,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3925usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_transparency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transparency(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3926usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_transparency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_range_end_margin(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3927usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_visibility_range_end_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_range_end_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3928usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_visibility_range_end_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_range_end(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3929usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_visibility_range_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_range_end(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3930usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_visibility_range_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_range_begin_margin(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3931usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_visibility_range_begin_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_range_begin_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3932usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_visibility_range_begin_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_range_begin(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3933usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_visibility_range_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_range_begin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3934usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_visibility_range_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_range_fade_mode(&mut self, mode: crate::classes::geometry_instance_3d::VisibilityRangeFadeMode,) { + type CallSig = ((), crate::classes::geometry_instance_3d::VisibilityRangeFadeMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3935usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_visibility_range_fade_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_range_fade_mode(&self,) -> crate::classes::geometry_instance_3d::VisibilityRangeFadeMode { + type CallSig = (crate::classes::geometry_instance_3d::VisibilityRangeFadeMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3936usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_visibility_range_fade_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_instance_shader_parameter(&mut self, name: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (name.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3937usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_instance_shader_parameter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_instance_shader_parameter(&self, name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3938usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_instance_shader_parameter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_extra_cull_margin(&mut self, margin: f32,) { + type CallSig = ((), f32); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3939usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_extra_cull_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_extra_cull_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3940usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_extra_cull_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lightmap_scale(&mut self, scale: crate::classes::geometry_instance_3d::LightmapScale,) { + type CallSig = ((), crate::classes::geometry_instance_3d::LightmapScale); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3941usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_lightmap_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lightmap_scale(&self,) -> crate::classes::geometry_instance_3d::LightmapScale { + type CallSig = (crate::classes::geometry_instance_3d::LightmapScale,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3942usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_lightmap_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gi_mode(&mut self, mode: crate::classes::geometry_instance_3d::GiMode,) { + type CallSig = ((), crate::classes::geometry_instance_3d::GiMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3943usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_gi_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gi_mode(&self,) -> crate::classes::geometry_instance_3d::GiMode { + type CallSig = (crate::classes::geometry_instance_3d::GiMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3944usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_gi_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ignore_occlusion_culling(&mut self, ignore_culling: bool,) { + type CallSig = ((), bool); + let args = (ignore_culling,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3945usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_ignore_occlusion_culling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_ignoring_occlusion_culling(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3946usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "is_ignoring_occlusion_culling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_custom_aabb(&mut self, aabb: Aabb,) { + type CallSig = ((), Aabb); + let args = (aabb,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3947usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "set_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_custom_aabb(&self,) -> Aabb { + type CallSig = (Aabb,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3948usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GeometryInstance3D", "get_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GeometryInstance3D { + type Base = crate::classes::VisualInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GeometryInstance3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GeometryInstance3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for GeometryInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GeometryInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GeometryInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GeometryInstance3D { + + } + impl crate::obj::cap::GodotDefault for GeometryInstance3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GeometryInstance3D { + type Target = crate::classes::VisualInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GeometryInstance3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GeometryInstance3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GeometryInstance3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShadowCastingSetting { + ord: i32 +} +impl ShadowCastingSetting { + #[doc(alias = "SHADOW_CASTING_SETTING_OFF")] + #[doc = "Godot enumerator name: `SHADOW_CASTING_SETTING_OFF`"] + pub const OFF: ShadowCastingSetting = ShadowCastingSetting { + ord: 0i32 + }; + #[doc(alias = "SHADOW_CASTING_SETTING_ON")] + #[doc = "Godot enumerator name: `SHADOW_CASTING_SETTING_ON`"] + pub const ON: ShadowCastingSetting = ShadowCastingSetting { + ord: 1i32 + }; + #[doc(alias = "SHADOW_CASTING_SETTING_DOUBLE_SIDED")] + #[doc = "Godot enumerator name: `SHADOW_CASTING_SETTING_DOUBLE_SIDED`"] + pub const DOUBLE_SIDED: ShadowCastingSetting = ShadowCastingSetting { + ord: 2i32 + }; + #[doc(alias = "SHADOW_CASTING_SETTING_SHADOWS_ONLY")] + #[doc = "Godot enumerator name: `SHADOW_CASTING_SETTING_SHADOWS_ONLY`"] + pub const SHADOWS_ONLY: ShadowCastingSetting = ShadowCastingSetting { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ShadowCastingSetting { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShadowCastingSetting") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShadowCastingSetting { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OFF => "OFF", Self::ON => "ON", Self::DOUBLE_SIDED => "DOUBLE_SIDED", Self::SHADOWS_ONLY => "SHADOWS_ONLY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OFF => "SHADOW_CASTING_SETTING_OFF", Self::ON => "SHADOW_CASTING_SETTING_ON", Self::DOUBLE_SIDED => "SHADOW_CASTING_SETTING_DOUBLE_SIDED", Self::SHADOWS_ONLY => "SHADOW_CASTING_SETTING_SHADOWS_ONLY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ShadowCastingSetting { + type Via = i32; + +} +impl crate::meta::ToGodot for ShadowCastingSetting { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShadowCastingSetting { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `GIMode`."] +pub struct GiMode { + ord: i32 +} +impl GiMode { + #[doc(alias = "GI_MODE_DISABLED")] + #[doc = "Godot enumerator name: `GI_MODE_DISABLED`"] + pub const DISABLED: GiMode = GiMode { + ord: 0i32 + }; + #[doc(alias = "GI_MODE_STATIC")] + #[doc = "Godot enumerator name: `GI_MODE_STATIC`"] + pub const STATIC: GiMode = GiMode { + ord: 1i32 + }; + #[doc(alias = "GI_MODE_DYNAMIC")] + #[doc = "Godot enumerator name: `GI_MODE_DYNAMIC`"] + pub const DYNAMIC: GiMode = GiMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for GiMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("GiMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for GiMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::STATIC => "STATIC", Self::DYNAMIC => "DYNAMIC", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "GI_MODE_DISABLED", Self::STATIC => "GI_MODE_STATIC", Self::DYNAMIC => "GI_MODE_DYNAMIC", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for GiMode { + type Via = i32; + +} +impl crate::meta::ToGodot for GiMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for GiMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LightmapScale { + ord: i32 +} +impl LightmapScale { + #[doc(alias = "LIGHTMAP_SCALE_1X")] + #[doc = "Godot enumerator name: `LIGHTMAP_SCALE_1X`"] + pub const SCALE_1X: LightmapScale = LightmapScale { + ord: 0i32 + }; + #[doc(alias = "LIGHTMAP_SCALE_2X")] + #[doc = "Godot enumerator name: `LIGHTMAP_SCALE_2X`"] + pub const SCALE_2X: LightmapScale = LightmapScale { + ord: 1i32 + }; + #[doc(alias = "LIGHTMAP_SCALE_4X")] + #[doc = "Godot enumerator name: `LIGHTMAP_SCALE_4X`"] + pub const SCALE_4X: LightmapScale = LightmapScale { + ord: 2i32 + }; + #[doc(alias = "LIGHTMAP_SCALE_8X")] + #[doc = "Godot enumerator name: `LIGHTMAP_SCALE_8X`"] + pub const SCALE_8X: LightmapScale = LightmapScale { + ord: 3i32 + }; + #[doc(alias = "LIGHTMAP_SCALE_MAX")] + #[doc = "Godot enumerator name: `LIGHTMAP_SCALE_MAX`"] + pub const MAX: LightmapScale = LightmapScale { + ord: 4i32 + }; + +} +impl std::fmt::Debug for LightmapScale { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LightmapScale") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LightmapScale { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCALE_1X => "SCALE_1X", Self::SCALE_2X => "SCALE_2X", Self::SCALE_4X => "SCALE_4X", Self::SCALE_8X => "SCALE_8X", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCALE_1X => "LIGHTMAP_SCALE_1X", Self::SCALE_2X => "LIGHTMAP_SCALE_2X", Self::SCALE_4X => "LIGHTMAP_SCALE_4X", Self::SCALE_8X => "LIGHTMAP_SCALE_8X", Self::MAX => "LIGHTMAP_SCALE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for LightmapScale { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for LightmapScale { + type Via = i32; + +} +impl crate::meta::ToGodot for LightmapScale { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LightmapScale { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct VisibilityRangeFadeMode { + ord: i32 +} +impl VisibilityRangeFadeMode { + #[doc(alias = "VISIBILITY_RANGE_FADE_DISABLED")] + #[doc = "Godot enumerator name: `VISIBILITY_RANGE_FADE_DISABLED`"] + pub const DISABLED: VisibilityRangeFadeMode = VisibilityRangeFadeMode { + ord: 0i32 + }; + #[doc(alias = "VISIBILITY_RANGE_FADE_SELF")] + #[doc = "Godot enumerator name: `VISIBILITY_RANGE_FADE_SELF`"] + pub const SELF: VisibilityRangeFadeMode = VisibilityRangeFadeMode { + ord: 1i32 + }; + #[doc(alias = "VISIBILITY_RANGE_FADE_DEPENDENCIES")] + #[doc = "Godot enumerator name: `VISIBILITY_RANGE_FADE_DEPENDENCIES`"] + pub const DEPENDENCIES: VisibilityRangeFadeMode = VisibilityRangeFadeMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for VisibilityRangeFadeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("VisibilityRangeFadeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for VisibilityRangeFadeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::SELF => "SELF", Self::DEPENDENCIES => "DEPENDENCIES", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "VISIBILITY_RANGE_FADE_DISABLED", Self::SELF => "VISIBILITY_RANGE_FADE_SELF", Self::DEPENDENCIES => "VISIBILITY_RANGE_FADE_DEPENDENCIES", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for VisibilityRangeFadeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for VisibilityRangeFadeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for VisibilityRangeFadeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_accessor.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_accessor.rs new file mode 100644 index 0000000..cbcba0e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_accessor.rs @@ -0,0 +1,538 @@ +#![doc = "Sidecar module for class [`GltfAccessor`][crate::classes::GltfAccessor].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFAccessor` enums](https://docs.godotengine.org/en/stable/classes/class_gltfaccessor.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFAccessor.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`gltf_accessor`][crate::classes::gltf_accessor]: sidecar module with related enum/flag types\n* [`IGltfAccessor`][crate::classes::IGltfAccessor]: virtual methods\n\n\nSee also [Godot docs for `GLTFAccessor`](https://docs.godotengine.org/en/stable/classes/class_gltfaccessor.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfAccessor::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfAccessor { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfAccessor`][crate::classes::GltfAccessor].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFAccessor` methods](https://docs.godotengine.org/en/stable/classes/class_gltfaccessor.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfAccessor: crate::obj::GodotClass < Base = GltfAccessor > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfAccessor { + pub fn get_buffer_view(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3425usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_buffer_view", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_buffer_view(&mut self, buffer_view: i32,) { + type CallSig = ((), i32); + let args = (buffer_view,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3426usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_buffer_view", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_byte_offset(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3427usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_byte_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_byte_offset(&mut self, byte_offset: i32,) { + type CallSig = ((), i32); + let args = (byte_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3428usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_byte_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_component_type(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3429usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_component_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_component_type(&mut self, component_type: i32,) { + type CallSig = ((), i32); + let args = (component_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3430usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_component_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_normalized(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3431usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_normalized", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_normalized(&mut self, normalized: bool,) { + type CallSig = ((), bool); + let args = (normalized,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3432usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_normalized", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_count(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3433usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3434usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_accessor_type(&mut self,) -> crate::classes::gltf_accessor::GltfAccessorType { + type CallSig = (crate::classes::gltf_accessor::GltfAccessorType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3435usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_accessor_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_accessor_type(&mut self, accessor_type: crate::classes::gltf_accessor::GltfAccessorType,) { + type CallSig = ((), crate::classes::gltf_accessor::GltfAccessorType); + let args = (accessor_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3436usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_accessor_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_type(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3437usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_type(&mut self, type_: i32,) { + type CallSig = ((), i32); + let args = (type_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3438usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_min(&mut self,) -> PackedFloat64Array { + type CallSig = (PackedFloat64Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3439usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_min(&mut self, min: &PackedFloat64Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedFloat64Array >); + let args = (RefArg::new(min),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3440usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max(&mut self,) -> PackedFloat64Array { + type CallSig = (PackedFloat64Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3441usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max(&mut self, max: &PackedFloat64Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedFloat64Array >); + let args = (RefArg::new(max),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3442usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sparse_count(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3443usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_sparse_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sparse_count(&mut self, sparse_count: i32,) { + type CallSig = ((), i32); + let args = (sparse_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3444usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_sparse_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sparse_indices_buffer_view(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3445usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_sparse_indices_buffer_view", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sparse_indices_buffer_view(&mut self, sparse_indices_buffer_view: i32,) { + type CallSig = ((), i32); + let args = (sparse_indices_buffer_view,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3446usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_sparse_indices_buffer_view", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sparse_indices_byte_offset(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3447usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_sparse_indices_byte_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sparse_indices_byte_offset(&mut self, sparse_indices_byte_offset: i32,) { + type CallSig = ((), i32); + let args = (sparse_indices_byte_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3448usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_sparse_indices_byte_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sparse_indices_component_type(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3449usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_sparse_indices_component_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sparse_indices_component_type(&mut self, sparse_indices_component_type: i32,) { + type CallSig = ((), i32); + let args = (sparse_indices_component_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3450usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_sparse_indices_component_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sparse_values_buffer_view(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3451usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_sparse_values_buffer_view", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sparse_values_buffer_view(&mut self, sparse_values_buffer_view: i32,) { + type CallSig = ((), i32); + let args = (sparse_values_buffer_view,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3452usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_sparse_values_buffer_view", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sparse_values_byte_offset(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3453usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "get_sparse_values_byte_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sparse_values_byte_offset(&mut self, sparse_values_byte_offset: i32,) { + type CallSig = ((), i32); + let args = (sparse_values_byte_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3454usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAccessor", "set_sparse_values_byte_offset", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfAccessor { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFAccessor")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfAccessor { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfAccessor { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfAccessor { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfAccessor { + + } + impl crate::obj::cap::GodotDefault for GltfAccessor { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfAccessor { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfAccessor { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfAccessor`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfAccessor { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfAccessor > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `GLTFAccessorType`."] +pub struct GltfAccessorType { + ord: i32 +} +impl GltfAccessorType { + #[doc(alias = "TYPE_SCALAR")] + #[doc = "Godot enumerator name: `TYPE_SCALAR`"] + pub const SCALAR: GltfAccessorType = GltfAccessorType { + ord: 0i32 + }; + #[doc(alias = "TYPE_VEC2")] + #[doc = "Godot enumerator name: `TYPE_VEC2`"] + pub const VEC2: GltfAccessorType = GltfAccessorType { + ord: 1i32 + }; + #[doc(alias = "TYPE_VEC3")] + #[doc = "Godot enumerator name: `TYPE_VEC3`"] + pub const VEC3: GltfAccessorType = GltfAccessorType { + ord: 2i32 + }; + #[doc(alias = "TYPE_VEC4")] + #[doc = "Godot enumerator name: `TYPE_VEC4`"] + pub const VEC4: GltfAccessorType = GltfAccessorType { + ord: 3i32 + }; + #[doc(alias = "TYPE_MAT2")] + #[doc = "Godot enumerator name: `TYPE_MAT2`"] + pub const MAT2: GltfAccessorType = GltfAccessorType { + ord: 4i32 + }; + #[doc(alias = "TYPE_MAT3")] + #[doc = "Godot enumerator name: `TYPE_MAT3`"] + pub const MAT3: GltfAccessorType = GltfAccessorType { + ord: 5i32 + }; + #[doc(alias = "TYPE_MAT4")] + #[doc = "Godot enumerator name: `TYPE_MAT4`"] + pub const MAT4: GltfAccessorType = GltfAccessorType { + ord: 6i32 + }; + +} +impl std::fmt::Debug for GltfAccessorType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("GltfAccessorType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for GltfAccessorType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCALAR => "SCALAR", Self::VEC2 => "VEC2", Self::VEC3 => "VEC3", Self::VEC4 => "VEC4", Self::MAT2 => "MAT2", Self::MAT3 => "MAT3", Self::MAT4 => "MAT4", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCALAR => "TYPE_SCALAR", Self::VEC2 => "TYPE_VEC2", Self::VEC3 => "TYPE_VEC3", Self::VEC4 => "TYPE_VEC4", Self::MAT2 => "TYPE_MAT2", Self::MAT3 => "TYPE_MAT3", Self::MAT4 => "TYPE_MAT4", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for GltfAccessorType { + type Via = i32; + +} +impl crate::meta::ToGodot for GltfAccessorType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for GltfAccessorType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_animation.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_animation.rs new file mode 100644 index 0000000..d3f0971 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_animation.rs @@ -0,0 +1,250 @@ +#![doc = "Sidecar module for class [`GltfAnimation`][crate::classes::GltfAnimation].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFAnimation` enums](https://docs.godotengine.org/en/stable/classes/class_gltfanimation.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFAnimation.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfAnimation`][crate::classes::IGltfAnimation]: virtual methods\n\n\nSee also [Godot docs for `GLTFAnimation`](https://docs.godotengine.org/en/stable/classes/class_gltfanimation.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfAnimation::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfAnimation { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfAnimation`][crate::classes::GltfAnimation].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFAnimation` methods](https://docs.godotengine.org/en/stable/classes/class_gltfanimation.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfAnimation: crate::obj::GodotClass < Base = GltfAnimation > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfAnimation { + pub fn get_original_name(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3455usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAnimation", "get_original_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_original_name(&mut self, original_name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (original_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3456usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAnimation", "set_original_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_loop(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3457usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAnimation", "get_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop(&mut self, loop_: bool,) { + type CallSig = ((), bool); + let args = (loop_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3458usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAnimation", "set_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_additional_data(&mut self, extension_name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (extension_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3459usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAnimation", "get_additional_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_additional_data(&mut self, extension_name: impl AsArg < StringName >, additional_data: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (extension_name.into_arg(), RefArg::new(additional_data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3460usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfAnimation", "set_additional_data", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfAnimation { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFAnimation")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfAnimation { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfAnimation { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfAnimation { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfAnimation { + + } + impl crate::obj::cap::GodotDefault for GltfAnimation { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfAnimation { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfAnimation { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfAnimation`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfAnimation { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfAnimation > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_buffer_view.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_buffer_view.rs new file mode 100644 index 0000000..b140027 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_buffer_view.rs @@ -0,0 +1,306 @@ +#![doc = "Sidecar module for class [`GltfBufferView`][crate::classes::GltfBufferView].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFBufferView` enums](https://docs.godotengine.org/en/stable/classes/class_gltfbufferview.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFBufferView.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfBufferView`][crate::classes::IGltfBufferView]: virtual methods\n\n\nSee also [Godot docs for `GLTFBufferView`](https://docs.godotengine.org/en/stable/classes/class_gltfbufferview.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfBufferView::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfBufferView { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfBufferView`][crate::classes::GltfBufferView].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFBufferView` methods](https://docs.godotengine.org/en/stable/classes/class_gltfbufferview.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfBufferView: crate::obj::GodotClass < Base = GltfBufferView > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfBufferView { + pub fn load_buffer_view_data(&self, state: impl AsObjectArg < crate::classes::GltfState >,) -> PackedByteArray { + type CallSig = (PackedByteArray, ObjectArg < crate::classes::GltfState >); + let args = (state.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3461usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "load_buffer_view_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_buffer(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3462usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "get_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_buffer(&mut self, buffer: i32,) { + type CallSig = ((), i32); + let args = (buffer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3463usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "set_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_byte_offset(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3464usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "get_byte_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_byte_offset(&mut self, byte_offset: i32,) { + type CallSig = ((), i32); + let args = (byte_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3465usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "set_byte_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_byte_length(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3466usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "get_byte_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_byte_length(&mut self, byte_length: i32,) { + type CallSig = ((), i32); + let args = (byte_length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3467usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "set_byte_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_byte_stride(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3468usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "get_byte_stride", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_byte_stride(&mut self, byte_stride: i32,) { + type CallSig = ((), i32); + let args = (byte_stride,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3469usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "set_byte_stride", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_indices(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3470usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "get_indices", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_indices(&mut self, indices: bool,) { + type CallSig = ((), bool); + let args = (indices,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3471usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "set_indices", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_attributes(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3472usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "get_vertex_attributes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertex_attributes(&mut self, is_attributes: bool,) { + type CallSig = ((), bool); + let args = (is_attributes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3473usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfBufferView", "set_vertex_attributes", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfBufferView { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFBufferView")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfBufferView { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfBufferView { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfBufferView { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfBufferView { + + } + impl crate::obj::cap::GodotDefault for GltfBufferView { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfBufferView { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfBufferView { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfBufferView`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfBufferView { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfBufferView > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_camera.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_camera.rs new file mode 100644 index 0000000..7400984 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_camera.rs @@ -0,0 +1,314 @@ +#![doc = "Sidecar module for class [`GltfCamera`][crate::classes::GltfCamera].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFCamera` enums](https://docs.godotengine.org/en/stable/classes/class_gltfcamera.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFCamera.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfCamera`][crate::classes::IGltfCamera]: virtual methods\n\n\nSee also [Godot docs for `GLTFCamera`](https://docs.godotengine.org/en/stable/classes/class_gltfcamera.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfCamera::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfCamera { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfCamera`][crate::classes::GltfCamera].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFCamera` methods](https://docs.godotengine.org/en/stable/classes/class_gltfcamera.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfCamera: crate::obj::GodotClass < Base = GltfCamera > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfCamera { + pub fn from_node(camera_node: impl AsObjectArg < crate::classes::Camera3D >,) -> Option < Gd < crate::classes::GltfCamera > > { + type CallSig = (Option < Gd < crate::classes::GltfCamera > >, ObjectArg < crate::classes::Camera3D >); + let args = (camera_node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3474usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "from_node", std::ptr::null_mut(), None, args,) + } + } + pub fn to_node(&self,) -> Option < Gd < crate::classes::Camera3D > > { + type CallSig = (Option < Gd < crate::classes::Camera3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3475usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "to_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn from_dictionary(dictionary: &Dictionary,) -> Option < Gd < crate::classes::GltfCamera > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::GltfCamera > >, RefArg < 'a0, Dictionary >); + let args = (RefArg::new(dictionary),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3476usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "from_dictionary", std::ptr::null_mut(), None, args,) + } + } + pub fn to_dictionary(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3477usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "to_dictionary", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_perspective(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3478usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "get_perspective", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_perspective(&mut self, perspective: bool,) { + type CallSig = ((), bool); + let args = (perspective,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3479usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "set_perspective", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fov(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3480usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "get_fov", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fov(&mut self, fov: f32,) { + type CallSig = ((), f32); + let args = (fov,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3481usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "set_fov", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size_mag(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3482usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "get_size_mag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_size_mag(&mut self, size_mag: f32,) { + type CallSig = ((), f32); + let args = (size_mag,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3483usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "set_size_mag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth_far(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3484usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "get_depth_far", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth_far(&mut self, zdepth_far: f32,) { + type CallSig = ((), f32); + let args = (zdepth_far,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3485usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "set_depth_far", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth_near(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3486usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "get_depth_near", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth_near(&mut self, zdepth_near: f32,) { + type CallSig = ((), f32); + let args = (zdepth_near,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3487usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfCamera", "set_depth_near", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfCamera { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFCamera")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfCamera { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfCamera { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfCamera { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfCamera { + + } + impl crate::obj::cap::GodotDefault for GltfCamera { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfCamera { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfCamera { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfCamera`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfCamera { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfCamera > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_document.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_document.rs new file mode 100644 index 0000000..476f5bc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_document.rs @@ -0,0 +1,595 @@ +#![doc = "Sidecar module for class [`GltfDocument`][crate::classes::GltfDocument].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFDocument` enums](https://docs.godotengine.org/en/stable/classes/class_gltfdocument.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFDocument.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`gltf_document`][crate::classes::gltf_document]: sidecar module with related enum/flag types\n* [`IGltfDocument`][crate::classes::IGltfDocument]: virtual methods\n\n\nSee also [Godot docs for `GLTFDocument`](https://docs.godotengine.org/en/stable/classes/class_gltfdocument.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfDocument::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfDocument { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfDocument`][crate::classes::GltfDocument].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFDocument` methods](https://docs.godotengine.org/en/stable/classes/class_gltfdocument.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfDocument: crate::obj::GodotClass < Base = GltfDocument > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfDocument { + pub fn set_image_format(&mut self, image_format: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (image_format.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3488usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "set_image_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_image_format(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3489usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "get_image_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lossy_quality(&mut self, lossy_quality: f32,) { + type CallSig = ((), f32); + let args = (lossy_quality,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3490usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "set_lossy_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lossy_quality(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3491usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "get_lossy_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_root_node_mode(&mut self, root_node_mode: crate::classes::gltf_document::RootNodeMode,) { + type CallSig = ((), crate::classes::gltf_document::RootNodeMode); + let args = (root_node_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3492usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "set_root_node_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_node_mode(&self,) -> crate::classes::gltf_document::RootNodeMode { + type CallSig = (crate::classes::gltf_document::RootNodeMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3493usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "get_root_node_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn append_from_file_full(&mut self, path: CowArg < GString >, state: ObjectArg < crate::classes::GltfState >, flags: u32, base_path: CowArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, ObjectArg < crate::classes::GltfState >, u32, CowArg < 'a1, GString >); + let args = (path, state, flags, base_path,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3494usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "append_from_file", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::append_from_file_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn append_from_file(&mut self, path: impl AsArg < GString >, state: impl AsObjectArg < crate::classes::GltfState >,) -> crate::global::Error { + self.append_from_file_ex(path, state,) . done() + } + #[inline] + pub fn append_from_file_ex < 'a > (&'a mut self, path: impl AsArg < GString > + 'a, state: impl AsObjectArg < crate::classes::GltfState >,) -> ExAppendFromFile < 'a > { + ExAppendFromFile::new(self, path, state,) + } + pub(crate) fn append_from_buffer_full(&mut self, bytes: RefArg < PackedByteArray >, base_path: CowArg < GString >, state: ObjectArg < crate::classes::GltfState >, flags: u32,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >, CowArg < 'a1, GString >, ObjectArg < crate::classes::GltfState >, u32); + let args = (bytes, base_path, state, flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3495usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "append_from_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::append_from_buffer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn append_from_buffer(&mut self, bytes: &PackedByteArray, base_path: impl AsArg < GString >, state: impl AsObjectArg < crate::classes::GltfState >,) -> crate::global::Error { + self.append_from_buffer_ex(bytes, base_path, state,) . done() + } + #[inline] + pub fn append_from_buffer_ex < 'a > (&'a mut self, bytes: &'a PackedByteArray, base_path: impl AsArg < GString > + 'a, state: impl AsObjectArg < crate::classes::GltfState >,) -> ExAppendFromBuffer < 'a > { + ExAppendFromBuffer::new(self, bytes, base_path, state,) + } + pub(crate) fn append_from_scene_full(&mut self, node: ObjectArg < crate::classes::Node >, state: ObjectArg < crate::classes::GltfState >, flags: u32,) -> crate::global::Error { + type CallSig = (crate::global::Error, ObjectArg < crate::classes::Node >, ObjectArg < crate::classes::GltfState >, u32); + let args = (node, state, flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3496usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "append_from_scene", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::append_from_scene_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn append_from_scene(&mut self, node: impl AsObjectArg < crate::classes::Node >, state: impl AsObjectArg < crate::classes::GltfState >,) -> crate::global::Error { + self.append_from_scene_ex(node, state,) . done() + } + #[inline] + pub fn append_from_scene_ex < 'a > (&'a mut self, node: impl AsObjectArg < crate::classes::Node >, state: impl AsObjectArg < crate::classes::GltfState >,) -> ExAppendFromScene < 'a > { + ExAppendFromScene::new(self, node, state,) + } + pub(crate) fn generate_scene_full(&mut self, state: ObjectArg < crate::classes::GltfState >, bake_fps: f32, trimming: bool, remove_immutable_tracks: bool,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >, ObjectArg < crate::classes::GltfState >, f32, bool, bool); + let args = (state, bake_fps, trimming, remove_immutable_tracks,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3497usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "generate_scene", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::generate_scene_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn generate_scene(&mut self, state: impl AsObjectArg < crate::classes::GltfState >,) -> Option < Gd < crate::classes::Node > > { + self.generate_scene_ex(state,) . done() + } + #[inline] + pub fn generate_scene_ex < 'a > (&'a mut self, state: impl AsObjectArg < crate::classes::GltfState >,) -> ExGenerateScene < 'a > { + ExGenerateScene::new(self, state,) + } + pub fn generate_buffer(&mut self, state: impl AsObjectArg < crate::classes::GltfState >,) -> PackedByteArray { + type CallSig = (PackedByteArray, ObjectArg < crate::classes::GltfState >); + let args = (state.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3498usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "generate_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn write_to_filesystem(&mut self, state: impl AsObjectArg < crate::classes::GltfState >, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, ObjectArg < crate::classes::GltfState >, CowArg < 'a0, GString >); + let args = (state.as_object_arg(), path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3499usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "write_to_filesystem", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn register_gltf_document_extension_full(extension: ObjectArg < crate::classes::GltfDocumentExtension >, first_priority: bool,) { + type CallSig = ((), ObjectArg < crate::classes::GltfDocumentExtension >, bool); + let args = (extension, first_priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3500usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "register_gltf_document_extension", std::ptr::null_mut(), None, args,) + } + } + #[doc = "To set the default parameters, use [`Self::register_gltf_document_extension_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn register_gltf_document_extension(extension: impl AsObjectArg < crate::classes::GltfDocumentExtension >,) { + Self::register_gltf_document_extension_ex(extension,) . done() + } + #[inline] + pub fn register_gltf_document_extension_ex < 'a > (extension: impl AsObjectArg < crate::classes::GltfDocumentExtension >,) -> ExRegisterGltfDocumentExtension < 'a > { + ExRegisterGltfDocumentExtension::new(extension,) + } + pub fn unregister_gltf_document_extension(extension: impl AsObjectArg < crate::classes::GltfDocumentExtension >,) { + type CallSig = ((), ObjectArg < crate::classes::GltfDocumentExtension >); + let args = (extension.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3501usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfDocument", "unregister_gltf_document_extension", std::ptr::null_mut(), None, args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfDocument { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFDocument")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfDocument { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfDocument { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfDocument { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfDocument { + + } + impl crate::obj::cap::GodotDefault for GltfDocument { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfDocument { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfDocument { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfDocument`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfDocument { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfDocument > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`GltfDocument::append_from_file_ex`][super::GltfDocument::append_from_file_ex]."] +#[must_use] +pub struct ExAppendFromFile < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::GltfDocument, path: CowArg < 'a, GString >, state: ObjectCow < crate::classes::GltfState >, flags: u32, base_path: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAppendFromFile < 'a > { + fn new(surround_object: &'a mut re_export::GltfDocument, path: impl AsArg < GString > + 'a, state: impl AsObjectArg < crate::classes::GltfState >,) -> Self { + let flags = 0u32; + let base_path = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), state: state.consume_arg(), flags: flags, base_path: CowArg::Owned(base_path), + } + } + #[inline] + pub fn flags(self, flags: u32) -> Self { + Self { + flags: flags, .. self + } + } + #[inline] + pub fn base_path(self, base_path: impl AsArg < GString > + 'a) -> Self { + Self { + base_path: base_path.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, path, state, flags, base_path, + } + = self; + re_export::GltfDocument::append_from_file_full(surround_object, path, state.cow_as_object_arg(), flags, base_path,) + } +} +#[doc = "Default-param extender for [`GltfDocument::append_from_buffer_ex`][super::GltfDocument::append_from_buffer_ex]."] +#[must_use] +pub struct ExAppendFromBuffer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::GltfDocument, bytes: CowArg < 'a, PackedByteArray >, base_path: CowArg < 'a, GString >, state: ObjectCow < crate::classes::GltfState >, flags: u32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAppendFromBuffer < 'a > { + fn new(surround_object: &'a mut re_export::GltfDocument, bytes: &'a PackedByteArray, base_path: impl AsArg < GString > + 'a, state: impl AsObjectArg < crate::classes::GltfState >,) -> Self { + let flags = 0u32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, bytes: CowArg::Borrowed(bytes), base_path: base_path.into_arg(), state: state.consume_arg(), flags: flags, + } + } + #[inline] + pub fn flags(self, flags: u32) -> Self { + Self { + flags: flags, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, bytes, base_path, state, flags, + } + = self; + re_export::GltfDocument::append_from_buffer_full(surround_object, bytes.cow_as_arg(), base_path, state.cow_as_object_arg(), flags,) + } +} +#[doc = "Default-param extender for [`GltfDocument::append_from_scene_ex`][super::GltfDocument::append_from_scene_ex]."] +#[must_use] +pub struct ExAppendFromScene < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::GltfDocument, node: ObjectCow < crate::classes::Node >, state: ObjectCow < crate::classes::GltfState >, flags: u32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAppendFromScene < 'a > { + fn new(surround_object: &'a mut re_export::GltfDocument, node: impl AsObjectArg < crate::classes::Node >, state: impl AsObjectArg < crate::classes::GltfState >,) -> Self { + let flags = 0u32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, node: node.consume_arg(), state: state.consume_arg(), flags: flags, + } + } + #[inline] + pub fn flags(self, flags: u32) -> Self { + Self { + flags: flags, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, node, state, flags, + } + = self; + re_export::GltfDocument::append_from_scene_full(surround_object, node.cow_as_object_arg(), state.cow_as_object_arg(), flags,) + } +} +#[doc = "Default-param extender for [`GltfDocument::generate_scene_ex`][super::GltfDocument::generate_scene_ex]."] +#[must_use] +pub struct ExGenerateScene < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::GltfDocument, state: ObjectCow < crate::classes::GltfState >, bake_fps: f32, trimming: bool, remove_immutable_tracks: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGenerateScene < 'a > { + fn new(surround_object: &'a mut re_export::GltfDocument, state: impl AsObjectArg < crate::classes::GltfState >,) -> Self { + let bake_fps = 30f32; + let trimming = false; + let remove_immutable_tracks = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, state: state.consume_arg(), bake_fps: bake_fps, trimming: trimming, remove_immutable_tracks: remove_immutable_tracks, + } + } + #[inline] + pub fn bake_fps(self, bake_fps: f32) -> Self { + Self { + bake_fps: bake_fps, .. self + } + } + #[inline] + pub fn trimming(self, trimming: bool) -> Self { + Self { + trimming: trimming, .. self + } + } + #[inline] + pub fn remove_immutable_tracks(self, remove_immutable_tracks: bool) -> Self { + Self { + remove_immutable_tracks: remove_immutable_tracks, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Node > > { + let Self { + _phantom, surround_object, state, bake_fps, trimming, remove_immutable_tracks, + } + = self; + re_export::GltfDocument::generate_scene_full(surround_object, state.cow_as_object_arg(), bake_fps, trimming, remove_immutable_tracks,) + } +} +#[doc = "Default-param extender for [`GltfDocument::register_gltf_document_extension_ex`][super::GltfDocument::register_gltf_document_extension_ex]."] +#[must_use] +pub struct ExRegisterGltfDocumentExtension < 'a > { + _phantom: std::marker::PhantomData < &'a() >, extension: ObjectCow < crate::classes::GltfDocumentExtension >, first_priority: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExRegisterGltfDocumentExtension < 'a > { + fn new(extension: impl AsObjectArg < crate::classes::GltfDocumentExtension >,) -> Self { + let first_priority = false; + Self { + _phantom: std::marker::PhantomData, extension: extension.consume_arg(), first_priority: first_priority, + } + } + #[inline] + pub fn first_priority(self, first_priority: bool) -> Self { + Self { + first_priority: first_priority, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, extension, first_priority, + } + = self; + re_export::GltfDocument::register_gltf_document_extension_full(extension.cow_as_object_arg(), first_priority,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct RootNodeMode { + ord: i32 +} +impl RootNodeMode { + #[doc(alias = "ROOT_NODE_MODE_SINGLE_ROOT")] + #[doc = "Godot enumerator name: `ROOT_NODE_MODE_SINGLE_ROOT`"] + pub const SINGLE_ROOT: RootNodeMode = RootNodeMode { + ord: 0i32 + }; + #[doc(alias = "ROOT_NODE_MODE_KEEP_ROOT")] + #[doc = "Godot enumerator name: `ROOT_NODE_MODE_KEEP_ROOT`"] + pub const KEEP_ROOT: RootNodeMode = RootNodeMode { + ord: 1i32 + }; + #[doc(alias = "ROOT_NODE_MODE_MULTI_ROOT")] + #[doc = "Godot enumerator name: `ROOT_NODE_MODE_MULTI_ROOT`"] + pub const MULTI_ROOT: RootNodeMode = RootNodeMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for RootNodeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("RootNodeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for RootNodeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SINGLE_ROOT => "SINGLE_ROOT", Self::KEEP_ROOT => "KEEP_ROOT", Self::MULTI_ROOT => "MULTI_ROOT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SINGLE_ROOT => "ROOT_NODE_MODE_SINGLE_ROOT", Self::KEEP_ROOT => "ROOT_NODE_MODE_KEEP_ROOT", Self::MULTI_ROOT => "ROOT_NODE_MODE_MULTI_ROOT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for RootNodeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for RootNodeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for RootNodeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_document_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_document_extension.rs new file mode 100644 index 0000000..dfd2869 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_document_extension.rs @@ -0,0 +1,259 @@ +#![doc = "Sidecar module for class [`GltfDocumentExtension`][crate::classes::GltfDocumentExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFDocumentExtension` enums](https://docs.godotengine.org/en/stable/classes/class_gltfdocumentextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFDocumentExtension.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfDocumentExtension`][crate::classes::IGltfDocumentExtension]: virtual methods\n\n\nSee also [Godot docs for `GLTFDocumentExtension`](https://docs.godotengine.org/en/stable/classes/class_gltfdocumentextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfDocumentExtension::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfDocumentExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfDocumentExtension`][crate::classes::GltfDocumentExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFDocumentExtension` methods](https://docs.godotengine.org/en/stable/classes/class_gltfdocumentextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfDocumentExtension: crate::obj::GodotClass < Base = GltfDocumentExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn import_preflight(&mut self, state: Option < Gd < crate::classes::GltfState > >, extensions: PackedStringArray,) -> crate::global::Error { + unimplemented !() + } + fn get_supported_extensions(&mut self,) -> PackedStringArray { + unimplemented !() + } + fn parse_node_extensions(&mut self, state: Option < Gd < crate::classes::GltfState > >, gltf_node: Option < Gd < crate::classes::GltfNode > >, extensions: Dictionary,) -> crate::global::Error { + unimplemented !() + } + fn parse_image_data(&mut self, state: Option < Gd < crate::classes::GltfState > >, image_data: PackedByteArray, mime_type: GString, ret_image: Option < Gd < crate::classes::Image > >,) -> crate::global::Error { + unimplemented !() + } + fn get_image_file_extension(&mut self,) -> GString { + unimplemented !() + } + fn parse_texture_json(&mut self, state: Option < Gd < crate::classes::GltfState > >, texture_json: Dictionary, ret_gltf_texture: Option < Gd < crate::classes::GltfTexture > >,) -> crate::global::Error { + unimplemented !() + } + fn generate_scene_node(&mut self, state: Option < Gd < crate::classes::GltfState > >, gltf_node: Option < Gd < crate::classes::GltfNode > >, scene_parent: Option < Gd < crate::classes::Node > >,) -> Option < Gd < crate::classes::Node3D > > { + unimplemented !() + } + fn import_post_parse(&mut self, state: Option < Gd < crate::classes::GltfState > >,) -> crate::global::Error { + unimplemented !() + } + fn import_node(&mut self, state: Option < Gd < crate::classes::GltfState > >, gltf_node: Option < Gd < crate::classes::GltfNode > >, json: Dictionary, node: Option < Gd < crate::classes::Node > >,) -> crate::global::Error { + unimplemented !() + } + fn import_post(&mut self, state: Option < Gd < crate::classes::GltfState > >, root: Option < Gd < crate::classes::Node > >,) -> crate::global::Error { + unimplemented !() + } + fn export_preflight(&mut self, state: Option < Gd < crate::classes::GltfState > >, root: Option < Gd < crate::classes::Node > >,) -> crate::global::Error { + unimplemented !() + } + fn convert_scene_node(&mut self, state: Option < Gd < crate::classes::GltfState > >, gltf_node: Option < Gd < crate::classes::GltfNode > >, scene_node: Option < Gd < crate::classes::Node > >,) { + unimplemented !() + } + fn export_preserialize(&mut self, state: Option < Gd < crate::classes::GltfState > >,) -> crate::global::Error { + unimplemented !() + } + fn get_saveable_image_formats(&mut self,) -> PackedStringArray { + unimplemented !() + } + fn serialize_image_to_bytes(&mut self, state: Option < Gd < crate::classes::GltfState > >, image: Option < Gd < crate::classes::Image > >, image_dict: Dictionary, image_format: GString, lossy_quality: f32,) -> PackedByteArray { + unimplemented !() + } + fn save_image_at_path(&mut self, state: Option < Gd < crate::classes::GltfState > >, image: Option < Gd < crate::classes::Image > >, file_path: GString, image_format: GString, lossy_quality: f32,) -> crate::global::Error { + unimplemented !() + } + fn serialize_texture_json(&mut self, state: Option < Gd < crate::classes::GltfState > >, texture_json: Dictionary, gltf_texture: Option < Gd < crate::classes::GltfTexture > >, image_format: GString,) -> crate::global::Error { + unimplemented !() + } + fn export_node(&mut self, state: Option < Gd < crate::classes::GltfState > >, gltf_node: Option < Gd < crate::classes::GltfNode > >, json: Dictionary, node: Option < Gd < crate::classes::Node > >,) -> crate::global::Error { + unimplemented !() + } + fn export_post(&mut self, state: Option < Gd < crate::classes::GltfState > >,) -> crate::global::Error { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfDocumentExtension { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfDocumentExtension { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFDocumentExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfDocumentExtension { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfDocumentExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfDocumentExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfDocumentExtension { + + } + impl crate::obj::cap::GodotDefault for GltfDocumentExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfDocumentExtension { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfDocumentExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfDocumentExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfDocumentExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfDocumentExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_document_extension_convert_importer_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_document_extension_convert_importer_mesh.rs new file mode 100644 index 0000000..697fff7 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_document_extension_convert_importer_mesh.rs @@ -0,0 +1,265 @@ +#![doc = "Sidecar module for class [`GltfDocumentExtensionConvertImporterMesh`][crate::classes::GltfDocumentExtensionConvertImporterMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFDocumentExtensionConvertImporterMesh` enums](https://docs.godotengine.org/en/stable/classes/class_gltfdocumentextensionconvertimportermesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFDocumentExtensionConvertImporterMesh.`\n\nInherits [`GltfDocumentExtension`][crate::classes::GltfDocumentExtension].\n\nRelated symbols:\n\n* [`IGltfDocumentExtensionConvertImporterMesh`][crate::classes::IGltfDocumentExtensionConvertImporterMesh]: virtual methods\n\n\nSee also [Godot docs for `GLTFDocumentExtensionConvertImporterMesh`](https://docs.godotengine.org/en/stable/classes/class_gltfdocumentextensionconvertimportermesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfDocumentExtensionConvertImporterMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfDocumentExtensionConvertImporterMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfDocumentExtensionConvertImporterMesh`][crate::classes::GltfDocumentExtensionConvertImporterMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFDocumentExtensionConvertImporterMesh` methods](https://docs.godotengine.org/en/stable/classes/class_gltfdocumentextensionconvertimportermesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfDocumentExtensionConvertImporterMesh: crate::obj::GodotClass < Base = GltfDocumentExtensionConvertImporterMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn import_preflight(&mut self, state: Option < Gd < crate::classes::GltfState > >, extensions: PackedStringArray,) -> crate::global::Error { + unimplemented !() + } + fn get_supported_extensions(&mut self,) -> PackedStringArray { + unimplemented !() + } + fn parse_node_extensions(&mut self, state: Option < Gd < crate::classes::GltfState > >, gltf_node: Option < Gd < crate::classes::GltfNode > >, extensions: Dictionary,) -> crate::global::Error { + unimplemented !() + } + fn parse_image_data(&mut self, state: Option < Gd < crate::classes::GltfState > >, image_data: PackedByteArray, mime_type: GString, ret_image: Option < Gd < crate::classes::Image > >,) -> crate::global::Error { + unimplemented !() + } + fn get_image_file_extension(&mut self,) -> GString { + unimplemented !() + } + fn parse_texture_json(&mut self, state: Option < Gd < crate::classes::GltfState > >, texture_json: Dictionary, ret_gltf_texture: Option < Gd < crate::classes::GltfTexture > >,) -> crate::global::Error { + unimplemented !() + } + fn generate_scene_node(&mut self, state: Option < Gd < crate::classes::GltfState > >, gltf_node: Option < Gd < crate::classes::GltfNode > >, scene_parent: Option < Gd < crate::classes::Node > >,) -> Option < Gd < crate::classes::Node3D > > { + unimplemented !() + } + fn import_post_parse(&mut self, state: Option < Gd < crate::classes::GltfState > >,) -> crate::global::Error { + unimplemented !() + } + fn import_node(&mut self, state: Option < Gd < crate::classes::GltfState > >, gltf_node: Option < Gd < crate::classes::GltfNode > >, json: Dictionary, node: Option < Gd < crate::classes::Node > >,) -> crate::global::Error { + unimplemented !() + } + fn import_post(&mut self, state: Option < Gd < crate::classes::GltfState > >, root: Option < Gd < crate::classes::Node > >,) -> crate::global::Error { + unimplemented !() + } + fn export_preflight(&mut self, state: Option < Gd < crate::classes::GltfState > >, root: Option < Gd < crate::classes::Node > >,) -> crate::global::Error { + unimplemented !() + } + fn convert_scene_node(&mut self, state: Option < Gd < crate::classes::GltfState > >, gltf_node: Option < Gd < crate::classes::GltfNode > >, scene_node: Option < Gd < crate::classes::Node > >,) { + unimplemented !() + } + fn export_preserialize(&mut self, state: Option < Gd < crate::classes::GltfState > >,) -> crate::global::Error { + unimplemented !() + } + fn get_saveable_image_formats(&mut self,) -> PackedStringArray { + unimplemented !() + } + fn serialize_image_to_bytes(&mut self, state: Option < Gd < crate::classes::GltfState > >, image: Option < Gd < crate::classes::Image > >, image_dict: Dictionary, image_format: GString, lossy_quality: f32,) -> PackedByteArray { + unimplemented !() + } + fn save_image_at_path(&mut self, state: Option < Gd < crate::classes::GltfState > >, image: Option < Gd < crate::classes::Image > >, file_path: GString, image_format: GString, lossy_quality: f32,) -> crate::global::Error { + unimplemented !() + } + fn serialize_texture_json(&mut self, state: Option < Gd < crate::classes::GltfState > >, texture_json: Dictionary, gltf_texture: Option < Gd < crate::classes::GltfTexture > >, image_format: GString,) -> crate::global::Error { + unimplemented !() + } + fn export_node(&mut self, state: Option < Gd < crate::classes::GltfState > >, gltf_node: Option < Gd < crate::classes::GltfNode > >, json: Dictionary, node: Option < Gd < crate::classes::Node > >,) -> crate::global::Error { + unimplemented !() + } + fn export_post(&mut self, state: Option < Gd < crate::classes::GltfState > >,) -> crate::global::Error { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfDocumentExtensionConvertImporterMesh { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfDocumentExtensionConvertImporterMesh { + type Base = crate::classes::GltfDocumentExtension; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFDocumentExtensionConvertImporterMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfDocumentExtensionConvertImporterMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GltfDocumentExtension > for GltfDocumentExtensionConvertImporterMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfDocumentExtensionConvertImporterMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfDocumentExtensionConvertImporterMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfDocumentExtensionConvertImporterMesh { + + } + impl crate::obj::cap::GodotDefault for GltfDocumentExtensionConvertImporterMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfDocumentExtensionConvertImporterMesh { + type Target = crate::classes::GltfDocumentExtension; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfDocumentExtensionConvertImporterMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfDocumentExtensionConvertImporterMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfDocumentExtensionConvertImporterMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfDocumentExtensionConvertImporterMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfDocumentExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_light.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_light.rs new file mode 100644 index 0000000..8b4d07d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_light.rs @@ -0,0 +1,346 @@ +#![doc = "Sidecar module for class [`GltfLight`][crate::classes::GltfLight].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFLight` enums](https://docs.godotengine.org/en/stable/classes/class_gltflight.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFLight.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfLight`][crate::classes::IGltfLight]: virtual methods\n\n\nSee also [Godot docs for `GLTFLight`](https://docs.godotengine.org/en/stable/classes/class_gltflight.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfLight::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfLight { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfLight`][crate::classes::GltfLight].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFLight` methods](https://docs.godotengine.org/en/stable/classes/class_gltflight.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfLight: crate::obj::GodotClass < Base = GltfLight > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfLight { + pub fn from_node(light_node: impl AsObjectArg < crate::classes::Light3D >,) -> Option < Gd < crate::classes::GltfLight > > { + type CallSig = (Option < Gd < crate::classes::GltfLight > >, ObjectArg < crate::classes::Light3D >); + let args = (light_node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3502usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "from_node", std::ptr::null_mut(), None, args,) + } + } + pub fn to_node(&self,) -> Option < Gd < crate::classes::Light3D > > { + type CallSig = (Option < Gd < crate::classes::Light3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3503usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "to_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn from_dictionary(dictionary: &Dictionary,) -> Option < Gd < crate::classes::GltfLight > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::GltfLight > >, RefArg < 'a0, Dictionary >); + let args = (RefArg::new(dictionary),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3504usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "from_dictionary", std::ptr::null_mut(), None, args,) + } + } + pub fn to_dictionary(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3505usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "to_dictionary", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&mut self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3506usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3507usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_intensity(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3508usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "get_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_intensity(&mut self, intensity: f32,) { + type CallSig = ((), f32); + let args = (intensity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3509usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "set_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_light_type(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3510usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "get_light_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_light_type(&mut self, light_type: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (light_type.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3511usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "set_light_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_range(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3512usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "get_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_range(&mut self, range: f32,) { + type CallSig = ((), f32); + let args = (range,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3513usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "set_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inner_cone_angle(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3514usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "get_inner_cone_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_inner_cone_angle(&mut self, inner_cone_angle: f32,) { + type CallSig = ((), f32); + let args = (inner_cone_angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3515usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "set_inner_cone_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_outer_cone_angle(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3516usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "get_outer_cone_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_outer_cone_angle(&mut self, outer_cone_angle: f32,) { + type CallSig = ((), f32); + let args = (outer_cone_angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3517usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "set_outer_cone_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_additional_data(&mut self, extension_name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (extension_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3518usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "get_additional_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_additional_data(&mut self, extension_name: impl AsArg < StringName >, additional_data: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (extension_name.into_arg(), RefArg::new(additional_data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3519usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfLight", "set_additional_data", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfLight { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFLight")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfLight { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfLight { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfLight { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfLight { + + } + impl crate::obj::cap::GodotDefault for GltfLight { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfLight { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfLight { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfLight`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfLight { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfLight > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_mesh.rs new file mode 100644 index 0000000..8574ce1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_mesh.rs @@ -0,0 +1,282 @@ +#![doc = "Sidecar module for class [`GltfMesh`][crate::classes::GltfMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFMesh` enums](https://docs.godotengine.org/en/stable/classes/class_gltfmesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFMesh.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfMesh`][crate::classes::IGltfMesh]: virtual methods\n\n\nSee also [Godot docs for `GLTFMesh`](https://docs.godotengine.org/en/stable/classes/class_gltfmesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfMesh`][crate::classes::GltfMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFMesh` methods](https://docs.godotengine.org/en/stable/classes/class_gltfmesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfMesh: crate::obj::GodotClass < Base = GltfMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfMesh { + pub fn get_original_name(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3520usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfMesh", "get_original_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_original_name(&mut self, original_name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (original_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3521usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfMesh", "set_original_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh(&mut self,) -> Option < Gd < crate::classes::ImporterMesh > > { + type CallSig = (Option < Gd < crate::classes::ImporterMesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3522usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfMesh", "get_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mesh(&mut self, mesh: impl AsObjectArg < crate::classes::ImporterMesh >,) { + type CallSig = ((), ObjectArg < crate::classes::ImporterMesh >); + let args = (mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3523usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfMesh", "set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_weights(&mut self,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3524usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfMesh", "get_blend_weights", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_weights(&mut self, blend_weights: &PackedFloat32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedFloat32Array >); + let args = (RefArg::new(blend_weights),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3525usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfMesh", "set_blend_weights", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_instance_materials(&mut self,) -> Array < Gd < crate::classes::Material > > { + type CallSig = (Array < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3526usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfMesh", "get_instance_materials", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_instance_materials(&mut self, instance_materials: &Array < Gd < crate::classes::Material > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::Material > > >); + let args = (RefArg::new(instance_materials),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3527usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfMesh", "set_instance_materials", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_additional_data(&mut self, extension_name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (extension_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3528usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfMesh", "get_additional_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_additional_data(&mut self, extension_name: impl AsArg < StringName >, additional_data: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (extension_name.into_arg(), RefArg::new(additional_data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3529usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfMesh", "set_additional_data", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfMesh { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfMesh { + + } + impl crate::obj::cap::GodotDefault for GltfMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfMesh { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_node.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_node.rs new file mode 100644 index 0000000..0336a71 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_node.rs @@ -0,0 +1,426 @@ +#![doc = "Sidecar module for class [`GltfNode`][crate::classes::GltfNode].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFNode` enums](https://docs.godotengine.org/en/stable/classes/class_gltfnode.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFNode.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfNode`][crate::classes::IGltfNode]: virtual methods\n\n\nSee also [Godot docs for `GLTFNode`](https://docs.godotengine.org/en/stable/classes/class_gltfnode.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfNode::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfNode { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfNode`][crate::classes::GltfNode].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFNode` methods](https://docs.godotengine.org/en/stable/classes/class_gltfnode.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfNode: crate::obj::GodotClass < Base = GltfNode > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfNode { + pub fn get_original_name(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3530usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_original_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_original_name(&mut self, original_name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (original_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3531usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_original_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_parent(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3532usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_parent(&mut self, parent: i32,) { + type CallSig = ((), i32); + let args = (parent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3533usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3534usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: i32,) { + type CallSig = ((), i32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3535usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_xform(&mut self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3536usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_xform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_xform(&mut self, xform: Transform3D,) { + type CallSig = ((), Transform3D); + let args = (xform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3537usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_xform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3538usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mesh(&mut self, mesh: i32,) { + type CallSig = ((), i32); + let args = (mesh,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3539usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_camera(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3540usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_camera", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_camera(&mut self, camera: i32,) { + type CallSig = ((), i32); + let args = (camera,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3541usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_camera", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skin(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3542usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_skin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skin(&mut self, skin: i32,) { + type CallSig = ((), i32); + let args = (skin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3543usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_skin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skeleton(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3544usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skeleton(&mut self, skeleton: i32,) { + type CallSig = ((), i32); + let args = (skeleton,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3545usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position(&mut self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3546usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_position(&mut self, position: Vector3,) { + type CallSig = ((), Vector3); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3547usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation(&mut self,) -> Quaternion { + type CallSig = (Quaternion,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3548usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation(&mut self, rotation: Quaternion,) { + type CallSig = ((), Quaternion); + let args = (rotation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3549usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scale(&mut self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3550usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scale(&mut self, scale: Vector3,) { + type CallSig = ((), Vector3); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3551usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_children(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3552usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_children", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_children(&mut self, children: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(children),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3553usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_children", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_light(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3554usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_light", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_light(&mut self, light: i32,) { + type CallSig = ((), i32); + let args = (light,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3555usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_light", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_additional_data(&mut self, extension_name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (extension_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3556usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "get_additional_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_additional_data(&mut self, extension_name: impl AsArg < StringName >, additional_data: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (extension_name.into_arg(), RefArg::new(additional_data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3557usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfNode", "set_additional_data", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfNode { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFNode")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfNode { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfNode { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfNode { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfNode { + + } + impl crate::obj::cap::GodotDefault for GltfNode { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfNode { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfNode { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfNode`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfNode { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_physics_body.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_physics_body.rs new file mode 100644 index 0000000..632113b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_physics_body.rs @@ -0,0 +1,362 @@ +#![doc = "Sidecar module for class [`GltfPhysicsBody`][crate::classes::GltfPhysicsBody].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFPhysicsBody` enums](https://docs.godotengine.org/en/stable/classes/class_gltfphysicsbody.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFPhysicsBody.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfPhysicsBody`][crate::classes::IGltfPhysicsBody]: virtual methods\n\n\nSee also [Godot docs for `GLTFPhysicsBody`](https://docs.godotengine.org/en/stable/classes/class_gltfphysicsbody.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfPhysicsBody::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfPhysicsBody { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfPhysicsBody`][crate::classes::GltfPhysicsBody].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFPhysicsBody` methods](https://docs.godotengine.org/en/stable/classes/class_gltfphysicsbody.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfPhysicsBody: crate::obj::GodotClass < Base = GltfPhysicsBody > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfPhysicsBody { + pub fn from_node(body_node: impl AsObjectArg < crate::classes::CollisionObject3D >,) -> Option < Gd < crate::classes::GltfPhysicsBody > > { + type CallSig = (Option < Gd < crate::classes::GltfPhysicsBody > >, ObjectArg < crate::classes::CollisionObject3D >); + let args = (body_node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3558usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "from_node", std::ptr::null_mut(), None, args,) + } + } + pub fn to_node(&self,) -> Option < Gd < crate::classes::CollisionObject3D > > { + type CallSig = (Option < Gd < crate::classes::CollisionObject3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3559usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "to_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn from_dictionary(dictionary: &Dictionary,) -> Option < Gd < crate::classes::GltfPhysicsBody > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::GltfPhysicsBody > >, RefArg < 'a0, Dictionary >); + let args = (RefArg::new(dictionary),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3560usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "from_dictionary", std::ptr::null_mut(), None, args,) + } + } + pub fn to_dictionary(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3561usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "to_dictionary", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_body_type(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3562usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "get_body_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_body_type(&mut self, body_type: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (body_type.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3563usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "set_body_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mass(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3564usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "get_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mass(&mut self, mass: f32,) { + type CallSig = ((), f32); + let args = (mass,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3565usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "set_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3566usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "get_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_velocity(&mut self, linear_velocity: Vector3,) { + type CallSig = ((), Vector3); + let args = (linear_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3567usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "set_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3568usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "get_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_velocity(&mut self, angular_velocity: Vector3,) { + type CallSig = ((), Vector3); + let args = (angular_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3569usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "set_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_of_mass(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3570usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "get_center_of_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_center_of_mass(&mut self, center_of_mass: Vector3,) { + type CallSig = ((), Vector3); + let args = (center_of_mass,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3571usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "set_center_of_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inertia_diagonal(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3572usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "get_inertia_diagonal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_inertia_diagonal(&mut self, inertia_diagonal: Vector3,) { + type CallSig = ((), Vector3); + let args = (inertia_diagonal,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3573usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "set_inertia_diagonal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inertia_orientation(&self,) -> Quaternion { + type CallSig = (Quaternion,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3574usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "get_inertia_orientation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_inertia_orientation(&mut self, inertia_orientation: Quaternion,) { + type CallSig = ((), Quaternion); + let args = (inertia_orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3575usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "set_inertia_orientation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inertia_tensor(&self,) -> Basis { + type CallSig = (Basis,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3576usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "get_inertia_tensor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_inertia_tensor(&mut self, inertia_tensor: Basis,) { + type CallSig = ((), Basis); + let args = (inertia_tensor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3577usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsBody", "set_inertia_tensor", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfPhysicsBody { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFPhysicsBody")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfPhysicsBody { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfPhysicsBody { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfPhysicsBody { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfPhysicsBody { + + } + impl crate::obj::cap::GodotDefault for GltfPhysicsBody { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfPhysicsBody { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfPhysicsBody { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfPhysicsBody`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfPhysicsBody { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfPhysicsBody > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_physics_shape.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_physics_shape.rs new file mode 100644 index 0000000..1d44e03 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_physics_shape.rs @@ -0,0 +1,436 @@ +#![doc = "Sidecar module for class [`GltfPhysicsShape`][crate::classes::GltfPhysicsShape].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFPhysicsShape` enums](https://docs.godotengine.org/en/stable/classes/class_gltfphysicsshape.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFPhysicsShape.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`gltf_physics_shape`][crate::classes::gltf_physics_shape]: sidecar module with related enum/flag types\n* [`IGltfPhysicsShape`][crate::classes::IGltfPhysicsShape]: virtual methods\n\n\nSee also [Godot docs for `GLTFPhysicsShape`](https://docs.godotengine.org/en/stable/classes/class_gltfphysicsshape.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfPhysicsShape::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfPhysicsShape { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfPhysicsShape`][crate::classes::GltfPhysicsShape].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFPhysicsShape` methods](https://docs.godotengine.org/en/stable/classes/class_gltfphysicsshape.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfPhysicsShape: crate::obj::GodotClass < Base = GltfPhysicsShape > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfPhysicsShape { + pub fn from_node(shape_node: impl AsObjectArg < crate::classes::CollisionShape3D >,) -> Option < Gd < crate::classes::GltfPhysicsShape > > { + type CallSig = (Option < Gd < crate::classes::GltfPhysicsShape > >, ObjectArg < crate::classes::CollisionShape3D >); + let args = (shape_node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3578usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "from_node", std::ptr::null_mut(), None, args,) + } + } + pub(crate) fn to_node_full(&mut self, cache_shapes: bool,) -> Option < Gd < crate::classes::CollisionShape3D > > { + type CallSig = (Option < Gd < crate::classes::CollisionShape3D > >, bool); + let args = (cache_shapes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3579usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "to_node", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::to_node_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn to_node(&mut self,) -> Option < Gd < crate::classes::CollisionShape3D > > { + self.to_node_ex() . done() + } + #[inline] + pub fn to_node_ex < 'a > (&'a mut self,) -> ExToNode < 'a > { + ExToNode::new(self,) + } + pub fn from_resource(shape_resource: impl AsObjectArg < crate::classes::Shape3D >,) -> Option < Gd < crate::classes::GltfPhysicsShape > > { + type CallSig = (Option < Gd < crate::classes::GltfPhysicsShape > >, ObjectArg < crate::classes::Shape3D >); + let args = (shape_resource.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3580usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "from_resource", std::ptr::null_mut(), None, args,) + } + } + pub(crate) fn to_resource_full(&mut self, cache_shapes: bool,) -> Option < Gd < crate::classes::Shape3D > > { + type CallSig = (Option < Gd < crate::classes::Shape3D > >, bool); + let args = (cache_shapes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3581usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "to_resource", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::to_resource_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn to_resource(&mut self,) -> Option < Gd < crate::classes::Shape3D > > { + self.to_resource_ex() . done() + } + #[inline] + pub fn to_resource_ex < 'a > (&'a mut self,) -> ExToResource < 'a > { + ExToResource::new(self,) + } + pub fn from_dictionary(dictionary: &Dictionary,) -> Option < Gd < crate::classes::GltfPhysicsShape > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::GltfPhysicsShape > >, RefArg < 'a0, Dictionary >); + let args = (RefArg::new(dictionary),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3582usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "from_dictionary", std::ptr::null_mut(), None, args,) + } + } + pub fn to_dictionary(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3583usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "to_dictionary", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape_type(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3584usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "get_shape_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shape_type(&mut self, shape_type: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (shape_type.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3585usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "set_shape_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3586usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3587usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3588usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3589usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3590usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: f32,) { + type CallSig = ((), f32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3591usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_is_trigger(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3592usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "get_is_trigger", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_is_trigger(&mut self, is_trigger: bool,) { + type CallSig = ((), bool); + let args = (is_trigger,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3593usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "set_is_trigger", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3594usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "get_mesh_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mesh_index(&mut self, mesh_index: i32,) { + type CallSig = ((), i32); + let args = (mesh_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3595usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "set_mesh_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_importer_mesh(&self,) -> Option < Gd < crate::classes::ImporterMesh > > { + type CallSig = (Option < Gd < crate::classes::ImporterMesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3596usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "get_importer_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_importer_mesh(&mut self, importer_mesh: impl AsObjectArg < crate::classes::ImporterMesh >,) { + type CallSig = ((), ObjectArg < crate::classes::ImporterMesh >); + let args = (importer_mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3597usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfPhysicsShape", "set_importer_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfPhysicsShape { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFPhysicsShape")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfPhysicsShape { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfPhysicsShape { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfPhysicsShape { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfPhysicsShape { + + } + impl crate::obj::cap::GodotDefault for GltfPhysicsShape { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfPhysicsShape { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfPhysicsShape { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfPhysicsShape`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfPhysicsShape { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfPhysicsShape > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`GltfPhysicsShape::to_node_ex`][super::GltfPhysicsShape::to_node_ex]."] +#[must_use] +pub struct ExToNode < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::GltfPhysicsShape, cache_shapes: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExToNode < 'a > { + fn new(surround_object: &'a mut re_export::GltfPhysicsShape,) -> Self { + let cache_shapes = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, cache_shapes: cache_shapes, + } + } + #[inline] + pub fn cache_shapes(self, cache_shapes: bool) -> Self { + Self { + cache_shapes: cache_shapes, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::CollisionShape3D > > { + let Self { + _phantom, surround_object, cache_shapes, + } + = self; + re_export::GltfPhysicsShape::to_node_full(surround_object, cache_shapes,) + } +} +#[doc = "Default-param extender for [`GltfPhysicsShape::to_resource_ex`][super::GltfPhysicsShape::to_resource_ex]."] +#[must_use] +pub struct ExToResource < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::GltfPhysicsShape, cache_shapes: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExToResource < 'a > { + fn new(surround_object: &'a mut re_export::GltfPhysicsShape,) -> Self { + let cache_shapes = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, cache_shapes: cache_shapes, + } + } + #[inline] + pub fn cache_shapes(self, cache_shapes: bool) -> Self { + Self { + cache_shapes: cache_shapes, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Shape3D > > { + let Self { + _phantom, surround_object, cache_shapes, + } + = self; + re_export::GltfPhysicsShape::to_resource_full(surround_object, cache_shapes,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_skeleton.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_skeleton.rs new file mode 100644 index 0000000..2bd1a33 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_skeleton.rs @@ -0,0 +1,290 @@ +#![doc = "Sidecar module for class [`GltfSkeleton`][crate::classes::GltfSkeleton].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFSkeleton` enums](https://docs.godotengine.org/en/stable/classes/class_gltfskeleton.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFSkeleton.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfSkeleton`][crate::classes::IGltfSkeleton]: virtual methods\n\n\nSee also [Godot docs for `GLTFSkeleton`](https://docs.godotengine.org/en/stable/classes/class_gltfskeleton.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfSkeleton::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfSkeleton { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfSkeleton`][crate::classes::GltfSkeleton].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFSkeleton` methods](https://docs.godotengine.org/en/stable/classes/class_gltfskeleton.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfSkeleton: crate::obj::GodotClass < Base = GltfSkeleton > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfSkeleton { + pub fn get_joints(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3598usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkeleton", "get_joints", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_joints(&mut self, joints: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(joints),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3599usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkeleton", "set_joints", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_roots(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3600usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkeleton", "get_roots", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_roots(&mut self, roots: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(roots),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3601usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkeleton", "set_roots", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_godot_skeleton(&mut self,) -> Option < Gd < crate::classes::Skeleton3D > > { + type CallSig = (Option < Gd < crate::classes::Skeleton3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3602usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkeleton", "get_godot_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_unique_names(&mut self,) -> Array < GString > { + type CallSig = (Array < GString >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3603usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkeleton", "get_unique_names", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_unique_names(&mut self, unique_names: &Array < GString >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < GString > >); + let args = (RefArg::new(unique_names),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3604usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkeleton", "set_unique_names", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_godot_bone_node(&mut self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3605usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkeleton", "get_godot_bone_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_godot_bone_node(&mut self, godot_bone_node: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(godot_bone_node),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3606usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkeleton", "set_godot_bone_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone_attachment_count(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3607usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkeleton", "get_bone_attachment_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone_attachment(&mut self, idx: i32,) -> Option < Gd < crate::classes::BoneAttachment3D > > { + type CallSig = (Option < Gd < crate::classes::BoneAttachment3D > >, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3608usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkeleton", "get_bone_attachment", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfSkeleton { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFSkeleton")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfSkeleton { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfSkeleton { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfSkeleton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfSkeleton { + + } + impl crate::obj::cap::GodotDefault for GltfSkeleton { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfSkeleton { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfSkeleton { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfSkeleton`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfSkeleton { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfSkeleton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_skin.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_skin.rs new file mode 100644 index 0000000..48df99f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_skin.rs @@ -0,0 +1,362 @@ +#![doc = "Sidecar module for class [`GltfSkin`][crate::classes::GltfSkin].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFSkin` enums](https://docs.godotengine.org/en/stable/classes/class_gltfskin.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFSkin.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfSkin`][crate::classes::IGltfSkin]: virtual methods\n\n\nSee also [Godot docs for `GLTFSkin`](https://docs.godotengine.org/en/stable/classes/class_gltfskin.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfSkin::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfSkin { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfSkin`][crate::classes::GltfSkin].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFSkin` methods](https://docs.godotengine.org/en/stable/classes/class_gltfskin.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfSkin: crate::obj::GodotClass < Base = GltfSkin > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfSkin { + pub fn get_skin_root(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3609usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "get_skin_root", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skin_root(&mut self, skin_root: i32,) { + type CallSig = ((), i32); + let args = (skin_root,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3610usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "set_skin_root", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joints_original(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3611usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "get_joints_original", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_joints_original(&mut self, joints_original: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(joints_original),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3612usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "set_joints_original", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inverse_binds(&mut self,) -> Array < Transform3D > { + type CallSig = (Array < Transform3D >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3613usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "get_inverse_binds", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_inverse_binds(&mut self, inverse_binds: &Array < Transform3D >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Transform3D > >); + let args = (RefArg::new(inverse_binds),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3614usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "set_inverse_binds", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joints(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3615usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "get_joints", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_joints(&mut self, joints: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(joints),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3616usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "set_joints", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_non_joints(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3617usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "get_non_joints", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_non_joints(&mut self, non_joints: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(non_joints),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3618usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "set_non_joints", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_roots(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3619usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "get_roots", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_roots(&mut self, roots: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(roots),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3620usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "set_roots", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skeleton(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3621usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "get_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skeleton(&mut self, skeleton: i32,) { + type CallSig = ((), i32); + let args = (skeleton,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3622usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "set_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joint_i_to_bone_i(&mut self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3623usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "get_joint_i_to_bone_i", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_joint_i_to_bone_i(&mut self, joint_i_to_bone_i: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(joint_i_to_bone_i),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3624usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "set_joint_i_to_bone_i", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joint_i_to_name(&mut self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3625usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "get_joint_i_to_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_joint_i_to_name(&mut self, joint_i_to_name: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(joint_i_to_name),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3626usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "set_joint_i_to_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_godot_skin(&mut self,) -> Option < Gd < crate::classes::Skin > > { + type CallSig = (Option < Gd < crate::classes::Skin > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3627usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "get_godot_skin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_godot_skin(&mut self, godot_skin: impl AsObjectArg < crate::classes::Skin >,) { + type CallSig = ((), ObjectArg < crate::classes::Skin >); + let args = (godot_skin.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3628usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSkin", "set_godot_skin", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfSkin { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFSkin")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfSkin { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfSkin { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfSkin { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfSkin { + + } + impl crate::obj::cap::GodotDefault for GltfSkin { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfSkin { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfSkin { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfSkin`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfSkin { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfSkin > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_spec_gloss.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_spec_gloss.rs new file mode 100644 index 0000000..0286599 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_spec_gloss.rs @@ -0,0 +1,282 @@ +#![doc = "Sidecar module for class [`GltfSpecGloss`][crate::classes::GltfSpecGloss].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFSpecGloss` enums](https://docs.godotengine.org/en/stable/classes/class_gltfspecgloss.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFSpecGloss.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfSpecGloss`][crate::classes::IGltfSpecGloss]: virtual methods\n\n\nSee also [Godot docs for `GLTFSpecGloss`](https://docs.godotengine.org/en/stable/classes/class_gltfspecgloss.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfSpecGloss::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfSpecGloss { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfSpecGloss`][crate::classes::GltfSpecGloss].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFSpecGloss` methods](https://docs.godotengine.org/en/stable/classes/class_gltfspecgloss.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfSpecGloss: crate::obj::GodotClass < Base = GltfSpecGloss > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfSpecGloss { + pub fn get_diffuse_img(&mut self,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3629usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSpecGloss", "get_diffuse_img", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_diffuse_img(&mut self, diffuse_img: impl AsObjectArg < crate::classes::Image >,) { + type CallSig = ((), ObjectArg < crate::classes::Image >); + let args = (diffuse_img.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3630usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSpecGloss", "set_diffuse_img", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_diffuse_factor(&mut self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3631usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSpecGloss", "get_diffuse_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_diffuse_factor(&mut self, diffuse_factor: Color,) { + type CallSig = ((), Color); + let args = (diffuse_factor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3632usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSpecGloss", "set_diffuse_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gloss_factor(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3633usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSpecGloss", "get_gloss_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gloss_factor(&mut self, gloss_factor: f32,) { + type CallSig = ((), f32); + let args = (gloss_factor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3634usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSpecGloss", "set_gloss_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_specular_factor(&mut self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3635usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSpecGloss", "get_specular_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_specular_factor(&mut self, specular_factor: Color,) { + type CallSig = ((), Color); + let args = (specular_factor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3636usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSpecGloss", "set_specular_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spec_gloss_img(&mut self,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3637usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSpecGloss", "get_spec_gloss_img", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_spec_gloss_img(&mut self, spec_gloss_img: impl AsObjectArg < crate::classes::Image >,) { + type CallSig = ((), ObjectArg < crate::classes::Image >); + let args = (spec_gloss_img.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3638usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfSpecGloss", "set_spec_gloss_img", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfSpecGloss { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFSpecGloss")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfSpecGloss { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfSpecGloss { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfSpecGloss { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfSpecGloss { + + } + impl crate::obj::cap::GodotDefault for GltfSpecGloss { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfSpecGloss { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfSpecGloss { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfSpecGloss`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfSpecGloss { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfSpecGloss > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_state.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_state.rs new file mode 100644 index 0000000..7821a2b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_state.rs @@ -0,0 +1,751 @@ +#![doc = "Sidecar module for class [`GltfState`][crate::classes::GltfState].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFState` enums](https://docs.godotengine.org/en/stable/classes/class_gltfstate.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFState.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfState`][crate::classes::IGltfState]: virtual methods\n\n\nSee also [Godot docs for `GLTFState`](https://docs.godotengine.org/en/stable/classes/class_gltfstate.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfState::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfState { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfState`][crate::classes::GltfState].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFState` methods](https://docs.godotengine.org/en/stable/classes/class_gltfstate.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfState: crate::obj::GodotClass < Base = GltfState > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfState { + pub fn add_used_extension(&mut self, extension_name: impl AsArg < GString >, required: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, bool); + let args = (extension_name.into_arg(), required,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3639usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "add_used_extension", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn append_data_to_buffers(&mut self, data: &PackedByteArray, deduplication: bool,) -> i32 { + type CallSig < 'a0, > = (i32, RefArg < 'a0, PackedByteArray >, bool); + let args = (RefArg::new(data), deduplication,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3640usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "append_data_to_buffers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_json(&mut self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3641usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_json", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_json(&mut self, json: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(json),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3642usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_json", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_major_version(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3643usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_major_version", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_major_version(&mut self, major_version: i32,) { + type CallSig = ((), i32); + let args = (major_version,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3644usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_major_version", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_minor_version(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3645usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_minor_version", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_minor_version(&mut self, minor_version: i32,) { + type CallSig = ((), i32); + let args = (minor_version,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3646usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_minor_version", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_copyright(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3647usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_copyright", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_copyright(&mut self, copyright: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (copyright.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3648usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_copyright", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_glb_data(&mut self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3649usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_glb_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_glb_data(&mut self, glb_data: &PackedByteArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(glb_data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3650usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_glb_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_named_skin_binds(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3651usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_use_named_skin_binds", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_named_skin_binds(&mut self, use_named_skin_binds: bool,) { + type CallSig = ((), bool); + let args = (use_named_skin_binds,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3652usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_use_named_skin_binds", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_nodes(&mut self,) -> Array < Gd < crate::classes::GltfNode > > { + type CallSig = (Array < Gd < crate::classes::GltfNode > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3653usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_nodes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_nodes(&mut self, nodes: &Array < Gd < crate::classes::GltfNode > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::GltfNode > > >); + let args = (RefArg::new(nodes),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3654usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_nodes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_buffers(&mut self,) -> Array < PackedByteArray > { + type CallSig = (Array < PackedByteArray >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3655usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_buffers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_buffers(&mut self, buffers: &Array < PackedByteArray >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < PackedByteArray > >); + let args = (RefArg::new(buffers),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3656usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_buffers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_buffer_views(&mut self,) -> Array < Gd < crate::classes::GltfBufferView > > { + type CallSig = (Array < Gd < crate::classes::GltfBufferView > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3657usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_buffer_views", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_buffer_views(&mut self, buffer_views: &Array < Gd < crate::classes::GltfBufferView > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::GltfBufferView > > >); + let args = (RefArg::new(buffer_views),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3658usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_buffer_views", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_accessors(&mut self,) -> Array < Gd < crate::classes::GltfAccessor > > { + type CallSig = (Array < Gd < crate::classes::GltfAccessor > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3659usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_accessors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_accessors(&mut self, accessors: &Array < Gd < crate::classes::GltfAccessor > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::GltfAccessor > > >); + let args = (RefArg::new(accessors),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3660usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_accessors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_meshes(&mut self,) -> Array < Gd < crate::classes::GltfMesh > > { + type CallSig = (Array < Gd < crate::classes::GltfMesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3661usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_meshes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_meshes(&mut self, meshes: &Array < Gd < crate::classes::GltfMesh > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::GltfMesh > > >); + let args = (RefArg::new(meshes),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3662usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_meshes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation_players_count(&mut self, idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3663usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_animation_players_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation_player(&mut self, idx: i32,) -> Option < Gd < crate::classes::AnimationPlayer > > { + type CallSig = (Option < Gd < crate::classes::AnimationPlayer > >, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3664usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_animation_player", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_materials(&mut self,) -> Array < Gd < crate::classes::Material > > { + type CallSig = (Array < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3665usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_materials", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_materials(&mut self, materials: &Array < Gd < crate::classes::Material > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::Material > > >); + let args = (RefArg::new(materials),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3666usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_materials", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scene_name(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3667usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_scene_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scene_name(&mut self, scene_name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (scene_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3668usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_scene_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_base_path(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3669usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_base_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_base_path(&mut self, base_path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (base_path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3670usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_base_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_filename(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3671usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_filename", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_filename(&mut self, filename: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (filename.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3672usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_filename", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_nodes(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3673usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_root_nodes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_root_nodes(&mut self, root_nodes: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(root_nodes),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3674usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_root_nodes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_textures(&mut self,) -> Array < Gd < crate::classes::GltfTexture > > { + type CallSig = (Array < Gd < crate::classes::GltfTexture > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3675usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_textures", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_textures(&mut self, textures: &Array < Gd < crate::classes::GltfTexture > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::GltfTexture > > >); + let args = (RefArg::new(textures),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3676usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_textures", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_samplers(&mut self,) -> Array < Gd < crate::classes::GltfTextureSampler > > { + type CallSig = (Array < Gd < crate::classes::GltfTextureSampler > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3677usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_texture_samplers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_samplers(&mut self, texture_samplers: &Array < Gd < crate::classes::GltfTextureSampler > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::GltfTextureSampler > > >); + let args = (RefArg::new(texture_samplers),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3678usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_texture_samplers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_images(&mut self,) -> Array < Gd < crate::classes::Texture2D > > { + type CallSig = (Array < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3679usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_images", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_images(&mut self, images: &Array < Gd < crate::classes::Texture2D > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::Texture2D > > >); + let args = (RefArg::new(images),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3680usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_images", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skins(&mut self,) -> Array < Gd < crate::classes::GltfSkin > > { + type CallSig = (Array < Gd < crate::classes::GltfSkin > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3681usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_skins", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skins(&mut self, skins: &Array < Gd < crate::classes::GltfSkin > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::GltfSkin > > >); + let args = (RefArg::new(skins),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3682usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_skins", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cameras(&mut self,) -> Array < Gd < crate::classes::GltfCamera > > { + type CallSig = (Array < Gd < crate::classes::GltfCamera > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3683usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_cameras", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cameras(&mut self, cameras: &Array < Gd < crate::classes::GltfCamera > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::GltfCamera > > >); + let args = (RefArg::new(cameras),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3684usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_cameras", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lights(&mut self,) -> Array < Gd < crate::classes::GltfLight > > { + type CallSig = (Array < Gd < crate::classes::GltfLight > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3685usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_lights", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lights(&mut self, lights: &Array < Gd < crate::classes::GltfLight > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::GltfLight > > >); + let args = (RefArg::new(lights),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3686usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_lights", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_unique_names(&mut self,) -> Array < GString > { + type CallSig = (Array < GString >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3687usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_unique_names", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_unique_names(&mut self, unique_names: &Array < GString >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < GString > >); + let args = (RefArg::new(unique_names),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3688usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_unique_names", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_unique_animation_names(&mut self,) -> Array < GString > { + type CallSig = (Array < GString >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3689usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_unique_animation_names", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_unique_animation_names(&mut self, unique_animation_names: &Array < GString >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < GString > >); + let args = (RefArg::new(unique_animation_names),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3690usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_unique_animation_names", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skeletons(&mut self,) -> Array < Gd < crate::classes::GltfSkeleton > > { + type CallSig = (Array < Gd < crate::classes::GltfSkeleton > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3691usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_skeletons", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skeletons(&mut self, skeletons: &Array < Gd < crate::classes::GltfSkeleton > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::GltfSkeleton > > >); + let args = (RefArg::new(skeletons),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3692usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_skeletons", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_create_animations(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3693usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_create_animations", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_create_animations(&mut self, create_animations: bool,) { + type CallSig = ((), bool); + let args = (create_animations,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3694usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_create_animations", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_import_as_skeleton_bones(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3695usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_import_as_skeleton_bones", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_import_as_skeleton_bones(&mut self, import_as_skeleton_bones: bool,) { + type CallSig = ((), bool); + let args = (import_as_skeleton_bones,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3696usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_import_as_skeleton_bones", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animations(&mut self,) -> Array < Gd < crate::classes::GltfAnimation > > { + type CallSig = (Array < Gd < crate::classes::GltfAnimation > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3697usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_animations", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_animations(&mut self, animations: &Array < Gd < crate::classes::GltfAnimation > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::GltfAnimation > > >); + let args = (RefArg::new(animations),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3698usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_animations", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scene_node(&mut self, idx: i32,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3699usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_scene_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_index(&mut self, scene_node: impl AsObjectArg < crate::classes::Node >,) -> i32 { + type CallSig = (i32, ObjectArg < crate::classes::Node >); + let args = (scene_node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3700usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_node_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_additional_data(&mut self, extension_name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (extension_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3701usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_additional_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_additional_data(&mut self, extension_name: impl AsArg < StringName >, additional_data: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (extension_name.into_arg(), RefArg::new(additional_data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3702usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_additional_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_handle_binary_image(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3703usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_handle_binary_image", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_handle_binary_image(&mut self, method: i32,) { + type CallSig = ((), i32); + let args = (method,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3704usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_handle_binary_image", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bake_fps(&mut self, value: f64,) { + type CallSig = ((), f64); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3705usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "set_bake_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_fps(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3706usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfState", "get_bake_fps", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const HANDLE_BINARY_DISCARD_TEXTURES: i32 = 0i32; + pub const HANDLE_BINARY_EXTRACT_TEXTURES: i32 = 1i32; + pub const HANDLE_BINARY_EMBED_AS_BASISU: i32 = 2i32; + pub const HANDLE_BINARY_EMBED_AS_UNCOMPRESSED: i32 = 3i32; + + } + impl crate::obj::GodotClass for GltfState { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFState")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfState { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfState { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfState { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfState { + + } + impl crate::obj::cap::GodotDefault for GltfState { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfState { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfState { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfState`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfState { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfState > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_texture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_texture.rs new file mode 100644 index 0000000..a06c0d7 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_texture.rs @@ -0,0 +1,234 @@ +#![doc = "Sidecar module for class [`GltfTexture`][crate::classes::GltfTexture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFTexture` enums](https://docs.godotengine.org/en/stable/classes/class_gltftexture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFTexture.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfTexture`][crate::classes::IGltfTexture]: virtual methods\n\n\nSee also [Godot docs for `GLTFTexture`](https://docs.godotengine.org/en/stable/classes/class_gltftexture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfTexture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfTexture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfTexture`][crate::classes::GltfTexture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFTexture` methods](https://docs.godotengine.org/en/stable/classes/class_gltftexture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfTexture: crate::obj::GodotClass < Base = GltfTexture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfTexture { + pub fn get_src_image(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3707usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTexture", "get_src_image", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_src_image(&mut self, src_image: i32,) { + type CallSig = ((), i32); + let args = (src_image,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3708usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTexture", "set_src_image", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sampler(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3709usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTexture", "get_sampler", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sampler(&mut self, sampler: i32,) { + type CallSig = ((), i32); + let args = (sampler,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3710usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTexture", "set_sampler", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfTexture { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFTexture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfTexture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfTexture { + + } + impl crate::obj::cap::GodotDefault for GltfTexture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfTexture { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfTexture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfTexture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfTexture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfTexture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_texture_sampler.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_texture_sampler.rs new file mode 100644 index 0000000..b92013d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gltf_texture_sampler.rs @@ -0,0 +1,266 @@ +#![doc = "Sidecar module for class [`GltfTextureSampler`][crate::classes::GltfTextureSampler].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GLTFTextureSampler` enums](https://docs.godotengine.org/en/stable/classes/class_gltftexturesampler.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GLTFTextureSampler.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IGltfTextureSampler`][crate::classes::IGltfTextureSampler]: virtual methods\n\n\nSee also [Godot docs for `GLTFTextureSampler`](https://docs.godotengine.org/en/stable/classes/class_gltftexturesampler.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GltfTextureSampler::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GltfTextureSampler { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GltfTextureSampler`][crate::classes::GltfTextureSampler].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GLTFTextureSampler` methods](https://docs.godotengine.org/en/stable/classes/class_gltftexturesampler.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGltfTextureSampler: crate::obj::GodotClass < Base = GltfTextureSampler > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GltfTextureSampler { + pub fn get_mag_filter(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3711usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTextureSampler", "get_mag_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mag_filter(&mut self, filter_mode: i32,) { + type CallSig = ((), i32); + let args = (filter_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3712usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTextureSampler", "set_mag_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_min_filter(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3713usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTextureSampler", "get_min_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_min_filter(&mut self, filter_mode: i32,) { + type CallSig = ((), i32); + let args = (filter_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3714usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTextureSampler", "set_min_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wrap_s(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3715usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTextureSampler", "get_wrap_s", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_wrap_s(&mut self, wrap_mode: i32,) { + type CallSig = ((), i32); + let args = (wrap_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3716usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTextureSampler", "set_wrap_s", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wrap_t(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3717usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTextureSampler", "get_wrap_t", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_wrap_t(&mut self, wrap_mode: i32,) { + type CallSig = ((), i32); + let args = (wrap_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3718usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GltfTextureSampler", "set_wrap_t", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GltfTextureSampler { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GLTFTextureSampler")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GltfTextureSampler { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GltfTextureSampler { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GltfTextureSampler { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GltfTextureSampler { + + } + impl crate::obj::cap::GodotDefault for GltfTextureSampler { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GltfTextureSampler { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GltfTextureSampler { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GltfTextureSampler`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GltfTextureSampler { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GltfTextureSampler > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_2d.rs new file mode 100644 index 0000000..95a59cb --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_2d.rs @@ -0,0 +1,814 @@ +#![doc = "Sidecar module for class [`GpuParticles2D`][crate::classes::GpuParticles2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GPUParticles2D` enums](https://docs.godotengine.org/en/stable/classes/class_gpuparticles2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GPUParticles2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`gpu_particles_2d`][crate::classes::gpu_particles_2d]: sidecar module with related enum/flag types\n* [`IGpuParticles2D`][crate::classes::IGpuParticles2D]: virtual methods\n\n\nSee also [Godot docs for `GPUParticles2D`](https://docs.godotengine.org/en/stable/classes/class_gpuparticles2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GpuParticles2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GpuParticles2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GpuParticles2D`][crate::classes::GpuParticles2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GPUParticles2D` methods](https://docs.godotengine.org/en/stable/classes/class_gpuparticles2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGpuParticles2D: crate::obj::GodotClass < Base = GpuParticles2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GpuParticles2D { + pub fn set_emitting(&mut self, emitting: bool,) { + type CallSig = ((), bool); + let args = (emitting,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3719usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_emitting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_amount(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3720usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lifetime(&mut self, secs: f64,) { + type CallSig = ((), f64); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3721usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_one_shot(&mut self, secs: bool,) { + type CallSig = ((), bool); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3722usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_one_shot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pre_process_time(&mut self, secs: f64,) { + type CallSig = ((), f64); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3723usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_pre_process_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_explosiveness_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3724usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_explosiveness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_randomness_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3725usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_randomness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_rect(&mut self, visibility_rect: Rect2,) { + type CallSig = ((), Rect2); + let args = (visibility_rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3726usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_visibility_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_local_coordinates(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3727usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_use_local_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fixed_fps(&mut self, fps: i32,) { + type CallSig = ((), i32); + let args = (fps,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3728usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_fixed_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fractional_delta(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3729usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_fractional_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_interpolate(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3730usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_interpolate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3731usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_process_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_speed_scale(&mut self, scale: f64,) { + type CallSig = ((), f64); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3732usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_base_size(&mut self, size: f32,) { + type CallSig = ((), f32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3733usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_collision_base_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_interp_to_end(&mut self, interp: f32,) { + type CallSig = ((), f32); + let args = (interp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3734usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_interp_to_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_emitting(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3735usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "is_emitting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_amount(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3736usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lifetime(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3737usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_one_shot(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3738usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_one_shot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pre_process_time(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3739usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_pre_process_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_explosiveness_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3740usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_explosiveness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_randomness_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3741usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_randomness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_rect(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3742usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_visibility_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_local_coordinates(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3743usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_use_local_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fixed_fps(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3744usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_fixed_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fractional_delta(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3745usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_fractional_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_interpolate(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3746usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_interpolate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3747usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_process_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_speed_scale(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3748usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_base_size(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3749usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_collision_base_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_interp_to_end(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3750usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_interp_to_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_order(&mut self, order: crate::classes::gpu_particles_2d::DrawOrder,) { + type CallSig = ((), crate::classes::gpu_particles_2d::DrawOrder); + let args = (order,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3751usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_draw_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_draw_order(&self,) -> crate::classes::gpu_particles_2d::DrawOrder { + type CallSig = (crate::classes::gpu_particles_2d::DrawOrder,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3752usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_draw_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3753usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3754usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn capture_rect(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3755usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "capture_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn restart(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3756usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "restart", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sub_emitter(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3757usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_sub_emitter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sub_emitter(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3758usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_sub_emitter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn emit_particle(&mut self, xform: Transform2D, velocity: Vector2, color: Color, custom: Color, flags: u32,) { + type CallSig = ((), Transform2D, Vector2, Color, Color, u32); + let args = (xform, velocity, color, custom, flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3759usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "emit_particle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_trail_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3760usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_trail_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_trail_lifetime(&mut self, secs: f64,) { + type CallSig = ((), f64); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3761usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_trail_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_trail_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3762usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "is_trail_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_trail_lifetime(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3763usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_trail_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_trail_sections(&mut self, sections: i32,) { + type CallSig = ((), i32); + let args = (sections,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3764usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_trail_sections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_trail_sections(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3765usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_trail_sections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_trail_section_subdivisions(&mut self, subdivisions: i32,) { + type CallSig = ((), i32); + let args = (subdivisions,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3766usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_trail_section_subdivisions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_trail_section_subdivisions(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3767usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_trail_section_subdivisions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn convert_from_particles(&mut self, particles: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (particles.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3768usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "convert_from_particles", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_amount_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3769usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "set_amount_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_amount_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3770usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles2D", "get_amount_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GpuParticles2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GPUParticles2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GpuParticles2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for GpuParticles2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for GpuParticles2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GpuParticles2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GpuParticles2D { + + } + impl crate::obj::cap::GodotDefault for GpuParticles2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GpuParticles2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GpuParticles2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GpuParticles2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GpuParticles2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticles2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DrawOrder { + ord: i32 +} +impl DrawOrder { + #[doc(alias = "DRAW_ORDER_INDEX")] + #[doc = "Godot enumerator name: `DRAW_ORDER_INDEX`"] + pub const INDEX: DrawOrder = DrawOrder { + ord: 0i32 + }; + #[doc(alias = "DRAW_ORDER_LIFETIME")] + #[doc = "Godot enumerator name: `DRAW_ORDER_LIFETIME`"] + pub const LIFETIME: DrawOrder = DrawOrder { + ord: 1i32 + }; + #[doc(alias = "DRAW_ORDER_REVERSE_LIFETIME")] + #[doc = "Godot enumerator name: `DRAW_ORDER_REVERSE_LIFETIME`"] + pub const REVERSE_LIFETIME: DrawOrder = DrawOrder { + ord: 2i32 + }; + +} +impl std::fmt::Debug for DrawOrder { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DrawOrder") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DrawOrder { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INDEX => "INDEX", Self::LIFETIME => "LIFETIME", Self::REVERSE_LIFETIME => "REVERSE_LIFETIME", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INDEX => "DRAW_ORDER_INDEX", Self::LIFETIME => "DRAW_ORDER_LIFETIME", Self::REVERSE_LIFETIME => "DRAW_ORDER_REVERSE_LIFETIME", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DrawOrder { + type Via = i32; + +} +impl crate::meta::ToGodot for DrawOrder { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DrawOrder { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EmitFlags { + ord: i32 +} +impl EmitFlags { + #[doc(alias = "EMIT_FLAG_POSITION")] + #[doc = "Godot enumerator name: `EMIT_FLAG_POSITION`"] + pub const POSITION: EmitFlags = EmitFlags { + ord: 1i32 + }; + #[doc(alias = "EMIT_FLAG_ROTATION_SCALE")] + #[doc = "Godot enumerator name: `EMIT_FLAG_ROTATION_SCALE`"] + pub const ROTATION_SCALE: EmitFlags = EmitFlags { + ord: 2i32 + }; + #[doc(alias = "EMIT_FLAG_VELOCITY")] + #[doc = "Godot enumerator name: `EMIT_FLAG_VELOCITY`"] + pub const VELOCITY: EmitFlags = EmitFlags { + ord: 4i32 + }; + #[doc(alias = "EMIT_FLAG_COLOR")] + #[doc = "Godot enumerator name: `EMIT_FLAG_COLOR`"] + pub const COLOR: EmitFlags = EmitFlags { + ord: 8i32 + }; + #[doc(alias = "EMIT_FLAG_CUSTOM")] + #[doc = "Godot enumerator name: `EMIT_FLAG_CUSTOM`"] + pub const CUSTOM: EmitFlags = EmitFlags { + ord: 16i32 + }; + +} +impl std::fmt::Debug for EmitFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EmitFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EmitFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 1i32 | ord @ 2i32 | ord @ 4i32 | ord @ 8i32 | ord @ 16i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POSITION => "POSITION", Self::ROTATION_SCALE => "ROTATION_SCALE", Self::VELOCITY => "VELOCITY", Self::COLOR => "COLOR", Self::CUSTOM => "CUSTOM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POSITION => "EMIT_FLAG_POSITION", Self::ROTATION_SCALE => "EMIT_FLAG_ROTATION_SCALE", Self::VELOCITY => "EMIT_FLAG_VELOCITY", Self::COLOR => "EMIT_FLAG_COLOR", Self::CUSTOM => "EMIT_FLAG_CUSTOM", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EmitFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for EmitFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EmitFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_3d.rs new file mode 100644 index 0000000..df1efa0 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_3d.rs @@ -0,0 +1,923 @@ +#![doc = "Sidecar module for class [`GpuParticles3D`][crate::classes::GpuParticles3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GPUParticles3D` enums](https://docs.godotengine.org/en/stable/classes/class_gpuparticles3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GPUParticles3D.`\n\nInherits [`GeometryInstance3D`][crate::classes::GeometryInstance3D].\n\nRelated symbols:\n\n* [`gpu_particles_3d`][crate::classes::gpu_particles_3d]: sidecar module with related enum/flag types\n* [`IGpuParticles3D`][crate::classes::IGpuParticles3D]: virtual methods\n\n\nSee also [Godot docs for `GPUParticles3D`](https://docs.godotengine.org/en/stable/classes/class_gpuparticles3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GpuParticles3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GpuParticles3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GpuParticles3D`][crate::classes::GpuParticles3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GPUParticles3D` methods](https://docs.godotengine.org/en/stable/classes/class_gpuparticles3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGpuParticles3D: crate::obj::GodotClass < Base = GpuParticles3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GpuParticles3D { + pub fn set_emitting(&mut self, emitting: bool,) { + type CallSig = ((), bool); + let args = (emitting,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3771usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_emitting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_amount(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3772usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lifetime(&mut self, secs: f64,) { + type CallSig = ((), f64); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3773usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_one_shot(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3774usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_one_shot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pre_process_time(&mut self, secs: f64,) { + type CallSig = ((), f64); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3775usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_pre_process_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_explosiveness_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3776usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_explosiveness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_randomness_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3777usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_randomness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_aabb(&mut self, aabb: Aabb,) { + type CallSig = ((), Aabb); + let args = (aabb,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3778usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_visibility_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_local_coordinates(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3779usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_use_local_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fixed_fps(&mut self, fps: i32,) { + type CallSig = ((), i32); + let args = (fps,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3780usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_fixed_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fractional_delta(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3781usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_fractional_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_interpolate(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3782usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_interpolate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3783usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_process_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_speed_scale(&mut self, scale: f64,) { + type CallSig = ((), f64); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3784usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_base_size(&mut self, size: f32,) { + type CallSig = ((), f32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3785usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_collision_base_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_interp_to_end(&mut self, interp: f32,) { + type CallSig = ((), f32); + let args = (interp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3786usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_interp_to_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_emitting(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3787usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "is_emitting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_amount(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3788usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lifetime(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3789usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_one_shot(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3790usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_one_shot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pre_process_time(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3791usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_pre_process_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_explosiveness_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3792usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_explosiveness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_randomness_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3793usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_randomness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_aabb(&self,) -> Aabb { + type CallSig = (Aabb,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3794usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_visibility_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_local_coordinates(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3795usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_use_local_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fixed_fps(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3796usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_fixed_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fractional_delta(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3797usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_fractional_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_interpolate(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3798usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_interpolate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3799usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_process_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_speed_scale(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3800usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_base_size(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3801usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_collision_base_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_interp_to_end(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3802usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_interp_to_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_order(&mut self, order: crate::classes::gpu_particles_3d::DrawOrder,) { + type CallSig = ((), crate::classes::gpu_particles_3d::DrawOrder); + let args = (order,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3803usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_draw_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_draw_order(&self,) -> crate::classes::gpu_particles_3d::DrawOrder { + type CallSig = (crate::classes::gpu_particles_3d::DrawOrder,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3804usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_draw_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_passes(&mut self, passes: i32,) { + type CallSig = ((), i32); + let args = (passes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3805usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_draw_passes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_pass_mesh(&mut self, pass: i32, mesh: impl AsObjectArg < crate::classes::Mesh >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Mesh >); + let args = (pass, mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3806usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_draw_pass_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_draw_passes(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3807usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_draw_passes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_draw_pass_mesh(&self, pass: i32,) -> Option < Gd < crate::classes::Mesh > > { + type CallSig = (Option < Gd < crate::classes::Mesh > >, i32); + let args = (pass,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3808usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_draw_pass_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skin(&mut self, skin: impl AsObjectArg < crate::classes::Skin >,) { + type CallSig = ((), ObjectArg < crate::classes::Skin >); + let args = (skin.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3809usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_skin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skin(&self,) -> Option < Gd < crate::classes::Skin > > { + type CallSig = (Option < Gd < crate::classes::Skin > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3810usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_skin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn restart(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3811usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "restart", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn capture_aabb(&self,) -> Aabb { + type CallSig = (Aabb,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3812usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "capture_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sub_emitter(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3813usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_sub_emitter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sub_emitter(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3814usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_sub_emitter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn emit_particle(&mut self, xform: Transform3D, velocity: Vector3, color: Color, custom: Color, flags: u32,) { + type CallSig = ((), Transform3D, Vector3, Color, Color, u32); + let args = (xform, velocity, color, custom, flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3815usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "emit_particle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_trail_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3816usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_trail_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_trail_lifetime(&mut self, secs: f64,) { + type CallSig = ((), f64); + let args = (secs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3817usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_trail_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_trail_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3818usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "is_trail_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_trail_lifetime(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3819usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_trail_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transform_align(&mut self, align: crate::classes::gpu_particles_3d::TransformAlign,) { + type CallSig = ((), crate::classes::gpu_particles_3d::TransformAlign); + let args = (align,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3820usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_transform_align", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transform_align(&self,) -> crate::classes::gpu_particles_3d::TransformAlign { + type CallSig = (crate::classes::gpu_particles_3d::TransformAlign,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3821usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_transform_align", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn convert_from_particles(&mut self, particles: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (particles.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3822usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "convert_from_particles", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_amount_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3823usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "set_amount_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_amount_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3824usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticles3D", "get_amount_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const MAX_DRAW_PASSES: i32 = 4i32; + + } + impl crate::obj::GodotClass for GpuParticles3D { + type Base = crate::classes::GeometryInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GPUParticles3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GpuParticles3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for GpuParticles3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for GpuParticles3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GpuParticles3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GpuParticles3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GpuParticles3D { + + } + impl crate::obj::cap::GodotDefault for GpuParticles3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GpuParticles3D { + type Target = crate::classes::GeometryInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GpuParticles3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GpuParticles3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GpuParticles3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticles3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DrawOrder { + ord: i32 +} +impl DrawOrder { + #[doc(alias = "DRAW_ORDER_INDEX")] + #[doc = "Godot enumerator name: `DRAW_ORDER_INDEX`"] + pub const INDEX: DrawOrder = DrawOrder { + ord: 0i32 + }; + #[doc(alias = "DRAW_ORDER_LIFETIME")] + #[doc = "Godot enumerator name: `DRAW_ORDER_LIFETIME`"] + pub const LIFETIME: DrawOrder = DrawOrder { + ord: 1i32 + }; + #[doc(alias = "DRAW_ORDER_REVERSE_LIFETIME")] + #[doc = "Godot enumerator name: `DRAW_ORDER_REVERSE_LIFETIME`"] + pub const REVERSE_LIFETIME: DrawOrder = DrawOrder { + ord: 2i32 + }; + #[doc(alias = "DRAW_ORDER_VIEW_DEPTH")] + #[doc = "Godot enumerator name: `DRAW_ORDER_VIEW_DEPTH`"] + pub const VIEW_DEPTH: DrawOrder = DrawOrder { + ord: 3i32 + }; + +} +impl std::fmt::Debug for DrawOrder { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DrawOrder") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DrawOrder { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INDEX => "INDEX", Self::LIFETIME => "LIFETIME", Self::REVERSE_LIFETIME => "REVERSE_LIFETIME", Self::VIEW_DEPTH => "VIEW_DEPTH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INDEX => "DRAW_ORDER_INDEX", Self::LIFETIME => "DRAW_ORDER_LIFETIME", Self::REVERSE_LIFETIME => "DRAW_ORDER_REVERSE_LIFETIME", Self::VIEW_DEPTH => "DRAW_ORDER_VIEW_DEPTH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DrawOrder { + type Via = i32; + +} +impl crate::meta::ToGodot for DrawOrder { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DrawOrder { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EmitFlags { + ord: i32 +} +impl EmitFlags { + #[doc(alias = "EMIT_FLAG_POSITION")] + #[doc = "Godot enumerator name: `EMIT_FLAG_POSITION`"] + pub const POSITION: EmitFlags = EmitFlags { + ord: 1i32 + }; + #[doc(alias = "EMIT_FLAG_ROTATION_SCALE")] + #[doc = "Godot enumerator name: `EMIT_FLAG_ROTATION_SCALE`"] + pub const ROTATION_SCALE: EmitFlags = EmitFlags { + ord: 2i32 + }; + #[doc(alias = "EMIT_FLAG_VELOCITY")] + #[doc = "Godot enumerator name: `EMIT_FLAG_VELOCITY`"] + pub const VELOCITY: EmitFlags = EmitFlags { + ord: 4i32 + }; + #[doc(alias = "EMIT_FLAG_COLOR")] + #[doc = "Godot enumerator name: `EMIT_FLAG_COLOR`"] + pub const COLOR: EmitFlags = EmitFlags { + ord: 8i32 + }; + #[doc(alias = "EMIT_FLAG_CUSTOM")] + #[doc = "Godot enumerator name: `EMIT_FLAG_CUSTOM`"] + pub const CUSTOM: EmitFlags = EmitFlags { + ord: 16i32 + }; + +} +impl std::fmt::Debug for EmitFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EmitFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EmitFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 1i32 | ord @ 2i32 | ord @ 4i32 | ord @ 8i32 | ord @ 16i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POSITION => "POSITION", Self::ROTATION_SCALE => "ROTATION_SCALE", Self::VELOCITY => "VELOCITY", Self::COLOR => "COLOR", Self::CUSTOM => "CUSTOM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POSITION => "EMIT_FLAG_POSITION", Self::ROTATION_SCALE => "EMIT_FLAG_ROTATION_SCALE", Self::VELOCITY => "EMIT_FLAG_VELOCITY", Self::COLOR => "EMIT_FLAG_COLOR", Self::CUSTOM => "EMIT_FLAG_CUSTOM", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EmitFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for EmitFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EmitFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TransformAlign { + ord: i32 +} +impl TransformAlign { + #[doc(alias = "TRANSFORM_ALIGN_DISABLED")] + #[doc = "Godot enumerator name: `TRANSFORM_ALIGN_DISABLED`"] + pub const DISABLED: TransformAlign = TransformAlign { + ord: 0i32 + }; + #[doc(alias = "TRANSFORM_ALIGN_Z_BILLBOARD")] + #[doc = "Godot enumerator name: `TRANSFORM_ALIGN_Z_BILLBOARD`"] + pub const Z_BILLBOARD: TransformAlign = TransformAlign { + ord: 1i32 + }; + #[doc(alias = "TRANSFORM_ALIGN_Y_TO_VELOCITY")] + #[doc = "Godot enumerator name: `TRANSFORM_ALIGN_Y_TO_VELOCITY`"] + pub const Y_TO_VELOCITY: TransformAlign = TransformAlign { + ord: 2i32 + }; + #[doc(alias = "TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY")] + #[doc = "Godot enumerator name: `TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY`"] + pub const Z_BILLBOARD_Y_TO_VELOCITY: TransformAlign = TransformAlign { + ord: 3i32 + }; + +} +impl std::fmt::Debug for TransformAlign { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TransformAlign") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TransformAlign { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::Z_BILLBOARD => "Z_BILLBOARD", Self::Y_TO_VELOCITY => "Y_TO_VELOCITY", Self::Z_BILLBOARD_Y_TO_VELOCITY => "Z_BILLBOARD_Y_TO_VELOCITY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "TRANSFORM_ALIGN_DISABLED", Self::Z_BILLBOARD => "TRANSFORM_ALIGN_Z_BILLBOARD", Self::Y_TO_VELOCITY => "TRANSFORM_ALIGN_Y_TO_VELOCITY", Self::Z_BILLBOARD_Y_TO_VELOCITY => "TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TransformAlign { + type Via = i32; + +} +impl crate::meta::ToGodot for TransformAlign { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TransformAlign { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_3d.rs new file mode 100644 index 0000000..ce9598b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_3d.rs @@ -0,0 +1,297 @@ +#![doc = "Sidecar module for class [`GpuParticlesAttractor3D`][crate::classes::GpuParticlesAttractor3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GPUParticlesAttractor3D` enums](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractor3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GPUParticlesAttractor3D.`\n\nInherits [`VisualInstance3D`][crate::classes::VisualInstance3D].\n\nRelated symbols:\n\n* [`IGpuParticlesAttractor3D`][crate::classes::IGpuParticlesAttractor3D]: virtual methods\n\n\nSee also [Godot docs for `GPUParticlesAttractor3D`](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractor3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct GpuParticlesAttractor3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GpuParticlesAttractor3D`][crate::classes::GpuParticlesAttractor3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GPUParticlesAttractor3D` methods](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractor3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGpuParticlesAttractor3D: crate::obj::GodotClass < Base = GpuParticlesAttractor3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GpuParticlesAttractor3D { + pub fn set_cull_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3825usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractor3D", "set_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cull_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3826usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractor3D", "get_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_strength(&mut self, strength: f32,) { + type CallSig = ((), f32); + let args = (strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3827usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractor3D", "set_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3828usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractor3D", "get_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_attenuation(&mut self, attenuation: f32,) { + type CallSig = ((), f32); + let args = (attenuation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3829usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractor3D", "set_attenuation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_attenuation(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3830usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractor3D", "get_attenuation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_directionality(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3831usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractor3D", "set_directionality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_directionality(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3832usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractor3D", "get_directionality", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GpuParticlesAttractor3D { + type Base = crate::classes::VisualInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GPUParticlesAttractor3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GpuParticlesAttractor3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for GpuParticlesAttractor3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GpuParticlesAttractor3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GpuParticlesAttractor3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GpuParticlesAttractor3D { + + } + impl std::ops::Deref for GpuParticlesAttractor3D { + type Target = crate::classes::VisualInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GpuParticlesAttractor3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GpuParticlesAttractor3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GpuParticlesAttractor3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesAttractor3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_box_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_box_3d.rs new file mode 100644 index 0000000..91bfc26 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_box_3d.rs @@ -0,0 +1,260 @@ +#![doc = "Sidecar module for class [`GpuParticlesAttractorBox3D`][crate::classes::GpuParticlesAttractorBox3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GPUParticlesAttractorBox3D` enums](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractorbox3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GPUParticlesAttractorBox3D.`\n\nInherits [`GpuParticlesAttractor3D`][crate::classes::GpuParticlesAttractor3D].\n\nRelated symbols:\n\n* [`IGpuParticlesAttractorBox3D`][crate::classes::IGpuParticlesAttractorBox3D]: virtual methods\n\n\nSee also [Godot docs for `GPUParticlesAttractorBox3D`](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractorbox3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GpuParticlesAttractorBox3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GpuParticlesAttractorBox3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GpuParticlesAttractorBox3D`][crate::classes::GpuParticlesAttractorBox3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GPUParticlesAttractorBox3D` methods](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractorbox3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGpuParticlesAttractorBox3D: crate::obj::GodotClass < Base = GpuParticlesAttractorBox3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GpuParticlesAttractorBox3D { + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3833usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractorBox3D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3834usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractorBox3D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GpuParticlesAttractorBox3D { + type Base = crate::classes::GpuParticlesAttractor3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GPUParticlesAttractorBox3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GpuParticlesAttractorBox3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GpuParticlesAttractor3D > for GpuParticlesAttractorBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for GpuParticlesAttractorBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GpuParticlesAttractorBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GpuParticlesAttractorBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GpuParticlesAttractorBox3D { + + } + impl crate::obj::cap::GodotDefault for GpuParticlesAttractorBox3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GpuParticlesAttractorBox3D { + type Target = crate::classes::GpuParticlesAttractor3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GpuParticlesAttractorBox3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GpuParticlesAttractorBox3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GpuParticlesAttractorBox3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesAttractorBox3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesAttractor3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_sphere_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_sphere_3d.rs new file mode 100644 index 0000000..533d4f8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_sphere_3d.rs @@ -0,0 +1,260 @@ +#![doc = "Sidecar module for class [`GpuParticlesAttractorSphere3D`][crate::classes::GpuParticlesAttractorSphere3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GPUParticlesAttractorSphere3D` enums](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractorsphere3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GPUParticlesAttractorSphere3D.`\n\nInherits [`GpuParticlesAttractor3D`][crate::classes::GpuParticlesAttractor3D].\n\nRelated symbols:\n\n* [`IGpuParticlesAttractorSphere3D`][crate::classes::IGpuParticlesAttractorSphere3D]: virtual methods\n\n\nSee also [Godot docs for `GPUParticlesAttractorSphere3D`](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractorsphere3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GpuParticlesAttractorSphere3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GpuParticlesAttractorSphere3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GpuParticlesAttractorSphere3D`][crate::classes::GpuParticlesAttractorSphere3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GPUParticlesAttractorSphere3D` methods](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractorsphere3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGpuParticlesAttractorSphere3D: crate::obj::GodotClass < Base = GpuParticlesAttractorSphere3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GpuParticlesAttractorSphere3D { + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3835usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractorSphere3D", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3836usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractorSphere3D", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GpuParticlesAttractorSphere3D { + type Base = crate::classes::GpuParticlesAttractor3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GPUParticlesAttractorSphere3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GpuParticlesAttractorSphere3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GpuParticlesAttractor3D > for GpuParticlesAttractorSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for GpuParticlesAttractorSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GpuParticlesAttractorSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GpuParticlesAttractorSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GpuParticlesAttractorSphere3D { + + } + impl crate::obj::cap::GodotDefault for GpuParticlesAttractorSphere3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GpuParticlesAttractorSphere3D { + type Target = crate::classes::GpuParticlesAttractor3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GpuParticlesAttractorSphere3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GpuParticlesAttractorSphere3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GpuParticlesAttractorSphere3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesAttractorSphere3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesAttractor3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_vector_field_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_vector_field_3d.rs new file mode 100644 index 0000000..36d57fa --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_attractor_vector_field_3d.rs @@ -0,0 +1,276 @@ +#![doc = "Sidecar module for class [`GpuParticlesAttractorVectorField3D`][crate::classes::GpuParticlesAttractorVectorField3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GPUParticlesAttractorVectorField3D` enums](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractorvectorfield3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GPUParticlesAttractorVectorField3D.`\n\nInherits [`GpuParticlesAttractor3D`][crate::classes::GpuParticlesAttractor3D].\n\nRelated symbols:\n\n* [`IGpuParticlesAttractorVectorField3D`][crate::classes::IGpuParticlesAttractorVectorField3D]: virtual methods\n\n\nSee also [Godot docs for `GPUParticlesAttractorVectorField3D`](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractorvectorfield3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GpuParticlesAttractorVectorField3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GpuParticlesAttractorVectorField3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GpuParticlesAttractorVectorField3D`][crate::classes::GpuParticlesAttractorVectorField3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GPUParticlesAttractorVectorField3D` methods](https://docs.godotengine.org/en/stable/classes/class_gpuparticlesattractorvectorfield3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGpuParticlesAttractorVectorField3D: crate::obj::GodotClass < Base = GpuParticlesAttractorVectorField3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GpuParticlesAttractorVectorField3D { + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3837usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractorVectorField3D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3838usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractorVectorField3D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture3D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture3D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3839usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractorVectorField3D", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self,) -> Option < Gd < crate::classes::Texture3D > > { + type CallSig = (Option < Gd < crate::classes::Texture3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3840usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesAttractorVectorField3D", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GpuParticlesAttractorVectorField3D { + type Base = crate::classes::GpuParticlesAttractor3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GPUParticlesAttractorVectorField3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GpuParticlesAttractorVectorField3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GpuParticlesAttractor3D > for GpuParticlesAttractorVectorField3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for GpuParticlesAttractorVectorField3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GpuParticlesAttractorVectorField3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GpuParticlesAttractorVectorField3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GpuParticlesAttractorVectorField3D { + + } + impl crate::obj::cap::GodotDefault for GpuParticlesAttractorVectorField3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GpuParticlesAttractorVectorField3D { + type Target = crate::classes::GpuParticlesAttractor3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GpuParticlesAttractorVectorField3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GpuParticlesAttractorVectorField3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GpuParticlesAttractorVectorField3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesAttractorVectorField3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesAttractor3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_3d.rs new file mode 100644 index 0000000..b08885d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_3d.rs @@ -0,0 +1,249 @@ +#![doc = "Sidecar module for class [`GpuParticlesCollision3D`][crate::classes::GpuParticlesCollision3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GPUParticlesCollision3D` enums](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollision3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GPUParticlesCollision3D.`\n\nInherits [`VisualInstance3D`][crate::classes::VisualInstance3D].\n\nRelated symbols:\n\n* [`IGpuParticlesCollision3D`][crate::classes::IGpuParticlesCollision3D]: virtual methods\n\n\nSee also [Godot docs for `GPUParticlesCollision3D`](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollision3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct GpuParticlesCollision3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GpuParticlesCollision3D`][crate::classes::GpuParticlesCollision3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GPUParticlesCollision3D` methods](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollision3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGpuParticlesCollision3D: crate::obj::GodotClass < Base = GpuParticlesCollision3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GpuParticlesCollision3D { + pub fn set_cull_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3841usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollision3D", "set_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cull_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3842usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollision3D", "get_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GpuParticlesCollision3D { + type Base = crate::classes::VisualInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GPUParticlesCollision3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GpuParticlesCollision3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for GpuParticlesCollision3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GpuParticlesCollision3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GpuParticlesCollision3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GpuParticlesCollision3D { + + } + impl std::ops::Deref for GpuParticlesCollision3D { + type Target = crate::classes::VisualInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GpuParticlesCollision3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GpuParticlesCollision3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GpuParticlesCollision3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesCollision3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_box_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_box_3d.rs new file mode 100644 index 0000000..a75e0b4 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_box_3d.rs @@ -0,0 +1,260 @@ +#![doc = "Sidecar module for class [`GpuParticlesCollisionBox3D`][crate::classes::GpuParticlesCollisionBox3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GPUParticlesCollisionBox3D` enums](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionbox3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GPUParticlesCollisionBox3D.`\n\nInherits [`GpuParticlesCollision3D`][crate::classes::GpuParticlesCollision3D].\n\nRelated symbols:\n\n* [`IGpuParticlesCollisionBox3D`][crate::classes::IGpuParticlesCollisionBox3D]: virtual methods\n\n\nSee also [Godot docs for `GPUParticlesCollisionBox3D`](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionbox3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GpuParticlesCollisionBox3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GpuParticlesCollisionBox3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GpuParticlesCollisionBox3D`][crate::classes::GpuParticlesCollisionBox3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GPUParticlesCollisionBox3D` methods](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionbox3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGpuParticlesCollisionBox3D: crate::obj::GodotClass < Base = GpuParticlesCollisionBox3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GpuParticlesCollisionBox3D { + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3843usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionBox3D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3844usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionBox3D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GpuParticlesCollisionBox3D { + type Base = crate::classes::GpuParticlesCollision3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GPUParticlesCollisionBox3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GpuParticlesCollisionBox3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GpuParticlesCollision3D > for GpuParticlesCollisionBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for GpuParticlesCollisionBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GpuParticlesCollisionBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GpuParticlesCollisionBox3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GpuParticlesCollisionBox3D { + + } + impl crate::obj::cap::GodotDefault for GpuParticlesCollisionBox3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GpuParticlesCollisionBox3D { + type Target = crate::classes::GpuParticlesCollision3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GpuParticlesCollisionBox3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GpuParticlesCollisionBox3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GpuParticlesCollisionBox3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesCollisionBox3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesCollision3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_height_field_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_height_field_3d.rs new file mode 100644 index 0000000..bd1a0fe --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_height_field_3d.rs @@ -0,0 +1,465 @@ +#![doc = "Sidecar module for class [`GpuParticlesCollisionHeightField3D`][crate::classes::GpuParticlesCollisionHeightField3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GPUParticlesCollisionHeightField3D` enums](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionheightfield3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GPUParticlesCollisionHeightField3D.`\n\nInherits [`GpuParticlesCollision3D`][crate::classes::GpuParticlesCollision3D].\n\nRelated symbols:\n\n* [`gpu_particles_collision_height_field_3d`][crate::classes::gpu_particles_collision_height_field_3d]: sidecar module with related enum/flag types\n* [`IGpuParticlesCollisionHeightField3D`][crate::classes::IGpuParticlesCollisionHeightField3D]: virtual methods\n\n\nSee also [Godot docs for `GPUParticlesCollisionHeightField3D`](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionheightfield3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GpuParticlesCollisionHeightField3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GpuParticlesCollisionHeightField3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GpuParticlesCollisionHeightField3D`][crate::classes::GpuParticlesCollisionHeightField3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GPUParticlesCollisionHeightField3D` methods](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionheightfield3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGpuParticlesCollisionHeightField3D: crate::obj::GodotClass < Base = GpuParticlesCollisionHeightField3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GpuParticlesCollisionHeightField3D { + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3845usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionHeightField3D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3846usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionHeightField3D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_resolution(&mut self, resolution: crate::classes::gpu_particles_collision_height_field_3d::Resolution,) { + type CallSig = ((), crate::classes::gpu_particles_collision_height_field_3d::Resolution); + let args = (resolution,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3847usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionHeightField3D", "set_resolution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_resolution(&self,) -> crate::classes::gpu_particles_collision_height_field_3d::Resolution { + type CallSig = (crate::classes::gpu_particles_collision_height_field_3d::Resolution,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3848usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionHeightField3D", "get_resolution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_update_mode(&mut self, update_mode: crate::classes::gpu_particles_collision_height_field_3d::UpdateMode,) { + type CallSig = ((), crate::classes::gpu_particles_collision_height_field_3d::UpdateMode); + let args = (update_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3849usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionHeightField3D", "set_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_update_mode(&self,) -> crate::classes::gpu_particles_collision_height_field_3d::UpdateMode { + type CallSig = (crate::classes::gpu_particles_collision_height_field_3d::UpdateMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3850usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionHeightField3D", "get_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_follow_camera_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3851usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionHeightField3D", "set_follow_camera_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_follow_camera_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3852usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionHeightField3D", "is_follow_camera_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GpuParticlesCollisionHeightField3D { + type Base = crate::classes::GpuParticlesCollision3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GPUParticlesCollisionHeightField3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GpuParticlesCollisionHeightField3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GpuParticlesCollision3D > for GpuParticlesCollisionHeightField3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for GpuParticlesCollisionHeightField3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GpuParticlesCollisionHeightField3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GpuParticlesCollisionHeightField3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GpuParticlesCollisionHeightField3D { + + } + impl crate::obj::cap::GodotDefault for GpuParticlesCollisionHeightField3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GpuParticlesCollisionHeightField3D { + type Target = crate::classes::GpuParticlesCollision3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GpuParticlesCollisionHeightField3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GpuParticlesCollisionHeightField3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GpuParticlesCollisionHeightField3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesCollisionHeightField3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesCollision3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Resolution { + ord: i32 +} +impl Resolution { + pub const RESOLUTION_256: Resolution = Resolution { + ord: 0i32 + }; + pub const RESOLUTION_512: Resolution = Resolution { + ord: 1i32 + }; + pub const RESOLUTION_1024: Resolution = Resolution { + ord: 2i32 + }; + pub const RESOLUTION_2048: Resolution = Resolution { + ord: 3i32 + }; + pub const RESOLUTION_4096: Resolution = Resolution { + ord: 4i32 + }; + pub const RESOLUTION_8192: Resolution = Resolution { + ord: 5i32 + }; + #[doc(alias = "RESOLUTION_MAX")] + #[doc = "Godot enumerator name: `RESOLUTION_MAX`"] + pub const MAX: Resolution = Resolution { + ord: 6i32 + }; + +} +impl std::fmt::Debug for Resolution { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Resolution") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Resolution { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RESOLUTION_256 => "RESOLUTION_256", Self::RESOLUTION_512 => "RESOLUTION_512", Self::RESOLUTION_1024 => "RESOLUTION_1024", Self::RESOLUTION_2048 => "RESOLUTION_2048", Self::RESOLUTION_4096 => "RESOLUTION_4096", Self::RESOLUTION_8192 => "RESOLUTION_8192", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MAX => "RESOLUTION_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Resolution { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for Resolution { + type Via = i32; + +} +impl crate::meta::ToGodot for Resolution { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Resolution { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct UpdateMode { + ord: i32 +} +impl UpdateMode { + #[doc(alias = "UPDATE_MODE_WHEN_MOVED")] + #[doc = "Godot enumerator name: `UPDATE_MODE_WHEN_MOVED`"] + pub const WHEN_MOVED: UpdateMode = UpdateMode { + ord: 0i32 + }; + #[doc(alias = "UPDATE_MODE_ALWAYS")] + #[doc = "Godot enumerator name: `UPDATE_MODE_ALWAYS`"] + pub const ALWAYS: UpdateMode = UpdateMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for UpdateMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("UpdateMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for UpdateMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WHEN_MOVED => "WHEN_MOVED", Self::ALWAYS => "ALWAYS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WHEN_MOVED => "UPDATE_MODE_WHEN_MOVED", Self::ALWAYS => "UPDATE_MODE_ALWAYS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for UpdateMode { + type Via = i32; + +} +impl crate::meta::ToGodot for UpdateMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for UpdateMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_sdf_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_sdf_3d.rs new file mode 100644 index 0000000..2e0256c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_sdf_3d.rs @@ -0,0 +1,427 @@ +#![doc = "Sidecar module for class [`GpuParticlesCollisionSdf3d`][crate::classes::GpuParticlesCollisionSdf3d].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GPUParticlesCollisionSDF3D` enums](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionsdf3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GPUParticlesCollisionSDF3D.`\n\nInherits [`GpuParticlesCollision3D`][crate::classes::GpuParticlesCollision3D].\n\nRelated symbols:\n\n* [`gpu_particles_collision_sdf_3d`][crate::classes::gpu_particles_collision_sdf_3d]: sidecar module with related enum/flag types\n* [`IGpuParticlesCollisionSdf3d`][crate::classes::IGpuParticlesCollisionSdf3d]: virtual methods\n\n\nSee also [Godot docs for `GPUParticlesCollisionSDF3D`](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionsdf3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GpuParticlesCollisionSdf3d::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GpuParticlesCollisionSdf3d { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GpuParticlesCollisionSdf3d`][crate::classes::GpuParticlesCollisionSdf3d].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GPUParticlesCollisionSDF3D` methods](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionsdf3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGpuParticlesCollisionSdf3d: crate::obj::GodotClass < Base = GpuParticlesCollisionSdf3d > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GpuParticlesCollisionSdf3d { + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3853usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3854usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_resolution(&mut self, resolution: crate::classes::gpu_particles_collision_sdf_3d::Resolution,) { + type CallSig = ((), crate::classes::gpu_particles_collision_sdf_3d::Resolution); + let args = (resolution,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3855usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "set_resolution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_resolution(&self,) -> crate::classes::gpu_particles_collision_sdf_3d::Resolution { + type CallSig = (crate::classes::gpu_particles_collision_sdf_3d::Resolution,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3856usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "get_resolution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture3D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture3D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3857usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self,) -> Option < Gd < crate::classes::Texture3D > > { + type CallSig = (Option < Gd < crate::classes::Texture3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3858usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_thickness(&mut self, thickness: f32,) { + type CallSig = ((), f32); + let args = (thickness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3859usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "set_thickness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_thickness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3860usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "get_thickness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bake_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3861usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "set_bake_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3862usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "get_bake_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bake_mask_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3863usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "set_bake_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_mask_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3864usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSdf3d", "get_bake_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GpuParticlesCollisionSdf3d { + type Base = crate::classes::GpuParticlesCollision3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GPUParticlesCollisionSDF3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GpuParticlesCollisionSdf3d { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GpuParticlesCollision3D > for GpuParticlesCollisionSdf3d { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for GpuParticlesCollisionSdf3d { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GpuParticlesCollisionSdf3d { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GpuParticlesCollisionSdf3d { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GpuParticlesCollisionSdf3d { + + } + impl crate::obj::cap::GodotDefault for GpuParticlesCollisionSdf3d { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GpuParticlesCollisionSdf3d { + type Target = crate::classes::GpuParticlesCollision3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GpuParticlesCollisionSdf3d { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GpuParticlesCollisionSdf3d`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GpuParticlesCollisionSdf3d { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesCollisionSdf3d > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesCollision3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Resolution { + ord: i32 +} +impl Resolution { + pub const RESOLUTION_16: Resolution = Resolution { + ord: 0i32 + }; + pub const RESOLUTION_32: Resolution = Resolution { + ord: 1i32 + }; + pub const RESOLUTION_64: Resolution = Resolution { + ord: 2i32 + }; + pub const RESOLUTION_128: Resolution = Resolution { + ord: 3i32 + }; + pub const RESOLUTION_256: Resolution = Resolution { + ord: 4i32 + }; + pub const RESOLUTION_512: Resolution = Resolution { + ord: 5i32 + }; + #[doc(alias = "RESOLUTION_MAX")] + #[doc = "Godot enumerator name: `RESOLUTION_MAX`"] + pub const MAX: Resolution = Resolution { + ord: 6i32 + }; + +} +impl std::fmt::Debug for Resolution { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Resolution") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Resolution { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RESOLUTION_16 => "RESOLUTION_16", Self::RESOLUTION_32 => "RESOLUTION_32", Self::RESOLUTION_64 => "RESOLUTION_64", Self::RESOLUTION_128 => "RESOLUTION_128", Self::RESOLUTION_256 => "RESOLUTION_256", Self::RESOLUTION_512 => "RESOLUTION_512", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MAX => "RESOLUTION_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Resolution { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for Resolution { + type Via = i32; + +} +impl crate::meta::ToGodot for Resolution { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Resolution { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_sphere_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_sphere_3d.rs new file mode 100644 index 0000000..87973e3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gpu_particles_collision_sphere_3d.rs @@ -0,0 +1,260 @@ +#![doc = "Sidecar module for class [`GpuParticlesCollisionSphere3D`][crate::classes::GpuParticlesCollisionSphere3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GPUParticlesCollisionSphere3D` enums](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionsphere3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GPUParticlesCollisionSphere3D.`\n\nInherits [`GpuParticlesCollision3D`][crate::classes::GpuParticlesCollision3D].\n\nRelated symbols:\n\n* [`IGpuParticlesCollisionSphere3D`][crate::classes::IGpuParticlesCollisionSphere3D]: virtual methods\n\n\nSee also [Godot docs for `GPUParticlesCollisionSphere3D`](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionsphere3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GpuParticlesCollisionSphere3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GpuParticlesCollisionSphere3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GpuParticlesCollisionSphere3D`][crate::classes::GpuParticlesCollisionSphere3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GPUParticlesCollisionSphere3D` methods](https://docs.godotengine.org/en/stable/classes/class_gpuparticlescollisionsphere3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGpuParticlesCollisionSphere3D: crate::obj::GodotClass < Base = GpuParticlesCollisionSphere3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GpuParticlesCollisionSphere3D { + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3865usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSphere3D", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3866usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GpuParticlesCollisionSphere3D", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GpuParticlesCollisionSphere3D { + type Base = crate::classes::GpuParticlesCollision3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GPUParticlesCollisionSphere3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GpuParticlesCollisionSphere3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GpuParticlesCollision3D > for GpuParticlesCollisionSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for GpuParticlesCollisionSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GpuParticlesCollisionSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GpuParticlesCollisionSphere3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GpuParticlesCollisionSphere3D { + + } + impl crate::obj::cap::GodotDefault for GpuParticlesCollisionSphere3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GpuParticlesCollisionSphere3D { + type Target = crate::classes::GpuParticlesCollision3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GpuParticlesCollisionSphere3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GpuParticlesCollisionSphere3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GpuParticlesCollisionSphere3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesCollisionSphere3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GpuParticlesCollision3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gradient.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gradient.rs new file mode 100644 index 0000000..1875a40 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gradient.rs @@ -0,0 +1,488 @@ +#![doc = "Sidecar module for class [`Gradient`][crate::classes::Gradient].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Gradient` enums](https://docs.godotengine.org/en/stable/classes/class_gradient.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Gradient.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`gradient`][crate::classes::gradient]: sidecar module with related enum/flag types\n* [`IGradient`][crate::classes::IGradient]: virtual methods\n\n\nSee also [Godot docs for `Gradient`](https://docs.godotengine.org/en/stable/classes/class_gradient.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Gradient::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Gradient { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Gradient`][crate::classes::Gradient].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Gradient` methods](https://docs.godotengine.org/en/stable/classes/class_gradient.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGradient: crate::obj::GodotClass < Base = Gradient > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Gradient { + pub fn add_point(&mut self, offset: f32, color: Color,) { + type CallSig = ((), f32, Color); + let args = (offset, color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3949usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "add_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_point(&mut self, point: i32,) { + type CallSig = ((), i32); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3950usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "remove_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offset(&mut self, point: i32, offset: f32,) { + type CallSig = ((), i32, f32); + let args = (point, offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3951usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "set_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset(&mut self, point: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3952usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "get_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reverse(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3953usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "reverse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color(&mut self, point: i32, color: Color,) { + type CallSig = ((), i32, Color); + let args = (point, color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3954usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&mut self, point: i32,) -> Color { + type CallSig = (Color, i32); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3955usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sample(&mut self, offset: f32,) -> Color { + type CallSig = (Color, f32); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3956usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "sample", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3957usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "get_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offsets(&mut self, offsets: &PackedFloat32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedFloat32Array >); + let args = (RefArg::new(offsets),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3958usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "set_offsets", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offsets(&self,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3959usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "get_offsets", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_colors(&mut self, colors: &PackedColorArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedColorArray >); + let args = (RefArg::new(colors),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3960usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "set_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_colors(&self,) -> PackedColorArray { + type CallSig = (PackedColorArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3961usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "get_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_interpolation_mode(&mut self, interpolation_mode: crate::classes::gradient::InterpolationMode,) { + type CallSig = ((), crate::classes::gradient::InterpolationMode); + let args = (interpolation_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3962usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "set_interpolation_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_interpolation_mode(&mut self,) -> crate::classes::gradient::InterpolationMode { + type CallSig = (crate::classes::gradient::InterpolationMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3963usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "get_interpolation_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_interpolation_color_space(&mut self, interpolation_color_space: crate::classes::gradient::ColorSpace,) { + type CallSig = ((), crate::classes::gradient::ColorSpace); + let args = (interpolation_color_space,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3964usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "set_interpolation_color_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_interpolation_color_space(&mut self,) -> crate::classes::gradient::ColorSpace { + type CallSig = (crate::classes::gradient::ColorSpace,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3965usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Gradient", "get_interpolation_color_space", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Gradient { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Gradient")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Gradient { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Gradient { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Gradient { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Gradient { + + } + impl crate::obj::cap::GodotDefault for Gradient { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Gradient { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Gradient { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Gradient`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Gradient { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Gradient > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct InterpolationMode { + ord: i32 +} +impl InterpolationMode { + #[doc(alias = "GRADIENT_INTERPOLATE_LINEAR")] + #[doc = "Godot enumerator name: `GRADIENT_INTERPOLATE_LINEAR`"] + pub const LINEAR: InterpolationMode = InterpolationMode { + ord: 0i32 + }; + #[doc(alias = "GRADIENT_INTERPOLATE_CONSTANT")] + #[doc = "Godot enumerator name: `GRADIENT_INTERPOLATE_CONSTANT`"] + pub const CONSTANT: InterpolationMode = InterpolationMode { + ord: 1i32 + }; + #[doc(alias = "GRADIENT_INTERPOLATE_CUBIC")] + #[doc = "Godot enumerator name: `GRADIENT_INTERPOLATE_CUBIC`"] + pub const CUBIC: InterpolationMode = InterpolationMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for InterpolationMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("InterpolationMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for InterpolationMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR => "LINEAR", Self::CONSTANT => "CONSTANT", Self::CUBIC => "CUBIC", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR => "GRADIENT_INTERPOLATE_LINEAR", Self::CONSTANT => "GRADIENT_INTERPOLATE_CONSTANT", Self::CUBIC => "GRADIENT_INTERPOLATE_CUBIC", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for InterpolationMode { + type Via = i32; + +} +impl crate::meta::ToGodot for InterpolationMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for InterpolationMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ColorSpace { + ord: i32 +} +impl ColorSpace { + #[doc(alias = "GRADIENT_COLOR_SPACE_SRGB")] + #[doc = "Godot enumerator name: `GRADIENT_COLOR_SPACE_SRGB`"] + pub const SRGB: ColorSpace = ColorSpace { + ord: 0i32 + }; + #[doc(alias = "GRADIENT_COLOR_SPACE_LINEAR_SRGB")] + #[doc = "Godot enumerator name: `GRADIENT_COLOR_SPACE_LINEAR_SRGB`"] + pub const LINEAR_SRGB: ColorSpace = ColorSpace { + ord: 1i32 + }; + #[doc(alias = "GRADIENT_COLOR_SPACE_OKLAB")] + #[doc = "Godot enumerator name: `GRADIENT_COLOR_SPACE_OKLAB`"] + pub const OKLAB: ColorSpace = ColorSpace { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ColorSpace { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ColorSpace") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ColorSpace { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SRGB => "SRGB", Self::LINEAR_SRGB => "LINEAR_SRGB", Self::OKLAB => "OKLAB", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SRGB => "GRADIENT_COLOR_SPACE_SRGB", Self::LINEAR_SRGB => "GRADIENT_COLOR_SPACE_LINEAR_SRGB", Self::OKLAB => "GRADIENT_COLOR_SPACE_OKLAB", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ColorSpace { + type Via = i32; + +} +impl crate::meta::ToGodot for ColorSpace { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ColorSpace { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gradient_texture_1d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gradient_texture_1d.rs new file mode 100644 index 0000000..b91f7c6 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gradient_texture_1d.rs @@ -0,0 +1,271 @@ +#![doc = "Sidecar module for class [`GradientTexture1D`][crate::classes::GradientTexture1D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GradientTexture1D` enums](https://docs.godotengine.org/en/stable/classes/class_gradienttexture1d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GradientTexture1D.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`IGradientTexture1D`][crate::classes::IGradientTexture1D]: virtual methods\n\n\nSee also [Godot docs for `GradientTexture1D`](https://docs.godotengine.org/en/stable/classes/class_gradienttexture1d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GradientTexture1D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GradientTexture1D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GradientTexture1D`][crate::classes::GradientTexture1D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GradientTexture1D` methods](https://docs.godotengine.org/en/stable/classes/class_gradienttexture1d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGradientTexture1D: crate::obj::GodotClass < Base = GradientTexture1D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GradientTexture1D { + pub fn set_gradient(&mut self, gradient: impl AsObjectArg < crate::classes::Gradient >,) { + type CallSig = ((), ObjectArg < crate::classes::Gradient >); + let args = (gradient.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3966usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture1D", "set_gradient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gradient(&self,) -> Option < Gd < crate::classes::Gradient > > { + type CallSig = (Option < Gd < crate::classes::Gradient > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3967usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture1D", "get_gradient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_width(&mut self, width: i32,) { + type CallSig = ((), i32); + let args = (width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3968usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture1D", "set_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_hdr(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3969usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture1D", "set_use_hdr", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_hdr(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3970usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture1D", "is_using_hdr", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GradientTexture1D { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GradientTexture1D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GradientTexture1D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for GradientTexture1D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for GradientTexture1D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GradientTexture1D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GradientTexture1D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GradientTexture1D { + + } + impl crate::obj::cap::GodotDefault for GradientTexture1D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GradientTexture1D { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GradientTexture1D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GradientTexture1D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GradientTexture1D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GradientTexture1D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gradient_texture_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gradient_texture_2d.rs new file mode 100644 index 0000000..3597037 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/gradient_texture_2d.rs @@ -0,0 +1,484 @@ +#![doc = "Sidecar module for class [`GradientTexture2D`][crate::classes::GradientTexture2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GradientTexture2D` enums](https://docs.godotengine.org/en/stable/classes/class_gradienttexture2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GradientTexture2D.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`gradient_texture_2d`][crate::classes::gradient_texture_2d]: sidecar module with related enum/flag types\n* [`IGradientTexture2D`][crate::classes::IGradientTexture2D]: virtual methods\n\n\nSee also [Godot docs for `GradientTexture2D`](https://docs.godotengine.org/en/stable/classes/class_gradienttexture2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`GradientTexture2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct GradientTexture2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GradientTexture2D`][crate::classes::GradientTexture2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GradientTexture2D` methods](https://docs.godotengine.org/en/stable/classes/class_gradienttexture2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGradientTexture2D: crate::obj::GodotClass < Base = GradientTexture2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl GradientTexture2D { + pub fn set_gradient(&mut self, gradient: impl AsObjectArg < crate::classes::Gradient >,) { + type CallSig = ((), ObjectArg < crate::classes::Gradient >); + let args = (gradient.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3971usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "set_gradient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gradient(&self,) -> Option < Gd < crate::classes::Gradient > > { + type CallSig = (Option < Gd < crate::classes::Gradient > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3972usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "get_gradient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_width(&mut self, width: i32,) { + type CallSig = ((), i32); + let args = (width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3973usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "set_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: i32,) { + type CallSig = ((), i32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3974usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_hdr(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3975usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "set_use_hdr", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_hdr(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3976usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "is_using_hdr", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fill(&mut self, fill: crate::classes::gradient_texture_2d::Fill,) { + type CallSig = ((), crate::classes::gradient_texture_2d::Fill); + let args = (fill,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3977usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "set_fill", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fill(&self,) -> crate::classes::gradient_texture_2d::Fill { + type CallSig = (crate::classes::gradient_texture_2d::Fill,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3978usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "get_fill", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fill_from(&mut self, fill_from: Vector2,) { + type CallSig = ((), Vector2); + let args = (fill_from,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3979usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "set_fill_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fill_from(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3980usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "get_fill_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fill_to(&mut self, fill_to: Vector2,) { + type CallSig = ((), Vector2); + let args = (fill_to,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3981usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "set_fill_to", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fill_to(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3982usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "get_fill_to", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_repeat(&mut self, repeat: crate::classes::gradient_texture_2d::Repeat,) { + type CallSig = ((), crate::classes::gradient_texture_2d::Repeat); + let args = (repeat,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3983usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "set_repeat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_repeat(&self,) -> crate::classes::gradient_texture_2d::Repeat { + type CallSig = (crate::classes::gradient_texture_2d::Repeat,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3984usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GradientTexture2D", "get_repeat", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GradientTexture2D { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GradientTexture2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GradientTexture2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for GradientTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for GradientTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for GradientTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for GradientTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GradientTexture2D { + + } + impl crate::obj::cap::GodotDefault for GradientTexture2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GradientTexture2D { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GradientTexture2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GradientTexture2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GradientTexture2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GradientTexture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Fill { + ord: i32 +} +impl Fill { + #[doc(alias = "FILL_LINEAR")] + #[doc = "Godot enumerator name: `FILL_LINEAR`"] + pub const LINEAR: Fill = Fill { + ord: 0i32 + }; + #[doc(alias = "FILL_RADIAL")] + #[doc = "Godot enumerator name: `FILL_RADIAL`"] + pub const RADIAL: Fill = Fill { + ord: 1i32 + }; + #[doc(alias = "FILL_SQUARE")] + #[doc = "Godot enumerator name: `FILL_SQUARE`"] + pub const SQUARE: Fill = Fill { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Fill { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Fill") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Fill { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR => "LINEAR", Self::RADIAL => "RADIAL", Self::SQUARE => "SQUARE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR => "FILL_LINEAR", Self::RADIAL => "FILL_RADIAL", Self::SQUARE => "FILL_SQUARE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Fill { + type Via = i32; + +} +impl crate::meta::ToGodot for Fill { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Fill { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Repeat { + ord: i32 +} +impl Repeat { + pub const REPEAT_NONE: Repeat = Repeat { + ord: 0i32 + }; + pub const REPEAT: Repeat = Repeat { + ord: 1i32 + }; + pub const REPEAT_MIRROR: Repeat = Repeat { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Repeat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Repeat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Repeat { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::REPEAT_NONE => "REPEAT_NONE", Self::REPEAT => "REPEAT", Self::REPEAT_MIRROR => "REPEAT_MIRROR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + self.as_str() + } +} +impl crate::meta::GodotConvert for Repeat { + type Via = i32; + +} +impl crate::meta::ToGodot for Repeat { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Repeat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/grid_container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/grid_container.rs new file mode 100644 index 0000000..11d5b99 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/grid_container.rs @@ -0,0 +1,293 @@ +#![doc = "Sidecar module for class [`GridContainer`][crate::classes::GridContainer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GridContainer` enums](https://docs.godotengine.org/en/stable/classes/class_gridcontainer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GridContainer.`\n\nInherits [`Container`][crate::classes::Container].\n\nRelated symbols:\n\n* [`IGridContainer`][crate::classes::IGridContainer]: virtual methods\n\n\nSee also [Godot docs for `GridContainer`](https://docs.godotengine.org/en/stable/classes/class_gridcontainer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GridContainer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GridContainer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GridContainer`][crate::classes::GridContainer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GridContainer` methods](https://docs.godotengine.org/en/stable/classes/class_gridcontainer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGridContainer: crate::obj::GodotClass < Base = GridContainer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GridContainer { + pub fn set_columns(&mut self, columns: i32,) { + type CallSig = ((), i32); + let args = (columns,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3985usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridContainer", "set_columns", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_columns(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3986usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridContainer", "get_columns", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GridContainer { + type Base = crate::classes::Container; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GridContainer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GridContainer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for GridContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for GridContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for GridContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GridContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GridContainer { + + } + impl crate::obj::cap::GodotDefault for GridContainer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GridContainer { + type Target = crate::classes::Container; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GridContainer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GridContainer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GridContainer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GridContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/grid_map.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/grid_map.rs new file mode 100644 index 0000000..e3fe5fb --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/grid_map.rs @@ -0,0 +1,688 @@ +#![doc = "Sidecar module for class [`GridMap`][crate::classes::GridMap].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GridMap` enums](https://docs.godotengine.org/en/stable/classes/class_gridmap.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GridMap.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`grid_map`][crate::classes::grid_map]: sidecar module with related enum/flag types\n* [`IGridMap`][crate::classes::IGridMap]: virtual methods\n\n\nSee also [Godot docs for `GridMap`](https://docs.godotengine.org/en/stable/classes/class_gridmap.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GridMap::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GridMap { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GridMap`][crate::classes::GridMap].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GridMap` methods](https://docs.godotengine.org/en/stable/classes/class_gridmap.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGridMap: crate::obj::GodotClass < Base = GridMap > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GridMap { + pub fn set_collision_layer(&mut self, layer: u32,) { + type CallSig = ((), u32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3987usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_layer(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3988usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3989usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3990usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3991usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3992usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_layer_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3993usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_collision_layer_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_layer_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3994usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_collision_layer_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_priority(&mut self, priority: f32,) { + type CallSig = ((), f32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3995usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_priority(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3996usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_physics_material(&mut self, material: impl AsObjectArg < crate::classes::PhysicsMaterial >,) { + type CallSig = ((), ObjectArg < crate::classes::PhysicsMaterial >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3997usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_physics_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physics_material(&self,) -> Option < Gd < crate::classes::PhysicsMaterial > > { + type CallSig = (Option < Gd < crate::classes::PhysicsMaterial > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3998usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_physics_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bake_navigation(&mut self, bake_navigation: bool,) { + type CallSig = ((), bool); + let args = (bake_navigation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(3999usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_bake_navigation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_baking_navigation(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4000usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "is_baking_navigation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_navigation_map(&mut self, navigation_map: Rid,) { + type CallSig = ((), Rid); + let args = (navigation_map,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4001usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_navigation_map", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_navigation_map(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4002usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_navigation_map", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mesh_library(&mut self, mesh_library: impl AsObjectArg < crate::classes::MeshLibrary >,) { + type CallSig = ((), ObjectArg < crate::classes::MeshLibrary >); + let args = (mesh_library.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4003usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_mesh_library", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh_library(&self,) -> Option < Gd < crate::classes::MeshLibrary > > { + type CallSig = (Option < Gd < crate::classes::MeshLibrary > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4004usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_mesh_library", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cell_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4005usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_cell_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cell_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4006usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_cell_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cell_scale(&mut self, scale: f32,) { + type CallSig = ((), f32); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4007usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_cell_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cell_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4008usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_cell_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_octant_size(&mut self, size: i32,) { + type CallSig = ((), i32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4009usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_octant_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_octant_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4010usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_octant_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_cell_item_full(&mut self, position: Vector3i, item: i32, orientation: i32,) { + type CallSig = ((), Vector3i, i32, i32); + let args = (position, item, orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4011usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_cell_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_cell_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_cell_item(&mut self, position: Vector3i, item: i32,) { + self.set_cell_item_ex(position, item,) . done() + } + #[inline] + pub fn set_cell_item_ex < 'a > (&'a mut self, position: Vector3i, item: i32,) -> ExSetCellItem < 'a > { + ExSetCellItem::new(self, position, item,) + } + pub fn get_cell_item(&self, position: Vector3i,) -> i32 { + type CallSig = (i32, Vector3i); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4012usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_cell_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cell_item_orientation(&self, position: Vector3i,) -> i32 { + type CallSig = (i32, Vector3i); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4013usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_cell_item_orientation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cell_item_basis(&self, position: Vector3i,) -> Basis { + type CallSig = (Basis, Vector3i); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4014usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_cell_item_basis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_basis_with_orthogonal_index(&self, index: i32,) -> Basis { + type CallSig = (Basis, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4015usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_basis_with_orthogonal_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_orthogonal_index_from_basis(&self, basis: Basis,) -> i32 { + type CallSig = (i32, Basis); + let args = (basis,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4016usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_orthogonal_index_from_basis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn local_to_map(&self, local_position: Vector3,) -> Vector3i { + type CallSig = (Vector3i, Vector3); + let args = (local_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4017usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "local_to_map", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn map_to_local(&self, map_position: Vector3i,) -> Vector3 { + type CallSig = (Vector3, Vector3i); + let args = (map_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4018usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "map_to_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn resource_changed(&mut self, resource: impl AsObjectArg < crate::classes::Resource >,) { + type CallSig = ((), ObjectArg < crate::classes::Resource >); + let args = (resource.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4019usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "resource_changed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_center_x(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4020usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_center_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_x(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4021usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_center_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_center_y(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4022usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_center_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_y(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4023usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_center_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_center_z(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4024usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "set_center_z", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_z(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4025usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_center_z", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4026usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_used_cells(&self,) -> Array < Vector3i > { + type CallSig = (Array < Vector3i >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4027usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_used_cells", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_used_cells_by_item(&self, item: i32,) -> Array < Vector3i > { + type CallSig = (Array < Vector3i >, i32); + let args = (item,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4028usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_used_cells_by_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_meshes(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4029usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_meshes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_meshes(&mut self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4030usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_bake_meshes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_mesh_instance(&mut self, idx: i32,) -> Rid { + type CallSig = (Rid, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4031usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "get_bake_mesh_instance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_baked_meshes(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4032usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "clear_baked_meshes", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn make_baked_meshes_full(&mut self, gen_lightmap_uv: bool, lightmap_uv_texel_size: f32,) { + type CallSig = ((), bool, f32); + let args = (gen_lightmap_uv, lightmap_uv_texel_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4033usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GridMap", "make_baked_meshes", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::make_baked_meshes_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn make_baked_meshes(&mut self,) { + self.make_baked_meshes_ex() . done() + } + #[inline] + pub fn make_baked_meshes_ex < 'a > (&'a mut self,) -> ExMakeBakedMeshes < 'a > { + ExMakeBakedMeshes::new(self,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const INVALID_CELL_ITEM: i32 = - 1i32; + + } + impl crate::obj::GodotClass for GridMap { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GridMap")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GridMap { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for GridMap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GridMap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GridMap { + + } + impl crate::obj::cap::GodotDefault for GridMap { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GridMap { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GridMap { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GridMap`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GridMap { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GridMap > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`GridMap::set_cell_item_ex`][super::GridMap::set_cell_item_ex]."] +#[must_use] +pub struct ExSetCellItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::GridMap, position: Vector3i, item: i32, orientation: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetCellItem < 'a > { + fn new(surround_object: &'a mut re_export::GridMap, position: Vector3i, item: i32,) -> Self { + let orientation = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, item: item, orientation: orientation, + } + } + #[inline] + pub fn orientation(self, orientation: i32) -> Self { + Self { + orientation: orientation, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, item, orientation, + } + = self; + re_export::GridMap::set_cell_item_full(surround_object, position, item, orientation,) + } +} +#[doc = "Default-param extender for [`GridMap::make_baked_meshes_ex`][super::GridMap::make_baked_meshes_ex]."] +#[must_use] +pub struct ExMakeBakedMeshes < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::GridMap, gen_lightmap_uv: bool, lightmap_uv_texel_size: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExMakeBakedMeshes < 'a > { + fn new(surround_object: &'a mut re_export::GridMap,) -> Self { + let gen_lightmap_uv = false; + let lightmap_uv_texel_size = 0.1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, gen_lightmap_uv: gen_lightmap_uv, lightmap_uv_texel_size: lightmap_uv_texel_size, + } + } + #[inline] + pub fn gen_lightmap_uv(self, gen_lightmap_uv: bool) -> Self { + Self { + gen_lightmap_uv: gen_lightmap_uv, .. self + } + } + #[inline] + pub fn lightmap_uv_texel_size(self, lightmap_uv_texel_size: f32) -> Self { + Self { + lightmap_uv_texel_size: lightmap_uv_texel_size, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, gen_lightmap_uv, lightmap_uv_texel_size, + } + = self; + re_export::GridMap::make_baked_meshes_full(surround_object, gen_lightmap_uv, lightmap_uv_texel_size,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/groove_joint_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/groove_joint_2d.rs new file mode 100644 index 0000000..eac4cc5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/groove_joint_2d.rs @@ -0,0 +1,276 @@ +#![doc = "Sidecar module for class [`GrooveJoint2D`][crate::classes::GrooveJoint2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `GrooveJoint2D` enums](https://docs.godotengine.org/en/stable/classes/class_groovejoint2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `GrooveJoint2D.`\n\nInherits [`Joint2D`][crate::classes::Joint2D].\n\nRelated symbols:\n\n* [`IGrooveJoint2D`][crate::classes::IGrooveJoint2D]: virtual methods\n\n\nSee also [Godot docs for `GrooveJoint2D`](https://docs.godotengine.org/en/stable/classes/class_groovejoint2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`GrooveJoint2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct GrooveJoint2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`GrooveJoint2D`][crate::classes::GrooveJoint2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `GrooveJoint2D` methods](https://docs.godotengine.org/en/stable/classes/class_groovejoint2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IGrooveJoint2D: crate::obj::GodotClass < Base = GrooveJoint2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl GrooveJoint2D { + pub fn set_length(&mut self, length: f32,) { + type CallSig = ((), f32); + let args = (length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4034usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GrooveJoint2D", "set_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4035usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GrooveJoint2D", "get_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_initial_offset(&mut self, offset: f32,) { + type CallSig = ((), f32); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4036usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GrooveJoint2D", "set_initial_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_initial_offset(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4037usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "GrooveJoint2D", "get_initial_offset", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for GrooveJoint2D { + type Base = crate::classes::Joint2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"GrooveJoint2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for GrooveJoint2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Joint2D > for GrooveJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for GrooveJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for GrooveJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for GrooveJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for GrooveJoint2D { + + } + impl crate::obj::cap::GodotDefault for GrooveJoint2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for GrooveJoint2D { + type Target = crate::classes::Joint2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for GrooveJoint2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`GrooveJoint2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_GrooveJoint2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::GrooveJoint2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Joint2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_box_container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_box_container.rs new file mode 100644 index 0000000..95b62f1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_box_container.rs @@ -0,0 +1,283 @@ +#![doc = "Sidecar module for class [`HBoxContainer`][crate::classes::HBoxContainer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HBoxContainer` enums](https://docs.godotengine.org/en/stable/classes/class_hboxcontainer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HBoxContainer.`\n\nInherits [`BoxContainer`][crate::classes::BoxContainer].\n\nRelated symbols:\n\n* [`IHBoxContainer`][crate::classes::IHBoxContainer]: virtual methods\n\n\nSee also [Godot docs for `HBoxContainer`](https://docs.godotengine.org/en/stable/classes/class_hboxcontainer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`HBoxContainer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct HBoxContainer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HBoxContainer`][crate::classes::HBoxContainer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HBoxContainer` methods](https://docs.godotengine.org/en/stable/classes/class_hboxcontainer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHBoxContainer: crate::obj::GodotClass < Base = HBoxContainer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl HBoxContainer { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HBoxContainer { + type Base = crate::classes::BoxContainer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HBoxContainer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HBoxContainer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::BoxContainer > for HBoxContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for HBoxContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for HBoxContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for HBoxContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for HBoxContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HBoxContainer { + + } + impl crate::obj::cap::GodotDefault for HBoxContainer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HBoxContainer { + type Target = crate::classes::BoxContainer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HBoxContainer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HBoxContainer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HBoxContainer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HBoxContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BoxContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_flow_container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_flow_container.rs new file mode 100644 index 0000000..54598a3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_flow_container.rs @@ -0,0 +1,283 @@ +#![doc = "Sidecar module for class [`HFlowContainer`][crate::classes::HFlowContainer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HFlowContainer` enums](https://docs.godotengine.org/en/stable/classes/class_hflowcontainer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HFlowContainer.`\n\nInherits [`FlowContainer`][crate::classes::FlowContainer].\n\nRelated symbols:\n\n* [`IHFlowContainer`][crate::classes::IHFlowContainer]: virtual methods\n\n\nSee also [Godot docs for `HFlowContainer`](https://docs.godotengine.org/en/stable/classes/class_hflowcontainer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`HFlowContainer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct HFlowContainer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HFlowContainer`][crate::classes::HFlowContainer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HFlowContainer` methods](https://docs.godotengine.org/en/stable/classes/class_hflowcontainer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHFlowContainer: crate::obj::GodotClass < Base = HFlowContainer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl HFlowContainer { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HFlowContainer { + type Base = crate::classes::FlowContainer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HFlowContainer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HFlowContainer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::FlowContainer > for HFlowContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for HFlowContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for HFlowContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for HFlowContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for HFlowContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HFlowContainer { + + } + impl crate::obj::cap::GodotDefault for HFlowContainer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HFlowContainer { + type Target = crate::classes::FlowContainer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HFlowContainer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HFlowContainer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HFlowContainer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HFlowContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::FlowContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_scroll_bar.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_scroll_bar.rs new file mode 100644 index 0000000..1a80eba --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_scroll_bar.rs @@ -0,0 +1,280 @@ +#![doc = "Sidecar module for class [`HScrollBar`][crate::classes::HScrollBar].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HScrollBar` enums](https://docs.godotengine.org/en/stable/classes/class_hscrollbar.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HScrollBar.`\n\nInherits [`ScrollBar`][crate::classes::ScrollBar].\n\nRelated symbols:\n\n* [`IHScrollBar`][crate::classes::IHScrollBar]: virtual methods\n\n\nSee also [Godot docs for `HScrollBar`](https://docs.godotengine.org/en/stable/classes/class_hscrollbar.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`HScrollBar::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct HScrollBar { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HScrollBar`][crate::classes::HScrollBar].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HScrollBar` methods](https://docs.godotengine.org/en/stable/classes/class_hscrollbar.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHScrollBar: crate::obj::GodotClass < Base = HScrollBar > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn value_changed(&mut self, new_value: f64,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl HScrollBar { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HScrollBar { + type Base = crate::classes::ScrollBar; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HScrollBar")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HScrollBar { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::ScrollBar > for HScrollBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::Range > for HScrollBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for HScrollBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for HScrollBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for HScrollBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HScrollBar { + + } + impl crate::obj::cap::GodotDefault for HScrollBar { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HScrollBar { + type Target = crate::classes::ScrollBar; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HScrollBar { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HScrollBar`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HScrollBar { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HScrollBar > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ScrollBar > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Range > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_separator.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_separator.rs new file mode 100644 index 0000000..febada6 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_separator.rs @@ -0,0 +1,271 @@ +#![doc = "Sidecar module for class [`HSeparator`][crate::classes::HSeparator].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HSeparator` enums](https://docs.godotengine.org/en/stable/classes/class_hseparator.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HSeparator.`\n\nInherits [`Separator`][crate::classes::Separator].\n\nRelated symbols:\n\n* [`IHSeparator`][crate::classes::IHSeparator]: virtual methods\n\n\nSee also [Godot docs for `HSeparator`](https://docs.godotengine.org/en/stable/classes/class_hseparator.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`HSeparator::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct HSeparator { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HSeparator`][crate::classes::HSeparator].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HSeparator` methods](https://docs.godotengine.org/en/stable/classes/class_hseparator.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHSeparator: crate::obj::GodotClass < Base = HSeparator > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl HSeparator { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HSeparator { + type Base = crate::classes::Separator; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HSeparator")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HSeparator { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Separator > for HSeparator { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for HSeparator { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for HSeparator { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for HSeparator { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HSeparator { + + } + impl crate::obj::cap::GodotDefault for HSeparator { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HSeparator { + type Target = crate::classes::Separator; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HSeparator { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HSeparator`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HSeparator { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HSeparator > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Separator > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_slider.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_slider.rs new file mode 100644 index 0000000..9ad4f94 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_slider.rs @@ -0,0 +1,280 @@ +#![doc = "Sidecar module for class [`HSlider`][crate::classes::HSlider].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HSlider` enums](https://docs.godotengine.org/en/stable/classes/class_hslider.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HSlider.`\n\nInherits [`Slider`][crate::classes::Slider].\n\nRelated symbols:\n\n* [`IHSlider`][crate::classes::IHSlider]: virtual methods\n\n\nSee also [Godot docs for `HSlider`](https://docs.godotengine.org/en/stable/classes/class_hslider.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`HSlider::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct HSlider { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HSlider`][crate::classes::HSlider].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HSlider` methods](https://docs.godotengine.org/en/stable/classes/class_hslider.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHSlider: crate::obj::GodotClass < Base = HSlider > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn value_changed(&mut self, new_value: f64,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl HSlider { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HSlider { + type Base = crate::classes::Slider; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HSlider")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HSlider { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Slider > for HSlider { + + } + unsafe impl crate::obj::Inherits < crate::classes::Range > for HSlider { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for HSlider { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for HSlider { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for HSlider { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HSlider { + + } + impl crate::obj::cap::GodotDefault for HSlider { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HSlider { + type Target = crate::classes::Slider; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HSlider { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HSlider`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HSlider { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HSlider > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Slider > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Range > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_split_container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_split_container.rs new file mode 100644 index 0000000..558d130 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/h_split_container.rs @@ -0,0 +1,283 @@ +#![doc = "Sidecar module for class [`HSplitContainer`][crate::classes::HSplitContainer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HSplitContainer` enums](https://docs.godotengine.org/en/stable/classes/class_hsplitcontainer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HSplitContainer.`\n\nInherits [`SplitContainer`][crate::classes::SplitContainer].\n\nRelated symbols:\n\n* [`IHSplitContainer`][crate::classes::IHSplitContainer]: virtual methods\n\n\nSee also [Godot docs for `HSplitContainer`](https://docs.godotengine.org/en/stable/classes/class_hsplitcontainer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`HSplitContainer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct HSplitContainer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HSplitContainer`][crate::classes::HSplitContainer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HSplitContainer` methods](https://docs.godotengine.org/en/stable/classes/class_hsplitcontainer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHSplitContainer: crate::obj::GodotClass < Base = HSplitContainer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl HSplitContainer { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HSplitContainer { + type Base = crate::classes::SplitContainer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HSplitContainer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HSplitContainer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::SplitContainer > for HSplitContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for HSplitContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for HSplitContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for HSplitContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for HSplitContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HSplitContainer { + + } + impl crate::obj::cap::GodotDefault for HSplitContainer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HSplitContainer { + type Target = crate::classes::SplitContainer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HSplitContainer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HSplitContainer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HSplitContainer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HSplitContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::SplitContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/hashing_context.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/hashing_context.rs new file mode 100644 index 0000000..6f6eb64 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/hashing_context.rs @@ -0,0 +1,292 @@ +#![doc = "Sidecar module for class [`HashingContext`][crate::classes::HashingContext].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HashingContext` enums](https://docs.godotengine.org/en/stable/classes/class_hashingcontext.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HashingContext.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`hashing_context`][crate::classes::hashing_context]: sidecar module with related enum/flag types\n* [`IHashingContext`][crate::classes::IHashingContext]: virtual methods\n\n\nSee also [Godot docs for `HashingContext`](https://docs.godotengine.org/en/stable/classes/class_hashingcontext.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`HashingContext::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct HashingContext { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HashingContext`][crate::classes::HashingContext].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HashingContext` methods](https://docs.godotengine.org/en/stable/classes/class_hashingcontext.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHashingContext: crate::obj::GodotClass < Base = HashingContext > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl HashingContext { + pub fn start(&mut self, type_: crate::classes::hashing_context::HashType,) -> crate::global::Error { + type CallSig = (crate::global::Error, crate::classes::hashing_context::HashType); + let args = (type_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4086usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HashingContext", "start", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update(&mut self, chunk: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(chunk),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4087usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HashingContext", "update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn finish(&mut self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4088usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HashingContext", "finish", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HashingContext { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HashingContext")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HashingContext { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for HashingContext { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HashingContext { + + } + impl crate::obj::cap::GodotDefault for HashingContext { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HashingContext { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HashingContext { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HashingContext`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HashingContext { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HashingContext > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct HashType { + ord: i32 +} +impl HashType { + #[doc(alias = "HASH_MD5")] + #[doc = "Godot enumerator name: `HASH_MD5`"] + pub const MD5: HashType = HashType { + ord: 0i32 + }; + #[doc(alias = "HASH_SHA1")] + #[doc = "Godot enumerator name: `HASH_SHA1`"] + pub const SHA1: HashType = HashType { + ord: 1i32 + }; + #[doc(alias = "HASH_SHA256")] + #[doc = "Godot enumerator name: `HASH_SHA256`"] + pub const SHA256: HashType = HashType { + ord: 2i32 + }; + +} +impl std::fmt::Debug for HashType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("HashType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for HashType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MD5 => "MD5", Self::SHA1 => "SHA1", Self::SHA256 => "SHA256", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MD5 => "HASH_MD5", Self::SHA1 => "HASH_SHA1", Self::SHA256 => "HASH_SHA256", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for HashType { + type Via = i32; + +} +impl crate::meta::ToGodot for HashType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for HashType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/height_map_shape_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/height_map_shape_3d.rs new file mode 100644 index 0000000..004a068 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/height_map_shape_3d.rs @@ -0,0 +1,280 @@ +#![doc = "Sidecar module for class [`HeightMapShape3D`][crate::classes::HeightMapShape3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HeightMapShape3D` enums](https://docs.godotengine.org/en/stable/classes/class_heightmapshape3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HeightMapShape3D.`\n\nInherits [`Shape3D`][crate::classes::Shape3D].\n\nRelated symbols:\n\n* [`IHeightMapShape3D`][crate::classes::IHeightMapShape3D]: virtual methods\n\n\nSee also [Godot docs for `HeightMapShape3D`](https://docs.godotengine.org/en/stable/classes/class_heightmapshape3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`HeightMapShape3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct HeightMapShape3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HeightMapShape3D`][crate::classes::HeightMapShape3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HeightMapShape3D` methods](https://docs.godotengine.org/en/stable/classes/class_heightmapshape3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHeightMapShape3D: crate::obj::GodotClass < Base = HeightMapShape3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl HeightMapShape3D { + pub fn set_map_width(&mut self, width: i32,) { + type CallSig = ((), i32); + let args = (width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4089usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HeightMapShape3D", "set_map_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_map_width(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4090usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HeightMapShape3D", "get_map_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_map_depth(&mut self, height: i32,) { + type CallSig = ((), i32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4091usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HeightMapShape3D", "set_map_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_map_depth(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4092usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HeightMapShape3D", "get_map_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_map_data(&mut self, data: &PackedFloat32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedFloat32Array >); + let args = (RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4093usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HeightMapShape3D", "set_map_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_map_data(&self,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4094usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HeightMapShape3D", "get_map_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_min_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4095usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HeightMapShape3D", "get_min_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4096usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HeightMapShape3D", "get_max_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update_map_data_from_image(&mut self, image: impl AsObjectArg < crate::classes::Image >, height_min: f32, height_max: f32,) { + type CallSig = ((), ObjectArg < crate::classes::Image >, f32, f32); + let args = (image.as_object_arg(), height_min, height_max,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4097usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HeightMapShape3D", "update_map_data_from_image", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HeightMapShape3D { + type Base = crate::classes::Shape3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HeightMapShape3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HeightMapShape3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Shape3D > for HeightMapShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for HeightMapShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for HeightMapShape3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HeightMapShape3D { + + } + impl crate::obj::cap::GodotDefault for HeightMapShape3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HeightMapShape3D { + type Target = crate::classes::Shape3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HeightMapShape3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HeightMapShape3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HeightMapShape3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HeightMapShape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Shape3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/hinge_joint_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/hinge_joint_3d.rs new file mode 100644 index 0000000..6a3897f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/hinge_joint_3d.rs @@ -0,0 +1,455 @@ +#![doc = "Sidecar module for class [`HingeJoint3D`][crate::classes::HingeJoint3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HingeJoint3D` enums](https://docs.godotengine.org/en/stable/classes/class_hingejoint3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HingeJoint3D.`\n\nInherits [`Joint3D`][crate::classes::Joint3D].\n\nRelated symbols:\n\n* [`hinge_joint_3d`][crate::classes::hinge_joint_3d]: sidecar module with related enum/flag types\n* [`IHingeJoint3D`][crate::classes::IHingeJoint3D]: virtual methods\n\n\nSee also [Godot docs for `HingeJoint3D`](https://docs.godotengine.org/en/stable/classes/class_hingejoint3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`HingeJoint3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct HingeJoint3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HingeJoint3D`][crate::classes::HingeJoint3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HingeJoint3D` methods](https://docs.godotengine.org/en/stable/classes/class_hingejoint3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHingeJoint3D: crate::obj::GodotClass < Base = HingeJoint3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl HingeJoint3D { + pub fn set_param(&mut self, param: crate::classes::hinge_joint_3d::Param, value: f32,) { + type CallSig = ((), crate::classes::hinge_joint_3d::Param, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4098usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HingeJoint3D", "set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param(&self, param: crate::classes::hinge_joint_3d::Param,) -> f32 { + type CallSig = (f32, crate::classes::hinge_joint_3d::Param); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4099usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HingeJoint3D", "get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flag(&mut self, flag: crate::classes::hinge_joint_3d::Flag, enabled: bool,) { + type CallSig = ((), crate::classes::hinge_joint_3d::Flag, bool); + let args = (flag, enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4100usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HingeJoint3D", "set_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_flag(&self, flag: crate::classes::hinge_joint_3d::Flag,) -> bool { + type CallSig = (bool, crate::classes::hinge_joint_3d::Flag); + let args = (flag,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4101usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HingeJoint3D", "get_flag", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HingeJoint3D { + type Base = crate::classes::Joint3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HingeJoint3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HingeJoint3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Joint3D > for HingeJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for HingeJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for HingeJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HingeJoint3D { + + } + impl crate::obj::cap::GodotDefault for HingeJoint3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HingeJoint3D { + type Target = crate::classes::Joint3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HingeJoint3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HingeJoint3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HingeJoint3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HingeJoint3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Joint3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Param { + ord: i32 +} +impl Param { + #[doc(alias = "PARAM_BIAS")] + #[doc = "Godot enumerator name: `PARAM_BIAS`"] + pub const BIAS: Param = Param { + ord: 0i32 + }; + #[doc(alias = "PARAM_LIMIT_UPPER")] + #[doc = "Godot enumerator name: `PARAM_LIMIT_UPPER`"] + pub const LIMIT_UPPER: Param = Param { + ord: 1i32 + }; + #[doc(alias = "PARAM_LIMIT_LOWER")] + #[doc = "Godot enumerator name: `PARAM_LIMIT_LOWER`"] + pub const LIMIT_LOWER: Param = Param { + ord: 2i32 + }; + #[doc(alias = "PARAM_LIMIT_BIAS")] + #[doc = "Godot enumerator name: `PARAM_LIMIT_BIAS`"] + pub const LIMIT_BIAS: Param = Param { + ord: 3i32 + }; + #[doc(alias = "PARAM_LIMIT_SOFTNESS")] + #[doc = "Godot enumerator name: `PARAM_LIMIT_SOFTNESS`"] + pub const LIMIT_SOFTNESS: Param = Param { + ord: 4i32 + }; + #[doc(alias = "PARAM_LIMIT_RELAXATION")] + #[doc = "Godot enumerator name: `PARAM_LIMIT_RELAXATION`"] + pub const LIMIT_RELAXATION: Param = Param { + ord: 5i32 + }; + #[doc(alias = "PARAM_MOTOR_TARGET_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_MOTOR_TARGET_VELOCITY`"] + pub const MOTOR_TARGET_VELOCITY: Param = Param { + ord: 6i32 + }; + #[doc(alias = "PARAM_MOTOR_MAX_IMPULSE")] + #[doc = "Godot enumerator name: `PARAM_MOTOR_MAX_IMPULSE`"] + pub const MOTOR_MAX_IMPULSE: Param = Param { + ord: 7i32 + }; + #[doc(alias = "PARAM_MAX")] + #[doc = "Godot enumerator name: `PARAM_MAX`"] + pub const MAX: Param = Param { + ord: 8i32 + }; + +} +impl std::fmt::Debug for Param { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Param") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Param { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BIAS => "BIAS", Self::LIMIT_UPPER => "LIMIT_UPPER", Self::LIMIT_LOWER => "LIMIT_LOWER", Self::LIMIT_BIAS => "LIMIT_BIAS", Self::LIMIT_SOFTNESS => "LIMIT_SOFTNESS", Self::LIMIT_RELAXATION => "LIMIT_RELAXATION", Self::MOTOR_TARGET_VELOCITY => "MOTOR_TARGET_VELOCITY", Self::MOTOR_MAX_IMPULSE => "MOTOR_MAX_IMPULSE", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BIAS => "PARAM_BIAS", Self::LIMIT_UPPER => "PARAM_LIMIT_UPPER", Self::LIMIT_LOWER => "PARAM_LIMIT_LOWER", Self::LIMIT_BIAS => "PARAM_LIMIT_BIAS", Self::LIMIT_SOFTNESS => "PARAM_LIMIT_SOFTNESS", Self::LIMIT_RELAXATION => "PARAM_LIMIT_RELAXATION", Self::MOTOR_TARGET_VELOCITY => "PARAM_MOTOR_TARGET_VELOCITY", Self::MOTOR_MAX_IMPULSE => "PARAM_MOTOR_MAX_IMPULSE", Self::MAX => "PARAM_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Param { + const ENUMERATOR_COUNT: usize = 8usize; + +} +impl crate::meta::GodotConvert for Param { + type Via = i32; + +} +impl crate::meta::ToGodot for Param { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Param { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Flag { + ord: i32 +} +impl Flag { + #[doc(alias = "FLAG_USE_LIMIT")] + #[doc = "Godot enumerator name: `FLAG_USE_LIMIT`"] + pub const USE_LIMIT: Flag = Flag { + ord: 0i32 + }; + #[doc(alias = "FLAG_ENABLE_MOTOR")] + #[doc = "Godot enumerator name: `FLAG_ENABLE_MOTOR`"] + pub const ENABLE_MOTOR: Flag = Flag { + ord: 1i32 + }; + #[doc(alias = "FLAG_MAX")] + #[doc = "Godot enumerator name: `FLAG_MAX`"] + pub const MAX: Flag = Flag { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Flag { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Flag") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Flag { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::USE_LIMIT => "USE_LIMIT", Self::ENABLE_MOTOR => "ENABLE_MOTOR", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::USE_LIMIT => "FLAG_USE_LIMIT", Self::ENABLE_MOTOR => "FLAG_ENABLE_MOTOR", Self::MAX => "FLAG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Flag { + const ENUMERATOR_COUNT: usize = 2usize; + +} +impl crate::meta::GodotConvert for Flag { + type Via = i32; + +} +impl crate::meta::ToGodot for Flag { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Flag { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/hmac_context.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/hmac_context.rs new file mode 100644 index 0000000..826fa40 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/hmac_context.rs @@ -0,0 +1,217 @@ +#![doc = "Sidecar module for class [`HmacContext`][crate::classes::HmacContext].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HMACContext` enums](https://docs.godotengine.org/en/stable/classes/class_hmaccontext.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HMACContext.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IHmacContext`][crate::classes::IHmacContext]: virtual methods\n\n\nSee also [Godot docs for `HMACContext`](https://docs.godotengine.org/en/stable/classes/class_hmaccontext.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`HmacContext::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct HmacContext { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HmacContext`][crate::classes::HmacContext].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HMACContext` methods](https://docs.godotengine.org/en/stable/classes/class_hmaccontext.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHmacContext: crate::obj::GodotClass < Base = HmacContext > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl HmacContext { + pub fn start(&mut self, hash_type: crate::classes::hashing_context::HashType, key: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, crate::classes::hashing_context::HashType, RefArg < 'a0, PackedByteArray >); + let args = (hash_type, RefArg::new(key),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4038usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HmacContext", "start", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update(&mut self, data: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4039usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HmacContext", "update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn finish(&mut self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4040usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HmacContext", "finish", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HmacContext { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HMACContext")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HmacContext { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for HmacContext { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HmacContext { + + } + impl crate::obj::cap::GodotDefault for HmacContext { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HmacContext { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HmacContext { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HmacContext`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HmacContext { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HmacContext > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/http_client.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/http_client.rs new file mode 100644 index 0000000..76cbe7e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/http_client.rs @@ -0,0 +1,1039 @@ +#![doc = "Sidecar module for class [`HttpClient`][crate::classes::HttpClient].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HTTPClient` enums](https://docs.godotengine.org/en/stable/classes/class_httpclient.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HTTPClient.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`http_client`][crate::classes::http_client]: sidecar module with related enum/flag types\n* [`IHttpClient`][crate::classes::IHttpClient]: virtual methods\n\n\nSee also [Godot docs for `HTTPClient`](https://docs.godotengine.org/en/stable/classes/class_httpclient.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`HttpClient::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct HttpClient { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HttpClient`][crate::classes::HttpClient].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HTTPClient` methods](https://docs.godotengine.org/en/stable/classes/class_httpclient.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHttpClient: crate::obj::GodotClass < Base = HttpClient > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl HttpClient { + pub(crate) fn connect_to_host_full(&mut self, host: CowArg < GString >, port: i32, tls_options: ObjectArg < crate::classes::TlsOptions >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, i32, ObjectArg < crate::classes::TlsOptions >); + let args = (host, port, tls_options,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4041usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "connect_to_host", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::connect_to_host_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn connect_to_host(&mut self, host: impl AsArg < GString >,) -> crate::global::Error { + self.connect_to_host_ex(host,) . done() + } + #[inline] + pub fn connect_to_host_ex < 'a > (&'a mut self, host: impl AsArg < GString > + 'a,) -> ExConnectToHost < 'a > { + ExConnectToHost::new(self, host,) + } + pub fn set_connection(&mut self, connection: impl AsObjectArg < crate::classes::StreamPeer >,) { + type CallSig = ((), ObjectArg < crate::classes::StreamPeer >); + let args = (connection.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4042usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "set_connection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_connection(&self,) -> Option < Gd < crate::classes::StreamPeer > > { + type CallSig = (Option < Gd < crate::classes::StreamPeer > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4043usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "get_connection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn request_raw(&mut self, method: crate::classes::http_client::Method, url: impl AsArg < GString >, headers: &PackedStringArray, body: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, 'a1, 'a2, > = (crate::global::Error, crate::classes::http_client::Method, CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >, RefArg < 'a2, PackedByteArray >); + let args = (method, url.into_arg(), RefArg::new(headers), RefArg::new(body),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4044usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "request_raw", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn request_full(&mut self, method: crate::classes::http_client::Method, url: CowArg < GString >, headers: RefArg < PackedStringArray >, body: CowArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, 'a2, > = (crate::global::Error, crate::classes::http_client::Method, CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >, CowArg < 'a2, GString >); + let args = (method, url, headers, body,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4045usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "request", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::request_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn request(&mut self, method: crate::classes::http_client::Method, url: impl AsArg < GString >, headers: &PackedStringArray,) -> crate::global::Error { + self.request_ex(method, url, headers,) . done() + } + #[inline] + pub fn request_ex < 'a > (&'a mut self, method: crate::classes::http_client::Method, url: impl AsArg < GString > + 'a, headers: &'a PackedStringArray,) -> ExRequest < 'a > { + ExRequest::new(self, method, url, headers,) + } + pub fn close(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4046usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "close", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_response(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4047usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "has_response", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_response_chunked(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4048usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "is_response_chunked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_response_code(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4049usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "get_response_code", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_response_headers(&mut self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4050usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "get_response_headers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_response_headers_as_dictionary(&mut self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4051usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "get_response_headers_as_dictionary", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_response_body_length(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4052usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "get_response_body_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn read_response_body_chunk(&mut self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4053usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "read_response_body_chunk", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_read_chunk_size(&mut self, bytes: i32,) { + type CallSig = ((), i32); + let args = (bytes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4054usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "set_read_chunk_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_read_chunk_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4055usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "get_read_chunk_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blocking_mode(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4056usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "set_blocking_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_blocking_mode_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4057usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "is_blocking_mode_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_status(&self,) -> crate::classes::http_client::Status { + type CallSig = (crate::classes::http_client::Status,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4058usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "get_status", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn poll(&mut self,) -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4059usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "poll", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_http_proxy(&mut self, host: impl AsArg < GString >, port: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32); + let args = (host.into_arg(), port,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4060usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "set_http_proxy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_https_proxy(&mut self, host: impl AsArg < GString >, port: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32); + let args = (host.into_arg(), port,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4061usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "set_https_proxy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn query_string_from_dict(&mut self, fields: &Dictionary,) -> GString { + type CallSig < 'a0, > = (GString, RefArg < 'a0, Dictionary >); + let args = (RefArg::new(fields),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4062usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpClient", "query_string_from_dict", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HttpClient { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HTTPClient")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HttpClient { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for HttpClient { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HttpClient { + + } + impl crate::obj::cap::GodotDefault for HttpClient { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HttpClient { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HttpClient { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HttpClient`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HttpClient { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HttpClient > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`HttpClient::connect_to_host_ex`][super::HttpClient::connect_to_host_ex]."] +#[must_use] +pub struct ExConnectToHost < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::HttpClient, host: CowArg < 'a, GString >, port: i32, tls_options: ObjectCow < crate::classes::TlsOptions >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExConnectToHost < 'a > { + fn new(surround_object: &'a mut re_export::HttpClient, host: impl AsArg < GString > + 'a,) -> Self { + let port = - 1i32; + let tls_options = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, host: host.into_arg(), port: port, tls_options: tls_options.consume_arg(), + } + } + #[inline] + pub fn port(self, port: i32) -> Self { + Self { + port: port, .. self + } + } + #[inline] + pub fn tls_options(self, tls_options: impl AsObjectArg < crate::classes::TlsOptions >) -> Self { + Self { + tls_options: tls_options.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, host, port, tls_options, + } + = self; + re_export::HttpClient::connect_to_host_full(surround_object, host, port, tls_options.cow_as_object_arg(),) + } +} +#[doc = "Default-param extender for [`HttpClient::request_ex`][super::HttpClient::request_ex]."] +#[must_use] +pub struct ExRequest < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::HttpClient, method: crate::classes::http_client::Method, url: CowArg < 'a, GString >, headers: CowArg < 'a, PackedStringArray >, body: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExRequest < 'a > { + fn new(surround_object: &'a mut re_export::HttpClient, method: crate::classes::http_client::Method, url: impl AsArg < GString > + 'a, headers: &'a PackedStringArray,) -> Self { + let body = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, method: method, url: url.into_arg(), headers: CowArg::Borrowed(headers), body: CowArg::Owned(body), + } + } + #[inline] + pub fn body(self, body: impl AsArg < GString > + 'a) -> Self { + Self { + body: body.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, method, url, headers, body, + } + = self; + re_export::HttpClient::request_full(surround_object, method, url, headers.cow_as_arg(), body,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Method { + ord: i32 +} +impl Method { + #[doc(alias = "METHOD_GET")] + #[doc = "Godot enumerator name: `METHOD_GET`"] + pub const GET: Method = Method { + ord: 0i32 + }; + #[doc(alias = "METHOD_HEAD")] + #[doc = "Godot enumerator name: `METHOD_HEAD`"] + pub const HEAD: Method = Method { + ord: 1i32 + }; + #[doc(alias = "METHOD_POST")] + #[doc = "Godot enumerator name: `METHOD_POST`"] + pub const POST: Method = Method { + ord: 2i32 + }; + #[doc(alias = "METHOD_PUT")] + #[doc = "Godot enumerator name: `METHOD_PUT`"] + pub const PUT: Method = Method { + ord: 3i32 + }; + #[doc(alias = "METHOD_DELETE")] + #[doc = "Godot enumerator name: `METHOD_DELETE`"] + pub const DELETE: Method = Method { + ord: 4i32 + }; + #[doc(alias = "METHOD_OPTIONS")] + #[doc = "Godot enumerator name: `METHOD_OPTIONS`"] + pub const OPTIONS: Method = Method { + ord: 5i32 + }; + #[doc(alias = "METHOD_TRACE")] + #[doc = "Godot enumerator name: `METHOD_TRACE`"] + pub const TRACE: Method = Method { + ord: 6i32 + }; + #[doc(alias = "METHOD_CONNECT")] + #[doc = "Godot enumerator name: `METHOD_CONNECT`"] + pub const CONNECT: Method = Method { + ord: 7i32 + }; + #[doc(alias = "METHOD_PATCH")] + #[doc = "Godot enumerator name: `METHOD_PATCH`"] + pub const PATCH: Method = Method { + ord: 8i32 + }; + #[doc(alias = "METHOD_MAX")] + #[doc = "Godot enumerator name: `METHOD_MAX`"] + pub const MAX: Method = Method { + ord: 9i32 + }; + +} +impl std::fmt::Debug for Method { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Method") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Method { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GET => "GET", Self::HEAD => "HEAD", Self::POST => "POST", Self::PUT => "PUT", Self::DELETE => "DELETE", Self::OPTIONS => "OPTIONS", Self::TRACE => "TRACE", Self::CONNECT => "CONNECT", Self::PATCH => "PATCH", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GET => "METHOD_GET", Self::HEAD => "METHOD_HEAD", Self::POST => "METHOD_POST", Self::PUT => "METHOD_PUT", Self::DELETE => "METHOD_DELETE", Self::OPTIONS => "METHOD_OPTIONS", Self::TRACE => "METHOD_TRACE", Self::CONNECT => "METHOD_CONNECT", Self::PATCH => "METHOD_PATCH", Self::MAX => "METHOD_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Method { + const ENUMERATOR_COUNT: usize = 9usize; + +} +impl crate::meta::GodotConvert for Method { + type Via = i32; + +} +impl crate::meta::ToGodot for Method { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Method { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Status { + ord: i32 +} +impl Status { + #[doc(alias = "STATUS_DISCONNECTED")] + #[doc = "Godot enumerator name: `STATUS_DISCONNECTED`"] + pub const DISCONNECTED: Status = Status { + ord: 0i32 + }; + #[doc(alias = "STATUS_RESOLVING")] + #[doc = "Godot enumerator name: `STATUS_RESOLVING`"] + pub const RESOLVING: Status = Status { + ord: 1i32 + }; + #[doc(alias = "STATUS_CANT_RESOLVE")] + #[doc = "Godot enumerator name: `STATUS_CANT_RESOLVE`"] + pub const CANT_RESOLVE: Status = Status { + ord: 2i32 + }; + #[doc(alias = "STATUS_CONNECTING")] + #[doc = "Godot enumerator name: `STATUS_CONNECTING`"] + pub const CONNECTING: Status = Status { + ord: 3i32 + }; + #[doc(alias = "STATUS_CANT_CONNECT")] + #[doc = "Godot enumerator name: `STATUS_CANT_CONNECT`"] + pub const CANT_CONNECT: Status = Status { + ord: 4i32 + }; + #[doc(alias = "STATUS_CONNECTED")] + #[doc = "Godot enumerator name: `STATUS_CONNECTED`"] + pub const CONNECTED: Status = Status { + ord: 5i32 + }; + #[doc(alias = "STATUS_REQUESTING")] + #[doc = "Godot enumerator name: `STATUS_REQUESTING`"] + pub const REQUESTING: Status = Status { + ord: 6i32 + }; + #[doc(alias = "STATUS_BODY")] + #[doc = "Godot enumerator name: `STATUS_BODY`"] + pub const BODY: Status = Status { + ord: 7i32 + }; + #[doc(alias = "STATUS_CONNECTION_ERROR")] + #[doc = "Godot enumerator name: `STATUS_CONNECTION_ERROR`"] + pub const CONNECTION_ERROR: Status = Status { + ord: 8i32 + }; + #[doc(alias = "STATUS_TLS_HANDSHAKE_ERROR")] + #[doc = "Godot enumerator name: `STATUS_TLS_HANDSHAKE_ERROR`"] + pub const TLS_HANDSHAKE_ERROR: Status = Status { + ord: 9i32 + }; + +} +impl std::fmt::Debug for Status { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Status") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Status { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISCONNECTED => "DISCONNECTED", Self::RESOLVING => "RESOLVING", Self::CANT_RESOLVE => "CANT_RESOLVE", Self::CONNECTING => "CONNECTING", Self::CANT_CONNECT => "CANT_CONNECT", Self::CONNECTED => "CONNECTED", Self::REQUESTING => "REQUESTING", Self::BODY => "BODY", Self::CONNECTION_ERROR => "CONNECTION_ERROR", Self::TLS_HANDSHAKE_ERROR => "TLS_HANDSHAKE_ERROR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISCONNECTED => "STATUS_DISCONNECTED", Self::RESOLVING => "STATUS_RESOLVING", Self::CANT_RESOLVE => "STATUS_CANT_RESOLVE", Self::CONNECTING => "STATUS_CONNECTING", Self::CANT_CONNECT => "STATUS_CANT_CONNECT", Self::CONNECTED => "STATUS_CONNECTED", Self::REQUESTING => "STATUS_REQUESTING", Self::BODY => "STATUS_BODY", Self::CONNECTION_ERROR => "STATUS_CONNECTION_ERROR", Self::TLS_HANDSHAKE_ERROR => "STATUS_TLS_HANDSHAKE_ERROR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Status { + type Via = i32; + +} +impl crate::meta::ToGodot for Status { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Status { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ResponseCode { + ord: i32 +} +impl ResponseCode { + #[doc(alias = "RESPONSE_CONTINUE")] + #[doc = "Godot enumerator name: `RESPONSE_CONTINUE`"] + pub const CONTINUE: ResponseCode = ResponseCode { + ord: 100i32 + }; + #[doc(alias = "RESPONSE_SWITCHING_PROTOCOLS")] + #[doc = "Godot enumerator name: `RESPONSE_SWITCHING_PROTOCOLS`"] + pub const SWITCHING_PROTOCOLS: ResponseCode = ResponseCode { + ord: 101i32 + }; + #[doc(alias = "RESPONSE_PROCESSING")] + #[doc = "Godot enumerator name: `RESPONSE_PROCESSING`"] + pub const PROCESSING: ResponseCode = ResponseCode { + ord: 102i32 + }; + #[doc(alias = "RESPONSE_OK")] + #[doc = "Godot enumerator name: `RESPONSE_OK`"] + pub const OK: ResponseCode = ResponseCode { + ord: 200i32 + }; + #[doc(alias = "RESPONSE_CREATED")] + #[doc = "Godot enumerator name: `RESPONSE_CREATED`"] + pub const CREATED: ResponseCode = ResponseCode { + ord: 201i32 + }; + #[doc(alias = "RESPONSE_ACCEPTED")] + #[doc = "Godot enumerator name: `RESPONSE_ACCEPTED`"] + pub const ACCEPTED: ResponseCode = ResponseCode { + ord: 202i32 + }; + #[doc(alias = "RESPONSE_NON_AUTHORITATIVE_INFORMATION")] + #[doc = "Godot enumerator name: `RESPONSE_NON_AUTHORITATIVE_INFORMATION`"] + pub const NON_AUTHORITATIVE_INFORMATION: ResponseCode = ResponseCode { + ord: 203i32 + }; + #[doc(alias = "RESPONSE_NO_CONTENT")] + #[doc = "Godot enumerator name: `RESPONSE_NO_CONTENT`"] + pub const NO_CONTENT: ResponseCode = ResponseCode { + ord: 204i32 + }; + #[doc(alias = "RESPONSE_RESET_CONTENT")] + #[doc = "Godot enumerator name: `RESPONSE_RESET_CONTENT`"] + pub const RESET_CONTENT: ResponseCode = ResponseCode { + ord: 205i32 + }; + #[doc(alias = "RESPONSE_PARTIAL_CONTENT")] + #[doc = "Godot enumerator name: `RESPONSE_PARTIAL_CONTENT`"] + pub const PARTIAL_CONTENT: ResponseCode = ResponseCode { + ord: 206i32 + }; + #[doc(alias = "RESPONSE_MULTI_STATUS")] + #[doc = "Godot enumerator name: `RESPONSE_MULTI_STATUS`"] + pub const MULTI_STATUS: ResponseCode = ResponseCode { + ord: 207i32 + }; + #[doc(alias = "RESPONSE_ALREADY_REPORTED")] + #[doc = "Godot enumerator name: `RESPONSE_ALREADY_REPORTED`"] + pub const ALREADY_REPORTED: ResponseCode = ResponseCode { + ord: 208i32 + }; + #[doc(alias = "RESPONSE_IM_USED")] + #[doc = "Godot enumerator name: `RESPONSE_IM_USED`"] + pub const IM_USED: ResponseCode = ResponseCode { + ord: 226i32 + }; + #[doc(alias = "RESPONSE_MULTIPLE_CHOICES")] + #[doc = "Godot enumerator name: `RESPONSE_MULTIPLE_CHOICES`"] + pub const MULTIPLE_CHOICES: ResponseCode = ResponseCode { + ord: 300i32 + }; + #[doc(alias = "RESPONSE_MOVED_PERMANENTLY")] + #[doc = "Godot enumerator name: `RESPONSE_MOVED_PERMANENTLY`"] + pub const MOVED_PERMANENTLY: ResponseCode = ResponseCode { + ord: 301i32 + }; + #[doc(alias = "RESPONSE_FOUND")] + #[doc = "Godot enumerator name: `RESPONSE_FOUND`"] + pub const FOUND: ResponseCode = ResponseCode { + ord: 302i32 + }; + #[doc(alias = "RESPONSE_SEE_OTHER")] + #[doc = "Godot enumerator name: `RESPONSE_SEE_OTHER`"] + pub const SEE_OTHER: ResponseCode = ResponseCode { + ord: 303i32 + }; + #[doc(alias = "RESPONSE_NOT_MODIFIED")] + #[doc = "Godot enumerator name: `RESPONSE_NOT_MODIFIED`"] + pub const NOT_MODIFIED: ResponseCode = ResponseCode { + ord: 304i32 + }; + #[doc(alias = "RESPONSE_USE_PROXY")] + #[doc = "Godot enumerator name: `RESPONSE_USE_PROXY`"] + pub const USE_PROXY: ResponseCode = ResponseCode { + ord: 305i32 + }; + #[doc(alias = "RESPONSE_SWITCH_PROXY")] + #[doc = "Godot enumerator name: `RESPONSE_SWITCH_PROXY`"] + pub const SWITCH_PROXY: ResponseCode = ResponseCode { + ord: 306i32 + }; + #[doc(alias = "RESPONSE_TEMPORARY_REDIRECT")] + #[doc = "Godot enumerator name: `RESPONSE_TEMPORARY_REDIRECT`"] + pub const TEMPORARY_REDIRECT: ResponseCode = ResponseCode { + ord: 307i32 + }; + #[doc(alias = "RESPONSE_PERMANENT_REDIRECT")] + #[doc = "Godot enumerator name: `RESPONSE_PERMANENT_REDIRECT`"] + pub const PERMANENT_REDIRECT: ResponseCode = ResponseCode { + ord: 308i32 + }; + #[doc(alias = "RESPONSE_BAD_REQUEST")] + #[doc = "Godot enumerator name: `RESPONSE_BAD_REQUEST`"] + pub const BAD_REQUEST: ResponseCode = ResponseCode { + ord: 400i32 + }; + #[doc(alias = "RESPONSE_UNAUTHORIZED")] + #[doc = "Godot enumerator name: `RESPONSE_UNAUTHORIZED`"] + pub const UNAUTHORIZED: ResponseCode = ResponseCode { + ord: 401i32 + }; + #[doc(alias = "RESPONSE_PAYMENT_REQUIRED")] + #[doc = "Godot enumerator name: `RESPONSE_PAYMENT_REQUIRED`"] + pub const PAYMENT_REQUIRED: ResponseCode = ResponseCode { + ord: 402i32 + }; + #[doc(alias = "RESPONSE_FORBIDDEN")] + #[doc = "Godot enumerator name: `RESPONSE_FORBIDDEN`"] + pub const FORBIDDEN: ResponseCode = ResponseCode { + ord: 403i32 + }; + #[doc(alias = "RESPONSE_NOT_FOUND")] + #[doc = "Godot enumerator name: `RESPONSE_NOT_FOUND`"] + pub const NOT_FOUND: ResponseCode = ResponseCode { + ord: 404i32 + }; + #[doc(alias = "RESPONSE_METHOD_NOT_ALLOWED")] + #[doc = "Godot enumerator name: `RESPONSE_METHOD_NOT_ALLOWED`"] + pub const METHOD_NOT_ALLOWED: ResponseCode = ResponseCode { + ord: 405i32 + }; + #[doc(alias = "RESPONSE_NOT_ACCEPTABLE")] + #[doc = "Godot enumerator name: `RESPONSE_NOT_ACCEPTABLE`"] + pub const NOT_ACCEPTABLE: ResponseCode = ResponseCode { + ord: 406i32 + }; + #[doc(alias = "RESPONSE_PROXY_AUTHENTICATION_REQUIRED")] + #[doc = "Godot enumerator name: `RESPONSE_PROXY_AUTHENTICATION_REQUIRED`"] + pub const PROXY_AUTHENTICATION_REQUIRED: ResponseCode = ResponseCode { + ord: 407i32 + }; + #[doc(alias = "RESPONSE_REQUEST_TIMEOUT")] + #[doc = "Godot enumerator name: `RESPONSE_REQUEST_TIMEOUT`"] + pub const REQUEST_TIMEOUT: ResponseCode = ResponseCode { + ord: 408i32 + }; + #[doc(alias = "RESPONSE_CONFLICT")] + #[doc = "Godot enumerator name: `RESPONSE_CONFLICT`"] + pub const CONFLICT: ResponseCode = ResponseCode { + ord: 409i32 + }; + #[doc(alias = "RESPONSE_GONE")] + #[doc = "Godot enumerator name: `RESPONSE_GONE`"] + pub const GONE: ResponseCode = ResponseCode { + ord: 410i32 + }; + #[doc(alias = "RESPONSE_LENGTH_REQUIRED")] + #[doc = "Godot enumerator name: `RESPONSE_LENGTH_REQUIRED`"] + pub const LENGTH_REQUIRED: ResponseCode = ResponseCode { + ord: 411i32 + }; + #[doc(alias = "RESPONSE_PRECONDITION_FAILED")] + #[doc = "Godot enumerator name: `RESPONSE_PRECONDITION_FAILED`"] + pub const PRECONDITION_FAILED: ResponseCode = ResponseCode { + ord: 412i32 + }; + #[doc(alias = "RESPONSE_REQUEST_ENTITY_TOO_LARGE")] + #[doc = "Godot enumerator name: `RESPONSE_REQUEST_ENTITY_TOO_LARGE`"] + pub const REQUEST_ENTITY_TOO_LARGE: ResponseCode = ResponseCode { + ord: 413i32 + }; + #[doc(alias = "RESPONSE_REQUEST_URI_TOO_LONG")] + #[doc = "Godot enumerator name: `RESPONSE_REQUEST_URI_TOO_LONG`"] + pub const REQUEST_URI_TOO_LONG: ResponseCode = ResponseCode { + ord: 414i32 + }; + #[doc(alias = "RESPONSE_UNSUPPORTED_MEDIA_TYPE")] + #[doc = "Godot enumerator name: `RESPONSE_UNSUPPORTED_MEDIA_TYPE`"] + pub const UNSUPPORTED_MEDIA_TYPE: ResponseCode = ResponseCode { + ord: 415i32 + }; + #[doc(alias = "RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE")] + #[doc = "Godot enumerator name: `RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE`"] + pub const REQUESTED_RANGE_NOT_SATISFIABLE: ResponseCode = ResponseCode { + ord: 416i32 + }; + #[doc(alias = "RESPONSE_EXPECTATION_FAILED")] + #[doc = "Godot enumerator name: `RESPONSE_EXPECTATION_FAILED`"] + pub const EXPECTATION_FAILED: ResponseCode = ResponseCode { + ord: 417i32 + }; + #[doc(alias = "RESPONSE_IM_A_TEAPOT")] + #[doc = "Godot enumerator name: `RESPONSE_IM_A_TEAPOT`"] + pub const IM_A_TEAPOT: ResponseCode = ResponseCode { + ord: 418i32 + }; + #[doc(alias = "RESPONSE_MISDIRECTED_REQUEST")] + #[doc = "Godot enumerator name: `RESPONSE_MISDIRECTED_REQUEST`"] + pub const MISDIRECTED_REQUEST: ResponseCode = ResponseCode { + ord: 421i32 + }; + #[doc(alias = "RESPONSE_UNPROCESSABLE_ENTITY")] + #[doc = "Godot enumerator name: `RESPONSE_UNPROCESSABLE_ENTITY`"] + pub const UNPROCESSABLE_ENTITY: ResponseCode = ResponseCode { + ord: 422i32 + }; + #[doc(alias = "RESPONSE_LOCKED")] + #[doc = "Godot enumerator name: `RESPONSE_LOCKED`"] + pub const LOCKED: ResponseCode = ResponseCode { + ord: 423i32 + }; + #[doc(alias = "RESPONSE_FAILED_DEPENDENCY")] + #[doc = "Godot enumerator name: `RESPONSE_FAILED_DEPENDENCY`"] + pub const FAILED_DEPENDENCY: ResponseCode = ResponseCode { + ord: 424i32 + }; + #[doc(alias = "RESPONSE_UPGRADE_REQUIRED")] + #[doc = "Godot enumerator name: `RESPONSE_UPGRADE_REQUIRED`"] + pub const UPGRADE_REQUIRED: ResponseCode = ResponseCode { + ord: 426i32 + }; + #[doc(alias = "RESPONSE_PRECONDITION_REQUIRED")] + #[doc = "Godot enumerator name: `RESPONSE_PRECONDITION_REQUIRED`"] + pub const PRECONDITION_REQUIRED: ResponseCode = ResponseCode { + ord: 428i32 + }; + #[doc(alias = "RESPONSE_TOO_MANY_REQUESTS")] + #[doc = "Godot enumerator name: `RESPONSE_TOO_MANY_REQUESTS`"] + pub const TOO_MANY_REQUESTS: ResponseCode = ResponseCode { + ord: 429i32 + }; + #[doc(alias = "RESPONSE_REQUEST_HEADER_FIELDS_TOO_LARGE")] + #[doc = "Godot enumerator name: `RESPONSE_REQUEST_HEADER_FIELDS_TOO_LARGE`"] + pub const REQUEST_HEADER_FIELDS_TOO_LARGE: ResponseCode = ResponseCode { + ord: 431i32 + }; + #[doc(alias = "RESPONSE_UNAVAILABLE_FOR_LEGAL_REASONS")] + #[doc = "Godot enumerator name: `RESPONSE_UNAVAILABLE_FOR_LEGAL_REASONS`"] + pub const UNAVAILABLE_FOR_LEGAL_REASONS: ResponseCode = ResponseCode { + ord: 451i32 + }; + #[doc(alias = "RESPONSE_INTERNAL_SERVER_ERROR")] + #[doc = "Godot enumerator name: `RESPONSE_INTERNAL_SERVER_ERROR`"] + pub const INTERNAL_SERVER_ERROR: ResponseCode = ResponseCode { + ord: 500i32 + }; + #[doc(alias = "RESPONSE_NOT_IMPLEMENTED")] + #[doc = "Godot enumerator name: `RESPONSE_NOT_IMPLEMENTED`"] + pub const NOT_IMPLEMENTED: ResponseCode = ResponseCode { + ord: 501i32 + }; + #[doc(alias = "RESPONSE_BAD_GATEWAY")] + #[doc = "Godot enumerator name: `RESPONSE_BAD_GATEWAY`"] + pub const BAD_GATEWAY: ResponseCode = ResponseCode { + ord: 502i32 + }; + #[doc(alias = "RESPONSE_SERVICE_UNAVAILABLE")] + #[doc = "Godot enumerator name: `RESPONSE_SERVICE_UNAVAILABLE`"] + pub const SERVICE_UNAVAILABLE: ResponseCode = ResponseCode { + ord: 503i32 + }; + #[doc(alias = "RESPONSE_GATEWAY_TIMEOUT")] + #[doc = "Godot enumerator name: `RESPONSE_GATEWAY_TIMEOUT`"] + pub const GATEWAY_TIMEOUT: ResponseCode = ResponseCode { + ord: 504i32 + }; + #[doc(alias = "RESPONSE_HTTP_VERSION_NOT_SUPPORTED")] + #[doc = "Godot enumerator name: `RESPONSE_HTTP_VERSION_NOT_SUPPORTED`"] + pub const HTTP_VERSION_NOT_SUPPORTED: ResponseCode = ResponseCode { + ord: 505i32 + }; + #[doc(alias = "RESPONSE_VARIANT_ALSO_NEGOTIATES")] + #[doc = "Godot enumerator name: `RESPONSE_VARIANT_ALSO_NEGOTIATES`"] + pub const VARIANT_ALSO_NEGOTIATES: ResponseCode = ResponseCode { + ord: 506i32 + }; + #[doc(alias = "RESPONSE_INSUFFICIENT_STORAGE")] + #[doc = "Godot enumerator name: `RESPONSE_INSUFFICIENT_STORAGE`"] + pub const INSUFFICIENT_STORAGE: ResponseCode = ResponseCode { + ord: 507i32 + }; + #[doc(alias = "RESPONSE_LOOP_DETECTED")] + #[doc = "Godot enumerator name: `RESPONSE_LOOP_DETECTED`"] + pub const LOOP_DETECTED: ResponseCode = ResponseCode { + ord: 508i32 + }; + #[doc(alias = "RESPONSE_NOT_EXTENDED")] + #[doc = "Godot enumerator name: `RESPONSE_NOT_EXTENDED`"] + pub const NOT_EXTENDED: ResponseCode = ResponseCode { + ord: 510i32 + }; + #[doc(alias = "RESPONSE_NETWORK_AUTH_REQUIRED")] + #[doc = "Godot enumerator name: `RESPONSE_NETWORK_AUTH_REQUIRED`"] + pub const NETWORK_AUTH_REQUIRED: ResponseCode = ResponseCode { + ord: 511i32 + }; + +} +impl std::fmt::Debug for ResponseCode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ResponseCode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ResponseCode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 100i32 | ord @ 101i32 | ord @ 102i32 | ord @ 200i32 | ord @ 201i32 | ord @ 202i32 | ord @ 203i32 | ord @ 204i32 | ord @ 205i32 | ord @ 206i32 | ord @ 207i32 | ord @ 208i32 | ord @ 226i32 | ord @ 300i32 | ord @ 301i32 | ord @ 302i32 | ord @ 303i32 | ord @ 304i32 | ord @ 305i32 | ord @ 306i32 | ord @ 307i32 | ord @ 308i32 | ord @ 400i32 | ord @ 401i32 | ord @ 402i32 | ord @ 403i32 | ord @ 404i32 | ord @ 405i32 | ord @ 406i32 | ord @ 407i32 | ord @ 408i32 | ord @ 409i32 | ord @ 410i32 | ord @ 411i32 | ord @ 412i32 | ord @ 413i32 | ord @ 414i32 | ord @ 415i32 | ord @ 416i32 | ord @ 417i32 | ord @ 418i32 | ord @ 421i32 | ord @ 422i32 | ord @ 423i32 | ord @ 424i32 | ord @ 426i32 | ord @ 428i32 | ord @ 429i32 | ord @ 431i32 | ord @ 451i32 | ord @ 500i32 | ord @ 501i32 | ord @ 502i32 | ord @ 503i32 | ord @ 504i32 | ord @ 505i32 | ord @ 506i32 | ord @ 507i32 | ord @ 508i32 | ord @ 510i32 | ord @ 511i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CONTINUE => "CONTINUE", Self::SWITCHING_PROTOCOLS => "SWITCHING_PROTOCOLS", Self::PROCESSING => "PROCESSING", Self::OK => "OK", Self::CREATED => "CREATED", Self::ACCEPTED => "ACCEPTED", Self::NON_AUTHORITATIVE_INFORMATION => "NON_AUTHORITATIVE_INFORMATION", Self::NO_CONTENT => "NO_CONTENT", Self::RESET_CONTENT => "RESET_CONTENT", Self::PARTIAL_CONTENT => "PARTIAL_CONTENT", Self::MULTI_STATUS => "MULTI_STATUS", Self::ALREADY_REPORTED => "ALREADY_REPORTED", Self::IM_USED => "IM_USED", Self::MULTIPLE_CHOICES => "MULTIPLE_CHOICES", Self::MOVED_PERMANENTLY => "MOVED_PERMANENTLY", Self::FOUND => "FOUND", Self::SEE_OTHER => "SEE_OTHER", Self::NOT_MODIFIED => "NOT_MODIFIED", Self::USE_PROXY => "USE_PROXY", Self::SWITCH_PROXY => "SWITCH_PROXY", Self::TEMPORARY_REDIRECT => "TEMPORARY_REDIRECT", Self::PERMANENT_REDIRECT => "PERMANENT_REDIRECT", Self::BAD_REQUEST => "BAD_REQUEST", Self::UNAUTHORIZED => "UNAUTHORIZED", Self::PAYMENT_REQUIRED => "PAYMENT_REQUIRED", Self::FORBIDDEN => "FORBIDDEN", Self::NOT_FOUND => "NOT_FOUND", Self::METHOD_NOT_ALLOWED => "METHOD_NOT_ALLOWED", Self::NOT_ACCEPTABLE => "NOT_ACCEPTABLE", Self::PROXY_AUTHENTICATION_REQUIRED => "PROXY_AUTHENTICATION_REQUIRED", Self::REQUEST_TIMEOUT => "REQUEST_TIMEOUT", Self::CONFLICT => "CONFLICT", Self::GONE => "GONE", Self::LENGTH_REQUIRED => "LENGTH_REQUIRED", Self::PRECONDITION_FAILED => "PRECONDITION_FAILED", Self::REQUEST_ENTITY_TOO_LARGE => "REQUEST_ENTITY_TOO_LARGE", Self::REQUEST_URI_TOO_LONG => "REQUEST_URI_TOO_LONG", Self::UNSUPPORTED_MEDIA_TYPE => "UNSUPPORTED_MEDIA_TYPE", Self::REQUESTED_RANGE_NOT_SATISFIABLE => "REQUESTED_RANGE_NOT_SATISFIABLE", Self::EXPECTATION_FAILED => "EXPECTATION_FAILED", Self::IM_A_TEAPOT => "IM_A_TEAPOT", Self::MISDIRECTED_REQUEST => "MISDIRECTED_REQUEST", Self::UNPROCESSABLE_ENTITY => "UNPROCESSABLE_ENTITY", Self::LOCKED => "LOCKED", Self::FAILED_DEPENDENCY => "FAILED_DEPENDENCY", Self::UPGRADE_REQUIRED => "UPGRADE_REQUIRED", Self::PRECONDITION_REQUIRED => "PRECONDITION_REQUIRED", Self::TOO_MANY_REQUESTS => "TOO_MANY_REQUESTS", Self::REQUEST_HEADER_FIELDS_TOO_LARGE => "REQUEST_HEADER_FIELDS_TOO_LARGE", Self::UNAVAILABLE_FOR_LEGAL_REASONS => "UNAVAILABLE_FOR_LEGAL_REASONS", Self::INTERNAL_SERVER_ERROR => "INTERNAL_SERVER_ERROR", Self::NOT_IMPLEMENTED => "NOT_IMPLEMENTED", Self::BAD_GATEWAY => "BAD_GATEWAY", Self::SERVICE_UNAVAILABLE => "SERVICE_UNAVAILABLE", Self::GATEWAY_TIMEOUT => "GATEWAY_TIMEOUT", Self::HTTP_VERSION_NOT_SUPPORTED => "HTTP_VERSION_NOT_SUPPORTED", Self::VARIANT_ALSO_NEGOTIATES => "VARIANT_ALSO_NEGOTIATES", Self::INSUFFICIENT_STORAGE => "INSUFFICIENT_STORAGE", Self::LOOP_DETECTED => "LOOP_DETECTED", Self::NOT_EXTENDED => "NOT_EXTENDED", Self::NETWORK_AUTH_REQUIRED => "NETWORK_AUTH_REQUIRED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CONTINUE => "RESPONSE_CONTINUE", Self::SWITCHING_PROTOCOLS => "RESPONSE_SWITCHING_PROTOCOLS", Self::PROCESSING => "RESPONSE_PROCESSING", Self::OK => "RESPONSE_OK", Self::CREATED => "RESPONSE_CREATED", Self::ACCEPTED => "RESPONSE_ACCEPTED", Self::NON_AUTHORITATIVE_INFORMATION => "RESPONSE_NON_AUTHORITATIVE_INFORMATION", Self::NO_CONTENT => "RESPONSE_NO_CONTENT", Self::RESET_CONTENT => "RESPONSE_RESET_CONTENT", Self::PARTIAL_CONTENT => "RESPONSE_PARTIAL_CONTENT", Self::MULTI_STATUS => "RESPONSE_MULTI_STATUS", Self::ALREADY_REPORTED => "RESPONSE_ALREADY_REPORTED", Self::IM_USED => "RESPONSE_IM_USED", Self::MULTIPLE_CHOICES => "RESPONSE_MULTIPLE_CHOICES", Self::MOVED_PERMANENTLY => "RESPONSE_MOVED_PERMANENTLY", Self::FOUND => "RESPONSE_FOUND", Self::SEE_OTHER => "RESPONSE_SEE_OTHER", Self::NOT_MODIFIED => "RESPONSE_NOT_MODIFIED", Self::USE_PROXY => "RESPONSE_USE_PROXY", Self::SWITCH_PROXY => "RESPONSE_SWITCH_PROXY", Self::TEMPORARY_REDIRECT => "RESPONSE_TEMPORARY_REDIRECT", Self::PERMANENT_REDIRECT => "RESPONSE_PERMANENT_REDIRECT", Self::BAD_REQUEST => "RESPONSE_BAD_REQUEST", Self::UNAUTHORIZED => "RESPONSE_UNAUTHORIZED", Self::PAYMENT_REQUIRED => "RESPONSE_PAYMENT_REQUIRED", Self::FORBIDDEN => "RESPONSE_FORBIDDEN", Self::NOT_FOUND => "RESPONSE_NOT_FOUND", Self::METHOD_NOT_ALLOWED => "RESPONSE_METHOD_NOT_ALLOWED", Self::NOT_ACCEPTABLE => "RESPONSE_NOT_ACCEPTABLE", Self::PROXY_AUTHENTICATION_REQUIRED => "RESPONSE_PROXY_AUTHENTICATION_REQUIRED", Self::REQUEST_TIMEOUT => "RESPONSE_REQUEST_TIMEOUT", Self::CONFLICT => "RESPONSE_CONFLICT", Self::GONE => "RESPONSE_GONE", Self::LENGTH_REQUIRED => "RESPONSE_LENGTH_REQUIRED", Self::PRECONDITION_FAILED => "RESPONSE_PRECONDITION_FAILED", Self::REQUEST_ENTITY_TOO_LARGE => "RESPONSE_REQUEST_ENTITY_TOO_LARGE", Self::REQUEST_URI_TOO_LONG => "RESPONSE_REQUEST_URI_TOO_LONG", Self::UNSUPPORTED_MEDIA_TYPE => "RESPONSE_UNSUPPORTED_MEDIA_TYPE", Self::REQUESTED_RANGE_NOT_SATISFIABLE => "RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE", Self::EXPECTATION_FAILED => "RESPONSE_EXPECTATION_FAILED", Self::IM_A_TEAPOT => "RESPONSE_IM_A_TEAPOT", Self::MISDIRECTED_REQUEST => "RESPONSE_MISDIRECTED_REQUEST", Self::UNPROCESSABLE_ENTITY => "RESPONSE_UNPROCESSABLE_ENTITY", Self::LOCKED => "RESPONSE_LOCKED", Self::FAILED_DEPENDENCY => "RESPONSE_FAILED_DEPENDENCY", Self::UPGRADE_REQUIRED => "RESPONSE_UPGRADE_REQUIRED", Self::PRECONDITION_REQUIRED => "RESPONSE_PRECONDITION_REQUIRED", Self::TOO_MANY_REQUESTS => "RESPONSE_TOO_MANY_REQUESTS", Self::REQUEST_HEADER_FIELDS_TOO_LARGE => "RESPONSE_REQUEST_HEADER_FIELDS_TOO_LARGE", Self::UNAVAILABLE_FOR_LEGAL_REASONS => "RESPONSE_UNAVAILABLE_FOR_LEGAL_REASONS", Self::INTERNAL_SERVER_ERROR => "RESPONSE_INTERNAL_SERVER_ERROR", Self::NOT_IMPLEMENTED => "RESPONSE_NOT_IMPLEMENTED", Self::BAD_GATEWAY => "RESPONSE_BAD_GATEWAY", Self::SERVICE_UNAVAILABLE => "RESPONSE_SERVICE_UNAVAILABLE", Self::GATEWAY_TIMEOUT => "RESPONSE_GATEWAY_TIMEOUT", Self::HTTP_VERSION_NOT_SUPPORTED => "RESPONSE_HTTP_VERSION_NOT_SUPPORTED", Self::VARIANT_ALSO_NEGOTIATES => "RESPONSE_VARIANT_ALSO_NEGOTIATES", Self::INSUFFICIENT_STORAGE => "RESPONSE_INSUFFICIENT_STORAGE", Self::LOOP_DETECTED => "RESPONSE_LOOP_DETECTED", Self::NOT_EXTENDED => "RESPONSE_NOT_EXTENDED", Self::NETWORK_AUTH_REQUIRED => "RESPONSE_NETWORK_AUTH_REQUIRED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ResponseCode { + type Via = i32; + +} +impl crate::meta::ToGodot for ResponseCode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ResponseCode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/http_request.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/http_request.rs new file mode 100644 index 0000000..258c005 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/http_request.rs @@ -0,0 +1,639 @@ +#![doc = "Sidecar module for class [`HttpRequest`][crate::classes::HttpRequest].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `HTTPRequest` enums](https://docs.godotengine.org/en/stable/classes/class_httprequest.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `HTTPRequest.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`http_request`][crate::classes::http_request]: sidecar module with related enum/flag types\n* [`IHttpRequest`][crate::classes::IHttpRequest]: virtual methods\n\n\nSee also [Godot docs for `HTTPRequest`](https://docs.godotengine.org/en/stable/classes/class_httprequest.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`HttpRequest::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct HttpRequest { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`HttpRequest`][crate::classes::HttpRequest].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `HTTPRequest` methods](https://docs.godotengine.org/en/stable/classes/class_httprequest.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IHttpRequest: crate::obj::GodotClass < Base = HttpRequest > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl HttpRequest { + pub(crate) fn request_full(&mut self, url: CowArg < GString >, custom_headers: RefArg < PackedStringArray >, method: crate::classes::http_client::Method, request_data: CowArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, 'a2, > = (crate::global::Error, CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >, crate::classes::http_client::Method, CowArg < 'a2, GString >); + let args = (url, custom_headers, method, request_data,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4063usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "request", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::request_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn request(&mut self, url: impl AsArg < GString >,) -> crate::global::Error { + self.request_ex(url,) . done() + } + #[inline] + pub fn request_ex < 'a > (&'a mut self, url: impl AsArg < GString > + 'a,) -> ExRequest < 'a > { + ExRequest::new(self, url,) + } + pub(crate) fn request_raw_full(&mut self, url: CowArg < GString >, custom_headers: RefArg < PackedStringArray >, method: crate::classes::http_client::Method, request_data_raw: RefArg < PackedByteArray >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, 'a2, > = (crate::global::Error, CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >, crate::classes::http_client::Method, RefArg < 'a2, PackedByteArray >); + let args = (url, custom_headers, method, request_data_raw,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4064usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "request_raw", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::request_raw_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn request_raw(&mut self, url: impl AsArg < GString >,) -> crate::global::Error { + self.request_raw_ex(url,) . done() + } + #[inline] + pub fn request_raw_ex < 'a > (&'a mut self, url: impl AsArg < GString > + 'a,) -> ExRequestRaw < 'a > { + ExRequestRaw::new(self, url,) + } + pub fn cancel_request(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4065usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "cancel_request", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tls_options(&mut self, client_options: impl AsObjectArg < crate::classes::TlsOptions >,) { + type CallSig = ((), ObjectArg < crate::classes::TlsOptions >); + let args = (client_options.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4066usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "set_tls_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_http_client_status(&self,) -> crate::classes::http_client::Status { + type CallSig = (crate::classes::http_client::Status,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4067usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "get_http_client_status", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_threads(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4068usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "set_use_threads", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_threads(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4069usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "is_using_threads", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_accept_gzip(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4070usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "set_accept_gzip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_accepting_gzip(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4071usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "is_accepting_gzip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_body_size_limit(&mut self, bytes: i32,) { + type CallSig = ((), i32); + let args = (bytes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4072usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "set_body_size_limit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_body_size_limit(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4073usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "get_body_size_limit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_redirects(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4074usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "set_max_redirects", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_redirects(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4075usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "get_max_redirects", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_download_file(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4076usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "set_download_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_download_file(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4077usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "get_download_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_downloaded_bytes(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4078usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "get_downloaded_bytes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_body_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4079usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "get_body_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_timeout(&mut self, timeout: f64,) { + type CallSig = ((), f64); + let args = (timeout,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4080usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "set_timeout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_timeout(&mut self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4081usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "get_timeout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_download_chunk_size(&mut self, chunk_size: i32,) { + type CallSig = ((), i32); + let args = (chunk_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4082usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "set_download_chunk_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_download_chunk_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4083usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "get_download_chunk_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_http_proxy(&mut self, host: impl AsArg < GString >, port: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32); + let args = (host.into_arg(), port,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4084usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "set_http_proxy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_https_proxy(&mut self, host: impl AsArg < GString >, port: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32); + let args = (host.into_arg(), port,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4085usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "HttpRequest", "set_https_proxy", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for HttpRequest { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"HTTPRequest")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for HttpRequest { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for HttpRequest { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for HttpRequest { + + } + impl crate::obj::cap::GodotDefault for HttpRequest { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for HttpRequest { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for HttpRequest { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`HttpRequest`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_HttpRequest { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::HttpRequest > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`HttpRequest::request_ex`][super::HttpRequest::request_ex]."] +#[must_use] +pub struct ExRequest < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::HttpRequest, url: CowArg < 'a, GString >, custom_headers: CowArg < 'a, PackedStringArray >, method: crate::classes::http_client::Method, request_data: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExRequest < 'a > { + fn new(surround_object: &'a mut re_export::HttpRequest, url: impl AsArg < GString > + 'a,) -> Self { + let custom_headers = PackedStringArray::new(); + let method = crate::obj::EngineEnum::from_ord(0); + let request_data = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, url: url.into_arg(), custom_headers: CowArg::Owned(custom_headers), method: method, request_data: CowArg::Owned(request_data), + } + } + #[inline] + pub fn custom_headers(self, custom_headers: &'a PackedStringArray) -> Self { + Self { + custom_headers: CowArg::Borrowed(custom_headers), .. self + } + } + #[inline] + pub fn method(self, method: crate::classes::http_client::Method) -> Self { + Self { + method: method, .. self + } + } + #[inline] + pub fn request_data(self, request_data: impl AsArg < GString > + 'a) -> Self { + Self { + request_data: request_data.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, url, custom_headers, method, request_data, + } + = self; + re_export::HttpRequest::request_full(surround_object, url, custom_headers.cow_as_arg(), method, request_data,) + } +} +#[doc = "Default-param extender for [`HttpRequest::request_raw_ex`][super::HttpRequest::request_raw_ex]."] +#[must_use] +pub struct ExRequestRaw < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::HttpRequest, url: CowArg < 'a, GString >, custom_headers: CowArg < 'a, PackedStringArray >, method: crate::classes::http_client::Method, request_data_raw: CowArg < 'a, PackedByteArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExRequestRaw < 'a > { + fn new(surround_object: &'a mut re_export::HttpRequest, url: impl AsArg < GString > + 'a,) -> Self { + let custom_headers = PackedStringArray::new(); + let method = crate::obj::EngineEnum::from_ord(0); + let request_data_raw = PackedByteArray::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, url: url.into_arg(), custom_headers: CowArg::Owned(custom_headers), method: method, request_data_raw: CowArg::Owned(request_data_raw), + } + } + #[inline] + pub fn custom_headers(self, custom_headers: &'a PackedStringArray) -> Self { + Self { + custom_headers: CowArg::Borrowed(custom_headers), .. self + } + } + #[inline] + pub fn method(self, method: crate::classes::http_client::Method) -> Self { + Self { + method: method, .. self + } + } + #[inline] + pub fn request_data_raw(self, request_data_raw: &'a PackedByteArray) -> Self { + Self { + request_data_raw: CowArg::Borrowed(request_data_raw), .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, url, custom_headers, method, request_data_raw, + } + = self; + re_export::HttpRequest::request_raw_full(surround_object, url, custom_headers.cow_as_arg(), method, request_data_raw.cow_as_arg(),) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Result { + ord: i32 +} +impl Result { + #[doc(alias = "RESULT_SUCCESS")] + #[doc = "Godot enumerator name: `RESULT_SUCCESS`"] + pub const SUCCESS: Result = Result { + ord: 0i32 + }; + #[doc(alias = "RESULT_CHUNKED_BODY_SIZE_MISMATCH")] + #[doc = "Godot enumerator name: `RESULT_CHUNKED_BODY_SIZE_MISMATCH`"] + pub const CHUNKED_BODY_SIZE_MISMATCH: Result = Result { + ord: 1i32 + }; + #[doc(alias = "RESULT_CANT_CONNECT")] + #[doc = "Godot enumerator name: `RESULT_CANT_CONNECT`"] + pub const CANT_CONNECT: Result = Result { + ord: 2i32 + }; + #[doc(alias = "RESULT_CANT_RESOLVE")] + #[doc = "Godot enumerator name: `RESULT_CANT_RESOLVE`"] + pub const CANT_RESOLVE: Result = Result { + ord: 3i32 + }; + #[doc(alias = "RESULT_CONNECTION_ERROR")] + #[doc = "Godot enumerator name: `RESULT_CONNECTION_ERROR`"] + pub const CONNECTION_ERROR: Result = Result { + ord: 4i32 + }; + #[doc(alias = "RESULT_TLS_HANDSHAKE_ERROR")] + #[doc = "Godot enumerator name: `RESULT_TLS_HANDSHAKE_ERROR`"] + pub const TLS_HANDSHAKE_ERROR: Result = Result { + ord: 5i32 + }; + #[doc(alias = "RESULT_NO_RESPONSE")] + #[doc = "Godot enumerator name: `RESULT_NO_RESPONSE`"] + pub const NO_RESPONSE: Result = Result { + ord: 6i32 + }; + #[doc(alias = "RESULT_BODY_SIZE_LIMIT_EXCEEDED")] + #[doc = "Godot enumerator name: `RESULT_BODY_SIZE_LIMIT_EXCEEDED`"] + pub const BODY_SIZE_LIMIT_EXCEEDED: Result = Result { + ord: 7i32 + }; + #[doc(alias = "RESULT_BODY_DECOMPRESS_FAILED")] + #[doc = "Godot enumerator name: `RESULT_BODY_DECOMPRESS_FAILED`"] + pub const BODY_DECOMPRESS_FAILED: Result = Result { + ord: 8i32 + }; + #[doc(alias = "RESULT_REQUEST_FAILED")] + #[doc = "Godot enumerator name: `RESULT_REQUEST_FAILED`"] + pub const REQUEST_FAILED: Result = Result { + ord: 9i32 + }; + #[doc(alias = "RESULT_DOWNLOAD_FILE_CANT_OPEN")] + #[doc = "Godot enumerator name: `RESULT_DOWNLOAD_FILE_CANT_OPEN`"] + pub const DOWNLOAD_FILE_CANT_OPEN: Result = Result { + ord: 10i32 + }; + #[doc(alias = "RESULT_DOWNLOAD_FILE_WRITE_ERROR")] + #[doc = "Godot enumerator name: `RESULT_DOWNLOAD_FILE_WRITE_ERROR`"] + pub const DOWNLOAD_FILE_WRITE_ERROR: Result = Result { + ord: 11i32 + }; + #[doc(alias = "RESULT_REDIRECT_LIMIT_REACHED")] + #[doc = "Godot enumerator name: `RESULT_REDIRECT_LIMIT_REACHED`"] + pub const REDIRECT_LIMIT_REACHED: Result = Result { + ord: 12i32 + }; + #[doc(alias = "RESULT_TIMEOUT")] + #[doc = "Godot enumerator name: `RESULT_TIMEOUT`"] + pub const TIMEOUT: Result = Result { + ord: 13i32 + }; + +} +impl std::fmt::Debug for Result { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Result") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Result { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SUCCESS => "SUCCESS", Self::CHUNKED_BODY_SIZE_MISMATCH => "CHUNKED_BODY_SIZE_MISMATCH", Self::CANT_CONNECT => "CANT_CONNECT", Self::CANT_RESOLVE => "CANT_RESOLVE", Self::CONNECTION_ERROR => "CONNECTION_ERROR", Self::TLS_HANDSHAKE_ERROR => "TLS_HANDSHAKE_ERROR", Self::NO_RESPONSE => "NO_RESPONSE", Self::BODY_SIZE_LIMIT_EXCEEDED => "BODY_SIZE_LIMIT_EXCEEDED", Self::BODY_DECOMPRESS_FAILED => "BODY_DECOMPRESS_FAILED", Self::REQUEST_FAILED => "REQUEST_FAILED", Self::DOWNLOAD_FILE_CANT_OPEN => "DOWNLOAD_FILE_CANT_OPEN", Self::DOWNLOAD_FILE_WRITE_ERROR => "DOWNLOAD_FILE_WRITE_ERROR", Self::REDIRECT_LIMIT_REACHED => "REDIRECT_LIMIT_REACHED", Self::TIMEOUT => "TIMEOUT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SUCCESS => "RESULT_SUCCESS", Self::CHUNKED_BODY_SIZE_MISMATCH => "RESULT_CHUNKED_BODY_SIZE_MISMATCH", Self::CANT_CONNECT => "RESULT_CANT_CONNECT", Self::CANT_RESOLVE => "RESULT_CANT_RESOLVE", Self::CONNECTION_ERROR => "RESULT_CONNECTION_ERROR", Self::TLS_HANDSHAKE_ERROR => "RESULT_TLS_HANDSHAKE_ERROR", Self::NO_RESPONSE => "RESULT_NO_RESPONSE", Self::BODY_SIZE_LIMIT_EXCEEDED => "RESULT_BODY_SIZE_LIMIT_EXCEEDED", Self::BODY_DECOMPRESS_FAILED => "RESULT_BODY_DECOMPRESS_FAILED", Self::REQUEST_FAILED => "RESULT_REQUEST_FAILED", Self::DOWNLOAD_FILE_CANT_OPEN => "RESULT_DOWNLOAD_FILE_CANT_OPEN", Self::DOWNLOAD_FILE_WRITE_ERROR => "RESULT_DOWNLOAD_FILE_WRITE_ERROR", Self::REDIRECT_LIMIT_REACHED => "RESULT_REDIRECT_LIMIT_REACHED", Self::TIMEOUT => "RESULT_TIMEOUT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Result { + type Via = i32; + +} +impl crate::meta::ToGodot for Result { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Result { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image.rs new file mode 100644 index 0000000..b4fcd50 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image.rs @@ -0,0 +1,2110 @@ +#![doc = "Sidecar module for class [`Image`][crate::classes::Image].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Image` enums](https://docs.godotengine.org/en/stable/classes/class_image.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Image.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`image`][crate::classes::image]: sidecar module with related enum/flag types\n* [`IImage`][crate::classes::IImage]: virtual methods\n\n\nSee also [Godot docs for `Image`](https://docs.godotengine.org/en/stable/classes/class_image.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Image::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Image { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Image`][crate::classes::Image].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Image` methods](https://docs.godotengine.org/en/stable/classes/class_image.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IImage: crate::obj::GodotClass < Base = Image > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Image { + pub fn get_width(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4112usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4113usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4114usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_mipmaps(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4115usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "has_mipmaps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_format(&self,) -> crate::classes::image::Format { + type CallSig = (crate::classes::image::Format,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4116usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_data(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4117usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_data_size(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4118usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_data_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn convert(&mut self, format: crate::classes::image::Format,) { + type CallSig = ((), crate::classes::image::Format); + let args = (format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4119usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "convert", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mipmap_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4120usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_mipmap_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mipmap_offset(&self, mipmap: i32,) -> i64 { + type CallSig = (i64, i32); + let args = (mipmap,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4121usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_mipmap_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn resize_to_po2_full(&mut self, square: bool, interpolation: crate::classes::image::Interpolation,) { + type CallSig = ((), bool, crate::classes::image::Interpolation); + let args = (square, interpolation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4122usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "resize_to_po2", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::resize_to_po2_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn resize_to_po2(&mut self,) { + self.resize_to_po2_ex() . done() + } + #[inline] + pub fn resize_to_po2_ex < 'a > (&'a mut self,) -> ExResizeToPo2 < 'a > { + ExResizeToPo2::new(self,) + } + pub(crate) fn resize_full(&mut self, width: i32, height: i32, interpolation: crate::classes::image::Interpolation,) { + type CallSig = ((), i32, i32, crate::classes::image::Interpolation); + let args = (width, height, interpolation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4123usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "resize", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::resize_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn resize(&mut self, width: i32, height: i32,) { + self.resize_ex(width, height,) . done() + } + #[inline] + pub fn resize_ex < 'a > (&'a mut self, width: i32, height: i32,) -> ExResize < 'a > { + ExResize::new(self, width, height,) + } + pub fn shrink_x2(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4124usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "shrink_x2", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn crop(&mut self, width: i32, height: i32,) { + type CallSig = ((), i32, i32); + let args = (width, height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4125usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "crop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn flip_x(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4126usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "flip_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn flip_y(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4127usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "flip_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn generate_mipmaps_full(&mut self, renormalize: bool,) -> crate::global::Error { + type CallSig = (crate::global::Error, bool); + let args = (renormalize,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4128usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "generate_mipmaps", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::generate_mipmaps_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn generate_mipmaps(&mut self,) -> crate::global::Error { + self.generate_mipmaps_ex() . done() + } + #[inline] + pub fn generate_mipmaps_ex < 'a > (&'a mut self,) -> ExGenerateMipmaps < 'a > { + ExGenerateMipmaps::new(self,) + } + pub fn clear_mipmaps(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4129usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "clear_mipmaps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create(width: i32, height: i32, use_mipmaps: bool, format: crate::classes::image::Format,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >, i32, i32, bool, crate::classes::image::Format); + let args = (width, height, use_mipmaps, format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4130usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "create", std::ptr::null_mut(), None, args,) + } + } + pub fn create_empty(width: i32, height: i32, use_mipmaps: bool, format: crate::classes::image::Format,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >, i32, i32, bool, crate::classes::image::Format); + let args = (width, height, use_mipmaps, format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4131usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "create_empty", std::ptr::null_mut(), None, args,) + } + } + pub fn create_from_data(width: i32, height: i32, use_mipmaps: bool, format: crate::classes::image::Format, data: &PackedByteArray,) -> Option < Gd < crate::classes::Image > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Image > >, i32, i32, bool, crate::classes::image::Format, RefArg < 'a0, PackedByteArray >); + let args = (width, height, use_mipmaps, format, RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4132usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "create_from_data", std::ptr::null_mut(), None, args,) + } + } + pub fn set_data(&mut self, width: i32, height: i32, use_mipmaps: bool, format: crate::classes::image::Format, data: &PackedByteArray,) { + type CallSig < 'a0, > = ((), i32, i32, bool, crate::classes::image::Format, RefArg < 'a0, PackedByteArray >); + let args = (width, height, use_mipmaps, format, RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4133usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "set_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_empty(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4134usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "is_empty", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4135usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "load", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load_from_file(path: impl AsArg < GString >,) -> Option < Gd < crate::classes::Image > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Image > >, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4136usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "load_from_file", std::ptr::null_mut(), None, args,) + } + } + pub fn save_png(&self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4137usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "save_png", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn save_png_to_buffer(&self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4138usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "save_png_to_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn save_jpg_full(&self, path: CowArg < GString >, quality: f32,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, f32); + let args = (path, quality,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4139usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "save_jpg", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::save_jpg_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn save_jpg(&self, path: impl AsArg < GString >,) -> crate::global::Error { + self.save_jpg_ex(path,) . done() + } + #[inline] + pub fn save_jpg_ex < 'a > (&'a self, path: impl AsArg < GString > + 'a,) -> ExSaveJpg < 'a > { + ExSaveJpg::new(self, path,) + } + pub(crate) fn save_jpg_to_buffer_full(&self, quality: f32,) -> PackedByteArray { + type CallSig = (PackedByteArray, f32); + let args = (quality,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4140usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "save_jpg_to_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::save_jpg_to_buffer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn save_jpg_to_buffer(&self,) -> PackedByteArray { + self.save_jpg_to_buffer_ex() . done() + } + #[inline] + pub fn save_jpg_to_buffer_ex < 'a > (&'a self,) -> ExSaveJpgToBuffer < 'a > { + ExSaveJpgToBuffer::new(self,) + } + pub(crate) fn save_exr_full(&self, path: CowArg < GString >, grayscale: bool,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, bool); + let args = (path, grayscale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4141usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "save_exr", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::save_exr_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn save_exr(&self, path: impl AsArg < GString >,) -> crate::global::Error { + self.save_exr_ex(path,) . done() + } + #[inline] + pub fn save_exr_ex < 'a > (&'a self, path: impl AsArg < GString > + 'a,) -> ExSaveExr < 'a > { + ExSaveExr::new(self, path,) + } + pub(crate) fn save_exr_to_buffer_full(&self, grayscale: bool,) -> PackedByteArray { + type CallSig = (PackedByteArray, bool); + let args = (grayscale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4142usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "save_exr_to_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::save_exr_to_buffer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn save_exr_to_buffer(&self,) -> PackedByteArray { + self.save_exr_to_buffer_ex() . done() + } + #[inline] + pub fn save_exr_to_buffer_ex < 'a > (&'a self,) -> ExSaveExrToBuffer < 'a > { + ExSaveExrToBuffer::new(self,) + } + pub(crate) fn save_webp_full(&self, path: CowArg < GString >, lossy: bool, quality: f32,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, bool, f32); + let args = (path, lossy, quality,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4143usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "save_webp", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::save_webp_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn save_webp(&self, path: impl AsArg < GString >,) -> crate::global::Error { + self.save_webp_ex(path,) . done() + } + #[inline] + pub fn save_webp_ex < 'a > (&'a self, path: impl AsArg < GString > + 'a,) -> ExSaveWebp < 'a > { + ExSaveWebp::new(self, path,) + } + pub(crate) fn save_webp_to_buffer_full(&self, lossy: bool, quality: f32,) -> PackedByteArray { + type CallSig = (PackedByteArray, bool, f32); + let args = (lossy, quality,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4144usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "save_webp_to_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::save_webp_to_buffer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn save_webp_to_buffer(&self,) -> PackedByteArray { + self.save_webp_to_buffer_ex() . done() + } + #[inline] + pub fn save_webp_to_buffer_ex < 'a > (&'a self,) -> ExSaveWebpToBuffer < 'a > { + ExSaveWebpToBuffer::new(self,) + } + pub fn detect_alpha(&self,) -> crate::classes::image::AlphaMode { + type CallSig = (crate::classes::image::AlphaMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4145usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "detect_alpha", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_invisible(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4146usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "is_invisible", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn detect_used_channels_full(&self, source: crate::classes::image::CompressSource,) -> crate::classes::image::UsedChannels { + type CallSig = (crate::classes::image::UsedChannels, crate::classes::image::CompressSource); + let args = (source,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4147usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "detect_used_channels", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::detect_used_channels_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn detect_used_channels(&self,) -> crate::classes::image::UsedChannels { + self.detect_used_channels_ex() . done() + } + #[inline] + pub fn detect_used_channels_ex < 'a > (&'a self,) -> ExDetectUsedChannels < 'a > { + ExDetectUsedChannels::new(self,) + } + pub(crate) fn compress_full(&mut self, mode: crate::classes::image::CompressMode, source: crate::classes::image::CompressSource, astc_format: crate::classes::image::AstcFormat,) -> crate::global::Error { + type CallSig = (crate::global::Error, crate::classes::image::CompressMode, crate::classes::image::CompressSource, crate::classes::image::AstcFormat); + let args = (mode, source, astc_format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4148usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "compress", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::compress_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn compress(&mut self, mode: crate::classes::image::CompressMode,) -> crate::global::Error { + self.compress_ex(mode,) . done() + } + #[inline] + pub fn compress_ex < 'a > (&'a mut self, mode: crate::classes::image::CompressMode,) -> ExCompress < 'a > { + ExCompress::new(self, mode,) + } + pub(crate) fn compress_from_channels_full(&mut self, mode: crate::classes::image::CompressMode, channels: crate::classes::image::UsedChannels, astc_format: crate::classes::image::AstcFormat,) -> crate::global::Error { + type CallSig = (crate::global::Error, crate::classes::image::CompressMode, crate::classes::image::UsedChannels, crate::classes::image::AstcFormat); + let args = (mode, channels, astc_format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4149usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "compress_from_channels", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::compress_from_channels_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn compress_from_channels(&mut self, mode: crate::classes::image::CompressMode, channels: crate::classes::image::UsedChannels,) -> crate::global::Error { + self.compress_from_channels_ex(mode, channels,) . done() + } + #[inline] + pub fn compress_from_channels_ex < 'a > (&'a mut self, mode: crate::classes::image::CompressMode, channels: crate::classes::image::UsedChannels,) -> ExCompressFromChannels < 'a > { + ExCompressFromChannels::new(self, mode, channels,) + } + pub fn decompress(&mut self,) -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4150usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "decompress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_compressed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4151usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "is_compressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rotate_90(&mut self, direction: crate::global::ClockDirection,) { + type CallSig = ((), crate::global::ClockDirection); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4152usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "rotate_90", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rotate_180(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4153usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "rotate_180", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn fix_alpha_edges(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4154usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "fix_alpha_edges", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn premultiply_alpha(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4155usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "premultiply_alpha", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn srgb_to_linear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4156usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "srgb_to_linear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn normal_map_to_xy(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4157usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "normal_map_to_xy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rgbe_to_srgb(&mut self,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4158usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "rgbe_to_srgb", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn bump_map_to_normal_map_full(&mut self, bump_scale: f32,) { + type CallSig = ((), f32); + let args = (bump_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4159usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "bump_map_to_normal_map", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::bump_map_to_normal_map_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn bump_map_to_normal_map(&mut self,) { + self.bump_map_to_normal_map_ex() . done() + } + #[inline] + pub fn bump_map_to_normal_map_ex < 'a > (&'a mut self,) -> ExBumpMapToNormalMap < 'a > { + ExBumpMapToNormalMap::new(self,) + } + pub fn compute_image_metrics(&mut self, compared_image: impl AsObjectArg < crate::classes::Image >, use_luma: bool,) -> Dictionary { + type CallSig = (Dictionary, ObjectArg < crate::classes::Image >, bool); + let args = (compared_image.as_object_arg(), use_luma,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4160usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "compute_image_metrics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn blit_rect(&mut self, src: impl AsObjectArg < crate::classes::Image >, src_rect: Rect2i, dst: Vector2i,) { + type CallSig = ((), ObjectArg < crate::classes::Image >, Rect2i, Vector2i); + let args = (src.as_object_arg(), src_rect, dst,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4161usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "blit_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn blit_rect_mask(&mut self, src: impl AsObjectArg < crate::classes::Image >, mask: impl AsObjectArg < crate::classes::Image >, src_rect: Rect2i, dst: Vector2i,) { + type CallSig = ((), ObjectArg < crate::classes::Image >, ObjectArg < crate::classes::Image >, Rect2i, Vector2i); + let args = (src.as_object_arg(), mask.as_object_arg(), src_rect, dst,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4162usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "blit_rect_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn blend_rect(&mut self, src: impl AsObjectArg < crate::classes::Image >, src_rect: Rect2i, dst: Vector2i,) { + type CallSig = ((), ObjectArg < crate::classes::Image >, Rect2i, Vector2i); + let args = (src.as_object_arg(), src_rect, dst,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4163usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "blend_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn blend_rect_mask(&mut self, src: impl AsObjectArg < crate::classes::Image >, mask: impl AsObjectArg < crate::classes::Image >, src_rect: Rect2i, dst: Vector2i,) { + type CallSig = ((), ObjectArg < crate::classes::Image >, ObjectArg < crate::classes::Image >, Rect2i, Vector2i); + let args = (src.as_object_arg(), mask.as_object_arg(), src_rect, dst,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4164usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "blend_rect_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn fill(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4165usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "fill", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn fill_rect(&mut self, rect: Rect2i, color: Color,) { + type CallSig = ((), Rect2i, Color); + let args = (rect, color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4166usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "fill_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_used_rect(&self,) -> Rect2i { + type CallSig = (Rect2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4167usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_used_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_region(&self, region: Rect2i,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >, Rect2i); + let args = (region,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4168usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn copy_from(&mut self, src: impl AsObjectArg < crate::classes::Image >,) { + type CallSig = ((), ObjectArg < crate::classes::Image >); + let args = (src.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4169usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "copy_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pixelv(&self, point: Vector2i,) -> Color { + type CallSig = (Color, Vector2i); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4170usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_pixelv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pixel(&self, x: i32, y: i32,) -> Color { + type CallSig = (Color, i32, i32); + let args = (x, y,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4171usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "get_pixel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pixelv(&mut self, point: Vector2i, color: Color,) { + type CallSig = ((), Vector2i, Color); + let args = (point, color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4172usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "set_pixelv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pixel(&mut self, x: i32, y: i32, color: Color,) { + type CallSig = ((), i32, i32, Color); + let args = (x, y, color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4173usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "set_pixel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn adjust_bcs(&mut self, brightness: f32, contrast: f32, saturation: f32,) { + type CallSig = ((), f32, f32, f32); + let args = (brightness, contrast, saturation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4174usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "adjust_bcs", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load_png_from_buffer(&mut self, buffer: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4175usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "load_png_from_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load_jpg_from_buffer(&mut self, buffer: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4176usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "load_jpg_from_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load_webp_from_buffer(&mut self, buffer: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4177usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "load_webp_from_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load_tga_from_buffer(&mut self, buffer: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4178usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "load_tga_from_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load_bmp_from_buffer(&mut self, buffer: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4179usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "load_bmp_from_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn load_ktx_from_buffer(&mut self, buffer: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4180usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "load_ktx_from_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn load_svg_from_buffer_full(&mut self, buffer: RefArg < PackedByteArray >, scale: f32,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >, f32); + let args = (buffer, scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4181usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "load_svg_from_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::load_svg_from_buffer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn load_svg_from_buffer(&mut self, buffer: &PackedByteArray,) -> crate::global::Error { + self.load_svg_from_buffer_ex(buffer,) . done() + } + #[inline] + pub fn load_svg_from_buffer_ex < 'a > (&'a mut self, buffer: &'a PackedByteArray,) -> ExLoadSvgFromBuffer < 'a > { + ExLoadSvgFromBuffer::new(self, buffer,) + } + pub(crate) fn load_svg_from_string_full(&mut self, svg_str: CowArg < GString >, scale: f32,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, f32); + let args = (svg_str, scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4182usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Image", "load_svg_from_string", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::load_svg_from_string_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn load_svg_from_string(&mut self, svg_str: impl AsArg < GString >,) -> crate::global::Error { + self.load_svg_from_string_ex(svg_str,) . done() + } + #[inline] + pub fn load_svg_from_string_ex < 'a > (&'a mut self, svg_str: impl AsArg < GString > + 'a,) -> ExLoadSvgFromString < 'a > { + ExLoadSvgFromString::new(self, svg_str,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const MAX_WIDTH: i32 = 16777216i32; + pub const MAX_HEIGHT: i32 = 16777216i32; + + } + impl crate::obj::GodotClass for Image { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Image")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Image { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Image { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Image { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Image { + + } + impl crate::obj::cap::GodotDefault for Image { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Image { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Image { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Image`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Image { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Image > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Image::resize_to_po2_ex`][super::Image::resize_to_po2_ex]."] +#[must_use] +pub struct ExResizeToPo2 < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Image, square: bool, interpolation: crate::classes::image::Interpolation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExResizeToPo2 < 'a > { + fn new(surround_object: &'a mut re_export::Image,) -> Self { + let square = false; + let interpolation = crate::obj::EngineEnum::from_ord(1); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, square: square, interpolation: interpolation, + } + } + #[inline] + pub fn square(self, square: bool) -> Self { + Self { + square: square, .. self + } + } + #[inline] + pub fn interpolation(self, interpolation: crate::classes::image::Interpolation) -> Self { + Self { + interpolation: interpolation, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, square, interpolation, + } + = self; + re_export::Image::resize_to_po2_full(surround_object, square, interpolation,) + } +} +#[doc = "Default-param extender for [`Image::resize_ex`][super::Image::resize_ex]."] +#[must_use] +pub struct ExResize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Image, width: i32, height: i32, interpolation: crate::classes::image::Interpolation, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExResize < 'a > { + fn new(surround_object: &'a mut re_export::Image, width: i32, height: i32,) -> Self { + let interpolation = crate::obj::EngineEnum::from_ord(1); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, width: width, height: height, interpolation: interpolation, + } + } + #[inline] + pub fn interpolation(self, interpolation: crate::classes::image::Interpolation) -> Self { + Self { + interpolation: interpolation, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, width, height, interpolation, + } + = self; + re_export::Image::resize_full(surround_object, width, height, interpolation,) + } +} +#[doc = "Default-param extender for [`Image::generate_mipmaps_ex`][super::Image::generate_mipmaps_ex]."] +#[must_use] +pub struct ExGenerateMipmaps < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Image, renormalize: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGenerateMipmaps < 'a > { + fn new(surround_object: &'a mut re_export::Image,) -> Self { + let renormalize = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, renormalize: renormalize, + } + } + #[inline] + pub fn renormalize(self, renormalize: bool) -> Self { + Self { + renormalize: renormalize, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, renormalize, + } + = self; + re_export::Image::generate_mipmaps_full(surround_object, renormalize,) + } +} +#[doc = "Default-param extender for [`Image::save_jpg_ex`][super::Image::save_jpg_ex]."] +#[must_use] +pub struct ExSaveJpg < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Image, path: CowArg < 'a, GString >, quality: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSaveJpg < 'a > { + fn new(surround_object: &'a re_export::Image, path: impl AsArg < GString > + 'a,) -> Self { + let quality = 0.75f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), quality: quality, + } + } + #[inline] + pub fn quality(self, quality: f32) -> Self { + Self { + quality: quality, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, path, quality, + } + = self; + re_export::Image::save_jpg_full(surround_object, path, quality,) + } +} +#[doc = "Default-param extender for [`Image::save_jpg_to_buffer_ex`][super::Image::save_jpg_to_buffer_ex]."] +#[must_use] +pub struct ExSaveJpgToBuffer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Image, quality: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSaveJpgToBuffer < 'a > { + fn new(surround_object: &'a re_export::Image,) -> Self { + let quality = 0.75f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, quality: quality, + } + } + #[inline] + pub fn quality(self, quality: f32) -> Self { + Self { + quality: quality, .. self + } + } + #[inline] + pub fn done(self) -> PackedByteArray { + let Self { + _phantom, surround_object, quality, + } + = self; + re_export::Image::save_jpg_to_buffer_full(surround_object, quality,) + } +} +#[doc = "Default-param extender for [`Image::save_exr_ex`][super::Image::save_exr_ex]."] +#[must_use] +pub struct ExSaveExr < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Image, path: CowArg < 'a, GString >, grayscale: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSaveExr < 'a > { + fn new(surround_object: &'a re_export::Image, path: impl AsArg < GString > + 'a,) -> Self { + let grayscale = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), grayscale: grayscale, + } + } + #[inline] + pub fn grayscale(self, grayscale: bool) -> Self { + Self { + grayscale: grayscale, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, path, grayscale, + } + = self; + re_export::Image::save_exr_full(surround_object, path, grayscale,) + } +} +#[doc = "Default-param extender for [`Image::save_exr_to_buffer_ex`][super::Image::save_exr_to_buffer_ex]."] +#[must_use] +pub struct ExSaveExrToBuffer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Image, grayscale: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSaveExrToBuffer < 'a > { + fn new(surround_object: &'a re_export::Image,) -> Self { + let grayscale = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, grayscale: grayscale, + } + } + #[inline] + pub fn grayscale(self, grayscale: bool) -> Self { + Self { + grayscale: grayscale, .. self + } + } + #[inline] + pub fn done(self) -> PackedByteArray { + let Self { + _phantom, surround_object, grayscale, + } + = self; + re_export::Image::save_exr_to_buffer_full(surround_object, grayscale,) + } +} +#[doc = "Default-param extender for [`Image::save_webp_ex`][super::Image::save_webp_ex]."] +#[must_use] +pub struct ExSaveWebp < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Image, path: CowArg < 'a, GString >, lossy: bool, quality: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSaveWebp < 'a > { + fn new(surround_object: &'a re_export::Image, path: impl AsArg < GString > + 'a,) -> Self { + let lossy = false; + let quality = 0.75f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), lossy: lossy, quality: quality, + } + } + #[inline] + pub fn lossy(self, lossy: bool) -> Self { + Self { + lossy: lossy, .. self + } + } + #[inline] + pub fn quality(self, quality: f32) -> Self { + Self { + quality: quality, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, path, lossy, quality, + } + = self; + re_export::Image::save_webp_full(surround_object, path, lossy, quality,) + } +} +#[doc = "Default-param extender for [`Image::save_webp_to_buffer_ex`][super::Image::save_webp_to_buffer_ex]."] +#[must_use] +pub struct ExSaveWebpToBuffer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Image, lossy: bool, quality: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSaveWebpToBuffer < 'a > { + fn new(surround_object: &'a re_export::Image,) -> Self { + let lossy = false; + let quality = 0.75f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, lossy: lossy, quality: quality, + } + } + #[inline] + pub fn lossy(self, lossy: bool) -> Self { + Self { + lossy: lossy, .. self + } + } + #[inline] + pub fn quality(self, quality: f32) -> Self { + Self { + quality: quality, .. self + } + } + #[inline] + pub fn done(self) -> PackedByteArray { + let Self { + _phantom, surround_object, lossy, quality, + } + = self; + re_export::Image::save_webp_to_buffer_full(surround_object, lossy, quality,) + } +} +#[doc = "Default-param extender for [`Image::detect_used_channels_ex`][super::Image::detect_used_channels_ex]."] +#[must_use] +pub struct ExDetectUsedChannels < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Image, source: crate::classes::image::CompressSource, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDetectUsedChannels < 'a > { + fn new(surround_object: &'a re_export::Image,) -> Self { + let source = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, source: source, + } + } + #[inline] + pub fn source(self, source: crate::classes::image::CompressSource) -> Self { + Self { + source: source, .. self + } + } + #[inline] + pub fn done(self) -> crate::classes::image::UsedChannels { + let Self { + _phantom, surround_object, source, + } + = self; + re_export::Image::detect_used_channels_full(surround_object, source,) + } +} +#[doc = "Default-param extender for [`Image::compress_ex`][super::Image::compress_ex]."] +#[must_use] +pub struct ExCompress < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Image, mode: crate::classes::image::CompressMode, source: crate::classes::image::CompressSource, astc_format: crate::classes::image::AstcFormat, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCompress < 'a > { + fn new(surround_object: &'a mut re_export::Image, mode: crate::classes::image::CompressMode,) -> Self { + let source = crate::obj::EngineEnum::from_ord(0); + let astc_format = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, mode: mode, source: source, astc_format: astc_format, + } + } + #[inline] + pub fn source(self, source: crate::classes::image::CompressSource) -> Self { + Self { + source: source, .. self + } + } + #[inline] + pub fn astc_format(self, astc_format: crate::classes::image::AstcFormat) -> Self { + Self { + astc_format: astc_format, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, mode, source, astc_format, + } + = self; + re_export::Image::compress_full(surround_object, mode, source, astc_format,) + } +} +#[doc = "Default-param extender for [`Image::compress_from_channels_ex`][super::Image::compress_from_channels_ex]."] +#[must_use] +pub struct ExCompressFromChannels < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Image, mode: crate::classes::image::CompressMode, channels: crate::classes::image::UsedChannels, astc_format: crate::classes::image::AstcFormat, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCompressFromChannels < 'a > { + fn new(surround_object: &'a mut re_export::Image, mode: crate::classes::image::CompressMode, channels: crate::classes::image::UsedChannels,) -> Self { + let astc_format = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, mode: mode, channels: channels, astc_format: astc_format, + } + } + #[inline] + pub fn astc_format(self, astc_format: crate::classes::image::AstcFormat) -> Self { + Self { + astc_format: astc_format, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, mode, channels, astc_format, + } + = self; + re_export::Image::compress_from_channels_full(surround_object, mode, channels, astc_format,) + } +} +#[doc = "Default-param extender for [`Image::bump_map_to_normal_map_ex`][super::Image::bump_map_to_normal_map_ex]."] +#[must_use] +pub struct ExBumpMapToNormalMap < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Image, bump_scale: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBumpMapToNormalMap < 'a > { + fn new(surround_object: &'a mut re_export::Image,) -> Self { + let bump_scale = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, bump_scale: bump_scale, + } + } + #[inline] + pub fn bump_scale(self, bump_scale: f32) -> Self { + Self { + bump_scale: bump_scale, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, bump_scale, + } + = self; + re_export::Image::bump_map_to_normal_map_full(surround_object, bump_scale,) + } +} +#[doc = "Default-param extender for [`Image::load_svg_from_buffer_ex`][super::Image::load_svg_from_buffer_ex]."] +#[must_use] +pub struct ExLoadSvgFromBuffer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Image, buffer: CowArg < 'a, PackedByteArray >, scale: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExLoadSvgFromBuffer < 'a > { + fn new(surround_object: &'a mut re_export::Image, buffer: &'a PackedByteArray,) -> Self { + let scale = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, buffer: CowArg::Borrowed(buffer), scale: scale, + } + } + #[inline] + pub fn scale(self, scale: f32) -> Self { + Self { + scale: scale, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, buffer, scale, + } + = self; + re_export::Image::load_svg_from_buffer_full(surround_object, buffer.cow_as_arg(), scale,) + } +} +#[doc = "Default-param extender for [`Image::load_svg_from_string_ex`][super::Image::load_svg_from_string_ex]."] +#[must_use] +pub struct ExLoadSvgFromString < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Image, svg_str: CowArg < 'a, GString >, scale: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExLoadSvgFromString < 'a > { + fn new(surround_object: &'a mut re_export::Image, svg_str: impl AsArg < GString > + 'a,) -> Self { + let scale = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, svg_str: svg_str.into_arg(), scale: scale, + } + } + #[inline] + pub fn scale(self, scale: f32) -> Self { + Self { + scale: scale, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, svg_str, scale, + } + = self; + re_export::Image::load_svg_from_string_full(surround_object, svg_str, scale,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Format { + ord: i32 +} +impl Format { + #[doc(alias = "FORMAT_L8")] + #[doc = "Godot enumerator name: `FORMAT_L8`"] + pub const L8: Format = Format { + ord: 0i32 + }; + #[doc(alias = "FORMAT_LA8")] + #[doc = "Godot enumerator name: `FORMAT_LA8`"] + pub const LA8: Format = Format { + ord: 1i32 + }; + #[doc(alias = "FORMAT_R8")] + #[doc = "Godot enumerator name: `FORMAT_R8`"] + pub const R8: Format = Format { + ord: 2i32 + }; + #[doc(alias = "FORMAT_RG8")] + #[doc = "Godot enumerator name: `FORMAT_RG8`"] + pub const RG8: Format = Format { + ord: 3i32 + }; + #[doc(alias = "FORMAT_RGB8")] + #[doc = "Godot enumerator name: `FORMAT_RGB8`"] + pub const RGB8: Format = Format { + ord: 4i32 + }; + #[doc(alias = "FORMAT_RGBA8")] + #[doc = "Godot enumerator name: `FORMAT_RGBA8`"] + pub const RGBA8: Format = Format { + ord: 5i32 + }; + #[doc(alias = "FORMAT_RGBA4444")] + #[doc = "Godot enumerator name: `FORMAT_RGBA4444`"] + pub const RGBA4444: Format = Format { + ord: 6i32 + }; + #[doc(alias = "FORMAT_RGB565")] + #[doc = "Godot enumerator name: `FORMAT_RGB565`"] + pub const RGB565: Format = Format { + ord: 7i32 + }; + #[doc(alias = "FORMAT_RF")] + #[doc = "Godot enumerator name: `FORMAT_RF`"] + pub const RF: Format = Format { + ord: 8i32 + }; + #[doc(alias = "FORMAT_RGF")] + #[doc = "Godot enumerator name: `FORMAT_RGF`"] + pub const RGF: Format = Format { + ord: 9i32 + }; + #[doc(alias = "FORMAT_RGBF")] + #[doc = "Godot enumerator name: `FORMAT_RGBF`"] + pub const RGBF: Format = Format { + ord: 10i32 + }; + #[doc(alias = "FORMAT_RGBAF")] + #[doc = "Godot enumerator name: `FORMAT_RGBAF`"] + pub const RGBAF: Format = Format { + ord: 11i32 + }; + #[doc(alias = "FORMAT_RH")] + #[doc = "Godot enumerator name: `FORMAT_RH`"] + pub const RH: Format = Format { + ord: 12i32 + }; + #[doc(alias = "FORMAT_RGH")] + #[doc = "Godot enumerator name: `FORMAT_RGH`"] + pub const RGH: Format = Format { + ord: 13i32 + }; + #[doc(alias = "FORMAT_RGBH")] + #[doc = "Godot enumerator name: `FORMAT_RGBH`"] + pub const RGBH: Format = Format { + ord: 14i32 + }; + #[doc(alias = "FORMAT_RGBAH")] + #[doc = "Godot enumerator name: `FORMAT_RGBAH`"] + pub const RGBAH: Format = Format { + ord: 15i32 + }; + #[doc(alias = "FORMAT_RGBE9995")] + #[doc = "Godot enumerator name: `FORMAT_RGBE9995`"] + pub const RGBE9995: Format = Format { + ord: 16i32 + }; + #[doc(alias = "FORMAT_DXT1")] + #[doc = "Godot enumerator name: `FORMAT_DXT1`"] + pub const DXT1: Format = Format { + ord: 17i32 + }; + #[doc(alias = "FORMAT_DXT3")] + #[doc = "Godot enumerator name: `FORMAT_DXT3`"] + pub const DXT3: Format = Format { + ord: 18i32 + }; + #[doc(alias = "FORMAT_DXT5")] + #[doc = "Godot enumerator name: `FORMAT_DXT5`"] + pub const DXT5: Format = Format { + ord: 19i32 + }; + #[doc(alias = "FORMAT_RGTC_R")] + #[doc = "Godot enumerator name: `FORMAT_RGTC_R`"] + pub const RGTC_R: Format = Format { + ord: 20i32 + }; + #[doc(alias = "FORMAT_RGTC_RG")] + #[doc = "Godot enumerator name: `FORMAT_RGTC_RG`"] + pub const RGTC_RG: Format = Format { + ord: 21i32 + }; + #[doc(alias = "FORMAT_BPTC_RGBA")] + #[doc = "Godot enumerator name: `FORMAT_BPTC_RGBA`"] + pub const BPTC_RGBA: Format = Format { + ord: 22i32 + }; + #[doc(alias = "FORMAT_BPTC_RGBF")] + #[doc = "Godot enumerator name: `FORMAT_BPTC_RGBF`"] + pub const BPTC_RGBF: Format = Format { + ord: 23i32 + }; + #[doc(alias = "FORMAT_BPTC_RGBFU")] + #[doc = "Godot enumerator name: `FORMAT_BPTC_RGBFU`"] + pub const BPTC_RGBFU: Format = Format { + ord: 24i32 + }; + #[doc(alias = "FORMAT_ETC")] + #[doc = "Godot enumerator name: `FORMAT_ETC`"] + pub const ETC: Format = Format { + ord: 25i32 + }; + #[doc(alias = "FORMAT_ETC2_R11")] + #[doc = "Godot enumerator name: `FORMAT_ETC2_R11`"] + pub const ETC2_R11: Format = Format { + ord: 26i32 + }; + #[doc(alias = "FORMAT_ETC2_R11S")] + #[doc = "Godot enumerator name: `FORMAT_ETC2_R11S`"] + pub const ETC2_R11S: Format = Format { + ord: 27i32 + }; + #[doc(alias = "FORMAT_ETC2_RG11")] + #[doc = "Godot enumerator name: `FORMAT_ETC2_RG11`"] + pub const ETC2_RG11: Format = Format { + ord: 28i32 + }; + #[doc(alias = "FORMAT_ETC2_RG11S")] + #[doc = "Godot enumerator name: `FORMAT_ETC2_RG11S`"] + pub const ETC2_RG11S: Format = Format { + ord: 29i32 + }; + #[doc(alias = "FORMAT_ETC2_RGB8")] + #[doc = "Godot enumerator name: `FORMAT_ETC2_RGB8`"] + pub const ETC2_RGB8: Format = Format { + ord: 30i32 + }; + #[doc(alias = "FORMAT_ETC2_RGBA8")] + #[doc = "Godot enumerator name: `FORMAT_ETC2_RGBA8`"] + pub const ETC2_RGBA8: Format = Format { + ord: 31i32 + }; + #[doc(alias = "FORMAT_ETC2_RGB8A1")] + #[doc = "Godot enumerator name: `FORMAT_ETC2_RGB8A1`"] + pub const ETC2_RGB8A1: Format = Format { + ord: 32i32 + }; + #[doc(alias = "FORMAT_ETC2_RA_AS_RG")] + #[doc = "Godot enumerator name: `FORMAT_ETC2_RA_AS_RG`"] + pub const ETC2_RA_AS_RG: Format = Format { + ord: 33i32 + }; + #[doc(alias = "FORMAT_DXT5_RA_AS_RG")] + #[doc = "Godot enumerator name: `FORMAT_DXT5_RA_AS_RG`"] + pub const DXT5_RA_AS_RG: Format = Format { + ord: 34i32 + }; + #[doc(alias = "FORMAT_ASTC_4x4")] + #[doc = "Godot enumerator name: `FORMAT_ASTC_4x4`"] + pub const ASTC_4x4: Format = Format { + ord: 35i32 + }; + #[doc(alias = "FORMAT_ASTC_4x4_HDR")] + #[doc = "Godot enumerator name: `FORMAT_ASTC_4x4_HDR`"] + pub const ASTC_4x4_HDR: Format = Format { + ord: 36i32 + }; + #[doc(alias = "FORMAT_ASTC_8x8")] + #[doc = "Godot enumerator name: `FORMAT_ASTC_8x8`"] + pub const ASTC_8x8: Format = Format { + ord: 37i32 + }; + #[doc(alias = "FORMAT_ASTC_8x8_HDR")] + #[doc = "Godot enumerator name: `FORMAT_ASTC_8x8_HDR`"] + pub const ASTC_8x8_HDR: Format = Format { + ord: 38i32 + }; + #[doc(alias = "FORMAT_MAX")] + #[doc = "Godot enumerator name: `FORMAT_MAX`"] + pub const MAX: Format = Format { + ord: 39i32 + }; + +} +impl std::fmt::Debug for Format { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Format") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Format { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 | ord @ 26i32 | ord @ 27i32 | ord @ 28i32 | ord @ 29i32 | ord @ 30i32 | ord @ 31i32 | ord @ 32i32 | ord @ 33i32 | ord @ 34i32 | ord @ 35i32 | ord @ 36i32 | ord @ 37i32 | ord @ 38i32 | ord @ 39i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::L8 => "L8", Self::LA8 => "LA8", Self::R8 => "R8", Self::RG8 => "RG8", Self::RGB8 => "RGB8", Self::RGBA8 => "RGBA8", Self::RGBA4444 => "RGBA4444", Self::RGB565 => "RGB565", Self::RF => "RF", Self::RGF => "RGF", Self::RGBF => "RGBF", Self::RGBAF => "RGBAF", Self::RH => "RH", Self::RGH => "RGH", Self::RGBH => "RGBH", Self::RGBAH => "RGBAH", Self::RGBE9995 => "RGBE9995", Self::DXT1 => "DXT1", Self::DXT3 => "DXT3", Self::DXT5 => "DXT5", Self::RGTC_R => "RGTC_R", Self::RGTC_RG => "RGTC_RG", Self::BPTC_RGBA => "BPTC_RGBA", Self::BPTC_RGBF => "BPTC_RGBF", Self::BPTC_RGBFU => "BPTC_RGBFU", Self::ETC => "ETC", Self::ETC2_R11 => "ETC2_R11", Self::ETC2_R11S => "ETC2_R11S", Self::ETC2_RG11 => "ETC2_RG11", Self::ETC2_RG11S => "ETC2_RG11S", Self::ETC2_RGB8 => "ETC2_RGB8", Self::ETC2_RGBA8 => "ETC2_RGBA8", Self::ETC2_RGB8A1 => "ETC2_RGB8A1", Self::ETC2_RA_AS_RG => "ETC2_RA_AS_RG", Self::DXT5_RA_AS_RG => "DXT5_RA_AS_RG", Self::ASTC_4x4 => "ASTC_4x4", Self::ASTC_4x4_HDR => "ASTC_4x4_HDR", Self::ASTC_8x8 => "ASTC_8x8", Self::ASTC_8x8_HDR => "ASTC_8x8_HDR", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::L8 => "FORMAT_L8", Self::LA8 => "FORMAT_LA8", Self::R8 => "FORMAT_R8", Self::RG8 => "FORMAT_RG8", Self::RGB8 => "FORMAT_RGB8", Self::RGBA8 => "FORMAT_RGBA8", Self::RGBA4444 => "FORMAT_RGBA4444", Self::RGB565 => "FORMAT_RGB565", Self::RF => "FORMAT_RF", Self::RGF => "FORMAT_RGF", Self::RGBF => "FORMAT_RGBF", Self::RGBAF => "FORMAT_RGBAF", Self::RH => "FORMAT_RH", Self::RGH => "FORMAT_RGH", Self::RGBH => "FORMAT_RGBH", Self::RGBAH => "FORMAT_RGBAH", Self::RGBE9995 => "FORMAT_RGBE9995", Self::DXT1 => "FORMAT_DXT1", Self::DXT3 => "FORMAT_DXT3", Self::DXT5 => "FORMAT_DXT5", Self::RGTC_R => "FORMAT_RGTC_R", Self::RGTC_RG => "FORMAT_RGTC_RG", Self::BPTC_RGBA => "FORMAT_BPTC_RGBA", Self::BPTC_RGBF => "FORMAT_BPTC_RGBF", Self::BPTC_RGBFU => "FORMAT_BPTC_RGBFU", Self::ETC => "FORMAT_ETC", Self::ETC2_R11 => "FORMAT_ETC2_R11", Self::ETC2_R11S => "FORMAT_ETC2_R11S", Self::ETC2_RG11 => "FORMAT_ETC2_RG11", Self::ETC2_RG11S => "FORMAT_ETC2_RG11S", Self::ETC2_RGB8 => "FORMAT_ETC2_RGB8", Self::ETC2_RGBA8 => "FORMAT_ETC2_RGBA8", Self::ETC2_RGB8A1 => "FORMAT_ETC2_RGB8A1", Self::ETC2_RA_AS_RG => "FORMAT_ETC2_RA_AS_RG", Self::DXT5_RA_AS_RG => "FORMAT_DXT5_RA_AS_RG", Self::ASTC_4x4 => "FORMAT_ASTC_4x4", Self::ASTC_4x4_HDR => "FORMAT_ASTC_4x4_HDR", Self::ASTC_8x8 => "FORMAT_ASTC_8x8", Self::ASTC_8x8_HDR => "FORMAT_ASTC_8x8_HDR", Self::MAX => "FORMAT_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Format { + const ENUMERATOR_COUNT: usize = 39usize; + +} +impl crate::meta::GodotConvert for Format { + type Via = i32; + +} +impl crate::meta::ToGodot for Format { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Format { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Interpolation { + ord: i32 +} +impl Interpolation { + #[doc(alias = "INTERPOLATE_NEAREST")] + #[doc = "Godot enumerator name: `INTERPOLATE_NEAREST`"] + pub const NEAREST: Interpolation = Interpolation { + ord: 0i32 + }; + #[doc(alias = "INTERPOLATE_BILINEAR")] + #[doc = "Godot enumerator name: `INTERPOLATE_BILINEAR`"] + pub const BILINEAR: Interpolation = Interpolation { + ord: 1i32 + }; + #[doc(alias = "INTERPOLATE_CUBIC")] + #[doc = "Godot enumerator name: `INTERPOLATE_CUBIC`"] + pub const CUBIC: Interpolation = Interpolation { + ord: 2i32 + }; + #[doc(alias = "INTERPOLATE_TRILINEAR")] + #[doc = "Godot enumerator name: `INTERPOLATE_TRILINEAR`"] + pub const TRILINEAR: Interpolation = Interpolation { + ord: 3i32 + }; + #[doc(alias = "INTERPOLATE_LANCZOS")] + #[doc = "Godot enumerator name: `INTERPOLATE_LANCZOS`"] + pub const LANCZOS: Interpolation = Interpolation { + ord: 4i32 + }; + +} +impl std::fmt::Debug for Interpolation { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Interpolation") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Interpolation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "NEAREST", Self::BILINEAR => "BILINEAR", Self::CUBIC => "CUBIC", Self::TRILINEAR => "TRILINEAR", Self::LANCZOS => "LANCZOS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "INTERPOLATE_NEAREST", Self::BILINEAR => "INTERPOLATE_BILINEAR", Self::CUBIC => "INTERPOLATE_CUBIC", Self::TRILINEAR => "INTERPOLATE_TRILINEAR", Self::LANCZOS => "INTERPOLATE_LANCZOS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Interpolation { + type Via = i32; + +} +impl crate::meta::ToGodot for Interpolation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Interpolation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AlphaMode { + ord: i32 +} +impl AlphaMode { + #[doc(alias = "ALPHA_NONE")] + #[doc = "Godot enumerator name: `ALPHA_NONE`"] + pub const NONE: AlphaMode = AlphaMode { + ord: 0i32 + }; + #[doc(alias = "ALPHA_BIT")] + #[doc = "Godot enumerator name: `ALPHA_BIT`"] + pub const BIT: AlphaMode = AlphaMode { + ord: 1i32 + }; + #[doc(alias = "ALPHA_BLEND")] + #[doc = "Godot enumerator name: `ALPHA_BLEND`"] + pub const BLEND: AlphaMode = AlphaMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AlphaMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AlphaMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AlphaMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::BIT => "BIT", Self::BLEND => "BLEND", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "ALPHA_NONE", Self::BIT => "ALPHA_BIT", Self::BLEND => "ALPHA_BLEND", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AlphaMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AlphaMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AlphaMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CompressMode { + ord: i32 +} +impl CompressMode { + #[doc(alias = "COMPRESS_S3TC")] + #[doc = "Godot enumerator name: `COMPRESS_S3TC`"] + pub const S3TC: CompressMode = CompressMode { + ord: 0i32 + }; + #[doc(alias = "COMPRESS_ETC")] + #[doc = "Godot enumerator name: `COMPRESS_ETC`"] + pub const ETC: CompressMode = CompressMode { + ord: 1i32 + }; + #[doc(alias = "COMPRESS_ETC2")] + #[doc = "Godot enumerator name: `COMPRESS_ETC2`"] + pub const ETC2: CompressMode = CompressMode { + ord: 2i32 + }; + #[doc(alias = "COMPRESS_BPTC")] + #[doc = "Godot enumerator name: `COMPRESS_BPTC`"] + pub const BPTC: CompressMode = CompressMode { + ord: 3i32 + }; + #[doc(alias = "COMPRESS_ASTC")] + #[doc = "Godot enumerator name: `COMPRESS_ASTC`"] + pub const ASTC: CompressMode = CompressMode { + ord: 4i32 + }; + #[doc(alias = "COMPRESS_MAX")] + #[doc = "Godot enumerator name: `COMPRESS_MAX`"] + pub const MAX: CompressMode = CompressMode { + ord: 5i32 + }; + +} +impl std::fmt::Debug for CompressMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CompressMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CompressMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::S3TC => "S3TC", Self::ETC => "ETC", Self::ETC2 => "ETC2", Self::BPTC => "BPTC", Self::ASTC => "ASTC", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::S3TC => "COMPRESS_S3TC", Self::ETC => "COMPRESS_ETC", Self::ETC2 => "COMPRESS_ETC2", Self::BPTC => "COMPRESS_BPTC", Self::ASTC => "COMPRESS_ASTC", Self::MAX => "COMPRESS_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for CompressMode { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for CompressMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CompressMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CompressMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct UsedChannels { + ord: i32 +} +impl UsedChannels { + #[doc(alias = "USED_CHANNELS_L")] + #[doc = "Godot enumerator name: `USED_CHANNELS_L`"] + pub const L: UsedChannels = UsedChannels { + ord: 0i32 + }; + #[doc(alias = "USED_CHANNELS_LA")] + #[doc = "Godot enumerator name: `USED_CHANNELS_LA`"] + pub const LA: UsedChannels = UsedChannels { + ord: 1i32 + }; + #[doc(alias = "USED_CHANNELS_R")] + #[doc = "Godot enumerator name: `USED_CHANNELS_R`"] + pub const R: UsedChannels = UsedChannels { + ord: 2i32 + }; + #[doc(alias = "USED_CHANNELS_RG")] + #[doc = "Godot enumerator name: `USED_CHANNELS_RG`"] + pub const RG: UsedChannels = UsedChannels { + ord: 3i32 + }; + #[doc(alias = "USED_CHANNELS_RGB")] + #[doc = "Godot enumerator name: `USED_CHANNELS_RGB`"] + pub const RGB: UsedChannels = UsedChannels { + ord: 4i32 + }; + #[doc(alias = "USED_CHANNELS_RGBA")] + #[doc = "Godot enumerator name: `USED_CHANNELS_RGBA`"] + pub const RGBA: UsedChannels = UsedChannels { + ord: 5i32 + }; + +} +impl std::fmt::Debug for UsedChannels { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("UsedChannels") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for UsedChannels { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::L => "L", Self::LA => "LA", Self::R => "R", Self::RG => "RG", Self::RGB => "RGB", Self::RGBA => "RGBA", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::L => "USED_CHANNELS_L", Self::LA => "USED_CHANNELS_LA", Self::R => "USED_CHANNELS_R", Self::RG => "USED_CHANNELS_RG", Self::RGB => "USED_CHANNELS_RGB", Self::RGBA => "USED_CHANNELS_RGBA", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for UsedChannels { + type Via = i32; + +} +impl crate::meta::ToGodot for UsedChannels { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for UsedChannels { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CompressSource { + ord: i32 +} +impl CompressSource { + #[doc(alias = "COMPRESS_SOURCE_GENERIC")] + #[doc = "Godot enumerator name: `COMPRESS_SOURCE_GENERIC`"] + pub const GENERIC: CompressSource = CompressSource { + ord: 0i32 + }; + #[doc(alias = "COMPRESS_SOURCE_SRGB")] + #[doc = "Godot enumerator name: `COMPRESS_SOURCE_SRGB`"] + pub const SRGB: CompressSource = CompressSource { + ord: 1i32 + }; + #[doc(alias = "COMPRESS_SOURCE_NORMAL")] + #[doc = "Godot enumerator name: `COMPRESS_SOURCE_NORMAL`"] + pub const NORMAL: CompressSource = CompressSource { + ord: 2i32 + }; + +} +impl std::fmt::Debug for CompressSource { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CompressSource") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CompressSource { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GENERIC => "GENERIC", Self::SRGB => "SRGB", Self::NORMAL => "NORMAL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GENERIC => "COMPRESS_SOURCE_GENERIC", Self::SRGB => "COMPRESS_SOURCE_SRGB", Self::NORMAL => "COMPRESS_SOURCE_NORMAL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CompressSource { + type Via = i32; + +} +impl crate::meta::ToGodot for CompressSource { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CompressSource { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `ASTCFormat`."] +pub struct AstcFormat { + ord: i32 +} +impl AstcFormat { + #[doc(alias = "ASTC_FORMAT_4x4")] + #[doc = "Godot enumerator name: `ASTC_FORMAT_4x4`"] + pub const FORMAT_4x4: AstcFormat = AstcFormat { + ord: 0i32 + }; + #[doc(alias = "ASTC_FORMAT_8x8")] + #[doc = "Godot enumerator name: `ASTC_FORMAT_8x8`"] + pub const FORMAT_8x8: AstcFormat = AstcFormat { + ord: 1i32 + }; + +} +impl std::fmt::Debug for AstcFormat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AstcFormat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AstcFormat { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FORMAT_4x4 => "FORMAT_4x4", Self::FORMAT_8x8 => "FORMAT_8x8", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FORMAT_4x4 => "ASTC_FORMAT_4x4", Self::FORMAT_8x8 => "ASTC_FORMAT_8x8", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AstcFormat { + type Via = i32; + +} +impl crate::meta::ToGodot for AstcFormat { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AstcFormat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_format_loader.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_format_loader.rs new file mode 100644 index 0000000..9d6d220 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_format_loader.rs @@ -0,0 +1,258 @@ +#![doc = "Sidecar module for class [`ImageFormatLoader`][crate::classes::ImageFormatLoader].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ImageFormatLoader` enums](https://docs.godotengine.org/en/stable/classes/class_imageformatloader.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ImageFormatLoader.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`image_format_loader`][crate::classes::image_format_loader]: sidecar module with related enum/flag types\n* [`IImageFormatLoader`][crate::classes::IImageFormatLoader]: virtual methods\n\n\nSee also [Godot docs for `ImageFormatLoader`](https://docs.godotengine.org/en/stable/classes/class_imageformatloader.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct ImageFormatLoader { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ImageFormatLoader`][crate::classes::ImageFormatLoader].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ImageFormatLoader` methods](https://docs.godotengine.org/en/stable/classes/class_imageformatloader.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IImageFormatLoader: crate::obj::GodotClass < Base = ImageFormatLoader > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ImageFormatLoader { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ImageFormatLoader { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ImageFormatLoader")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ImageFormatLoader { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ImageFormatLoader { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ImageFormatLoader { + + } + impl std::ops::Deref for ImageFormatLoader { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ImageFormatLoader { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ImageFormatLoader`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ImageFormatLoader { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ImageFormatLoader > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct LoaderFlags { + ord: u64 +} +impl LoaderFlags { + #[doc(alias = "FLAG_NONE")] + #[doc = "Godot enumerator name: `FLAG_NONE`"] + pub const NONE: LoaderFlags = LoaderFlags { + ord: 0u64 + }; + #[doc(alias = "FLAG_FORCE_LINEAR")] + #[doc = "Godot enumerator name: `FLAG_FORCE_LINEAR`"] + pub const FORCE_LINEAR: LoaderFlags = LoaderFlags { + ord: 1u64 + }; + #[doc(alias = "FLAG_CONVERT_COLORS")] + #[doc = "Godot enumerator name: `FLAG_CONVERT_COLORS`"] + pub const CONVERT_COLORS: LoaderFlags = LoaderFlags { + ord: 2u64 + }; + +} +impl std::fmt::Debug for LoaderFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::NONE => "NONE", Self::FORCE_LINEAR => "FORCE_LINEAR", Self::CONVERT_COLORS => "CONVERT_COLORS", _ => { + f.debug_struct("LoaderFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for LoaderFlags { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for LoaderFlags { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for LoaderFlags { + type Via = u64; + +} +impl crate::meta::ToGodot for LoaderFlags { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for LoaderFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_format_loader_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_format_loader_extension.rs new file mode 100644 index 0000000..31fd703 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_format_loader_extension.rs @@ -0,0 +1,221 @@ +#![doc = "Sidecar module for class [`ImageFormatLoaderExtension`][crate::classes::ImageFormatLoaderExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ImageFormatLoaderExtension` enums](https://docs.godotengine.org/en/stable/classes/class_imageformatloaderextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ImageFormatLoaderExtension.`\n\nInherits [`ImageFormatLoader`][crate::classes::ImageFormatLoader].\n\nRelated symbols:\n\n* [`IImageFormatLoaderExtension`][crate::classes::IImageFormatLoaderExtension]: virtual methods\n\n\nSee also [Godot docs for `ImageFormatLoaderExtension`](https://docs.godotengine.org/en/stable/classes/class_imageformatloaderextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ImageFormatLoaderExtension::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ImageFormatLoaderExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ImageFormatLoaderExtension`][crate::classes::ImageFormatLoaderExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ImageFormatLoaderExtension` methods](https://docs.godotengine.org/en/stable/classes/class_imageformatloaderextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IImageFormatLoaderExtension: crate::obj::GodotClass < Base = ImageFormatLoaderExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_recognized_extensions(&self,) -> PackedStringArray { + unimplemented !() + } + fn load_image(&mut self, image: Option < Gd < crate::classes::Image > >, fileaccess: Option < Gd < crate::classes::FileAccess > >, flags: crate::classes::image_format_loader::LoaderFlags, scale: f32,) -> crate::global::Error { + unimplemented !() + } + } + impl ImageFormatLoaderExtension { + pub fn add_format_loader(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4183usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImageFormatLoaderExtension", "add_format_loader", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_format_loader(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4184usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImageFormatLoaderExtension", "remove_format_loader", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ImageFormatLoaderExtension { + type Base = crate::classes::ImageFormatLoader; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ImageFormatLoaderExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ImageFormatLoaderExtension { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ImageFormatLoader > for ImageFormatLoaderExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ImageFormatLoaderExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ImageFormatLoaderExtension { + + } + impl crate::obj::cap::GodotDefault for ImageFormatLoaderExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ImageFormatLoaderExtension { + type Target = crate::classes::ImageFormatLoader; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ImageFormatLoaderExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ImageFormatLoaderExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ImageFormatLoaderExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ImageFormatLoaderExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ImageFormatLoader > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_texture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_texture.rs new file mode 100644 index 0000000..b8ed997 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_texture.rs @@ -0,0 +1,271 @@ +#![doc = "Sidecar module for class [`ImageTexture`][crate::classes::ImageTexture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ImageTexture` enums](https://docs.godotengine.org/en/stable/classes/class_imagetexture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ImageTexture.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`IImageTexture`][crate::classes::IImageTexture]: virtual methods\n\n\nSee also [Godot docs for `ImageTexture`](https://docs.godotengine.org/en/stable/classes/class_imagetexture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ImageTexture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ImageTexture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ImageTexture`][crate::classes::ImageTexture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ImageTexture` methods](https://docs.godotengine.org/en/stable/classes/class_imagetexture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IImageTexture: crate::obj::GodotClass < Base = ImageTexture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ImageTexture { + pub fn create_from_image(image: impl AsObjectArg < crate::classes::Image >,) -> Option < Gd < crate::classes::ImageTexture > > { + type CallSig = (Option < Gd < crate::classes::ImageTexture > >, ObjectArg < crate::classes::Image >); + let args = (image.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4185usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImageTexture", "create_from_image", std::ptr::null_mut(), None, args,) + } + } + pub fn get_format(&self,) -> crate::classes::image::Format { + type CallSig = (crate::classes::image::Format,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4186usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImageTexture", "get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_image(&mut self, image: impl AsObjectArg < crate::classes::Image >,) { + type CallSig = ((), ObjectArg < crate::classes::Image >); + let args = (image.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4187usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImageTexture", "set_image", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update(&mut self, image: impl AsObjectArg < crate::classes::Image >,) { + type CallSig = ((), ObjectArg < crate::classes::Image >); + let args = (image.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4188usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImageTexture", "update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_size_override(&mut self, size: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4189usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImageTexture", "set_size_override", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ImageTexture { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ImageTexture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ImageTexture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for ImageTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for ImageTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ImageTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ImageTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ImageTexture { + + } + impl crate::obj::cap::GodotDefault for ImageTexture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ImageTexture { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ImageTexture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ImageTexture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ImageTexture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ImageTexture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_texture_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_texture_3d.rs new file mode 100644 index 0000000..94c05b5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_texture_3d.rs @@ -0,0 +1,236 @@ +#![doc = "Sidecar module for class [`ImageTexture3D`][crate::classes::ImageTexture3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ImageTexture3D` enums](https://docs.godotengine.org/en/stable/classes/class_imagetexture3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ImageTexture3D.`\n\nInherits [`Texture3D`][crate::classes::Texture3D].\n\nRelated symbols:\n\n* [`IImageTexture3D`][crate::classes::IImageTexture3D]: virtual methods\n\n\nSee also [Godot docs for `ImageTexture3D`](https://docs.godotengine.org/en/stable/classes/class_imagetexture3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ImageTexture3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ImageTexture3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ImageTexture3D`][crate::classes::ImageTexture3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ImageTexture3D` methods](https://docs.godotengine.org/en/stable/classes/class_imagetexture3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IImageTexture3D: crate::obj::GodotClass < Base = ImageTexture3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_depth(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_data(&self,) -> Array < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ImageTexture3D { + pub fn create(&mut self, format: crate::classes::image::Format, width: i32, height: i32, depth: i32, use_mipmaps: bool, data: &Array < Gd < crate::classes::Image > >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, crate::classes::image::Format, i32, i32, i32, bool, RefArg < 'a0, Array < Gd < crate::classes::Image > > >); + let args = (format, width, height, depth, use_mipmaps, RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4190usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImageTexture3D", "create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update(&mut self, data: &Array < Gd < crate::classes::Image > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::Image > > >); + let args = (RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4191usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImageTexture3D", "update", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ImageTexture3D { + type Base = crate::classes::Texture3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ImageTexture3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ImageTexture3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture3D > for ImageTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for ImageTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ImageTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ImageTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ImageTexture3D { + + } + impl crate::obj::cap::GodotDefault for ImageTexture3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ImageTexture3D { + type Target = crate::classes::Texture3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ImageTexture3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ImageTexture3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ImageTexture3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ImageTexture3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_texture_layered.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_texture_layered.rs new file mode 100644 index 0000000..74f60c0 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/image_texture_layered.rs @@ -0,0 +1,232 @@ +#![doc = "Sidecar module for class [`ImageTextureLayered`][crate::classes::ImageTextureLayered].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ImageTextureLayered` enums](https://docs.godotengine.org/en/stable/classes/class_imagetexturelayered.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ImageTextureLayered.`\n\nInherits [`TextureLayered`][crate::classes::TextureLayered].\n\nRelated symbols:\n\n* [`IImageTextureLayered`][crate::classes::IImageTextureLayered]: virtual methods\n\n\nSee also [Godot docs for `ImageTextureLayered`](https://docs.godotengine.org/en/stable/classes/class_imagetexturelayered.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct ImageTextureLayered { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ImageTextureLayered`][crate::classes::ImageTextureLayered].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ImageTextureLayered` methods](https://docs.godotengine.org/en/stable/classes/class_imagetexturelayered.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IImageTextureLayered: crate::obj::GodotClass < Base = ImageTextureLayered > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_layered_type(&self,) -> u32; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_layers(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_layer_data(&self, layer_index: i32,) -> Option < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ImageTextureLayered { + pub fn create_from_images(&mut self, images: &Array < Gd < crate::classes::Image > >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, Array < Gd < crate::classes::Image > > >); + let args = (RefArg::new(images),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4192usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImageTextureLayered", "create_from_images", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update_layer(&mut self, image: impl AsObjectArg < crate::classes::Image >, layer: i32,) { + type CallSig = ((), ObjectArg < crate::classes::Image >, i32); + let args = (image.as_object_arg(), layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4193usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImageTextureLayered", "update_layer", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ImageTextureLayered { + type Base = crate::classes::TextureLayered; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ImageTextureLayered")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ImageTextureLayered { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::TextureLayered > for ImageTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for ImageTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ImageTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ImageTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ImageTextureLayered { + + } + impl std::ops::Deref for ImageTextureLayered { + type Target = crate::classes::TextureLayered; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ImageTextureLayered { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ImageTextureLayered`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ImageTextureLayered { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ImageTextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/immediate_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/immediate_mesh.rs new file mode 100644 index 0000000..da03828 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/immediate_mesh.rs @@ -0,0 +1,339 @@ +#![doc = "Sidecar module for class [`ImmediateMesh`][crate::classes::ImmediateMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ImmediateMesh` enums](https://docs.godotengine.org/en/stable/classes/class_immediatemesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ImmediateMesh.`\n\nInherits [`Mesh`][crate::classes::Mesh].\n\nRelated symbols:\n\n* [`immediate_mesh`][crate::classes::immediate_mesh]: sidecar module with related enum/flag types\n* [`IImmediateMesh`][crate::classes::IImmediateMesh]: virtual methods\n\n\nSee also [Godot docs for `ImmediateMesh`](https://docs.godotengine.org/en/stable/classes/class_immediatemesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ImmediateMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ImmediateMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ImmediateMesh`][crate::classes::ImmediateMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ImmediateMesh` methods](https://docs.godotengine.org/en/stable/classes/class_immediatemesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IImmediateMesh: crate::obj::GodotClass < Base = ImmediateMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ImmediateMesh { + pub(crate) fn surface_begin_full(&mut self, primitive: crate::classes::mesh::PrimitiveType, material: ObjectArg < crate::classes::Material >,) { + type CallSig = ((), crate::classes::mesh::PrimitiveType, ObjectArg < crate::classes::Material >); + let args = (primitive, material,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4194usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImmediateMesh", "surface_begin", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::surface_begin_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn surface_begin(&mut self, primitive: crate::classes::mesh::PrimitiveType,) { + self.surface_begin_ex(primitive,) . done() + } + #[inline] + pub fn surface_begin_ex < 'a > (&'a mut self, primitive: crate::classes::mesh::PrimitiveType,) -> ExSurfaceBegin < 'a > { + ExSurfaceBegin::new(self, primitive,) + } + pub fn surface_set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4195usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImmediateMesh", "surface_set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_set_normal(&mut self, normal: Vector3,) { + type CallSig = ((), Vector3); + let args = (normal,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4196usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImmediateMesh", "surface_set_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_set_tangent(&mut self, tangent: Plane,) { + type CallSig = ((), Plane); + let args = (tangent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4197usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImmediateMesh", "surface_set_tangent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_set_uv(&mut self, uv: Vector2,) { + type CallSig = ((), Vector2); + let args = (uv,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4198usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImmediateMesh", "surface_set_uv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_set_uv2(&mut self, uv2: Vector2,) { + type CallSig = ((), Vector2); + let args = (uv2,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4199usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImmediateMesh", "surface_set_uv2", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_add_vertex(&mut self, vertex: Vector3,) { + type CallSig = ((), Vector3); + let args = (vertex,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4200usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImmediateMesh", "surface_add_vertex", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_add_vertex_2d(&mut self, vertex: Vector2,) { + type CallSig = ((), Vector2); + let args = (vertex,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4201usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImmediateMesh", "surface_add_vertex_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_end(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4202usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImmediateMesh", "surface_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_surfaces(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4203usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImmediateMesh", "clear_surfaces", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ImmediateMesh { + type Base = crate::classes::Mesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ImmediateMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ImmediateMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for ImmediateMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ImmediateMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ImmediateMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ImmediateMesh { + + } + impl crate::obj::cap::GodotDefault for ImmediateMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ImmediateMesh { + type Target = crate::classes::Mesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ImmediateMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ImmediateMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ImmediateMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ImmediateMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ImmediateMesh::surface_begin_ex`][super::ImmediateMesh::surface_begin_ex]."] +#[must_use] +pub struct ExSurfaceBegin < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ImmediateMesh, primitive: crate::classes::mesh::PrimitiveType, material: ObjectCow < crate::classes::Material >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSurfaceBegin < 'a > { + fn new(surround_object: &'a mut re_export::ImmediateMesh, primitive: crate::classes::mesh::PrimitiveType,) -> Self { + let material = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, primitive: primitive, material: material.consume_arg(), + } + } + #[inline] + pub fn material(self, material: impl AsObjectArg < crate::classes::Material >) -> Self { + Self { + material: material.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, primitive, material, + } + = self; + re_export::ImmediateMesh::surface_begin_full(surround_object, primitive, material.cow_as_object_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/importer_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/importer_mesh.rs new file mode 100644 index 0000000..64aa2e2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/importer_mesh.rs @@ -0,0 +1,488 @@ +#![doc = "Sidecar module for class [`ImporterMesh`][crate::classes::ImporterMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ImporterMesh` enums](https://docs.godotengine.org/en/stable/classes/class_importermesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ImporterMesh.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`importer_mesh`][crate::classes::importer_mesh]: sidecar module with related enum/flag types\n* [`IImporterMesh`][crate::classes::IImporterMesh]: virtual methods\n\n\nSee also [Godot docs for `ImporterMesh`](https://docs.godotengine.org/en/stable/classes/class_importermesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ImporterMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ImporterMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ImporterMesh`][crate::classes::ImporterMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ImporterMesh` methods](https://docs.godotengine.org/en/stable/classes/class_importermesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IImporterMesh: crate::obj::GodotClass < Base = ImporterMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ImporterMesh { + pub fn add_blend_shape(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4204usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "add_blend_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_shape_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4205usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_blend_shape_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_shape_name(&self, blend_shape_idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (blend_shape_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4206usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_blend_shape_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_shape_mode(&mut self, mode: crate::classes::mesh::BlendShapeMode,) { + type CallSig = ((), crate::classes::mesh::BlendShapeMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4207usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "set_blend_shape_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_shape_mode(&self,) -> crate::classes::mesh::BlendShapeMode { + type CallSig = (crate::classes::mesh::BlendShapeMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4208usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_blend_shape_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_surface_full(&mut self, primitive: crate::classes::mesh::PrimitiveType, arrays: RefArg < VariantArray >, blend_shapes: RefArg < Array < VariantArray > >, lods: RefArg < Dictionary >, material: ObjectArg < crate::classes::Material >, name: CowArg < GString >, flags: u64,) { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = ((), crate::classes::mesh::PrimitiveType, RefArg < 'a0, VariantArray >, RefArg < 'a1, Array < VariantArray > >, RefArg < 'a2, Dictionary >, ObjectArg < crate::classes::Material >, CowArg < 'a3, GString >, u64); + let args = (primitive, arrays, blend_shapes, lods, material, name, flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4209usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "add_surface", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_surface_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_surface(&mut self, primitive: crate::classes::mesh::PrimitiveType, arrays: &VariantArray,) { + self.add_surface_ex(primitive, arrays,) . done() + } + #[inline] + pub fn add_surface_ex < 'a > (&'a mut self, primitive: crate::classes::mesh::PrimitiveType, arrays: &'a VariantArray,) -> ExAddSurface < 'a > { + ExAddSurface::new(self, primitive, arrays,) + } + pub fn get_surface_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4210usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_surface_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_primitive_type(&mut self, surface_idx: i32,) -> crate::classes::mesh::PrimitiveType { + type CallSig = (crate::classes::mesh::PrimitiveType, i32); + let args = (surface_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4211usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_surface_primitive_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_name(&self, surface_idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (surface_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4212usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_surface_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_arrays(&self, surface_idx: i32,) -> VariantArray { + type CallSig = (VariantArray, i32); + let args = (surface_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4213usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_surface_arrays", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_blend_shape_arrays(&self, surface_idx: i32, blend_shape_idx: i32,) -> VariantArray { + type CallSig = (VariantArray, i32, i32); + let args = (surface_idx, blend_shape_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4214usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_surface_blend_shape_arrays", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_lod_count(&self, surface_idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (surface_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4215usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_surface_lod_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_lod_size(&self, surface_idx: i32, lod_idx: i32,) -> f32 { + type CallSig = (f32, i32, i32); + let args = (surface_idx, lod_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4216usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_surface_lod_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_lod_indices(&self, surface_idx: i32, lod_idx: i32,) -> PackedInt32Array { + type CallSig = (PackedInt32Array, i32, i32); + let args = (surface_idx, lod_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4217usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_surface_lod_indices", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_material(&self, surface_idx: i32,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >, i32); + let args = (surface_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4218usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_surface_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_format(&self, surface_idx: i32,) -> u64 { + type CallSig = (u64, i32); + let args = (surface_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4219usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_surface_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_surface_name(&mut self, surface_idx: i32, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (surface_idx, name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4220usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "set_surface_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_surface_material(&mut self, surface_idx: i32, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Material >); + let args = (surface_idx, material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4221usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "set_surface_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn generate_lods(&mut self, normal_merge_angle: f32, normal_split_angle: f32, bone_transform_array: &VariantArray,) { + type CallSig < 'a0, > = ((), f32, f32, RefArg < 'a0, VariantArray >); + let args = (normal_merge_angle, normal_split_angle, RefArg::new(bone_transform_array),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4222usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "generate_lods", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_mesh_full(&mut self, base_mesh: ObjectArg < crate::classes::ArrayMesh >,) -> Option < Gd < crate::classes::ArrayMesh > > { + type CallSig = (Option < Gd < crate::classes::ArrayMesh > >, ObjectArg < crate::classes::ArrayMesh >); + let args = (base_mesh,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4223usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_mesh_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_mesh(&mut self,) -> Option < Gd < crate::classes::ArrayMesh > > { + self.get_mesh_ex() . done() + } + #[inline] + pub fn get_mesh_ex < 'a > (&'a mut self,) -> ExGetMesh < 'a > { + ExGetMesh::new(self,) + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4224usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lightmap_size_hint(&mut self, size: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4225usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "set_lightmap_size_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lightmap_size_hint(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4226usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMesh", "get_lightmap_size_hint", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ImporterMesh { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ImporterMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ImporterMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ImporterMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ImporterMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ImporterMesh { + + } + impl crate::obj::cap::GodotDefault for ImporterMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ImporterMesh { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ImporterMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ImporterMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ImporterMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ImporterMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ImporterMesh::add_surface_ex`][super::ImporterMesh::add_surface_ex]."] +#[must_use] +pub struct ExAddSurface < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ImporterMesh, primitive: crate::classes::mesh::PrimitiveType, arrays: CowArg < 'a, VariantArray >, blend_shapes: CowArg < 'a, Array < VariantArray > >, lods: CowArg < 'a, Dictionary >, material: ObjectCow < crate::classes::Material >, name: CowArg < 'a, GString >, flags: u64, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddSurface < 'a > { + fn new(surround_object: &'a mut re_export::ImporterMesh, primitive: crate::classes::mesh::PrimitiveType, arrays: &'a VariantArray,) -> Self { + let blend_shapes = Array::new(); + let lods = Dictionary::new(); + let material = Gd::null_arg(); + let name = GString::from(""); + let flags = 0u64; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, primitive: primitive, arrays: CowArg::Borrowed(arrays), blend_shapes: CowArg::Owned(blend_shapes), lods: CowArg::Owned(lods), material: material.consume_arg(), name: CowArg::Owned(name), flags: flags, + } + } + #[inline] + pub fn blend_shapes(self, blend_shapes: &'a Array < VariantArray >) -> Self { + Self { + blend_shapes: CowArg::Borrowed(blend_shapes), .. self + } + } + #[inline] + pub fn lods(self, lods: &'a Dictionary) -> Self { + Self { + lods: CowArg::Borrowed(lods), .. self + } + } + #[inline] + pub fn material(self, material: impl AsObjectArg < crate::classes::Material >) -> Self { + Self { + material: material.consume_arg(), .. self + } + } + #[inline] + pub fn name(self, name: impl AsArg < GString > + 'a) -> Self { + Self { + name: name.into_arg(), .. self + } + } + #[inline] + pub fn flags(self, flags: u64) -> Self { + Self { + flags: flags, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, primitive, arrays, blend_shapes, lods, material, name, flags, + } + = self; + re_export::ImporterMesh::add_surface_full(surround_object, primitive, arrays.cow_as_arg(), blend_shapes.cow_as_arg(), lods.cow_as_arg(), material.cow_as_object_arg(), name, flags,) + } +} +#[doc = "Default-param extender for [`ImporterMesh::get_mesh_ex`][super::ImporterMesh::get_mesh_ex]."] +#[must_use] +pub struct ExGetMesh < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ImporterMesh, base_mesh: ObjectCow < crate::classes::ArrayMesh >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetMesh < 'a > { + fn new(surround_object: &'a mut re_export::ImporterMesh,) -> Self { + let base_mesh = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, base_mesh: base_mesh.consume_arg(), + } + } + #[inline] + pub fn base_mesh(self, base_mesh: impl AsObjectArg < crate::classes::ArrayMesh >) -> Self { + Self { + base_mesh: base_mesh.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::ArrayMesh > > { + let Self { + _phantom, surround_object, base_mesh, + } + = self; + re_export::ImporterMesh::get_mesh_full(surround_object, base_mesh.cow_as_object_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/importer_mesh_instance_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/importer_mesh_instance_3d.rs new file mode 100644 index 0000000..8d0096e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/importer_mesh_instance_3d.rs @@ -0,0 +1,389 @@ +#![doc = "Sidecar module for class [`ImporterMeshInstance3D`][crate::classes::ImporterMeshInstance3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ImporterMeshInstance3D` enums](https://docs.godotengine.org/en/stable/classes/class_importermeshinstance3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ImporterMeshInstance3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`IImporterMeshInstance3D`][crate::classes::IImporterMeshInstance3D]: virtual methods\n\n\nSee also [Godot docs for `ImporterMeshInstance3D`](https://docs.godotengine.org/en/stable/classes/class_importermeshinstance3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ImporterMeshInstance3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ImporterMeshInstance3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ImporterMeshInstance3D`][crate::classes::ImporterMeshInstance3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ImporterMeshInstance3D` methods](https://docs.godotengine.org/en/stable/classes/class_importermeshinstance3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IImporterMeshInstance3D: crate::obj::GodotClass < Base = ImporterMeshInstance3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ImporterMeshInstance3D { + pub fn set_mesh(&mut self, mesh: impl AsObjectArg < crate::classes::ImporterMesh >,) { + type CallSig = ((), ObjectArg < crate::classes::ImporterMesh >); + let args = (mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4227usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh(&self,) -> Option < Gd < crate::classes::ImporterMesh > > { + type CallSig = (Option < Gd < crate::classes::ImporterMesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4228usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "get_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skin(&mut self, skin: impl AsObjectArg < crate::classes::Skin >,) { + type CallSig = ((), ObjectArg < crate::classes::Skin >); + let args = (skin.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4229usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "set_skin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skin(&self,) -> Option < Gd < crate::classes::Skin > > { + type CallSig = (Option < Gd < crate::classes::Skin > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4230usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "get_skin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skeleton_path(&mut self, skeleton_path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (skeleton_path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4231usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "set_skeleton_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skeleton_path(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4232usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "get_skeleton_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_layer_mask(&mut self, layer_mask: u32,) { + type CallSig = ((), u32); + let args = (layer_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4233usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "set_layer_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_layer_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4234usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "get_layer_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cast_shadows_setting(&mut self, shadow_casting_setting: crate::classes::geometry_instance_3d::ShadowCastingSetting,) { + type CallSig = ((), crate::classes::geometry_instance_3d::ShadowCastingSetting); + let args = (shadow_casting_setting,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4235usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "set_cast_shadows_setting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cast_shadows_setting(&self,) -> crate::classes::geometry_instance_3d::ShadowCastingSetting { + type CallSig = (crate::classes::geometry_instance_3d::ShadowCastingSetting,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4236usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "get_cast_shadows_setting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_range_end_margin(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4237usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "set_visibility_range_end_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_range_end_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4238usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "get_visibility_range_end_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_range_end(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4239usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "set_visibility_range_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_range_end(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4240usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "get_visibility_range_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_range_begin_margin(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4241usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "set_visibility_range_begin_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_range_begin_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4242usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "get_visibility_range_begin_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_range_begin(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4243usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "set_visibility_range_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_range_begin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4244usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "get_visibility_range_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_range_fade_mode(&mut self, mode: crate::classes::geometry_instance_3d::VisibilityRangeFadeMode,) { + type CallSig = ((), crate::classes::geometry_instance_3d::VisibilityRangeFadeMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4245usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "set_visibility_range_fade_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_range_fade_mode(&self,) -> crate::classes::geometry_instance_3d::VisibilityRangeFadeMode { + type CallSig = (crate::classes::geometry_instance_3d::VisibilityRangeFadeMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4246usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ImporterMeshInstance3D", "get_visibility_range_fade_mode", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ImporterMeshInstance3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ImporterMeshInstance3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ImporterMeshInstance3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for ImporterMeshInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ImporterMeshInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ImporterMeshInstance3D { + + } + impl crate::obj::cap::GodotDefault for ImporterMeshInstance3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ImporterMeshInstance3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ImporterMeshInstance3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ImporterMeshInstance3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ImporterMeshInstance3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ImporterMeshInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input.rs new file mode 100644 index 0000000..9b9f223 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input.rs @@ -0,0 +1,1309 @@ +#![doc = "Sidecar module for class [`Input`][crate::classes::Input].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Input` enums](https://docs.godotengine.org/en/stable/classes/class_input.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Input.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`input`][crate::classes::input]: sidecar module with related enum/flag types\n* [`IInput`][crate::classes::IInput]: virtual methods\n\n\nSee also [Godot docs for `Input`](https://docs.godotengine.org/en/stable/classes/class_input.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`Input::singleton()`][Input::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct Input { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Input`][crate::classes::Input].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Input` methods](https://docs.godotengine.org/en/stable/classes/class_input.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInput: crate::obj::GodotClass < Base = Input > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Input { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"Input"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn is_anything_pressed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4247usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_anything_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_key_pressed(&self, keycode: crate::global::Key,) -> bool { + type CallSig = (bool, crate::global::Key); + let args = (keycode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4248usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_key_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_physical_key_pressed(&self, keycode: crate::global::Key,) -> bool { + type CallSig = (bool, crate::global::Key); + let args = (keycode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4249usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_physical_key_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_key_label_pressed(&self, keycode: crate::global::Key,) -> bool { + type CallSig = (bool, crate::global::Key); + let args = (keycode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4250usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_key_label_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_mouse_button_pressed(&self, button: crate::global::MouseButton,) -> bool { + type CallSig = (bool, crate::global::MouseButton); + let args = (button,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4251usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_mouse_button_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_joy_button_pressed(&self, device: i32, button: crate::global::JoyButton,) -> bool { + type CallSig = (bool, i32, crate::global::JoyButton); + let args = (device, button,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4252usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_joy_button_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn is_action_pressed_full(&self, action: CowArg < StringName >, exact_match: bool,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >, bool); + let args = (action, exact_match,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4253usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_action_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::is_action_pressed_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn is_action_pressed(&self, action: impl AsArg < StringName >,) -> bool { + self.is_action_pressed_ex(action,) . done() + } + #[inline] + pub fn is_action_pressed_ex < 'a > (&'a self, action: impl AsArg < StringName > + 'a,) -> ExIsActionPressed < 'a > { + ExIsActionPressed::new(self, action,) + } + pub(crate) fn is_action_just_pressed_full(&self, action: CowArg < StringName >, exact_match: bool,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >, bool); + let args = (action, exact_match,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4254usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_action_just_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::is_action_just_pressed_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn is_action_just_pressed(&self, action: impl AsArg < StringName >,) -> bool { + self.is_action_just_pressed_ex(action,) . done() + } + #[inline] + pub fn is_action_just_pressed_ex < 'a > (&'a self, action: impl AsArg < StringName > + 'a,) -> ExIsActionJustPressed < 'a > { + ExIsActionJustPressed::new(self, action,) + } + pub(crate) fn is_action_just_released_full(&self, action: CowArg < StringName >, exact_match: bool,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >, bool); + let args = (action, exact_match,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4255usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_action_just_released", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::is_action_just_released_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn is_action_just_released(&self, action: impl AsArg < StringName >,) -> bool { + self.is_action_just_released_ex(action,) . done() + } + #[inline] + pub fn is_action_just_released_ex < 'a > (&'a self, action: impl AsArg < StringName > + 'a,) -> ExIsActionJustReleased < 'a > { + ExIsActionJustReleased::new(self, action,) + } + pub(crate) fn get_action_strength_full(&self, action: CowArg < StringName >, exact_match: bool,) -> f32 { + type CallSig < 'a0, > = (f32, CowArg < 'a0, StringName >, bool); + let args = (action, exact_match,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4256usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_action_strength", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_action_strength_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_action_strength(&self, action: impl AsArg < StringName >,) -> f32 { + self.get_action_strength_ex(action,) . done() + } + #[inline] + pub fn get_action_strength_ex < 'a > (&'a self, action: impl AsArg < StringName > + 'a,) -> ExGetActionStrength < 'a > { + ExGetActionStrength::new(self, action,) + } + pub(crate) fn get_action_raw_strength_full(&self, action: CowArg < StringName >, exact_match: bool,) -> f32 { + type CallSig < 'a0, > = (f32, CowArg < 'a0, StringName >, bool); + let args = (action, exact_match,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4257usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_action_raw_strength", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_action_raw_strength_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_action_raw_strength(&self, action: impl AsArg < StringName >,) -> f32 { + self.get_action_raw_strength_ex(action,) . done() + } + #[inline] + pub fn get_action_raw_strength_ex < 'a > (&'a self, action: impl AsArg < StringName > + 'a,) -> ExGetActionRawStrength < 'a > { + ExGetActionRawStrength::new(self, action,) + } + pub fn get_axis(&self, negative_action: impl AsArg < StringName >, positive_action: impl AsArg < StringName >,) -> f32 { + type CallSig < 'a0, 'a1, > = (f32, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (negative_action.into_arg(), positive_action.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4258usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_axis", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_vector_full(&self, negative_x: CowArg < StringName >, positive_x: CowArg < StringName >, negative_y: CowArg < StringName >, positive_y: CowArg < StringName >, deadzone: f32,) -> Vector2 { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (Vector2, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, CowArg < 'a2, StringName >, CowArg < 'a3, StringName >, f32); + let args = (negative_x, positive_x, negative_y, positive_y, deadzone,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4259usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_vector", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_vector_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_vector(&self, negative_x: impl AsArg < StringName >, positive_x: impl AsArg < StringName >, negative_y: impl AsArg < StringName >, positive_y: impl AsArg < StringName >,) -> Vector2 { + self.get_vector_ex(negative_x, positive_x, negative_y, positive_y,) . done() + } + #[inline] + pub fn get_vector_ex < 'a > (&'a self, negative_x: impl AsArg < StringName > + 'a, positive_x: impl AsArg < StringName > + 'a, negative_y: impl AsArg < StringName > + 'a, positive_y: impl AsArg < StringName > + 'a,) -> ExGetVector < 'a > { + ExGetVector::new(self, negative_x, positive_x, negative_y, positive_y,) + } + pub(crate) fn add_joy_mapping_full(&mut self, mapping: CowArg < GString >, update_existing: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, bool); + let args = (mapping, update_existing,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4260usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "add_joy_mapping", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_joy_mapping_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_joy_mapping(&mut self, mapping: impl AsArg < GString >,) { + self.add_joy_mapping_ex(mapping,) . done() + } + #[inline] + pub fn add_joy_mapping_ex < 'a > (&'a mut self, mapping: impl AsArg < GString > + 'a,) -> ExAddJoyMapping < 'a > { + ExAddJoyMapping::new(self, mapping,) + } + pub fn remove_joy_mapping(&mut self, guid: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (guid.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4261usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "remove_joy_mapping", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_joy_known(&mut self, device: i32,) -> bool { + type CallSig = (bool, i32); + let args = (device,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4262usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_joy_known", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joy_axis(&self, device: i32, axis: crate::global::JoyAxis,) -> f32 { + type CallSig = (f32, i32, crate::global::JoyAxis); + let args = (device, axis,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4263usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_joy_axis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joy_name(&mut self, device: i32,) -> GString { + type CallSig = (GString, i32); + let args = (device,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4264usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_joy_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joy_guid(&self, device: i32,) -> GString { + type CallSig = (GString, i32); + let args = (device,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4265usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_joy_guid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joy_info(&self, device: i32,) -> Dictionary { + type CallSig = (Dictionary, i32); + let args = (device,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4266usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_joy_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn should_ignore_device(&self, vendor_id: i32, product_id: i32,) -> bool { + type CallSig = (bool, i32, i32); + let args = (vendor_id, product_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4267usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "should_ignore_device", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_connected_joypads(&mut self,) -> Array < i64 > { + type CallSig = (Array < i64 >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4268usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_connected_joypads", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joy_vibration_strength(&mut self, device: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (device,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4269usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_joy_vibration_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joy_vibration_duration(&mut self, device: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (device,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4270usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_joy_vibration_duration", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn start_joy_vibration_full(&mut self, device: i32, weak_magnitude: f32, strong_magnitude: f32, duration: f32,) { + type CallSig = ((), i32, f32, f32, f32); + let args = (device, weak_magnitude, strong_magnitude, duration,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4271usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "start_joy_vibration", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::start_joy_vibration_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn start_joy_vibration(&mut self, device: i32, weak_magnitude: f32, strong_magnitude: f32,) { + self.start_joy_vibration_ex(device, weak_magnitude, strong_magnitude,) . done() + } + #[inline] + pub fn start_joy_vibration_ex < 'a > (&'a mut self, device: i32, weak_magnitude: f32, strong_magnitude: f32,) -> ExStartJoyVibration < 'a > { + ExStartJoyVibration::new(self, device, weak_magnitude, strong_magnitude,) + } + pub fn stop_joy_vibration(&mut self, device: i32,) { + type CallSig = ((), i32); + let args = (device,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4272usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "stop_joy_vibration", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn vibrate_handheld_full(&mut self, duration_ms: i32, amplitude: f32,) { + type CallSig = ((), i32, f32); + let args = (duration_ms, amplitude,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4273usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "vibrate_handheld", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::vibrate_handheld_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn vibrate_handheld(&mut self,) { + self.vibrate_handheld_ex() . done() + } + #[inline] + pub fn vibrate_handheld_ex < 'a > (&'a mut self,) -> ExVibrateHandheld < 'a > { + ExVibrateHandheld::new(self,) + } + pub fn get_gravity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4274usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_accelerometer(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4275usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_accelerometer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_magnetometer(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4276usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_magnetometer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gyroscope(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4277usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_gyroscope", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity(&mut self, value: Vector3,) { + type CallSig = ((), Vector3); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4278usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "set_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_accelerometer(&mut self, value: Vector3,) { + type CallSig = ((), Vector3); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4279usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "set_accelerometer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_magnetometer(&mut self, value: Vector3,) { + type CallSig = ((), Vector3); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4280usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "set_magnetometer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gyroscope(&mut self, value: Vector3,) { + type CallSig = ((), Vector3); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4281usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "set_gyroscope", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_last_mouse_velocity(&mut self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4282usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_last_mouse_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_last_mouse_screen_velocity(&mut self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4283usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_last_mouse_screen_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mouse_button_mask(&self,) -> crate::global::MouseButtonMask { + type CallSig = (crate::global::MouseButtonMask,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4284usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_mouse_button_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mouse_mode(&mut self, mode: crate::classes::input::MouseMode,) { + type CallSig = ((), crate::classes::input::MouseMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4285usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "set_mouse_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mouse_mode(&self,) -> crate::classes::input::MouseMode { + type CallSig = (crate::classes::input::MouseMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4286usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_mouse_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn warp_mouse(&mut self, position: Vector2,) { + type CallSig = ((), Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4287usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "warp_mouse", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn action_press_full(&mut self, action: CowArg < StringName >, strength: f32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, f32); + let args = (action, strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4288usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "action_press", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::action_press_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn action_press(&mut self, action: impl AsArg < StringName >,) { + self.action_press_ex(action,) . done() + } + #[inline] + pub fn action_press_ex < 'a > (&'a mut self, action: impl AsArg < StringName > + 'a,) -> ExActionPress < 'a > { + ExActionPress::new(self, action,) + } + pub fn action_release(&mut self, action: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (action.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4289usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "action_release", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_default_cursor_shape_full(&mut self, shape: crate::classes::input::CursorShape,) { + type CallSig = ((), crate::classes::input::CursorShape); + let args = (shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4290usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "set_default_cursor_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_default_cursor_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_default_cursor_shape(&mut self,) { + self.set_default_cursor_shape_ex() . done() + } + #[inline] + pub fn set_default_cursor_shape_ex < 'a > (&'a mut self,) -> ExSetDefaultCursorShape < 'a > { + ExSetDefaultCursorShape::new(self,) + } + pub fn get_current_cursor_shape(&self,) -> crate::classes::input::CursorShape { + type CallSig = (crate::classes::input::CursorShape,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4291usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "get_current_cursor_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_custom_mouse_cursor_full(&mut self, image: ObjectArg < crate::classes::Resource >, shape: crate::classes::input::CursorShape, hotspot: Vector2,) { + type CallSig = ((), ObjectArg < crate::classes::Resource >, crate::classes::input::CursorShape, Vector2); + let args = (image, shape, hotspot,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4292usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "set_custom_mouse_cursor", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_custom_mouse_cursor_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_custom_mouse_cursor(&mut self, image: impl AsObjectArg < crate::classes::Resource >,) { + self.set_custom_mouse_cursor_ex(image,) . done() + } + #[inline] + pub fn set_custom_mouse_cursor_ex < 'a > (&'a mut self, image: impl AsObjectArg < crate::classes::Resource >,) -> ExSetCustomMouseCursor < 'a > { + ExSetCustomMouseCursor::new(self, image,) + } + pub fn parse_input_event(&mut self, event: impl AsObjectArg < crate::classes::InputEvent >,) { + type CallSig = ((), ObjectArg < crate::classes::InputEvent >); + let args = (event.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4293usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "parse_input_event", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_accumulated_input(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4294usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "set_use_accumulated_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_accumulated_input(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4295usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_using_accumulated_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn flush_buffered_events(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4296usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "flush_buffered_events", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emulate_mouse_from_touch(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4297usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "set_emulate_mouse_from_touch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_emulating_mouse_from_touch(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4298usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_emulating_mouse_from_touch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emulate_touch_from_mouse(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4299usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "set_emulate_touch_from_mouse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_emulating_touch_from_mouse(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4300usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Input", "is_emulating_touch_from_mouse", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Input { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Input")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Input { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Input { + + } + impl std::ops::Deref for Input { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Input { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Input`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Input { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Input > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Input::is_action_pressed_ex`][super::Input::is_action_pressed_ex]."] +#[must_use] +pub struct ExIsActionPressed < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Input, action: CowArg < 'a, StringName >, exact_match: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIsActionPressed < 'a > { + fn new(surround_object: &'a re_export::Input, action: impl AsArg < StringName > + 'a,) -> Self { + let exact_match = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: action.into_arg(), exact_match: exact_match, + } + } + #[inline] + pub fn exact_match(self, exact_match: bool) -> Self { + Self { + exact_match: exact_match, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, action, exact_match, + } + = self; + re_export::Input::is_action_pressed_full(surround_object, action, exact_match,) + } +} +#[doc = "Default-param extender for [`Input::is_action_just_pressed_ex`][super::Input::is_action_just_pressed_ex]."] +#[must_use] +pub struct ExIsActionJustPressed < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Input, action: CowArg < 'a, StringName >, exact_match: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIsActionJustPressed < 'a > { + fn new(surround_object: &'a re_export::Input, action: impl AsArg < StringName > + 'a,) -> Self { + let exact_match = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: action.into_arg(), exact_match: exact_match, + } + } + #[inline] + pub fn exact_match(self, exact_match: bool) -> Self { + Self { + exact_match: exact_match, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, action, exact_match, + } + = self; + re_export::Input::is_action_just_pressed_full(surround_object, action, exact_match,) + } +} +#[doc = "Default-param extender for [`Input::is_action_just_released_ex`][super::Input::is_action_just_released_ex]."] +#[must_use] +pub struct ExIsActionJustReleased < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Input, action: CowArg < 'a, StringName >, exact_match: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIsActionJustReleased < 'a > { + fn new(surround_object: &'a re_export::Input, action: impl AsArg < StringName > + 'a,) -> Self { + let exact_match = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: action.into_arg(), exact_match: exact_match, + } + } + #[inline] + pub fn exact_match(self, exact_match: bool) -> Self { + Self { + exact_match: exact_match, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, action, exact_match, + } + = self; + re_export::Input::is_action_just_released_full(surround_object, action, exact_match,) + } +} +#[doc = "Default-param extender for [`Input::get_action_strength_ex`][super::Input::get_action_strength_ex]."] +#[must_use] +pub struct ExGetActionStrength < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Input, action: CowArg < 'a, StringName >, exact_match: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetActionStrength < 'a > { + fn new(surround_object: &'a re_export::Input, action: impl AsArg < StringName > + 'a,) -> Self { + let exact_match = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: action.into_arg(), exact_match: exact_match, + } + } + #[inline] + pub fn exact_match(self, exact_match: bool) -> Self { + Self { + exact_match: exact_match, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, action, exact_match, + } + = self; + re_export::Input::get_action_strength_full(surround_object, action, exact_match,) + } +} +#[doc = "Default-param extender for [`Input::get_action_raw_strength_ex`][super::Input::get_action_raw_strength_ex]."] +#[must_use] +pub struct ExGetActionRawStrength < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Input, action: CowArg < 'a, StringName >, exact_match: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetActionRawStrength < 'a > { + fn new(surround_object: &'a re_export::Input, action: impl AsArg < StringName > + 'a,) -> Self { + let exact_match = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: action.into_arg(), exact_match: exact_match, + } + } + #[inline] + pub fn exact_match(self, exact_match: bool) -> Self { + Self { + exact_match: exact_match, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, action, exact_match, + } + = self; + re_export::Input::get_action_raw_strength_full(surround_object, action, exact_match,) + } +} +#[doc = "Default-param extender for [`Input::get_vector_ex`][super::Input::get_vector_ex]."] +#[must_use] +pub struct ExGetVector < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Input, negative_x: CowArg < 'a, StringName >, positive_x: CowArg < 'a, StringName >, negative_y: CowArg < 'a, StringName >, positive_y: CowArg < 'a, StringName >, deadzone: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetVector < 'a > { + fn new(surround_object: &'a re_export::Input, negative_x: impl AsArg < StringName > + 'a, positive_x: impl AsArg < StringName > + 'a, negative_y: impl AsArg < StringName > + 'a, positive_y: impl AsArg < StringName > + 'a,) -> Self { + let deadzone = - 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, negative_x: negative_x.into_arg(), positive_x: positive_x.into_arg(), negative_y: negative_y.into_arg(), positive_y: positive_y.into_arg(), deadzone: deadzone, + } + } + #[inline] + pub fn deadzone(self, deadzone: f32) -> Self { + Self { + deadzone: deadzone, .. self + } + } + #[inline] + pub fn done(self) -> Vector2 { + let Self { + _phantom, surround_object, negative_x, positive_x, negative_y, positive_y, deadzone, + } + = self; + re_export::Input::get_vector_full(surround_object, negative_x, positive_x, negative_y, positive_y, deadzone,) + } +} +#[doc = "Default-param extender for [`Input::add_joy_mapping_ex`][super::Input::add_joy_mapping_ex]."] +#[must_use] +pub struct ExAddJoyMapping < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Input, mapping: CowArg < 'a, GString >, update_existing: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddJoyMapping < 'a > { + fn new(surround_object: &'a mut re_export::Input, mapping: impl AsArg < GString > + 'a,) -> Self { + let update_existing = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, mapping: mapping.into_arg(), update_existing: update_existing, + } + } + #[inline] + pub fn update_existing(self, update_existing: bool) -> Self { + Self { + update_existing: update_existing, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, mapping, update_existing, + } + = self; + re_export::Input::add_joy_mapping_full(surround_object, mapping, update_existing,) + } +} +#[doc = "Default-param extender for [`Input::start_joy_vibration_ex`][super::Input::start_joy_vibration_ex]."] +#[must_use] +pub struct ExStartJoyVibration < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Input, device: i32, weak_magnitude: f32, strong_magnitude: f32, duration: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExStartJoyVibration < 'a > { + fn new(surround_object: &'a mut re_export::Input, device: i32, weak_magnitude: f32, strong_magnitude: f32,) -> Self { + let duration = 0f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, device: device, weak_magnitude: weak_magnitude, strong_magnitude: strong_magnitude, duration: duration, + } + } + #[inline] + pub fn duration(self, duration: f32) -> Self { + Self { + duration: duration, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, device, weak_magnitude, strong_magnitude, duration, + } + = self; + re_export::Input::start_joy_vibration_full(surround_object, device, weak_magnitude, strong_magnitude, duration,) + } +} +#[doc = "Default-param extender for [`Input::vibrate_handheld_ex`][super::Input::vibrate_handheld_ex]."] +#[must_use] +pub struct ExVibrateHandheld < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Input, duration_ms: i32, amplitude: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExVibrateHandheld < 'a > { + fn new(surround_object: &'a mut re_export::Input,) -> Self { + let duration_ms = 500i32; + let amplitude = - 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, duration_ms: duration_ms, amplitude: amplitude, + } + } + #[inline] + pub fn duration_ms(self, duration_ms: i32) -> Self { + Self { + duration_ms: duration_ms, .. self + } + } + #[inline] + pub fn amplitude(self, amplitude: f32) -> Self { + Self { + amplitude: amplitude, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, duration_ms, amplitude, + } + = self; + re_export::Input::vibrate_handheld_full(surround_object, duration_ms, amplitude,) + } +} +#[doc = "Default-param extender for [`Input::action_press_ex`][super::Input::action_press_ex]."] +#[must_use] +pub struct ExActionPress < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Input, action: CowArg < 'a, StringName >, strength: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExActionPress < 'a > { + fn new(surround_object: &'a mut re_export::Input, action: impl AsArg < StringName > + 'a,) -> Self { + let strength = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: action.into_arg(), strength: strength, + } + } + #[inline] + pub fn strength(self, strength: f32) -> Self { + Self { + strength: strength, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, action, strength, + } + = self; + re_export::Input::action_press_full(surround_object, action, strength,) + } +} +#[doc = "Default-param extender for [`Input::set_default_cursor_shape_ex`][super::Input::set_default_cursor_shape_ex]."] +#[must_use] +pub struct ExSetDefaultCursorShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Input, shape: crate::classes::input::CursorShape, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetDefaultCursorShape < 'a > { + fn new(surround_object: &'a mut re_export::Input,) -> Self { + let shape = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, shape: shape, + } + } + #[inline] + pub fn shape(self, shape: crate::classes::input::CursorShape) -> Self { + Self { + shape: shape, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, shape, + } + = self; + re_export::Input::set_default_cursor_shape_full(surround_object, shape,) + } +} +#[doc = "Default-param extender for [`Input::set_custom_mouse_cursor_ex`][super::Input::set_custom_mouse_cursor_ex]."] +#[must_use] +pub struct ExSetCustomMouseCursor < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Input, image: ObjectCow < crate::classes::Resource >, shape: crate::classes::input::CursorShape, hotspot: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetCustomMouseCursor < 'a > { + fn new(surround_object: &'a mut re_export::Input, image: impl AsObjectArg < crate::classes::Resource >,) -> Self { + let shape = crate::obj::EngineEnum::from_ord(0); + let hotspot = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, image: image.consume_arg(), shape: shape, hotspot: hotspot, + } + } + #[inline] + pub fn shape(self, shape: crate::classes::input::CursorShape) -> Self { + Self { + shape: shape, .. self + } + } + #[inline] + pub fn hotspot(self, hotspot: Vector2) -> Self { + Self { + hotspot: hotspot, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, image, shape, hotspot, + } + = self; + re_export::Input::set_custom_mouse_cursor_full(surround_object, image.cow_as_object_arg(), shape, hotspot,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MouseMode { + ord: i32 +} +impl MouseMode { + #[doc(alias = "MOUSE_MODE_VISIBLE")] + #[doc = "Godot enumerator name: `MOUSE_MODE_VISIBLE`"] + pub const VISIBLE: MouseMode = MouseMode { + ord: 0i32 + }; + #[doc(alias = "MOUSE_MODE_HIDDEN")] + #[doc = "Godot enumerator name: `MOUSE_MODE_HIDDEN`"] + pub const HIDDEN: MouseMode = MouseMode { + ord: 1i32 + }; + #[doc(alias = "MOUSE_MODE_CAPTURED")] + #[doc = "Godot enumerator name: `MOUSE_MODE_CAPTURED`"] + pub const CAPTURED: MouseMode = MouseMode { + ord: 2i32 + }; + #[doc(alias = "MOUSE_MODE_CONFINED")] + #[doc = "Godot enumerator name: `MOUSE_MODE_CONFINED`"] + pub const CONFINED: MouseMode = MouseMode { + ord: 3i32 + }; + #[doc(alias = "MOUSE_MODE_CONFINED_HIDDEN")] + #[doc = "Godot enumerator name: `MOUSE_MODE_CONFINED_HIDDEN`"] + pub const CONFINED_HIDDEN: MouseMode = MouseMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for MouseMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MouseMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MouseMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VISIBLE => "VISIBLE", Self::HIDDEN => "HIDDEN", Self::CAPTURED => "CAPTURED", Self::CONFINED => "CONFINED", Self::CONFINED_HIDDEN => "CONFINED_HIDDEN", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VISIBLE => "MOUSE_MODE_VISIBLE", Self::HIDDEN => "MOUSE_MODE_HIDDEN", Self::CAPTURED => "MOUSE_MODE_CAPTURED", Self::CONFINED => "MOUSE_MODE_CONFINED", Self::CONFINED_HIDDEN => "MOUSE_MODE_CONFINED_HIDDEN", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for MouseMode { + type Via = i32; + +} +impl crate::meta::ToGodot for MouseMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MouseMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CursorShape { + ord: i32 +} +impl CursorShape { + #[doc(alias = "CURSOR_ARROW")] + #[doc = "Godot enumerator name: `CURSOR_ARROW`"] + pub const ARROW: CursorShape = CursorShape { + ord: 0i32 + }; + #[doc(alias = "CURSOR_IBEAM")] + #[doc = "Godot enumerator name: `CURSOR_IBEAM`"] + pub const IBEAM: CursorShape = CursorShape { + ord: 1i32 + }; + #[doc(alias = "CURSOR_POINTING_HAND")] + #[doc = "Godot enumerator name: `CURSOR_POINTING_HAND`"] + pub const POINTING_HAND: CursorShape = CursorShape { + ord: 2i32 + }; + #[doc(alias = "CURSOR_CROSS")] + #[doc = "Godot enumerator name: `CURSOR_CROSS`"] + pub const CROSS: CursorShape = CursorShape { + ord: 3i32 + }; + #[doc(alias = "CURSOR_WAIT")] + #[doc = "Godot enumerator name: `CURSOR_WAIT`"] + pub const WAIT: CursorShape = CursorShape { + ord: 4i32 + }; + #[doc(alias = "CURSOR_BUSY")] + #[doc = "Godot enumerator name: `CURSOR_BUSY`"] + pub const BUSY: CursorShape = CursorShape { + ord: 5i32 + }; + #[doc(alias = "CURSOR_DRAG")] + #[doc = "Godot enumerator name: `CURSOR_DRAG`"] + pub const DRAG: CursorShape = CursorShape { + ord: 6i32 + }; + #[doc(alias = "CURSOR_CAN_DROP")] + #[doc = "Godot enumerator name: `CURSOR_CAN_DROP`"] + pub const CAN_DROP: CursorShape = CursorShape { + ord: 7i32 + }; + #[doc(alias = "CURSOR_FORBIDDEN")] + #[doc = "Godot enumerator name: `CURSOR_FORBIDDEN`"] + pub const FORBIDDEN: CursorShape = CursorShape { + ord: 8i32 + }; + #[doc(alias = "CURSOR_VSIZE")] + #[doc = "Godot enumerator name: `CURSOR_VSIZE`"] + pub const VSIZE: CursorShape = CursorShape { + ord: 9i32 + }; + #[doc(alias = "CURSOR_HSIZE")] + #[doc = "Godot enumerator name: `CURSOR_HSIZE`"] + pub const HSIZE: CursorShape = CursorShape { + ord: 10i32 + }; + #[doc(alias = "CURSOR_BDIAGSIZE")] + #[doc = "Godot enumerator name: `CURSOR_BDIAGSIZE`"] + pub const BDIAGSIZE: CursorShape = CursorShape { + ord: 11i32 + }; + #[doc(alias = "CURSOR_FDIAGSIZE")] + #[doc = "Godot enumerator name: `CURSOR_FDIAGSIZE`"] + pub const FDIAGSIZE: CursorShape = CursorShape { + ord: 12i32 + }; + #[doc(alias = "CURSOR_MOVE")] + #[doc = "Godot enumerator name: `CURSOR_MOVE`"] + pub const MOVE: CursorShape = CursorShape { + ord: 13i32 + }; + #[doc(alias = "CURSOR_VSPLIT")] + #[doc = "Godot enumerator name: `CURSOR_VSPLIT`"] + pub const VSPLIT: CursorShape = CursorShape { + ord: 14i32 + }; + #[doc(alias = "CURSOR_HSPLIT")] + #[doc = "Godot enumerator name: `CURSOR_HSPLIT`"] + pub const HSPLIT: CursorShape = CursorShape { + ord: 15i32 + }; + #[doc(alias = "CURSOR_HELP")] + #[doc = "Godot enumerator name: `CURSOR_HELP`"] + pub const HELP: CursorShape = CursorShape { + ord: 16i32 + }; + +} +impl std::fmt::Debug for CursorShape { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CursorShape") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CursorShape { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ARROW => "ARROW", Self::IBEAM => "IBEAM", Self::POINTING_HAND => "POINTING_HAND", Self::CROSS => "CROSS", Self::WAIT => "WAIT", Self::BUSY => "BUSY", Self::DRAG => "DRAG", Self::CAN_DROP => "CAN_DROP", Self::FORBIDDEN => "FORBIDDEN", Self::VSIZE => "VSIZE", Self::HSIZE => "HSIZE", Self::BDIAGSIZE => "BDIAGSIZE", Self::FDIAGSIZE => "FDIAGSIZE", Self::MOVE => "MOVE", Self::VSPLIT => "VSPLIT", Self::HSPLIT => "HSPLIT", Self::HELP => "HELP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ARROW => "CURSOR_ARROW", Self::IBEAM => "CURSOR_IBEAM", Self::POINTING_HAND => "CURSOR_POINTING_HAND", Self::CROSS => "CURSOR_CROSS", Self::WAIT => "CURSOR_WAIT", Self::BUSY => "CURSOR_BUSY", Self::DRAG => "CURSOR_DRAG", Self::CAN_DROP => "CURSOR_CAN_DROP", Self::FORBIDDEN => "CURSOR_FORBIDDEN", Self::VSIZE => "CURSOR_VSIZE", Self::HSIZE => "CURSOR_HSIZE", Self::BDIAGSIZE => "CURSOR_BDIAGSIZE", Self::FDIAGSIZE => "CURSOR_FDIAGSIZE", Self::MOVE => "CURSOR_MOVE", Self::VSPLIT => "CURSOR_VSPLIT", Self::HSPLIT => "CURSOR_HSPLIT", Self::HELP => "CURSOR_HELP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CursorShape { + type Via = i32; + +} +impl crate::meta::ToGodot for CursorShape { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CursorShape { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event.rs new file mode 100644 index 0000000..e7b954f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event.rs @@ -0,0 +1,548 @@ +#![doc = "Sidecar module for class [`InputEvent`][crate::classes::InputEvent].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEvent` enums](https://docs.godotengine.org/en/stable/classes/class_inputevent.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEvent.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`input_event`][crate::classes::input_event]: sidecar module with related enum/flag types\n* [`IInputEvent`][crate::classes::IInputEvent]: virtual methods\n\n\nSee also [Godot docs for `InputEvent`](https://docs.godotengine.org/en/stable/classes/class_inputevent.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEvent { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEvent`][crate::classes::InputEvent].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEvent` methods](https://docs.godotengine.org/en/stable/classes/class_inputevent.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEvent: crate::obj::GodotClass < Base = InputEvent > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEvent { + pub fn set_device(&mut self, device: i32,) { + type CallSig = ((), i32); + let args = (device,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4301usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "set_device", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_device(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4302usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "get_device", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn is_action_full(&self, action: CowArg < StringName >, exact_match: bool,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >, bool); + let args = (action, exact_match,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4303usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "is_action", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::is_action_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn is_action(&self, action: impl AsArg < StringName >,) -> bool { + self.is_action_ex(action,) . done() + } + #[inline] + pub fn is_action_ex < 'a > (&'a self, action: impl AsArg < StringName > + 'a,) -> ExIsAction < 'a > { + ExIsAction::new(self, action,) + } + pub(crate) fn is_action_pressed_full(&self, action: CowArg < StringName >, allow_echo: bool, exact_match: bool,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >, bool, bool); + let args = (action, allow_echo, exact_match,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4304usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "is_action_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::is_action_pressed_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn is_action_pressed(&self, action: impl AsArg < StringName >,) -> bool { + self.is_action_pressed_ex(action,) . done() + } + #[inline] + pub fn is_action_pressed_ex < 'a > (&'a self, action: impl AsArg < StringName > + 'a,) -> ExIsActionPressed < 'a > { + ExIsActionPressed::new(self, action,) + } + pub(crate) fn is_action_released_full(&self, action: CowArg < StringName >, exact_match: bool,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >, bool); + let args = (action, exact_match,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4305usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "is_action_released", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::is_action_released_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn is_action_released(&self, action: impl AsArg < StringName >,) -> bool { + self.is_action_released_ex(action,) . done() + } + #[inline] + pub fn is_action_released_ex < 'a > (&'a self, action: impl AsArg < StringName > + 'a,) -> ExIsActionReleased < 'a > { + ExIsActionReleased::new(self, action,) + } + pub(crate) fn get_action_strength_full(&self, action: CowArg < StringName >, exact_match: bool,) -> f32 { + type CallSig < 'a0, > = (f32, CowArg < 'a0, StringName >, bool); + let args = (action, exact_match,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4306usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "get_action_strength", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_action_strength_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_action_strength(&self, action: impl AsArg < StringName >,) -> f32 { + self.get_action_strength_ex(action,) . done() + } + #[inline] + pub fn get_action_strength_ex < 'a > (&'a self, action: impl AsArg < StringName > + 'a,) -> ExGetActionStrength < 'a > { + ExGetActionStrength::new(self, action,) + } + pub fn is_canceled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4307usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "is_canceled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_pressed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4308usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "is_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_released(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4309usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "is_released", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_echo(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4310usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "is_echo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn as_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4311usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "as_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn is_match_full(&self, event: ObjectArg < crate::classes::InputEvent >, exact_match: bool,) -> bool { + type CallSig = (bool, ObjectArg < crate::classes::InputEvent >, bool); + let args = (event, exact_match,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4312usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "is_match", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::is_match_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn is_match(&self, event: impl AsObjectArg < crate::classes::InputEvent >,) -> bool { + self.is_match_ex(event,) . done() + } + #[inline] + pub fn is_match_ex < 'a > (&'a self, event: impl AsObjectArg < crate::classes::InputEvent >,) -> ExIsMatch < 'a > { + ExIsMatch::new(self, event,) + } + pub fn is_action_type(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4313usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "is_action_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn accumulate(&mut self, with_event: impl AsObjectArg < crate::classes::InputEvent >,) -> bool { + type CallSig = (bool, ObjectArg < crate::classes::InputEvent >); + let args = (with_event.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4314usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "accumulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn xformed_by_full(&self, xform: Transform2D, local_ofs: Vector2,) -> Option < Gd < crate::classes::InputEvent > > { + type CallSig = (Option < Gd < crate::classes::InputEvent > >, Transform2D, Vector2); + let args = (xform, local_ofs,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4315usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEvent", "xformed_by", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::xformed_by_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn xformed_by(&self, xform: Transform2D,) -> Option < Gd < crate::classes::InputEvent > > { + self.xformed_by_ex(xform,) . done() + } + #[inline] + pub fn xformed_by_ex < 'a > (&'a self, xform: Transform2D,) -> ExXformedBy < 'a > { + ExXformedBy::new(self, xform,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const DEVICE_ID_EMULATION: i32 = - 1i32; + + } + impl crate::obj::GodotClass for InputEvent { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEvent")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEvent { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEvent { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEvent { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEvent { + + } + impl std::ops::Deref for InputEvent { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEvent { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEvent`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEvent { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`InputEvent::is_action_ex`][super::InputEvent::is_action_ex]."] +#[must_use] +pub struct ExIsAction < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::InputEvent, action: CowArg < 'a, StringName >, exact_match: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIsAction < 'a > { + fn new(surround_object: &'a re_export::InputEvent, action: impl AsArg < StringName > + 'a,) -> Self { + let exact_match = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: action.into_arg(), exact_match: exact_match, + } + } + #[inline] + pub fn exact_match(self, exact_match: bool) -> Self { + Self { + exact_match: exact_match, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, action, exact_match, + } + = self; + re_export::InputEvent::is_action_full(surround_object, action, exact_match,) + } +} +#[doc = "Default-param extender for [`InputEvent::is_action_pressed_ex`][super::InputEvent::is_action_pressed_ex]."] +#[must_use] +pub struct ExIsActionPressed < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::InputEvent, action: CowArg < 'a, StringName >, allow_echo: bool, exact_match: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIsActionPressed < 'a > { + fn new(surround_object: &'a re_export::InputEvent, action: impl AsArg < StringName > + 'a,) -> Self { + let allow_echo = false; + let exact_match = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: action.into_arg(), allow_echo: allow_echo, exact_match: exact_match, + } + } + #[inline] + pub fn allow_echo(self, allow_echo: bool) -> Self { + Self { + allow_echo: allow_echo, .. self + } + } + #[inline] + pub fn exact_match(self, exact_match: bool) -> Self { + Self { + exact_match: exact_match, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, action, allow_echo, exact_match, + } + = self; + re_export::InputEvent::is_action_pressed_full(surround_object, action, allow_echo, exact_match,) + } +} +#[doc = "Default-param extender for [`InputEvent::is_action_released_ex`][super::InputEvent::is_action_released_ex]."] +#[must_use] +pub struct ExIsActionReleased < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::InputEvent, action: CowArg < 'a, StringName >, exact_match: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIsActionReleased < 'a > { + fn new(surround_object: &'a re_export::InputEvent, action: impl AsArg < StringName > + 'a,) -> Self { + let exact_match = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: action.into_arg(), exact_match: exact_match, + } + } + #[inline] + pub fn exact_match(self, exact_match: bool) -> Self { + Self { + exact_match: exact_match, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, action, exact_match, + } + = self; + re_export::InputEvent::is_action_released_full(surround_object, action, exact_match,) + } +} +#[doc = "Default-param extender for [`InputEvent::get_action_strength_ex`][super::InputEvent::get_action_strength_ex]."] +#[must_use] +pub struct ExGetActionStrength < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::InputEvent, action: CowArg < 'a, StringName >, exact_match: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetActionStrength < 'a > { + fn new(surround_object: &'a re_export::InputEvent, action: impl AsArg < StringName > + 'a,) -> Self { + let exact_match = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: action.into_arg(), exact_match: exact_match, + } + } + #[inline] + pub fn exact_match(self, exact_match: bool) -> Self { + Self { + exact_match: exact_match, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, action, exact_match, + } + = self; + re_export::InputEvent::get_action_strength_full(surround_object, action, exact_match,) + } +} +#[doc = "Default-param extender for [`InputEvent::is_match_ex`][super::InputEvent::is_match_ex]."] +#[must_use] +pub struct ExIsMatch < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::InputEvent, event: ObjectCow < crate::classes::InputEvent >, exact_match: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIsMatch < 'a > { + fn new(surround_object: &'a re_export::InputEvent, event: impl AsObjectArg < crate::classes::InputEvent >,) -> Self { + let exact_match = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, event: event.consume_arg(), exact_match: exact_match, + } + } + #[inline] + pub fn exact_match(self, exact_match: bool) -> Self { + Self { + exact_match: exact_match, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, event, exact_match, + } + = self; + re_export::InputEvent::is_match_full(surround_object, event.cow_as_object_arg(), exact_match,) + } +} +#[doc = "Default-param extender for [`InputEvent::xformed_by_ex`][super::InputEvent::xformed_by_ex]."] +#[must_use] +pub struct ExXformedBy < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::InputEvent, xform: Transform2D, local_ofs: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExXformedBy < 'a > { + fn new(surround_object: &'a re_export::InputEvent, xform: Transform2D,) -> Self { + let local_ofs = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, xform: xform, local_ofs: local_ofs, + } + } + #[inline] + pub fn local_ofs(self, local_ofs: Vector2) -> Self { + Self { + local_ofs: local_ofs, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::InputEvent > > { + let Self { + _phantom, surround_object, xform, local_ofs, + } + = self; + re_export::InputEvent::xformed_by_full(surround_object, xform, local_ofs,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_action.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_action.rs new file mode 100644 index 0000000..e749db2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_action.rs @@ -0,0 +1,264 @@ +#![doc = "Sidecar module for class [`InputEventAction`][crate::classes::InputEventAction].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventAction` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventaction.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventAction.`\n\nInherits [`InputEvent`][crate::classes::InputEvent].\n\nRelated symbols:\n\n* [`IInputEventAction`][crate::classes::IInputEventAction]: virtual methods\n\n\nSee also [Godot docs for `InputEventAction`](https://docs.godotengine.org/en/stable/classes/class_inputeventaction.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventAction::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventAction { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventAction`][crate::classes::InputEventAction].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventAction` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventaction.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventAction: crate::obj::GodotClass < Base = InputEventAction > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventAction { + pub fn set_action(&mut self, action: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (action.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4316usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventAction", "set_action", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_action(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4317usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventAction", "get_action", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pressed(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4318usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventAction", "set_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_strength(&mut self, strength: f32,) { + type CallSig = ((), f32); + let args = (strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4319usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventAction", "set_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4320usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventAction", "get_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_event_index(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4321usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventAction", "set_event_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_event_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4322usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventAction", "get_event_index", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventAction { + type Base = crate::classes::InputEvent; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventAction")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventAction { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventAction { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventAction { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventAction { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventAction { + + } + impl crate::obj::cap::GodotDefault for InputEventAction { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventAction { + type Target = crate::classes::InputEvent; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventAction { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventAction`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventAction { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventAction > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_from_window.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_from_window.rs new file mode 100644 index 0000000..7cda66a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_from_window.rs @@ -0,0 +1,219 @@ +#![doc = "Sidecar module for class [`InputEventFromWindow`][crate::classes::InputEventFromWindow].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventFromWindow` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventfromwindow.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventFromWindow.`\n\nInherits [`InputEvent`][crate::classes::InputEvent].\n\nRelated symbols:\n\n* [`IInputEventFromWindow`][crate::classes::IInputEventFromWindow]: virtual methods\n\n\nSee also [Godot docs for `InputEventFromWindow`](https://docs.godotengine.org/en/stable/classes/class_inputeventfromwindow.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventFromWindow { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventFromWindow`][crate::classes::InputEventFromWindow].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventFromWindow` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventfromwindow.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventFromWindow: crate::obj::GodotClass < Base = InputEventFromWindow > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventFromWindow { + pub fn set_window_id(&mut self, id: i64,) { + type CallSig = ((), i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4323usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventFromWindow", "set_window_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_window_id(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4324usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventFromWindow", "get_window_id", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventFromWindow { + type Base = crate::classes::InputEvent; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventFromWindow")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventFromWindow { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventFromWindow { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventFromWindow { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventFromWindow { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventFromWindow { + + } + impl std::ops::Deref for InputEventFromWindow { + type Target = crate::classes::InputEvent; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventFromWindow { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventFromWindow`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventFromWindow { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventFromWindow > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_gesture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_gesture.rs new file mode 100644 index 0000000..561857c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_gesture.rs @@ -0,0 +1,231 @@ +#![doc = "Sidecar module for class [`InputEventGesture`][crate::classes::InputEventGesture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventGesture` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventgesture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventGesture.`\n\nInherits [`InputEventWithModifiers`][crate::classes::InputEventWithModifiers].\n\nRelated symbols:\n\n* [`IInputEventGesture`][crate::classes::IInputEventGesture]: virtual methods\n\n\nSee also [Godot docs for `InputEventGesture`](https://docs.godotengine.org/en/stable/classes/class_inputeventgesture.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventGesture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventGesture`][crate::classes::InputEventGesture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventGesture` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventgesture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventGesture: crate::obj::GodotClass < Base = InputEventGesture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventGesture { + pub fn set_position(&mut self, position: Vector2,) { + type CallSig = ((), Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4325usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventGesture", "set_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4326usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventGesture", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventGesture { + type Base = crate::classes::InputEventWithModifiers; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventGesture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventGesture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventWithModifiers > for InputEventGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventFromWindow > for InputEventGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventGesture { + + } + impl std::ops::Deref for InputEventGesture { + type Target = crate::classes::InputEventWithModifiers; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventGesture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventGesture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventGesture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventGesture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventWithModifiers > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventFromWindow > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_joypad_button.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_joypad_button.rs new file mode 100644 index 0000000..8e8045d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_joypad_button.rs @@ -0,0 +1,248 @@ +#![doc = "Sidecar module for class [`InputEventJoypadButton`][crate::classes::InputEventJoypadButton].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventJoypadButton` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventjoypadbutton.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventJoypadButton.`\n\nInherits [`InputEvent`][crate::classes::InputEvent].\n\nRelated symbols:\n\n* [`IInputEventJoypadButton`][crate::classes::IInputEventJoypadButton]: virtual methods\n\n\nSee also [Godot docs for `InputEventJoypadButton`](https://docs.godotengine.org/en/stable/classes/class_inputeventjoypadbutton.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventJoypadButton::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventJoypadButton { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventJoypadButton`][crate::classes::InputEventJoypadButton].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventJoypadButton` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventjoypadbutton.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventJoypadButton: crate::obj::GodotClass < Base = InputEventJoypadButton > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventJoypadButton { + pub fn set_button_index(&mut self, button_index: crate::global::JoyButton,) { + type CallSig = ((), crate::global::JoyButton); + let args = (button_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4327usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventJoypadButton", "set_button_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_button_index(&self,) -> crate::global::JoyButton { + type CallSig = (crate::global::JoyButton,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4328usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventJoypadButton", "get_button_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pressure(&mut self, pressure: f32,) { + type CallSig = ((), f32); + let args = (pressure,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4329usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventJoypadButton", "set_pressure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pressure(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4330usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventJoypadButton", "get_pressure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pressed(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4331usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventJoypadButton", "set_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventJoypadButton { + type Base = crate::classes::InputEvent; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventJoypadButton")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventJoypadButton { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventJoypadButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventJoypadButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventJoypadButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventJoypadButton { + + } + impl crate::obj::cap::GodotDefault for InputEventJoypadButton { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventJoypadButton { + type Target = crate::classes::InputEvent; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventJoypadButton { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventJoypadButton`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventJoypadButton { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventJoypadButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_joypad_motion.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_joypad_motion.rs new file mode 100644 index 0000000..72cfbcf --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_joypad_motion.rs @@ -0,0 +1,240 @@ +#![doc = "Sidecar module for class [`InputEventJoypadMotion`][crate::classes::InputEventJoypadMotion].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventJoypadMotion` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventjoypadmotion.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventJoypadMotion.`\n\nInherits [`InputEvent`][crate::classes::InputEvent].\n\nRelated symbols:\n\n* [`IInputEventJoypadMotion`][crate::classes::IInputEventJoypadMotion]: virtual methods\n\n\nSee also [Godot docs for `InputEventJoypadMotion`](https://docs.godotengine.org/en/stable/classes/class_inputeventjoypadmotion.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventJoypadMotion::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventJoypadMotion { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventJoypadMotion`][crate::classes::InputEventJoypadMotion].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventJoypadMotion` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventjoypadmotion.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventJoypadMotion: crate::obj::GodotClass < Base = InputEventJoypadMotion > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventJoypadMotion { + pub fn set_axis(&mut self, axis: crate::global::JoyAxis,) { + type CallSig = ((), crate::global::JoyAxis); + let args = (axis,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4332usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventJoypadMotion", "set_axis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_axis(&self,) -> crate::global::JoyAxis { + type CallSig = (crate::global::JoyAxis,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4333usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventJoypadMotion", "get_axis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_axis_value(&mut self, axis_value: f32,) { + type CallSig = ((), f32); + let args = (axis_value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4334usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventJoypadMotion", "set_axis_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_axis_value(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4335usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventJoypadMotion", "get_axis_value", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventJoypadMotion { + type Base = crate::classes::InputEvent; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventJoypadMotion")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventJoypadMotion { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventJoypadMotion { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventJoypadMotion { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventJoypadMotion { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventJoypadMotion { + + } + impl crate::obj::cap::GodotDefault for InputEventJoypadMotion { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventJoypadMotion { + type Target = crate::classes::InputEvent; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventJoypadMotion { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventJoypadMotion`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventJoypadMotion { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventJoypadMotion > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_key.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_key.rs new file mode 100644 index 0000000..8cb073b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_key.rs @@ -0,0 +1,372 @@ +#![doc = "Sidecar module for class [`InputEventKey`][crate::classes::InputEventKey].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventKey` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventkey.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventKey.`\n\nInherits [`InputEventWithModifiers`][crate::classes::InputEventWithModifiers].\n\nRelated symbols:\n\n* [`IInputEventKey`][crate::classes::IInputEventKey]: virtual methods\n\n\nSee also [Godot docs for `InputEventKey`](https://docs.godotengine.org/en/stable/classes/class_inputeventkey.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventKey::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventKey { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventKey`][crate::classes::InputEventKey].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventKey` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventkey.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventKey: crate::obj::GodotClass < Base = InputEventKey > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventKey { + pub fn set_pressed(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4336usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "set_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_keycode(&mut self, keycode: crate::global::Key,) { + type CallSig = ((), crate::global::Key); + let args = (keycode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4337usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "set_keycode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_keycode(&self,) -> crate::global::Key { + type CallSig = (crate::global::Key,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4338usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "get_keycode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_physical_keycode(&mut self, physical_keycode: crate::global::Key,) { + type CallSig = ((), crate::global::Key); + let args = (physical_keycode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4339usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "set_physical_keycode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physical_keycode(&self,) -> crate::global::Key { + type CallSig = (crate::global::Key,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4340usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "get_physical_keycode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_key_label(&mut self, key_label: crate::global::Key,) { + type CallSig = ((), crate::global::Key); + let args = (key_label,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4341usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "set_key_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_key_label(&self,) -> crate::global::Key { + type CallSig = (crate::global::Key,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4342usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "get_key_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_unicode(&mut self, unicode: i64,) { + type CallSig = ((), i64); + let args = (unicode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4343usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "set_unicode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_unicode(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4344usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "get_unicode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_location(&mut self, location: crate::global::KeyLocation,) { + type CallSig = ((), crate::global::KeyLocation); + let args = (location,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4345usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "set_location", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_location(&self,) -> crate::global::KeyLocation { + type CallSig = (crate::global::KeyLocation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4346usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "get_location", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_echo(&mut self, echo: bool,) { + type CallSig = ((), bool); + let args = (echo,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4347usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "set_echo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_keycode_with_modifiers(&self,) -> crate::global::Key { + type CallSig = (crate::global::Key,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4348usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "get_keycode_with_modifiers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physical_keycode_with_modifiers(&self,) -> crate::global::Key { + type CallSig = (crate::global::Key,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4349usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "get_physical_keycode_with_modifiers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_key_label_with_modifiers(&self,) -> crate::global::Key { + type CallSig = (crate::global::Key,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4350usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "get_key_label_with_modifiers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn as_text_keycode(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4351usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "as_text_keycode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn as_text_physical_keycode(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4352usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "as_text_physical_keycode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn as_text_key_label(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4353usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "as_text_key_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn as_text_location(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4354usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventKey", "as_text_location", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventKey { + type Base = crate::classes::InputEventWithModifiers; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventKey")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventKey { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventWithModifiers > for InputEventKey { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventFromWindow > for InputEventKey { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventKey { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventKey { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventKey { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventKey { + + } + impl crate::obj::cap::GodotDefault for InputEventKey { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventKey { + type Target = crate::classes::InputEventWithModifiers; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventKey { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventKey`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventKey { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventKey > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventWithModifiers > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventFromWindow > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_magnify_gesture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_magnify_gesture.rs new file mode 100644 index 0000000..3da295d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_magnify_gesture.rs @@ -0,0 +1,242 @@ +#![doc = "Sidecar module for class [`InputEventMagnifyGesture`][crate::classes::InputEventMagnifyGesture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventMagnifyGesture` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventmagnifygesture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventMagnifyGesture.`\n\nInherits [`InputEventGesture`][crate::classes::InputEventGesture].\n\nRelated symbols:\n\n* [`IInputEventMagnifyGesture`][crate::classes::IInputEventMagnifyGesture]: virtual methods\n\n\nSee also [Godot docs for `InputEventMagnifyGesture`](https://docs.godotengine.org/en/stable/classes/class_inputeventmagnifygesture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventMagnifyGesture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventMagnifyGesture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventMagnifyGesture`][crate::classes::InputEventMagnifyGesture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventMagnifyGesture` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventmagnifygesture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventMagnifyGesture: crate::obj::GodotClass < Base = InputEventMagnifyGesture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventMagnifyGesture { + pub fn set_factor(&mut self, factor: f32,) { + type CallSig = ((), f32); + let args = (factor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4371usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMagnifyGesture", "set_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_factor(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4372usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMagnifyGesture", "get_factor", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventMagnifyGesture { + type Base = crate::classes::InputEventGesture; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventMagnifyGesture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventMagnifyGesture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventGesture > for InputEventMagnifyGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventWithModifiers > for InputEventMagnifyGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventFromWindow > for InputEventMagnifyGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventMagnifyGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventMagnifyGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventMagnifyGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventMagnifyGesture { + + } + impl crate::obj::cap::GodotDefault for InputEventMagnifyGesture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventMagnifyGesture { + type Target = crate::classes::InputEventGesture; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventMagnifyGesture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventMagnifyGesture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventMagnifyGesture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventMagnifyGesture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventGesture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventWithModifiers > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventFromWindow > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_midi.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_midi.rs new file mode 100644 index 0000000..f6d4fd9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_midi.rs @@ -0,0 +1,336 @@ +#![doc = "Sidecar module for class [`InputEventMidi`][crate::classes::InputEventMidi].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventMIDI` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventmidi.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventMIDI.`\n\nInherits [`InputEvent`][crate::classes::InputEvent].\n\nRelated symbols:\n\n* [`IInputEventMidi`][crate::classes::IInputEventMidi]: virtual methods\n\n\nSee also [Godot docs for `InputEventMIDI`](https://docs.godotengine.org/en/stable/classes/class_inputeventmidi.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventMidi::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventMidi { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventMidi`][crate::classes::InputEventMidi].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventMIDI` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventmidi.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventMidi: crate::obj::GodotClass < Base = InputEventMidi > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventMidi { + pub fn set_channel(&mut self, channel: i32,) { + type CallSig = ((), i32); + let args = (channel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4355usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "set_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_channel(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4356usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "get_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_message(&mut self, message: crate::global::MidiMessage,) { + type CallSig = ((), crate::global::MidiMessage); + let args = (message,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4357usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "set_message", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_message(&self,) -> crate::global::MidiMessage { + type CallSig = (crate::global::MidiMessage,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4358usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "get_message", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pitch(&mut self, pitch: i32,) { + type CallSig = ((), i32); + let args = (pitch,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4359usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "set_pitch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pitch(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4360usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "get_pitch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_velocity(&mut self, velocity: i32,) { + type CallSig = ((), i32); + let args = (velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4361usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "set_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_velocity(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4362usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "get_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_instrument(&mut self, instrument: i32,) { + type CallSig = ((), i32); + let args = (instrument,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4363usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "set_instrument", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_instrument(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4364usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "get_instrument", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pressure(&mut self, pressure: i32,) { + type CallSig = ((), i32); + let args = (pressure,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4365usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "set_pressure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pressure(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4366usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "get_pressure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_controller_number(&mut self, controller_number: i32,) { + type CallSig = ((), i32); + let args = (controller_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4367usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "set_controller_number", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_controller_number(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4368usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "get_controller_number", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_controller_value(&mut self, controller_value: i32,) { + type CallSig = ((), i32); + let args = (controller_value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4369usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "set_controller_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_controller_value(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4370usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMidi", "get_controller_value", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventMidi { + type Base = crate::classes::InputEvent; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventMIDI")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventMidi { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventMidi { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventMidi { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventMidi { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventMidi { + + } + impl crate::obj::cap::GodotDefault for InputEventMidi { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventMidi { + type Target = crate::classes::InputEvent; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventMidi { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventMidi`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventMidi { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventMidi > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_mouse.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_mouse.rs new file mode 100644 index 0000000..2c0ace3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_mouse.rs @@ -0,0 +1,263 @@ +#![doc = "Sidecar module for class [`InputEventMouse`][crate::classes::InputEventMouse].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventMouse` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventmouse.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventMouse.`\n\nInherits [`InputEventWithModifiers`][crate::classes::InputEventWithModifiers].\n\nRelated symbols:\n\n* [`IInputEventMouse`][crate::classes::IInputEventMouse]: virtual methods\n\n\nSee also [Godot docs for `InputEventMouse`](https://docs.godotengine.org/en/stable/classes/class_inputeventmouse.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventMouse { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventMouse`][crate::classes::InputEventMouse].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventMouse` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventmouse.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventMouse: crate::obj::GodotClass < Base = InputEventMouse > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventMouse { + pub fn set_button_mask(&mut self, button_mask: crate::global::MouseButtonMask,) { + type CallSig = ((), crate::global::MouseButtonMask); + let args = (button_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4373usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouse", "set_button_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_button_mask(&self,) -> crate::global::MouseButtonMask { + type CallSig = (crate::global::MouseButtonMask,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4374usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouse", "get_button_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_position(&mut self, position: Vector2,) { + type CallSig = ((), Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4375usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouse", "set_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4376usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouse", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_position(&mut self, global_position: Vector2,) { + type CallSig = ((), Vector2); + let args = (global_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4377usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouse", "set_global_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4378usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouse", "get_global_position", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventMouse { + type Base = crate::classes::InputEventWithModifiers; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventMouse")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventMouse { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventWithModifiers > for InputEventMouse { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventFromWindow > for InputEventMouse { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventMouse { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventMouse { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventMouse { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventMouse { + + } + impl std::ops::Deref for InputEventMouse { + type Target = crate::classes::InputEventWithModifiers; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventMouse { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventMouse`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventMouse { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventMouse > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventWithModifiers > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventFromWindow > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_mouse_button.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_mouse_button.rs new file mode 100644 index 0000000..a790eda --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_mouse_button.rs @@ -0,0 +1,290 @@ +#![doc = "Sidecar module for class [`InputEventMouseButton`][crate::classes::InputEventMouseButton].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventMouseButton` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventmousebutton.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventMouseButton.`\n\nInherits [`InputEventMouse`][crate::classes::InputEventMouse].\n\nRelated symbols:\n\n* [`IInputEventMouseButton`][crate::classes::IInputEventMouseButton]: virtual methods\n\n\nSee also [Godot docs for `InputEventMouseButton`](https://docs.godotengine.org/en/stable/classes/class_inputeventmousebutton.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventMouseButton::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventMouseButton { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventMouseButton`][crate::classes::InputEventMouseButton].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventMouseButton` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventmousebutton.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventMouseButton: crate::obj::GodotClass < Base = InputEventMouseButton > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventMouseButton { + pub fn set_factor(&mut self, factor: f32,) { + type CallSig = ((), f32); + let args = (factor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4379usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseButton", "set_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_factor(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4380usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseButton", "get_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_button_index(&mut self, button_index: crate::global::MouseButton,) { + type CallSig = ((), crate::global::MouseButton); + let args = (button_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4381usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseButton", "set_button_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_button_index(&self,) -> crate::global::MouseButton { + type CallSig = (crate::global::MouseButton,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4382usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseButton", "get_button_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pressed(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4383usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseButton", "set_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_canceled(&mut self, canceled: bool,) { + type CallSig = ((), bool); + let args = (canceled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4384usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseButton", "set_canceled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_double_click(&mut self, double_click: bool,) { + type CallSig = ((), bool); + let args = (double_click,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4385usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseButton", "set_double_click", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_double_click(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4386usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseButton", "is_double_click", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventMouseButton { + type Base = crate::classes::InputEventMouse; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventMouseButton")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventMouseButton { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventMouse > for InputEventMouseButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventWithModifiers > for InputEventMouseButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventFromWindow > for InputEventMouseButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventMouseButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventMouseButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventMouseButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventMouseButton { + + } + impl crate::obj::cap::GodotDefault for InputEventMouseButton { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventMouseButton { + type Target = crate::classes::InputEventMouse; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventMouseButton { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventMouseButton`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventMouseButton { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventMouseButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventMouse > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventWithModifiers > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventFromWindow > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_mouse_motion.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_mouse_motion.rs new file mode 100644 index 0000000..3211676 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_mouse_motion.rs @@ -0,0 +1,338 @@ +#![doc = "Sidecar module for class [`InputEventMouseMotion`][crate::classes::InputEventMouseMotion].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventMouseMotion` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventmousemotion.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventMouseMotion.`\n\nInherits [`InputEventMouse`][crate::classes::InputEventMouse].\n\nRelated symbols:\n\n* [`IInputEventMouseMotion`][crate::classes::IInputEventMouseMotion]: virtual methods\n\n\nSee also [Godot docs for `InputEventMouseMotion`](https://docs.godotengine.org/en/stable/classes/class_inputeventmousemotion.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventMouseMotion::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventMouseMotion { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventMouseMotion`][crate::classes::InputEventMouseMotion].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventMouseMotion` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventmousemotion.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventMouseMotion: crate::obj::GodotClass < Base = InputEventMouseMotion > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventMouseMotion { + pub fn set_tilt(&mut self, tilt: Vector2,) { + type CallSig = ((), Vector2); + let args = (tilt,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4387usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "set_tilt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tilt(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4388usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "get_tilt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pressure(&mut self, pressure: f32,) { + type CallSig = ((), f32); + let args = (pressure,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4389usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "set_pressure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pressure(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4390usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "get_pressure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pen_inverted(&mut self, pen_inverted: bool,) { + type CallSig = ((), bool); + let args = (pen_inverted,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4391usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "set_pen_inverted", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pen_inverted(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4392usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "get_pen_inverted", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_relative(&mut self, relative: Vector2,) { + type CallSig = ((), Vector2); + let args = (relative,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4393usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "set_relative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_relative(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4394usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "get_relative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_screen_relative(&mut self, relative: Vector2,) { + type CallSig = ((), Vector2); + let args = (relative,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4395usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "set_screen_relative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_screen_relative(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4396usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "get_screen_relative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_velocity(&mut self, velocity: Vector2,) { + type CallSig = ((), Vector2); + let args = (velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4397usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "set_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_velocity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4398usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "get_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_screen_velocity(&mut self, velocity: Vector2,) { + type CallSig = ((), Vector2); + let args = (velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4399usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "set_screen_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_screen_velocity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4400usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventMouseMotion", "get_screen_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventMouseMotion { + type Base = crate::classes::InputEventMouse; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventMouseMotion")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventMouseMotion { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventMouse > for InputEventMouseMotion { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventWithModifiers > for InputEventMouseMotion { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventFromWindow > for InputEventMouseMotion { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventMouseMotion { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventMouseMotion { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventMouseMotion { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventMouseMotion { + + } + impl crate::obj::cap::GodotDefault for InputEventMouseMotion { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventMouseMotion { + type Target = crate::classes::InputEventMouse; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventMouseMotion { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventMouseMotion`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventMouseMotion { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventMouseMotion > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventMouse > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventWithModifiers > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventFromWindow > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_pan_gesture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_pan_gesture.rs new file mode 100644 index 0000000..ae7dffb --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_pan_gesture.rs @@ -0,0 +1,242 @@ +#![doc = "Sidecar module for class [`InputEventPanGesture`][crate::classes::InputEventPanGesture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventPanGesture` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventpangesture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventPanGesture.`\n\nInherits [`InputEventGesture`][crate::classes::InputEventGesture].\n\nRelated symbols:\n\n* [`IInputEventPanGesture`][crate::classes::IInputEventPanGesture]: virtual methods\n\n\nSee also [Godot docs for `InputEventPanGesture`](https://docs.godotengine.org/en/stable/classes/class_inputeventpangesture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventPanGesture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventPanGesture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventPanGesture`][crate::classes::InputEventPanGesture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventPanGesture` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventpangesture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventPanGesture: crate::obj::GodotClass < Base = InputEventPanGesture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventPanGesture { + pub fn set_delta(&mut self, delta: Vector2,) { + type CallSig = ((), Vector2); + let args = (delta,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4401usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventPanGesture", "set_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_delta(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4402usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventPanGesture", "get_delta", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventPanGesture { + type Base = crate::classes::InputEventGesture; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventPanGesture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventPanGesture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventGesture > for InputEventPanGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventWithModifiers > for InputEventPanGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventFromWindow > for InputEventPanGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventPanGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventPanGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventPanGesture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventPanGesture { + + } + impl crate::obj::cap::GodotDefault for InputEventPanGesture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventPanGesture { + type Target = crate::classes::InputEventGesture; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventPanGesture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventPanGesture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventPanGesture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventPanGesture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventGesture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventWithModifiers > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventFromWindow > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_screen_drag.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_screen_drag.rs new file mode 100644 index 0000000..30dcf80 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_screen_drag.rs @@ -0,0 +1,358 @@ +#![doc = "Sidecar module for class [`InputEventScreenDrag`][crate::classes::InputEventScreenDrag].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventScreenDrag` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventscreendrag.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventScreenDrag.`\n\nInherits [`InputEventFromWindow`][crate::classes::InputEventFromWindow].\n\nRelated symbols:\n\n* [`IInputEventScreenDrag`][crate::classes::IInputEventScreenDrag]: virtual methods\n\n\nSee also [Godot docs for `InputEventScreenDrag`](https://docs.godotengine.org/en/stable/classes/class_inputeventscreendrag.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventScreenDrag::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventScreenDrag { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventScreenDrag`][crate::classes::InputEventScreenDrag].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventScreenDrag` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventscreendrag.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventScreenDrag: crate::obj::GodotClass < Base = InputEventScreenDrag > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventScreenDrag { + pub fn set_index(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4403usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "set_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4404usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "get_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tilt(&mut self, tilt: Vector2,) { + type CallSig = ((), Vector2); + let args = (tilt,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4405usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "set_tilt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tilt(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4406usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "get_tilt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pressure(&mut self, pressure: f32,) { + type CallSig = ((), f32); + let args = (pressure,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4407usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "set_pressure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pressure(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4408usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "get_pressure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pen_inverted(&mut self, pen_inverted: bool,) { + type CallSig = ((), bool); + let args = (pen_inverted,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4409usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "set_pen_inverted", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pen_inverted(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4410usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "get_pen_inverted", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_position(&mut self, position: Vector2,) { + type CallSig = ((), Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4411usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "set_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4412usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_relative(&mut self, relative: Vector2,) { + type CallSig = ((), Vector2); + let args = (relative,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4413usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "set_relative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_relative(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4414usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "get_relative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_screen_relative(&mut self, relative: Vector2,) { + type CallSig = ((), Vector2); + let args = (relative,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4415usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "set_screen_relative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_screen_relative(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4416usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "get_screen_relative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_velocity(&mut self, velocity: Vector2,) { + type CallSig = ((), Vector2); + let args = (velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4417usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "set_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_velocity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4418usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "get_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_screen_velocity(&mut self, velocity: Vector2,) { + type CallSig = ((), Vector2); + let args = (velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4419usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "set_screen_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_screen_velocity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4420usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenDrag", "get_screen_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventScreenDrag { + type Base = crate::classes::InputEventFromWindow; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventScreenDrag")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventScreenDrag { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventFromWindow > for InputEventScreenDrag { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventScreenDrag { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventScreenDrag { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventScreenDrag { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventScreenDrag { + + } + impl crate::obj::cap::GodotDefault for InputEventScreenDrag { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventScreenDrag { + type Target = crate::classes::InputEventFromWindow; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventScreenDrag { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventScreenDrag`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventScreenDrag { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventScreenDrag > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventFromWindow > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_screen_touch.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_screen_touch.rs new file mode 100644 index 0000000..f93ff9e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_screen_touch.rs @@ -0,0 +1,278 @@ +#![doc = "Sidecar module for class [`InputEventScreenTouch`][crate::classes::InputEventScreenTouch].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventScreenTouch` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventscreentouch.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventScreenTouch.`\n\nInherits [`InputEventFromWindow`][crate::classes::InputEventFromWindow].\n\nRelated symbols:\n\n* [`IInputEventScreenTouch`][crate::classes::IInputEventScreenTouch]: virtual methods\n\n\nSee also [Godot docs for `InputEventScreenTouch`](https://docs.godotengine.org/en/stable/classes/class_inputeventscreentouch.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventScreenTouch::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventScreenTouch { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventScreenTouch`][crate::classes::InputEventScreenTouch].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventScreenTouch` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventscreentouch.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventScreenTouch: crate::obj::GodotClass < Base = InputEventScreenTouch > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventScreenTouch { + pub fn set_index(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4421usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenTouch", "set_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4422usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenTouch", "get_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_position(&mut self, position: Vector2,) { + type CallSig = ((), Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4423usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenTouch", "set_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4424usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenTouch", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pressed(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4425usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenTouch", "set_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_canceled(&mut self, canceled: bool,) { + type CallSig = ((), bool); + let args = (canceled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4426usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenTouch", "set_canceled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_double_tap(&mut self, double_tap: bool,) { + type CallSig = ((), bool); + let args = (double_tap,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4427usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenTouch", "set_double_tap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_double_tap(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4428usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventScreenTouch", "is_double_tap", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventScreenTouch { + type Base = crate::classes::InputEventFromWindow; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventScreenTouch")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventScreenTouch { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventFromWindow > for InputEventScreenTouch { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventScreenTouch { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventScreenTouch { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventScreenTouch { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventScreenTouch { + + } + impl crate::obj::cap::GodotDefault for InputEventScreenTouch { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventScreenTouch { + type Target = crate::classes::InputEventFromWindow; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventScreenTouch { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventScreenTouch`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventScreenTouch { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventScreenTouch > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventFromWindow > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_shortcut.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_shortcut.rs new file mode 100644 index 0000000..5f54e4e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_shortcut.rs @@ -0,0 +1,224 @@ +#![doc = "Sidecar module for class [`InputEventShortcut`][crate::classes::InputEventShortcut].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventShortcut` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventshortcut.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventShortcut.`\n\nInherits [`InputEvent`][crate::classes::InputEvent].\n\nRelated symbols:\n\n* [`IInputEventShortcut`][crate::classes::IInputEventShortcut]: virtual methods\n\n\nSee also [Godot docs for `InputEventShortcut`](https://docs.godotengine.org/en/stable/classes/class_inputeventshortcut.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`InputEventShortcut::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventShortcut { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventShortcut`][crate::classes::InputEventShortcut].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventShortcut` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventshortcut.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventShortcut: crate::obj::GodotClass < Base = InputEventShortcut > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventShortcut { + pub fn set_shortcut(&mut self, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) { + type CallSig = ((), ObjectArg < crate::classes::Shortcut >); + let args = (shortcut.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4429usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventShortcut", "set_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shortcut(&mut self,) -> Option < Gd < crate::classes::Shortcut > > { + type CallSig = (Option < Gd < crate::classes::Shortcut > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4430usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventShortcut", "get_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventShortcut { + type Base = crate::classes::InputEvent; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventShortcut")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventShortcut { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventShortcut { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventShortcut { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventShortcut { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventShortcut { + + } + impl crate::obj::cap::GodotDefault for InputEventShortcut { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for InputEventShortcut { + type Target = crate::classes::InputEvent; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventShortcut { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventShortcut`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventShortcut { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventShortcut > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_with_modifiers.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_with_modifiers.rs new file mode 100644 index 0000000..22210d9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_event_with_modifiers.rs @@ -0,0 +1,305 @@ +#![doc = "Sidecar module for class [`InputEventWithModifiers`][crate::classes::InputEventWithModifiers].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputEventWithModifiers` enums](https://docs.godotengine.org/en/stable/classes/class_inputeventwithmodifiers.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputEventWithModifiers.`\n\nInherits [`InputEventFromWindow`][crate::classes::InputEventFromWindow].\n\nRelated symbols:\n\n* [`IInputEventWithModifiers`][crate::classes::IInputEventWithModifiers]: virtual methods\n\n\nSee also [Godot docs for `InputEventWithModifiers`](https://docs.godotengine.org/en/stable/classes/class_inputeventwithmodifiers.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct InputEventWithModifiers { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputEventWithModifiers`][crate::classes::InputEventWithModifiers].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputEventWithModifiers` methods](https://docs.godotengine.org/en/stable/classes/class_inputeventwithmodifiers.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputEventWithModifiers: crate::obj::GodotClass < Base = InputEventWithModifiers > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl InputEventWithModifiers { + pub fn set_command_or_control_autoremap(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4431usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "set_command_or_control_autoremap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_command_or_control_autoremap(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4432usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "is_command_or_control_autoremap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_command_or_control_pressed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4433usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "is_command_or_control_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alt_pressed(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4434usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "set_alt_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_alt_pressed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4435usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "is_alt_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shift_pressed(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4436usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "set_shift_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_shift_pressed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4437usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "is_shift_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ctrl_pressed(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4438usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "set_ctrl_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_ctrl_pressed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4439usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "is_ctrl_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_meta_pressed(&mut self, pressed: bool,) { + type CallSig = ((), bool); + let args = (pressed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4440usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "set_meta_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_meta_pressed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4441usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "is_meta_pressed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_modifiers_mask(&self,) -> crate::global::KeyModifierMask { + type CallSig = (crate::global::KeyModifierMask,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4442usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputEventWithModifiers", "get_modifiers_mask", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputEventWithModifiers { + type Base = crate::classes::InputEventFromWindow; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputEventWithModifiers")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputEventWithModifiers { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEventFromWindow > for InputEventWithModifiers { + + } + unsafe impl crate::obj::Inherits < crate::classes::InputEvent > for InputEventWithModifiers { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for InputEventWithModifiers { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for InputEventWithModifiers { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputEventWithModifiers { + + } + impl std::ops::Deref for InputEventWithModifiers { + type Target = crate::classes::InputEventFromWindow; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputEventWithModifiers { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputEventWithModifiers`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputEventWithModifiers { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventWithModifiers > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEventFromWindow > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::InputEvent > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_map.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_map.rs new file mode 100644 index 0000000..6ccfffd --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/input_map.rs @@ -0,0 +1,367 @@ +#![doc = "Sidecar module for class [`InputMap`][crate::classes::InputMap].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InputMap` enums](https://docs.godotengine.org/en/stable/classes/class_inputmap.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InputMap.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`input_map`][crate::classes::input_map]: sidecar module with related enum/flag types\n* [`IInputMap`][crate::classes::IInputMap]: virtual methods\n\n\nSee also [Godot docs for `InputMap`](https://docs.godotengine.org/en/stable/classes/class_inputmap.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`InputMap::singleton()`][InputMap::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct InputMap { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InputMap`][crate::classes::InputMap].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InputMap` methods](https://docs.godotengine.org/en/stable/classes/class_inputmap.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInputMap: crate::obj::GodotClass < Base = InputMap > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl InputMap { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"InputMap"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn has_action(&self, action: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (action.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4443usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "has_action", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_actions(&mut self,) -> Array < StringName > { + type CallSig = (Array < StringName >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4444usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "get_actions", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_action_full(&mut self, action: CowArg < StringName >, deadzone: f32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, f32); + let args = (action, deadzone,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4445usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "add_action", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_action_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_action(&mut self, action: impl AsArg < StringName >,) { + self.add_action_ex(action,) . done() + } + #[inline] + pub fn add_action_ex < 'a > (&'a mut self, action: impl AsArg < StringName > + 'a,) -> ExAddAction < 'a > { + ExAddAction::new(self, action,) + } + pub fn erase_action(&mut self, action: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (action.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4446usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "erase_action", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn action_set_deadzone(&mut self, action: impl AsArg < StringName >, deadzone: f32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, f32); + let args = (action.into_arg(), deadzone,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4447usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "action_set_deadzone", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn action_get_deadzone(&mut self, action: impl AsArg < StringName >,) -> f32 { + type CallSig < 'a0, > = (f32, CowArg < 'a0, StringName >); + let args = (action.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4448usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "action_get_deadzone", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn action_add_event(&mut self, action: impl AsArg < StringName >, event: impl AsObjectArg < crate::classes::InputEvent >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, ObjectArg < crate::classes::InputEvent >); + let args = (action.into_arg(), event.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4449usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "action_add_event", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn action_has_event(&mut self, action: impl AsArg < StringName >, event: impl AsObjectArg < crate::classes::InputEvent >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >, ObjectArg < crate::classes::InputEvent >); + let args = (action.into_arg(), event.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4450usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "action_has_event", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn action_erase_event(&mut self, action: impl AsArg < StringName >, event: impl AsObjectArg < crate::classes::InputEvent >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, ObjectArg < crate::classes::InputEvent >); + let args = (action.into_arg(), event.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4451usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "action_erase_event", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn action_erase_events(&mut self, action: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (action.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4452usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "action_erase_events", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn action_get_events(&mut self, action: impl AsArg < StringName >,) -> Array < Gd < crate::classes::InputEvent > > { + type CallSig < 'a0, > = (Array < Gd < crate::classes::InputEvent > >, CowArg < 'a0, StringName >); + let args = (action.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4453usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "action_get_events", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn event_is_action_full(&self, event: ObjectArg < crate::classes::InputEvent >, action: CowArg < StringName >, exact_match: bool,) -> bool { + type CallSig < 'a0, > = (bool, ObjectArg < crate::classes::InputEvent >, CowArg < 'a0, StringName >, bool); + let args = (event, action, exact_match,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4454usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "event_is_action", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::event_is_action_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn event_is_action(&self, event: impl AsObjectArg < crate::classes::InputEvent >, action: impl AsArg < StringName >,) -> bool { + self.event_is_action_ex(event, action,) . done() + } + #[inline] + pub fn event_is_action_ex < 'a > (&'a self, event: impl AsObjectArg < crate::classes::InputEvent >, action: impl AsArg < StringName > + 'a,) -> ExEventIsAction < 'a > { + ExEventIsAction::new(self, event, action,) + } + pub fn load_from_project_settings(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4455usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InputMap", "load_from_project_settings", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InputMap { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InputMap")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InputMap { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InputMap { + + } + impl std::ops::Deref for InputMap { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InputMap { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InputMap`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InputMap { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InputMap > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`InputMap::add_action_ex`][super::InputMap::add_action_ex]."] +#[must_use] +pub struct ExAddAction < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::InputMap, action: CowArg < 'a, StringName >, deadzone: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddAction < 'a > { + fn new(surround_object: &'a mut re_export::InputMap, action: impl AsArg < StringName > + 'a,) -> Self { + let deadzone = 0.5f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: action.into_arg(), deadzone: deadzone, + } + } + #[inline] + pub fn deadzone(self, deadzone: f32) -> Self { + Self { + deadzone: deadzone, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, action, deadzone, + } + = self; + re_export::InputMap::add_action_full(surround_object, action, deadzone,) + } +} +#[doc = "Default-param extender for [`InputMap::event_is_action_ex`][super::InputMap::event_is_action_ex]."] +#[must_use] +pub struct ExEventIsAction < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::InputMap, event: ObjectCow < crate::classes::InputEvent >, action: CowArg < 'a, StringName >, exact_match: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExEventIsAction < 'a > { + fn new(surround_object: &'a re_export::InputMap, event: impl AsObjectArg < crate::classes::InputEvent >, action: impl AsArg < StringName > + 'a,) -> Self { + let exact_match = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, event: event.consume_arg(), action: action.into_arg(), exact_match: exact_match, + } + } + #[inline] + pub fn exact_match(self, exact_match: bool) -> Self { + Self { + exact_match: exact_match, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, event, action, exact_match, + } + = self; + re_export::InputMap::event_is_action_full(surround_object, event.cow_as_object_arg(), action, exact_match,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/instance_placeholder.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/instance_placeholder.rs new file mode 100644 index 0000000..7e60a1a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/instance_placeholder.rs @@ -0,0 +1,323 @@ +#![doc = "Sidecar module for class [`InstancePlaceholder`][crate::classes::InstancePlaceholder].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `InstancePlaceholder` enums](https://docs.godotengine.org/en/stable/classes/class_instanceplaceholder.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `InstancePlaceholder.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`instance_placeholder`][crate::classes::instance_placeholder]: sidecar module with related enum/flag types\n* [`IInstancePlaceholder`][crate::classes::IInstancePlaceholder]: virtual methods\n\n\nSee also [Godot docs for `InstancePlaceholder`](https://docs.godotengine.org/en/stable/classes/class_instanceplaceholder.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct InstancePlaceholder { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`InstancePlaceholder`][crate::classes::InstancePlaceholder].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `InstancePlaceholder` methods](https://docs.godotengine.org/en/stable/classes/class_instanceplaceholder.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IInstancePlaceholder: crate::obj::GodotClass < Base = InstancePlaceholder > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl InstancePlaceholder { + pub(crate) fn get_stored_values_full(&mut self, with_order: bool,) -> Dictionary { + type CallSig = (Dictionary, bool); + let args = (with_order,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4456usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InstancePlaceholder", "get_stored_values", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_stored_values_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_stored_values(&mut self,) -> Dictionary { + self.get_stored_values_ex() . done() + } + #[inline] + pub fn get_stored_values_ex < 'a > (&'a mut self,) -> ExGetStoredValues < 'a > { + ExGetStoredValues::new(self,) + } + pub(crate) fn create_instance_full(&mut self, replace: bool, custom_scene: ObjectArg < crate::classes::PackedScene >,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >, bool, ObjectArg < crate::classes::PackedScene >); + let args = (replace, custom_scene,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4457usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InstancePlaceholder", "create_instance", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_instance_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_instance(&mut self,) -> Option < Gd < crate::classes::Node > > { + self.create_instance_ex() . done() + } + #[inline] + pub fn create_instance_ex < 'a > (&'a mut self,) -> ExCreateInstance < 'a > { + ExCreateInstance::new(self,) + } + pub fn get_instance_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4458usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "InstancePlaceholder", "get_instance_path", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for InstancePlaceholder { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"InstancePlaceholder")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for InstancePlaceholder { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for InstancePlaceholder { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for InstancePlaceholder { + + } + impl std::ops::Deref for InstancePlaceholder { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for InstancePlaceholder { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`InstancePlaceholder`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_InstancePlaceholder { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::InstancePlaceholder > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`InstancePlaceholder::get_stored_values_ex`][super::InstancePlaceholder::get_stored_values_ex]."] +#[must_use] +pub struct ExGetStoredValues < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::InstancePlaceholder, with_order: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetStoredValues < 'a > { + fn new(surround_object: &'a mut re_export::InstancePlaceholder,) -> Self { + let with_order = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, with_order: with_order, + } + } + #[inline] + pub fn with_order(self, with_order: bool) -> Self { + Self { + with_order: with_order, .. self + } + } + #[inline] + pub fn done(self) -> Dictionary { + let Self { + _phantom, surround_object, with_order, + } + = self; + re_export::InstancePlaceholder::get_stored_values_full(surround_object, with_order,) + } +} +#[doc = "Default-param extender for [`InstancePlaceholder::create_instance_ex`][super::InstancePlaceholder::create_instance_ex]."] +#[must_use] +pub struct ExCreateInstance < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::InstancePlaceholder, replace: bool, custom_scene: ObjectCow < crate::classes::PackedScene >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateInstance < 'a > { + fn new(surround_object: &'a mut re_export::InstancePlaceholder,) -> Self { + let replace = false; + let custom_scene = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, replace: replace, custom_scene: custom_scene.consume_arg(), + } + } + #[inline] + pub fn replace(self, replace: bool) -> Self { + Self { + replace: replace, .. self + } + } + #[inline] + pub fn custom_scene(self, custom_scene: impl AsObjectArg < crate::classes::PackedScene >) -> Self { + Self { + custom_scene: custom_scene.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Node > > { + let Self { + _phantom, surround_object, replace, custom_scene, + } + = self; + re_export::InstancePlaceholder::create_instance_full(surround_object, replace, custom_scene.cow_as_object_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/interval_tweener.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/interval_tweener.rs new file mode 100644 index 0000000..bf5acd0 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/interval_tweener.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`IntervalTweener`][crate::classes::IntervalTweener].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `IntervalTweener` enums](https://docs.godotengine.org/en/stable/classes/class_intervaltweener.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `IntervalTweener.`\n\nInherits [`Tweener`][crate::classes::Tweener].\n\nRelated symbols:\n\n* [`IIntervalTweener`][crate::classes::IIntervalTweener]: virtual methods\n\n\nSee also [Godot docs for `IntervalTweener`](https://docs.godotengine.org/en/stable/classes/class_intervaltweener.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`IntervalTweener::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct IntervalTweener { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`IntervalTweener`][crate::classes::IntervalTweener].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `IntervalTweener` methods](https://docs.godotengine.org/en/stable/classes/class_intervaltweener.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IIntervalTweener: crate::obj::GodotClass < Base = IntervalTweener > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl IntervalTweener { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for IntervalTweener { + type Base = crate::classes::Tweener; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"IntervalTweener")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for IntervalTweener { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Tweener > for IntervalTweener { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for IntervalTweener { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for IntervalTweener { + + } + impl crate::obj::cap::GodotDefault for IntervalTweener { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for IntervalTweener { + type Target = crate::classes::Tweener; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for IntervalTweener { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`IntervalTweener`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_IntervalTweener { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::IntervalTweener > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Tweener > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ip.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ip.rs new file mode 100644 index 0000000..4a3869b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ip.rs @@ -0,0 +1,580 @@ +#![doc = "Sidecar module for class [`Ip`][crate::classes::Ip].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `IP` enums](https://docs.godotengine.org/en/stable/classes/class_ip.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `IP.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`ip`][crate::classes::ip]: sidecar module with related enum/flag types\n* [`IIp`][crate::classes::IIp]: virtual methods\n\n\nSee also [Godot docs for `IP`](https://docs.godotengine.org/en/stable/classes/class_ip.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`Ip::singleton()`][Ip::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct Ip { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Ip`][crate::classes::Ip].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `IP` methods](https://docs.godotengine.org/en/stable/classes/class_ip.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IIp: crate::obj::GodotClass < Base = Ip > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Ip { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"IP"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub(crate) fn resolve_hostname_full(&mut self, host: CowArg < GString >, ip_type: crate::classes::ip::Type,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >, crate::classes::ip::Type); + let args = (host, ip_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4102usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Ip", "resolve_hostname", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::resolve_hostname_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn resolve_hostname(&mut self, host: impl AsArg < GString >,) -> GString { + self.resolve_hostname_ex(host,) . done() + } + #[inline] + pub fn resolve_hostname_ex < 'a > (&'a mut self, host: impl AsArg < GString > + 'a,) -> ExResolveHostname < 'a > { + ExResolveHostname::new(self, host,) + } + pub(crate) fn resolve_hostname_addresses_full(&mut self, host: CowArg < GString >, ip_type: crate::classes::ip::Type,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >, crate::classes::ip::Type); + let args = (host, ip_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4103usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Ip", "resolve_hostname_addresses", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::resolve_hostname_addresses_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn resolve_hostname_addresses(&mut self, host: impl AsArg < GString >,) -> PackedStringArray { + self.resolve_hostname_addresses_ex(host,) . done() + } + #[inline] + pub fn resolve_hostname_addresses_ex < 'a > (&'a mut self, host: impl AsArg < GString > + 'a,) -> ExResolveHostnameAddresses < 'a > { + ExResolveHostnameAddresses::new(self, host,) + } + pub(crate) fn resolve_hostname_queue_item_full(&mut self, host: CowArg < GString >, ip_type: crate::classes::ip::Type,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >, crate::classes::ip::Type); + let args = (host, ip_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4104usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Ip", "resolve_hostname_queue_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::resolve_hostname_queue_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn resolve_hostname_queue_item(&mut self, host: impl AsArg < GString >,) -> i32 { + self.resolve_hostname_queue_item_ex(host,) . done() + } + #[inline] + pub fn resolve_hostname_queue_item_ex < 'a > (&'a mut self, host: impl AsArg < GString > + 'a,) -> ExResolveHostnameQueueItem < 'a > { + ExResolveHostnameQueueItem::new(self, host,) + } + pub fn get_resolve_item_status(&self, id: i32,) -> crate::classes::ip::ResolverStatus { + type CallSig = (crate::classes::ip::ResolverStatus, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4105usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Ip", "get_resolve_item_status", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_resolve_item_address(&self, id: i32,) -> GString { + type CallSig = (GString, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4106usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Ip", "get_resolve_item_address", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_resolve_item_addresses(&self, id: i32,) -> VariantArray { + type CallSig = (VariantArray, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4107usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Ip", "get_resolve_item_addresses", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn erase_resolve_item(&mut self, id: i32,) { + type CallSig = ((), i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4108usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Ip", "erase_resolve_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_local_addresses(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4109usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Ip", "get_local_addresses", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_local_interfaces(&self,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4110usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Ip", "get_local_interfaces", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn clear_cache_full(&mut self, hostname: CowArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (hostname,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4111usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Ip", "clear_cache", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::clear_cache_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn clear_cache(&mut self,) { + self.clear_cache_ex() . done() + } + #[inline] + pub fn clear_cache_ex < 'a > (&'a mut self,) -> ExClearCache < 'a > { + ExClearCache::new(self,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const RESOLVER_MAX_QUERIES: i32 = 256i32; + pub const RESOLVER_INVALID_ID: i32 = - 1i32; + + } + impl crate::obj::GodotClass for Ip { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"IP")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Ip { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Ip { + + } + impl std::ops::Deref for Ip { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Ip { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Ip`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Ip { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Ip > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Ip::resolve_hostname_ex`][super::Ip::resolve_hostname_ex]."] +#[must_use] +pub struct ExResolveHostname < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Ip, host: CowArg < 'a, GString >, ip_type: crate::classes::ip::Type, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExResolveHostname < 'a > { + fn new(surround_object: &'a mut re_export::Ip, host: impl AsArg < GString > + 'a,) -> Self { + let ip_type = crate::obj::EngineEnum::from_ord(3); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, host: host.into_arg(), ip_type: ip_type, + } + } + #[inline] + pub fn ip_type(self, ip_type: crate::classes::ip::Type) -> Self { + Self { + ip_type: ip_type, .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, host, ip_type, + } + = self; + re_export::Ip::resolve_hostname_full(surround_object, host, ip_type,) + } +} +#[doc = "Default-param extender for [`Ip::resolve_hostname_addresses_ex`][super::Ip::resolve_hostname_addresses_ex]."] +#[must_use] +pub struct ExResolveHostnameAddresses < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Ip, host: CowArg < 'a, GString >, ip_type: crate::classes::ip::Type, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExResolveHostnameAddresses < 'a > { + fn new(surround_object: &'a mut re_export::Ip, host: impl AsArg < GString > + 'a,) -> Self { + let ip_type = crate::obj::EngineEnum::from_ord(3); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, host: host.into_arg(), ip_type: ip_type, + } + } + #[inline] + pub fn ip_type(self, ip_type: crate::classes::ip::Type) -> Self { + Self { + ip_type: ip_type, .. self + } + } + #[inline] + pub fn done(self) -> PackedStringArray { + let Self { + _phantom, surround_object, host, ip_type, + } + = self; + re_export::Ip::resolve_hostname_addresses_full(surround_object, host, ip_type,) + } +} +#[doc = "Default-param extender for [`Ip::resolve_hostname_queue_item_ex`][super::Ip::resolve_hostname_queue_item_ex]."] +#[must_use] +pub struct ExResolveHostnameQueueItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Ip, host: CowArg < 'a, GString >, ip_type: crate::classes::ip::Type, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExResolveHostnameQueueItem < 'a > { + fn new(surround_object: &'a mut re_export::Ip, host: impl AsArg < GString > + 'a,) -> Self { + let ip_type = crate::obj::EngineEnum::from_ord(3); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, host: host.into_arg(), ip_type: ip_type, + } + } + #[inline] + pub fn ip_type(self, ip_type: crate::classes::ip::Type) -> Self { + Self { + ip_type: ip_type, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, host, ip_type, + } + = self; + re_export::Ip::resolve_hostname_queue_item_full(surround_object, host, ip_type,) + } +} +#[doc = "Default-param extender for [`Ip::clear_cache_ex`][super::Ip::clear_cache_ex]."] +#[must_use] +pub struct ExClearCache < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Ip, hostname: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClearCache < 'a > { + fn new(surround_object: &'a mut re_export::Ip,) -> Self { + let hostname = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, hostname: CowArg::Owned(hostname), + } + } + #[inline] + pub fn hostname(self, hostname: impl AsArg < GString > + 'a) -> Self { + Self { + hostname: hostname.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, hostname, + } + = self; + re_export::Ip::clear_cache_full(surround_object, hostname,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ResolverStatus { + ord: i32 +} +impl ResolverStatus { + #[doc(alias = "RESOLVER_STATUS_NONE")] + #[doc = "Godot enumerator name: `RESOLVER_STATUS_NONE`"] + pub const NONE: ResolverStatus = ResolverStatus { + ord: 0i32 + }; + #[doc(alias = "RESOLVER_STATUS_WAITING")] + #[doc = "Godot enumerator name: `RESOLVER_STATUS_WAITING`"] + pub const WAITING: ResolverStatus = ResolverStatus { + ord: 1i32 + }; + #[doc(alias = "RESOLVER_STATUS_DONE")] + #[doc = "Godot enumerator name: `RESOLVER_STATUS_DONE`"] + pub const DONE: ResolverStatus = ResolverStatus { + ord: 2i32 + }; + #[doc(alias = "RESOLVER_STATUS_ERROR")] + #[doc = "Godot enumerator name: `RESOLVER_STATUS_ERROR`"] + pub const ERROR: ResolverStatus = ResolverStatus { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ResolverStatus { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ResolverStatus") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ResolverStatus { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::WAITING => "WAITING", Self::DONE => "DONE", Self::ERROR => "ERROR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "RESOLVER_STATUS_NONE", Self::WAITING => "RESOLVER_STATUS_WAITING", Self::DONE => "RESOLVER_STATUS_DONE", Self::ERROR => "RESOLVER_STATUS_ERROR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ResolverStatus { + type Via = i32; + +} +impl crate::meta::ToGodot for ResolverStatus { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ResolverStatus { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Type { + ord: i32 +} +impl Type { + #[doc(alias = "TYPE_NONE")] + #[doc = "Godot enumerator name: `TYPE_NONE`"] + pub const NONE: Type = Type { + ord: 0i32 + }; + #[doc(alias = "TYPE_IPV4")] + #[doc = "Godot enumerator name: `TYPE_IPV4`"] + pub const IPV4: Type = Type { + ord: 1i32 + }; + #[doc(alias = "TYPE_IPV6")] + #[doc = "Godot enumerator name: `TYPE_IPV6`"] + pub const IPV6: Type = Type { + ord: 2i32 + }; + #[doc(alias = "TYPE_ANY")] + #[doc = "Godot enumerator name: `TYPE_ANY`"] + pub const ANY: Type = Type { + ord: 3i32 + }; + +} +impl std::fmt::Debug for Type { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Type") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Type { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::IPV4 => "IPV4", Self::IPV6 => "IPV6", Self::ANY => "ANY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "TYPE_NONE", Self::IPV4 => "TYPE_IPV4", Self::IPV6 => "TYPE_IPV6", Self::ANY => "TYPE_ANY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Type { + type Via = i32; + +} +impl crate::meta::ToGodot for Type { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Type { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/item_list.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/item_list.rs new file mode 100644 index 0000000..af9608f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/item_list.rs @@ -0,0 +1,1181 @@ +#![doc = "Sidecar module for class [`ItemList`][crate::classes::ItemList].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ItemList` enums](https://docs.godotengine.org/en/stable/classes/class_itemlist.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ItemList.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`item_list`][crate::classes::item_list]: sidecar module with related enum/flag types\n* [`IItemList`][crate::classes::IItemList]: virtual methods\n\n\nSee also [Godot docs for `ItemList`](https://docs.godotengine.org/en/stable/classes/class_itemlist.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ItemList::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ItemList { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ItemList`][crate::classes::ItemList].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ItemList` methods](https://docs.godotengine.org/en/stable/classes/class_itemlist.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IItemList: crate::obj::GodotClass < Base = ItemList > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ItemList { + pub(crate) fn add_item_full(&mut self, text: CowArg < GString >, icon: ObjectArg < crate::classes::Texture2D >, selectable: bool,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >, ObjectArg < crate::classes::Texture2D >, bool); + let args = (text, icon, selectable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4459usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "add_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_item(&mut self, text: impl AsArg < GString >,) -> i32 { + self.add_item_ex(text,) . done() + } + #[inline] + pub fn add_item_ex < 'a > (&'a mut self, text: impl AsArg < GString > + 'a,) -> ExAddItem < 'a > { + ExAddItem::new(self, text,) + } + pub(crate) fn add_icon_item_full(&mut self, icon: ObjectArg < crate::classes::Texture2D >, selectable: bool,) -> i32 { + type CallSig = (i32, ObjectArg < crate::classes::Texture2D >, bool); + let args = (icon, selectable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4460usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "add_icon_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_icon_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_icon_item(&mut self, icon: impl AsObjectArg < crate::classes::Texture2D >,) -> i32 { + self.add_icon_item_ex(icon,) . done() + } + #[inline] + pub fn add_icon_item_ex < 'a > (&'a mut self, icon: impl AsObjectArg < crate::classes::Texture2D >,) -> ExAddIconItem < 'a > { + ExAddIconItem::new(self, icon,) + } + pub fn set_item_text(&mut self, idx: i32, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (idx, text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4461usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_text(&self, idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4462usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_icon(&mut self, idx: i32, icon: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Texture2D >); + let args = (idx, icon.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4463usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_icon(&self, idx: i32,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4464usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_text_direction(&mut self, idx: i32, direction: crate::classes::control::TextDirection,) { + type CallSig = ((), i32, crate::classes::control::TextDirection); + let args = (idx, direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4465usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_text_direction(&self, idx: i32,) -> crate::classes::control::TextDirection { + type CallSig = (crate::classes::control::TextDirection, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4466usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_language(&mut self, idx: i32, language: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (idx, language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4467usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_language(&self, idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4468usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_icon_transposed(&mut self, idx: i32, transposed: bool,) { + type CallSig = ((), i32, bool); + let args = (idx, transposed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4469usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_icon_transposed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_icon_transposed(&self, idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4470usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "is_item_icon_transposed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_icon_region(&mut self, idx: i32, rect: Rect2,) { + type CallSig = ((), i32, Rect2); + let args = (idx, rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4471usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_icon_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_icon_region(&self, idx: i32,) -> Rect2 { + type CallSig = (Rect2, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4472usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_icon_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_icon_modulate(&mut self, idx: i32, modulate: Color,) { + type CallSig = ((), i32, Color); + let args = (idx, modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4473usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_icon_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_icon_modulate(&self, idx: i32,) -> Color { + type CallSig = (Color, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4474usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_icon_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_selectable(&mut self, idx: i32, selectable: bool,) { + type CallSig = ((), i32, bool); + let args = (idx, selectable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4475usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_selectable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_selectable(&self, idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4476usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "is_item_selectable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_disabled(&mut self, idx: i32, disabled: bool,) { + type CallSig = ((), i32, bool); + let args = (idx, disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4477usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_disabled(&self, idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4478usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "is_item_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_metadata(&mut self, idx: i32, metadata: &Variant,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, Variant >); + let args = (idx, RefArg::new(metadata),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4479usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_metadata", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_metadata(&self, idx: i32,) -> Variant { + type CallSig = (Variant, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4480usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_metadata", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_custom_bg_color(&mut self, idx: i32, custom_bg_color: Color,) { + type CallSig = ((), i32, Color); + let args = (idx, custom_bg_color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4481usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_custom_bg_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_custom_bg_color(&self, idx: i32,) -> Color { + type CallSig = (Color, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4482usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_custom_bg_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_custom_fg_color(&mut self, idx: i32, custom_fg_color: Color,) { + type CallSig = ((), i32, Color); + let args = (idx, custom_fg_color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4483usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_custom_fg_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_custom_fg_color(&self, idx: i32,) -> Color { + type CallSig = (Color, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4484usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_custom_fg_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_item_rect_full(&self, idx: i32, expand: bool,) -> Rect2 { + type CallSig = (Rect2, i32, bool); + let args = (idx, expand,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4485usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_rect", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_item_rect_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_item_rect(&self, idx: i32,) -> Rect2 { + self.get_item_rect_ex(idx,) . done() + } + #[inline] + pub fn get_item_rect_ex < 'a > (&'a self, idx: i32,) -> ExGetItemRect < 'a > { + ExGetItemRect::new(self, idx,) + } + pub fn set_item_tooltip_enabled(&mut self, idx: i32, enable: bool,) { + type CallSig = ((), i32, bool); + let args = (idx, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4486usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_tooltip_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_tooltip_enabled(&self, idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4487usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "is_item_tooltip_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_tooltip(&mut self, idx: i32, tooltip: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (idx, tooltip.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4488usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_tooltip(&self, idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4489usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn select_full(&mut self, idx: i32, single: bool,) { + type CallSig = ((), i32, bool); + let args = (idx, single,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4490usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "select", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::select_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn select(&mut self, idx: i32,) { + self.select_ex(idx,) . done() + } + #[inline] + pub fn select_ex < 'a > (&'a mut self, idx: i32,) -> ExSelect < 'a > { + ExSelect::new(self, idx,) + } + pub fn deselect(&mut self, idx: i32,) { + type CallSig = ((), i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4491usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "deselect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn deselect_all(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4492usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "deselect_all", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_selected(&self, idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4493usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "is_selected", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selected_items(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4494usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_selected_items", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn move_item(&mut self, from_idx: i32, to_idx: i32,) { + type CallSig = ((), i32, i32); + let args = (from_idx, to_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4495usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "move_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4496usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_item_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4497usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_item(&mut self, idx: i32,) { + type CallSig = ((), i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4498usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "remove_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4499usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sort_items_by_text(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4500usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "sort_items_by_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fixed_column_width(&mut self, width: i32,) { + type CallSig = ((), i32); + let args = (width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4501usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_fixed_column_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fixed_column_width(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4502usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_fixed_column_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_same_column_width(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4503usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_same_column_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_same_column_width(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4504usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "is_same_column_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_text_lines(&mut self, lines: i32,) { + type CallSig = ((), i32); + let args = (lines,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4505usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_max_text_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_text_lines(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4506usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_max_text_lines", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_columns(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4507usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_max_columns", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_columns(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4508usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_max_columns", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_select_mode(&mut self, mode: crate::classes::item_list::SelectMode,) { + type CallSig = ((), crate::classes::item_list::SelectMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4509usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_select_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_select_mode(&self,) -> crate::classes::item_list::SelectMode { + type CallSig = (crate::classes::item_list::SelectMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4510usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_select_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_icon_mode(&mut self, mode: crate::classes::item_list::IconMode,) { + type CallSig = ((), crate::classes::item_list::IconMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4511usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_icon_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_icon_mode(&self,) -> crate::classes::item_list::IconMode { + type CallSig = (crate::classes::item_list::IconMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4512usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_icon_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fixed_icon_size(&mut self, size: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4513usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_fixed_icon_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fixed_icon_size(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4514usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_fixed_icon_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_icon_scale(&mut self, scale: f32,) { + type CallSig = ((), f32); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4515usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_icon_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_icon_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4516usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_icon_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_rmb_select(&mut self, allow: bool,) { + type CallSig = ((), bool); + let args = (allow,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4517usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_allow_rmb_select", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_allow_rmb_select(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4518usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_allow_rmb_select", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_reselect(&mut self, allow: bool,) { + type CallSig = ((), bool); + let args = (allow,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4519usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_allow_reselect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_allow_reselect(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4520usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_allow_reselect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_search(&mut self, allow: bool,) { + type CallSig = ((), bool); + let args = (allow,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4521usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_allow_search", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_allow_search(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4522usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_allow_search", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_height(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4523usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_auto_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_auto_height(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4524usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "has_auto_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_anything_selected(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4525usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "is_anything_selected", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_item_at_position_full(&self, position: Vector2, exact: bool,) -> i32 { + type CallSig = (i32, Vector2, bool); + let args = (position, exact,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4526usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_item_at_position", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_item_at_position_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_item_at_position(&self, position: Vector2,) -> i32 { + self.get_item_at_position_ex(position,) . done() + } + #[inline] + pub fn get_item_at_position_ex < 'a > (&'a self, position: Vector2,) -> ExGetItemAtPosition < 'a > { + ExGetItemAtPosition::new(self, position,) + } + pub fn ensure_current_is_visible(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4527usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "ensure_current_is_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_v_scroll_bar(&mut self,) -> Option < Gd < crate::classes::VScrollBar > > { + type CallSig = (Option < Gd < crate::classes::VScrollBar > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4528usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_v_scroll_bar", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text_overrun_behavior(&mut self, overrun_behavior: crate::classes::text_server::OverrunBehavior,) { + type CallSig = ((), crate::classes::text_server::OverrunBehavior); + let args = (overrun_behavior,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4529usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "set_text_overrun_behavior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_overrun_behavior(&self,) -> crate::classes::text_server::OverrunBehavior { + type CallSig = (crate::classes::text_server::OverrunBehavior,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4530usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "get_text_overrun_behavior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_update_list_size(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4531usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ItemList", "force_update_list_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ItemList { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ItemList")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ItemList { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for ItemList { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for ItemList { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ItemList { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ItemList { + + } + impl crate::obj::cap::GodotDefault for ItemList { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ItemList { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ItemList { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ItemList`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ItemList { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ItemList > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ItemList::add_item_ex`][super::ItemList::add_item_ex]."] +#[must_use] +pub struct ExAddItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ItemList, text: CowArg < 'a, GString >, icon: ObjectCow < crate::classes::Texture2D >, selectable: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddItem < 'a > { + fn new(surround_object: &'a mut re_export::ItemList, text: impl AsArg < GString > + 'a,) -> Self { + let icon = Gd::null_arg(); + let selectable = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, text: text.into_arg(), icon: icon.consume_arg(), selectable: selectable, + } + } + #[inline] + pub fn icon(self, icon: impl AsObjectArg < crate::classes::Texture2D >) -> Self { + Self { + icon: icon.consume_arg(), .. self + } + } + #[inline] + pub fn selectable(self, selectable: bool) -> Self { + Self { + selectable: selectable, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, text, icon, selectable, + } + = self; + re_export::ItemList::add_item_full(surround_object, text, icon.cow_as_object_arg(), selectable,) + } +} +#[doc = "Default-param extender for [`ItemList::add_icon_item_ex`][super::ItemList::add_icon_item_ex]."] +#[must_use] +pub struct ExAddIconItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ItemList, icon: ObjectCow < crate::classes::Texture2D >, selectable: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddIconItem < 'a > { + fn new(surround_object: &'a mut re_export::ItemList, icon: impl AsObjectArg < crate::classes::Texture2D >,) -> Self { + let selectable = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, icon: icon.consume_arg(), selectable: selectable, + } + } + #[inline] + pub fn selectable(self, selectable: bool) -> Self { + Self { + selectable: selectable, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, icon, selectable, + } + = self; + re_export::ItemList::add_icon_item_full(surround_object, icon.cow_as_object_arg(), selectable,) + } +} +#[doc = "Default-param extender for [`ItemList::get_item_rect_ex`][super::ItemList::get_item_rect_ex]."] +#[must_use] +pub struct ExGetItemRect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ItemList, idx: i32, expand: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetItemRect < 'a > { + fn new(surround_object: &'a re_export::ItemList, idx: i32,) -> Self { + let expand = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, idx: idx, expand: expand, + } + } + #[inline] + pub fn expand(self, expand: bool) -> Self { + Self { + expand: expand, .. self + } + } + #[inline] + pub fn done(self) -> Rect2 { + let Self { + _phantom, surround_object, idx, expand, + } + = self; + re_export::ItemList::get_item_rect_full(surround_object, idx, expand,) + } +} +#[doc = "Default-param extender for [`ItemList::select_ex`][super::ItemList::select_ex]."] +#[must_use] +pub struct ExSelect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ItemList, idx: i32, single: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSelect < 'a > { + fn new(surround_object: &'a mut re_export::ItemList, idx: i32,) -> Self { + let single = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, idx: idx, single: single, + } + } + #[inline] + pub fn single(self, single: bool) -> Self { + Self { + single: single, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, idx, single, + } + = self; + re_export::ItemList::select_full(surround_object, idx, single,) + } +} +#[doc = "Default-param extender for [`ItemList::get_item_at_position_ex`][super::ItemList::get_item_at_position_ex]."] +#[must_use] +pub struct ExGetItemAtPosition < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ItemList, position: Vector2, exact: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetItemAtPosition < 'a > { + fn new(surround_object: &'a re_export::ItemList, position: Vector2,) -> Self { + let exact = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, exact: exact, + } + } + #[inline] + pub fn exact(self, exact: bool) -> Self { + Self { + exact: exact, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, position, exact, + } + = self; + re_export::ItemList::get_item_at_position_full(surround_object, position, exact,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct IconMode { + ord: i32 +} +impl IconMode { + #[doc(alias = "ICON_MODE_TOP")] + #[doc = "Godot enumerator name: `ICON_MODE_TOP`"] + pub const TOP: IconMode = IconMode { + ord: 0i32 + }; + #[doc(alias = "ICON_MODE_LEFT")] + #[doc = "Godot enumerator name: `ICON_MODE_LEFT`"] + pub const LEFT: IconMode = IconMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for IconMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("IconMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for IconMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOP => "TOP", Self::LEFT => "LEFT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOP => "ICON_MODE_TOP", Self::LEFT => "ICON_MODE_LEFT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for IconMode { + type Via = i32; + +} +impl crate::meta::ToGodot for IconMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for IconMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SelectMode { + ord: i32 +} +impl SelectMode { + #[doc(alias = "SELECT_SINGLE")] + #[doc = "Godot enumerator name: `SELECT_SINGLE`"] + pub const SINGLE: SelectMode = SelectMode { + ord: 0i32 + }; + #[doc(alias = "SELECT_MULTI")] + #[doc = "Godot enumerator name: `SELECT_MULTI`"] + pub const MULTI: SelectMode = SelectMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for SelectMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SelectMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SelectMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SINGLE => "SINGLE", Self::MULTI => "MULTI", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SINGLE => "SELECT_SINGLE", Self::MULTI => "SELECT_MULTI", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SelectMode { + type Via = i32; + +} +impl crate::meta::ToGodot for SelectMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SelectMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/joint_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/joint_2d.rs new file mode 100644 index 0000000..37d9e8c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/joint_2d.rs @@ -0,0 +1,305 @@ +#![doc = "Sidecar module for class [`Joint2D`][crate::classes::Joint2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Joint2D` enums](https://docs.godotengine.org/en/stable/classes/class_joint2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Joint2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IJoint2D`][crate::classes::IJoint2D]: virtual methods\n\n\nSee also [Godot docs for `Joint2D`](https://docs.godotengine.org/en/stable/classes/class_joint2d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct Joint2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Joint2D`][crate::classes::Joint2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Joint2D` methods](https://docs.godotengine.org/en/stable/classes/class_joint2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IJoint2D: crate::obj::GodotClass < Base = Joint2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Joint2D { + pub fn set_node_a(&mut self, node: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (node.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4547usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint2D", "set_node_a", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_a(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4548usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint2D", "get_node_a", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_node_b(&mut self, node: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (node.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4549usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint2D", "set_node_b", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_b(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4550usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint2D", "get_node_b", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bias(&mut self, bias: f32,) { + type CallSig = ((), f32); + let args = (bias,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4551usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint2D", "set_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bias(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4552usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint2D", "get_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude_nodes_from_collision(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4553usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint2D", "set_exclude_nodes_from_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude_nodes_from_collision(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4554usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint2D", "get_exclude_nodes_from_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4555usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint2D", "get_rid", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Joint2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Joint2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Joint2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for Joint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Joint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Joint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Joint2D { + + } + impl std::ops::Deref for Joint2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Joint2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Joint2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Joint2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Joint2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/joint_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/joint_3d.rs new file mode 100644 index 0000000..4120aaf --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/joint_3d.rs @@ -0,0 +1,296 @@ +#![doc = "Sidecar module for class [`Joint3D`][crate::classes::Joint3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Joint3D` enums](https://docs.godotengine.org/en/stable/classes/class_joint3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Joint3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`IJoint3D`][crate::classes::IJoint3D]: virtual methods\n\n\nSee also [Godot docs for `Joint3D`](https://docs.godotengine.org/en/stable/classes/class_joint3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct Joint3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Joint3D`][crate::classes::Joint3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Joint3D` methods](https://docs.godotengine.org/en/stable/classes/class_joint3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IJoint3D: crate::obj::GodotClass < Base = Joint3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Joint3D { + pub fn set_node_a(&mut self, node: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (node.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4556usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint3D", "set_node_a", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_a(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4557usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint3D", "get_node_a", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_node_b(&mut self, node: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (node.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4558usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint3D", "set_node_b", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_b(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4559usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint3D", "get_node_b", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_solver_priority(&mut self, priority: i32,) { + type CallSig = ((), i32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4560usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint3D", "set_solver_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_solver_priority(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4561usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint3D", "get_solver_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude_nodes_from_collision(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4562usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint3D", "set_exclude_nodes_from_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude_nodes_from_collision(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4563usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint3D", "get_exclude_nodes_from_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4564usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Joint3D", "get_rid", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Joint3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Joint3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Joint3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for Joint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Joint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Joint3D { + + } + impl std::ops::Deref for Joint3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Joint3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Joint3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Joint3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Joint3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/json.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/json.rs new file mode 100644 index 0000000..3122c00 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/json.rs @@ -0,0 +1,354 @@ +#![doc = "Sidecar module for class [`Json`][crate::classes::Json].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `JSON` enums](https://docs.godotengine.org/en/stable/classes/class_json.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `JSON.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`json`][crate::classes::json]: sidecar module with related enum/flag types\n* [`IJson`][crate::classes::IJson]: virtual methods\n\n\nSee also [Godot docs for `JSON`](https://docs.godotengine.org/en/stable/classes/class_json.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Json::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Json { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Json`][crate::classes::Json].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `JSON` methods](https://docs.godotengine.org/en/stable/classes/class_json.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IJson: crate::obj::GodotClass < Base = Json > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Json { + pub(crate) fn stringify_full(data: RefArg < Variant >, indent: CowArg < GString >, sort_keys: bool, full_precision: bool,) -> GString { + type CallSig < 'a0, 'a1, > = (GString, RefArg < 'a0, Variant >, CowArg < 'a1, GString >, bool, bool); + let args = (data, indent, sort_keys, full_precision,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4532usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Json", "stringify", std::ptr::null_mut(), None, args,) + } + } + #[doc = "To set the default parameters, use [`Self::stringify_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn stringify(data: &Variant,) -> GString { + Self::stringify_ex(data,) . done() + } + #[inline] + pub fn stringify_ex < 'a > (data: &'a Variant,) -> ExStringify < 'a > { + ExStringify::new(data,) + } + pub fn parse_string(json_string: impl AsArg < GString >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, GString >); + let args = (json_string.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4533usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Json", "parse_string", std::ptr::null_mut(), None, args,) + } + } + pub(crate) fn parse_full(&mut self, json_text: CowArg < GString >, keep_text: bool,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, bool); + let args = (json_text, keep_text,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4534usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Json", "parse", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::parse_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn parse(&mut self, json_text: impl AsArg < GString >,) -> crate::global::Error { + self.parse_ex(json_text,) . done() + } + #[inline] + pub fn parse_ex < 'a > (&'a mut self, json_text: impl AsArg < GString > + 'a,) -> ExParse < 'a > { + ExParse::new(self, json_text,) + } + pub fn get_data(&self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4535usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Json", "get_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_data(&mut self, data: &Variant,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >); + let args = (RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4536usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Json", "set_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_parsed_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4537usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Json", "get_parsed_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_error_line(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4538usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Json", "get_error_line", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_error_message(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4539usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Json", "get_error_message", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Json { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"JSON")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Json { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Json { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Json { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Json { + + } + impl crate::obj::cap::GodotDefault for Json { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Json { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Json { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Json`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Json { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Json > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Json::stringify_ex`][super::Json::stringify_ex]."] +#[must_use] +pub struct ExStringify < 'a > { + _phantom: std::marker::PhantomData < &'a() >, data: CowArg < 'a, Variant >, indent: CowArg < 'a, GString >, sort_keys: bool, full_precision: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExStringify < 'a > { + fn new(data: &'a Variant,) -> Self { + let indent = GString::from(""); + let sort_keys = true; + let full_precision = false; + Self { + _phantom: std::marker::PhantomData, data: CowArg::Borrowed(data), indent: CowArg::Owned(indent), sort_keys: sort_keys, full_precision: full_precision, + } + } + #[inline] + pub fn indent(self, indent: impl AsArg < GString > + 'a) -> Self { + Self { + indent: indent.into_arg(), .. self + } + } + #[inline] + pub fn sort_keys(self, sort_keys: bool) -> Self { + Self { + sort_keys: sort_keys, .. self + } + } + #[inline] + pub fn full_precision(self, full_precision: bool) -> Self { + Self { + full_precision: full_precision, .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, data, indent, sort_keys, full_precision, + } + = self; + re_export::Json::stringify_full(data.cow_as_arg(), indent, sort_keys, full_precision,) + } +} +#[doc = "Default-param extender for [`Json::parse_ex`][super::Json::parse_ex]."] +#[must_use] +pub struct ExParse < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Json, json_text: CowArg < 'a, GString >, keep_text: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExParse < 'a > { + fn new(surround_object: &'a mut re_export::Json, json_text: impl AsArg < GString > + 'a,) -> Self { + let keep_text = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, json_text: json_text.into_arg(), keep_text: keep_text, + } + } + #[inline] + pub fn keep_text(self, keep_text: bool) -> Self { + Self { + keep_text: keep_text, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, json_text, keep_text, + } + = self; + re_export::Json::parse_full(surround_object, json_text, keep_text,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/json_rpc.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/json_rpc.rs new file mode 100644 index 0000000..12caa72 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/json_rpc.rs @@ -0,0 +1,389 @@ +#![doc = "Sidecar module for class [`JsonRpc`][crate::classes::JsonRpc].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `JSONRPC` enums](https://docs.godotengine.org/en/stable/classes/class_jsonrpc.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `JSONRPC.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`json_rpc`][crate::classes::json_rpc]: sidecar module with related enum/flag types\n* [`IJsonRpc`][crate::classes::IJsonRpc]: virtual methods\n\n\nSee also [Godot docs for `JSONRPC`](https://docs.godotengine.org/en/stable/classes/class_jsonrpc.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`JsonRpc::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct JsonRpc { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`JsonRpc`][crate::classes::JsonRpc].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `JSONRPC` methods](https://docs.godotengine.org/en/stable/classes/class_jsonrpc.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IJsonRpc: crate::obj::GodotClass < Base = JsonRpc > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl JsonRpc { + pub fn set_scope(&mut self, scope: impl AsArg < GString >, target: impl AsObjectArg < crate::classes::Object >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, ObjectArg < crate::classes::Object >); + let args = (scope.into_arg(), target.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4540usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "JsonRpc", "set_scope", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn process_action_full(&mut self, action: RefArg < Variant >, recurse: bool,) -> Variant { + type CallSig < 'a0, > = (Variant, RefArg < 'a0, Variant >, bool); + let args = (action, recurse,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4541usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "JsonRpc", "process_action", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::process_action_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn process_action(&mut self, action: &Variant,) -> Variant { + self.process_action_ex(action,) . done() + } + #[inline] + pub fn process_action_ex < 'a > (&'a mut self, action: &'a Variant,) -> ExProcessAction < 'a > { + ExProcessAction::new(self, action,) + } + pub fn process_string(&mut self, action: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (action.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4542usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "JsonRpc", "process_string", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_request(&mut self, method: impl AsArg < GString >, params: &Variant, id: &Variant,) -> Dictionary { + type CallSig < 'a0, 'a1, 'a2, > = (Dictionary, CowArg < 'a0, GString >, RefArg < 'a1, Variant >, RefArg < 'a2, Variant >); + let args = (method.into_arg(), RefArg::new(params), RefArg::new(id),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4543usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "JsonRpc", "make_request", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_response(&mut self, result: &Variant, id: &Variant,) -> Dictionary { + type CallSig < 'a0, 'a1, > = (Dictionary, RefArg < 'a0, Variant >, RefArg < 'a1, Variant >); + let args = (RefArg::new(result), RefArg::new(id),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4544usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "JsonRpc", "make_response", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_notification(&mut self, method: impl AsArg < GString >, params: &Variant,) -> Dictionary { + type CallSig < 'a0, 'a1, > = (Dictionary, CowArg < 'a0, GString >, RefArg < 'a1, Variant >); + let args = (method.into_arg(), RefArg::new(params),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4545usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "JsonRpc", "make_notification", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn make_response_error_full(&self, code: i32, message: CowArg < GString >, id: RefArg < Variant >,) -> Dictionary { + type CallSig < 'a0, 'a1, > = (Dictionary, i32, CowArg < 'a0, GString >, RefArg < 'a1, Variant >); + let args = (code, message, id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4546usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "JsonRpc", "make_response_error", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::make_response_error_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn make_response_error(&self, code: i32, message: impl AsArg < GString >,) -> Dictionary { + self.make_response_error_ex(code, message,) . done() + } + #[inline] + pub fn make_response_error_ex < 'a > (&'a self, code: i32, message: impl AsArg < GString > + 'a,) -> ExMakeResponseError < 'a > { + ExMakeResponseError::new(self, code, message,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for JsonRpc { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"JSONRPC")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for JsonRpc { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for JsonRpc { + + } + impl crate::obj::cap::GodotDefault for JsonRpc { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for JsonRpc { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for JsonRpc { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`JsonRpc`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_JsonRpc { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::JsonRpc > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`JsonRpc::process_action_ex`][super::JsonRpc::process_action_ex]."] +#[must_use] +pub struct ExProcessAction < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::JsonRpc, action: CowArg < 'a, Variant >, recurse: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExProcessAction < 'a > { + fn new(surround_object: &'a mut re_export::JsonRpc, action: &'a Variant,) -> Self { + let recurse = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, action: CowArg::Borrowed(action), recurse: recurse, + } + } + #[inline] + pub fn recurse(self, recurse: bool) -> Self { + Self { + recurse: recurse, .. self + } + } + #[inline] + pub fn done(self) -> Variant { + let Self { + _phantom, surround_object, action, recurse, + } + = self; + re_export::JsonRpc::process_action_full(surround_object, action.cow_as_arg(), recurse,) + } +} +#[doc = "Default-param extender for [`JsonRpc::make_response_error_ex`][super::JsonRpc::make_response_error_ex]."] +#[must_use] +pub struct ExMakeResponseError < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::JsonRpc, code: i32, message: CowArg < 'a, GString >, id: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExMakeResponseError < 'a > { + fn new(surround_object: &'a re_export::JsonRpc, code: i32, message: impl AsArg < GString > + 'a,) -> Self { + let id = Variant::nil(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, code: code, message: message.into_arg(), id: CowArg::Owned(id), + } + } + #[inline] + pub fn id(self, id: &'a Variant) -> Self { + Self { + id: CowArg::Borrowed(id), .. self + } + } + #[inline] + pub fn done(self) -> Dictionary { + let Self { + _phantom, surround_object, code, message, id, + } + = self; + re_export::JsonRpc::make_response_error_full(surround_object, code, message, id.cow_as_arg(),) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ErrorCode { + ord: i32 +} +impl ErrorCode { + pub const PARSE_ERROR: ErrorCode = ErrorCode { + ord: - 32700i32 + }; + pub const INVALID_REQUEST: ErrorCode = ErrorCode { + ord: - 32600i32 + }; + pub const METHOD_NOT_FOUND: ErrorCode = ErrorCode { + ord: - 32601i32 + }; + pub const INVALID_PARAMS: ErrorCode = ErrorCode { + ord: - 32602i32 + }; + pub const INTERNAL_ERROR: ErrorCode = ErrorCode { + ord: - 32603i32 + }; + +} +impl std::fmt::Debug for ErrorCode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ErrorCode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ErrorCode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ - 32700i32 | ord @ - 32603i32 | ord @ - 32602i32 | ord @ - 32601i32 | ord @ - 32600i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PARSE_ERROR => "PARSE_ERROR", Self::INVALID_REQUEST => "INVALID_REQUEST", Self::METHOD_NOT_FOUND => "METHOD_NOT_FOUND", Self::INVALID_PARAMS => "INVALID_PARAMS", Self::INTERNAL_ERROR => "INTERNAL_ERROR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + self.as_str() + } +} +impl crate::meta::GodotConvert for ErrorCode { + type Via = i32; + +} +impl crate::meta::ToGodot for ErrorCode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ErrorCode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/kinematic_collision_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/kinematic_collision_2d.rs new file mode 100644 index 0000000..a30485e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/kinematic_collision_2d.rs @@ -0,0 +1,334 @@ +#![doc = "Sidecar module for class [`KinematicCollision2D`][crate::classes::KinematicCollision2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `KinematicCollision2D` enums](https://docs.godotengine.org/en/stable/classes/class_kinematiccollision2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `KinematicCollision2D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`kinematic_collision_2d`][crate::classes::kinematic_collision_2d]: sidecar module with related enum/flag types\n* [`IKinematicCollision2D`][crate::classes::IKinematicCollision2D]: virtual methods\n\n\nSee also [Godot docs for `KinematicCollision2D`](https://docs.godotengine.org/en/stable/classes/class_kinematiccollision2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`KinematicCollision2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct KinematicCollision2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`KinematicCollision2D`][crate::classes::KinematicCollision2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `KinematicCollision2D` methods](https://docs.godotengine.org/en/stable/classes/class_kinematiccollision2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IKinematicCollision2D: crate::obj::GodotClass < Base = KinematicCollision2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl KinematicCollision2D { + pub fn get_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4565usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_normal(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4566usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_travel(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4567usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_travel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_remainder(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4568usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_remainder", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_angle_full(&self, up_direction: Vector2,) -> f32 { + type CallSig = (f32, Vector2); + let args = (up_direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4569usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_angle", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_angle_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_angle(&self,) -> f32 { + self.get_angle_ex() . done() + } + #[inline] + pub fn get_angle_ex < 'a > (&'a self,) -> ExGetAngle < 'a > { + ExGetAngle::new(self,) + } + pub fn get_depth(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4570usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_local_shape(&self,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4571usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_local_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider(&self,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4572usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_collider", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_id(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4573usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_collider_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4574usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_collider_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_shape(&self,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4575usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_collider_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_shape_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4576usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_collider_shape_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_velocity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4577usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision2D", "get_collider_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for KinematicCollision2D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"KinematicCollision2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for KinematicCollision2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for KinematicCollision2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for KinematicCollision2D { + + } + impl crate::obj::cap::GodotDefault for KinematicCollision2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for KinematicCollision2D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for KinematicCollision2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`KinematicCollision2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_KinematicCollision2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::KinematicCollision2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`KinematicCollision2D::get_angle_ex`][super::KinematicCollision2D::get_angle_ex]."] +#[must_use] +pub struct ExGetAngle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::KinematicCollision2D, up_direction: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetAngle < 'a > { + fn new(surround_object: &'a re_export::KinematicCollision2D,) -> Self { + let up_direction = Vector2::new(0 as _, - 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, up_direction: up_direction, + } + } + #[inline] + pub fn up_direction(self, up_direction: Vector2) -> Self { + Self { + up_direction: up_direction, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, up_direction, + } + = self; + re_export::KinematicCollision2D::get_angle_full(surround_object, up_direction,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/kinematic_collision_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/kinematic_collision_3d.rs new file mode 100644 index 0000000..e5872db --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/kinematic_collision_3d.rs @@ -0,0 +1,682 @@ +#![doc = "Sidecar module for class [`KinematicCollision3D`][crate::classes::KinematicCollision3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `KinematicCollision3D` enums](https://docs.godotengine.org/en/stable/classes/class_kinematiccollision3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `KinematicCollision3D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`kinematic_collision_3d`][crate::classes::kinematic_collision_3d]: sidecar module with related enum/flag types\n* [`IKinematicCollision3D`][crate::classes::IKinematicCollision3D]: virtual methods\n\n\nSee also [Godot docs for `KinematicCollision3D`](https://docs.godotengine.org/en/stable/classes/class_kinematiccollision3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`KinematicCollision3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct KinematicCollision3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`KinematicCollision3D`][crate::classes::KinematicCollision3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `KinematicCollision3D` methods](https://docs.godotengine.org/en/stable/classes/class_kinematiccollision3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IKinematicCollision3D: crate::obj::GodotClass < Base = KinematicCollision3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl KinematicCollision3D { + pub fn get_travel(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4578usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_travel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_remainder(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4579usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_remainder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4580usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4581usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_collision_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_position_full(&self, collision_index: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4582usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_position_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_position(&self,) -> Vector3 { + self.get_position_ex() . done() + } + #[inline] + pub fn get_position_ex < 'a > (&'a self,) -> ExGetPosition < 'a > { + ExGetPosition::new(self,) + } + pub(crate) fn get_normal_full(&self, collision_index: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4583usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_normal", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_normal_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_normal(&self,) -> Vector3 { + self.get_normal_ex() . done() + } + #[inline] + pub fn get_normal_ex < 'a > (&'a self,) -> ExGetNormal < 'a > { + ExGetNormal::new(self,) + } + pub(crate) fn get_angle_full(&self, collision_index: i32, up_direction: Vector3,) -> f32 { + type CallSig = (f32, i32, Vector3); + let args = (collision_index, up_direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4584usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_angle", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_angle_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_angle(&self,) -> f32 { + self.get_angle_ex() . done() + } + #[inline] + pub fn get_angle_ex < 'a > (&'a self,) -> ExGetAngle < 'a > { + ExGetAngle::new(self,) + } + pub(crate) fn get_local_shape_full(&self, collision_index: i32,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4585usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_local_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_local_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_local_shape(&self,) -> Option < Gd < crate::classes::Object > > { + self.get_local_shape_ex() . done() + } + #[inline] + pub fn get_local_shape_ex < 'a > (&'a self,) -> ExGetLocalShape < 'a > { + ExGetLocalShape::new(self,) + } + pub(crate) fn get_collider_full(&self, collision_index: i32,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4586usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_collider", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collider_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collider(&self,) -> Option < Gd < crate::classes::Object > > { + self.get_collider_ex() . done() + } + #[inline] + pub fn get_collider_ex < 'a > (&'a self,) -> ExGetCollider < 'a > { + ExGetCollider::new(self,) + } + pub(crate) fn get_collider_id_full(&self, collision_index: i32,) -> u64 { + type CallSig = (u64, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4587usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_collider_id", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collider_id_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collider_id(&self,) -> u64 { + self.get_collider_id_ex() . done() + } + #[inline] + pub fn get_collider_id_ex < 'a > (&'a self,) -> ExGetColliderId < 'a > { + ExGetColliderId::new(self,) + } + pub(crate) fn get_collider_rid_full(&self, collision_index: i32,) -> Rid { + type CallSig = (Rid, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4588usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_collider_rid", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collider_rid_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collider_rid(&self,) -> Rid { + self.get_collider_rid_ex() . done() + } + #[inline] + pub fn get_collider_rid_ex < 'a > (&'a self,) -> ExGetColliderRid < 'a > { + ExGetColliderRid::new(self,) + } + pub(crate) fn get_collider_shape_full(&self, collision_index: i32,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4589usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_collider_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collider_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collider_shape(&self,) -> Option < Gd < crate::classes::Object > > { + self.get_collider_shape_ex() . done() + } + #[inline] + pub fn get_collider_shape_ex < 'a > (&'a self,) -> ExGetColliderShape < 'a > { + ExGetColliderShape::new(self,) + } + pub(crate) fn get_collider_shape_index_full(&self, collision_index: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4590usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_collider_shape_index", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collider_shape_index_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collider_shape_index(&self,) -> i32 { + self.get_collider_shape_index_ex() . done() + } + #[inline] + pub fn get_collider_shape_index_ex < 'a > (&'a self,) -> ExGetColliderShapeIndex < 'a > { + ExGetColliderShapeIndex::new(self,) + } + pub(crate) fn get_collider_velocity_full(&self, collision_index: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4591usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "KinematicCollision3D", "get_collider_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collider_velocity_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collider_velocity(&self,) -> Vector3 { + self.get_collider_velocity_ex() . done() + } + #[inline] + pub fn get_collider_velocity_ex < 'a > (&'a self,) -> ExGetColliderVelocity < 'a > { + ExGetColliderVelocity::new(self,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for KinematicCollision3D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"KinematicCollision3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for KinematicCollision3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for KinematicCollision3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for KinematicCollision3D { + + } + impl crate::obj::cap::GodotDefault for KinematicCollision3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for KinematicCollision3D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for KinematicCollision3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`KinematicCollision3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_KinematicCollision3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::KinematicCollision3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`KinematicCollision3D::get_position_ex`][super::KinematicCollision3D::get_position_ex]."] +#[must_use] +pub struct ExGetPosition < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::KinematicCollision3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetPosition < 'a > { + fn new(surround_object: &'a re_export::KinematicCollision3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Vector3 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::KinematicCollision3D::get_position_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`KinematicCollision3D::get_normal_ex`][super::KinematicCollision3D::get_normal_ex]."] +#[must_use] +pub struct ExGetNormal < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::KinematicCollision3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetNormal < 'a > { + fn new(surround_object: &'a re_export::KinematicCollision3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Vector3 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::KinematicCollision3D::get_normal_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`KinematicCollision3D::get_angle_ex`][super::KinematicCollision3D::get_angle_ex]."] +#[must_use] +pub struct ExGetAngle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::KinematicCollision3D, collision_index: i32, up_direction: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetAngle < 'a > { + fn new(surround_object: &'a re_export::KinematicCollision3D,) -> Self { + let collision_index = 0i32; + let up_direction = Vector3::new(0 as _, 1 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, up_direction: up_direction, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn up_direction(self, up_direction: Vector3) -> Self { + Self { + up_direction: up_direction, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, collision_index, up_direction, + } + = self; + re_export::KinematicCollision3D::get_angle_full(surround_object, collision_index, up_direction,) + } +} +#[doc = "Default-param extender for [`KinematicCollision3D::get_local_shape_ex`][super::KinematicCollision3D::get_local_shape_ex]."] +#[must_use] +pub struct ExGetLocalShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::KinematicCollision3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetLocalShape < 'a > { + fn new(surround_object: &'a re_export::KinematicCollision3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Object > > { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::KinematicCollision3D::get_local_shape_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`KinematicCollision3D::get_collider_ex`][super::KinematicCollision3D::get_collider_ex]."] +#[must_use] +pub struct ExGetCollider < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::KinematicCollision3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetCollider < 'a > { + fn new(surround_object: &'a re_export::KinematicCollision3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Object > > { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::KinematicCollision3D::get_collider_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`KinematicCollision3D::get_collider_id_ex`][super::KinematicCollision3D::get_collider_id_ex]."] +#[must_use] +pub struct ExGetColliderId < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::KinematicCollision3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetColliderId < 'a > { + fn new(surround_object: &'a re_export::KinematicCollision3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> u64 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::KinematicCollision3D::get_collider_id_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`KinematicCollision3D::get_collider_rid_ex`][super::KinematicCollision3D::get_collider_rid_ex]."] +#[must_use] +pub struct ExGetColliderRid < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::KinematicCollision3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetColliderRid < 'a > { + fn new(surround_object: &'a re_export::KinematicCollision3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::KinematicCollision3D::get_collider_rid_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`KinematicCollision3D::get_collider_shape_ex`][super::KinematicCollision3D::get_collider_shape_ex]."] +#[must_use] +pub struct ExGetColliderShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::KinematicCollision3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetColliderShape < 'a > { + fn new(surround_object: &'a re_export::KinematicCollision3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Object > > { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::KinematicCollision3D::get_collider_shape_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`KinematicCollision3D::get_collider_shape_index_ex`][super::KinematicCollision3D::get_collider_shape_index_ex]."] +#[must_use] +pub struct ExGetColliderShapeIndex < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::KinematicCollision3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetColliderShapeIndex < 'a > { + fn new(surround_object: &'a re_export::KinematicCollision3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::KinematicCollision3D::get_collider_shape_index_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`KinematicCollision3D::get_collider_velocity_ex`][super::KinematicCollision3D::get_collider_velocity_ex]."] +#[must_use] +pub struct ExGetColliderVelocity < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::KinematicCollision3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetColliderVelocity < 'a > { + fn new(surround_object: &'a re_export::KinematicCollision3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Vector3 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::KinematicCollision3D::get_collider_velocity_full(surround_object, collision_index,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/label.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/label.rs new file mode 100644 index 0000000..d8fe59d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/label.rs @@ -0,0 +1,662 @@ +#![doc = "Sidecar module for class [`Label`][crate::classes::Label].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Label` enums](https://docs.godotengine.org/en/stable/classes/class_label.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Label.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`label`][crate::classes::label]: sidecar module with related enum/flag types\n* [`ILabel`][crate::classes::ILabel]: virtual methods\n\n\nSee also [Godot docs for `Label`](https://docs.godotengine.org/en/stable/classes/class_label.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Label::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Label { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Label`][crate::classes::Label].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Label` methods](https://docs.godotengine.org/en/stable/classes/class_label.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILabel: crate::obj::GodotClass < Base = Label > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Label { + pub fn set_horizontal_alignment(&mut self, alignment: crate::global::HorizontalAlignment,) { + type CallSig = ((), crate::global::HorizontalAlignment); + let args = (alignment,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4592usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_horizontal_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_horizontal_alignment(&self,) -> crate::global::HorizontalAlignment { + type CallSig = (crate::global::HorizontalAlignment,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4593usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_horizontal_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertical_alignment(&mut self, alignment: crate::global::VerticalAlignment,) { + type CallSig = ((), crate::global::VerticalAlignment); + let args = (alignment,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4594usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_vertical_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertical_alignment(&self,) -> crate::global::VerticalAlignment { + type CallSig = (crate::global::VerticalAlignment,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4595usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_vertical_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4596usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4597usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_label_settings(&mut self, settings: impl AsObjectArg < crate::classes::LabelSettings >,) { + type CallSig = ((), ObjectArg < crate::classes::LabelSettings >); + let args = (settings.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4598usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_label_settings", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_label_settings(&self,) -> Option < Gd < crate::classes::LabelSettings > > { + type CallSig = (Option < Gd < crate::classes::LabelSettings > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4599usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_label_settings", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text_direction(&mut self, direction: crate::classes::control::TextDirection,) { + type CallSig = ((), crate::classes::control::TextDirection); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4600usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_direction(&self,) -> crate::classes::control::TextDirection { + type CallSig = (crate::classes::control::TextDirection,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4601usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_language(&mut self, language: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4602usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_language(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4603usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autowrap_mode(&mut self, autowrap_mode: crate::classes::text_server::AutowrapMode,) { + type CallSig = ((), crate::classes::text_server::AutowrapMode); + let args = (autowrap_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4604usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_autowrap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_autowrap_mode(&self,) -> crate::classes::text_server::AutowrapMode { + type CallSig = (crate::classes::text_server::AutowrapMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4605usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_autowrap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_justification_flags(&mut self, justification_flags: crate::classes::text_server::JustificationFlag,) { + type CallSig = ((), crate::classes::text_server::JustificationFlag); + let args = (justification_flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4606usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_justification_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_justification_flags(&self,) -> crate::classes::text_server::JustificationFlag { + type CallSig = (crate::classes::text_server::JustificationFlag,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4607usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_justification_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clip_text(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4608usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_clip_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_clipping_text(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4609usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "is_clipping_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tab_stops(&mut self, tab_stops: &PackedFloat32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedFloat32Array >); + let args = (RefArg::new(tab_stops),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4610usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_tab_stops", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tab_stops(&self,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4611usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_tab_stops", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text_overrun_behavior(&mut self, overrun_behavior: crate::classes::text_server::OverrunBehavior,) { + type CallSig = ((), crate::classes::text_server::OverrunBehavior); + let args = (overrun_behavior,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4612usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_text_overrun_behavior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_overrun_behavior(&self,) -> crate::classes::text_server::OverrunBehavior { + type CallSig = (crate::classes::text_server::OverrunBehavior,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4613usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_text_overrun_behavior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ellipsis_char(&mut self, char: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (char.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4614usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_ellipsis_char", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ellipsis_char(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4615usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_ellipsis_char", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uppercase(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4616usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_uppercase", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_uppercase(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4617usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "is_uppercase", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_line_height_full(&self, line: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4618usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_line_height", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_line_height_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_line_height(&self,) -> i32 { + self.get_line_height_ex() . done() + } + #[inline] + pub fn get_line_height_ex < 'a > (&'a self,) -> ExGetLineHeight < 'a > { + ExGetLineHeight::new(self,) + } + pub fn get_line_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4619usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_line_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visible_line_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4620usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_visible_line_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_total_character_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4621usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_total_character_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visible_characters(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4622usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_visible_characters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visible_characters(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4623usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_visible_characters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visible_characters_behavior(&self,) -> crate::classes::text_server::VisibleCharactersBehavior { + type CallSig = (crate::classes::text_server::VisibleCharactersBehavior,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4624usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_visible_characters_behavior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visible_characters_behavior(&mut self, behavior: crate::classes::text_server::VisibleCharactersBehavior,) { + type CallSig = ((), crate::classes::text_server::VisibleCharactersBehavior); + let args = (behavior,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4625usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_visible_characters_behavior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visible_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4626usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_visible_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visible_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4627usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_visible_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lines_skipped(&mut self, lines_skipped: i32,) { + type CallSig = ((), i32); + let args = (lines_skipped,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4628usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_lines_skipped", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lines_skipped(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4629usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_lines_skipped", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_lines_visible(&mut self, lines_visible: i32,) { + type CallSig = ((), i32); + let args = (lines_visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4630usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_max_lines_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_lines_visible(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4631usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_max_lines_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_structured_text_bidi_override(&mut self, parser: crate::classes::text_server::StructuredTextParser,) { + type CallSig = ((), crate::classes::text_server::StructuredTextParser); + let args = (parser,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4632usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_structured_text_bidi_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_structured_text_bidi_override(&self,) -> crate::classes::text_server::StructuredTextParser { + type CallSig = (crate::classes::text_server::StructuredTextParser,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4633usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_structured_text_bidi_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_structured_text_bidi_override_options(&mut self, args: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(args),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4634usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "set_structured_text_bidi_override_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_structured_text_bidi_override_options(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4635usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_structured_text_bidi_override_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_character_bounds(&self, pos: i32,) -> Rect2 { + type CallSig = (Rect2, i32); + let args = (pos,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4636usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label", "get_character_bounds", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Label { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Label")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Label { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for Label { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Label { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Label { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Label { + + } + impl crate::obj::cap::GodotDefault for Label { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Label { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Label { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Label`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Label { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Label > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Label::get_line_height_ex`][super::Label::get_line_height_ex]."] +#[must_use] +pub struct ExGetLineHeight < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Label, line: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetLineHeight < 'a > { + fn new(surround_object: &'a re_export::Label,) -> Self { + let line = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, line: line, + } + } + #[inline] + pub fn line(self, line: i32) -> Self { + Self { + line: line, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, line, + } + = self; + re_export::Label::get_line_height_full(surround_object, line,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/label_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/label_3d.rs new file mode 100644 index 0000000..01aa6b4 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/label_3d.rs @@ -0,0 +1,885 @@ +#![doc = "Sidecar module for class [`Label3D`][crate::classes::Label3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Label3D` enums](https://docs.godotengine.org/en/stable/classes/class_label3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Label3D.`\n\nInherits [`GeometryInstance3D`][crate::classes::GeometryInstance3D].\n\nRelated symbols:\n\n* [`label_3d`][crate::classes::label_3d]: sidecar module with related enum/flag types\n* [`ILabel3D`][crate::classes::ILabel3D]: virtual methods\n\n\nSee also [Godot docs for `Label3D`](https://docs.godotengine.org/en/stable/classes/class_label3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Label3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Label3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Label3D`][crate::classes::Label3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Label3D` methods](https://docs.godotengine.org/en/stable/classes/class_label3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILabel3D: crate::obj::GodotClass < Base = Label3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Label3D { + pub fn set_horizontal_alignment(&mut self, alignment: crate::global::HorizontalAlignment,) { + type CallSig = ((), crate::global::HorizontalAlignment); + let args = (alignment,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4637usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_horizontal_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_horizontal_alignment(&self,) -> crate::global::HorizontalAlignment { + type CallSig = (crate::global::HorizontalAlignment,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4638usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_horizontal_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertical_alignment(&mut self, alignment: crate::global::VerticalAlignment,) { + type CallSig = ((), crate::global::VerticalAlignment); + let args = (alignment,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4639usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_vertical_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertical_alignment(&self,) -> crate::global::VerticalAlignment { + type CallSig = (crate::global::VerticalAlignment,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4640usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_vertical_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_modulate(&mut self, modulate: Color,) { + type CallSig = ((), Color); + let args = (modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4641usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_modulate(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4642usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_outline_modulate(&mut self, modulate: Color,) { + type CallSig = ((), Color); + let args = (modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4643usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_outline_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_outline_modulate(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4644usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_outline_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4645usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4646usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text_direction(&mut self, direction: crate::classes::text_server::Direction,) { + type CallSig = ((), crate::classes::text_server::Direction); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4647usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_direction(&self,) -> crate::classes::text_server::Direction { + type CallSig = (crate::classes::text_server::Direction,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4648usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_language(&mut self, language: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4649usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_language(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4650usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_structured_text_bidi_override(&mut self, parser: crate::classes::text_server::StructuredTextParser,) { + type CallSig = ((), crate::classes::text_server::StructuredTextParser); + let args = (parser,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4651usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_structured_text_bidi_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_structured_text_bidi_override(&self,) -> crate::classes::text_server::StructuredTextParser { + type CallSig = (crate::classes::text_server::StructuredTextParser,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4652usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_structured_text_bidi_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_structured_text_bidi_override_options(&mut self, args: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(args),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4653usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_structured_text_bidi_override_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_structured_text_bidi_override_options(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4654usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_structured_text_bidi_override_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uppercase(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4655usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_uppercase", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_uppercase(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4656usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "is_uppercase", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_render_priority(&mut self, priority: i32,) { + type CallSig = ((), i32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4657usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_render_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_render_priority(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4658usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_render_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_outline_render_priority(&mut self, priority: i32,) { + type CallSig = ((), i32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4659usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_outline_render_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_outline_render_priority(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4660usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_outline_render_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_font(&mut self, font: impl AsObjectArg < crate::classes::Font >,) { + type CallSig = ((), ObjectArg < crate::classes::Font >); + let args = (font.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4661usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_font", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_font(&self,) -> Option < Gd < crate::classes::Font > > { + type CallSig = (Option < Gd < crate::classes::Font > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4662usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_font", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_font_size(&mut self, size: i32,) { + type CallSig = ((), i32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4663usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_font_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_font_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4664usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_font_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_outline_size(&mut self, outline_size: i32,) { + type CallSig = ((), i32); + let args = (outline_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4665usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_outline_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_outline_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4666usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_outline_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_line_spacing(&mut self, line_spacing: f32,) { + type CallSig = ((), f32); + let args = (line_spacing,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4667usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_line_spacing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_line_spacing(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4668usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_line_spacing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autowrap_mode(&mut self, autowrap_mode: crate::classes::text_server::AutowrapMode,) { + type CallSig = ((), crate::classes::text_server::AutowrapMode); + let args = (autowrap_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4669usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_autowrap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_autowrap_mode(&self,) -> crate::classes::text_server::AutowrapMode { + type CallSig = (crate::classes::text_server::AutowrapMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4670usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_autowrap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_justification_flags(&mut self, justification_flags: crate::classes::text_server::JustificationFlag,) { + type CallSig = ((), crate::classes::text_server::JustificationFlag); + let args = (justification_flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4671usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_justification_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_justification_flags(&self,) -> crate::classes::text_server::JustificationFlag { + type CallSig = (crate::classes::text_server::JustificationFlag,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4672usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_justification_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_width(&mut self, width: f32,) { + type CallSig = ((), f32); + let args = (width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4673usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_width(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4674usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pixel_size(&mut self, pixel_size: f32,) { + type CallSig = ((), f32); + let args = (pixel_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4675usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_pixel_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pixel_size(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4676usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_pixel_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4677usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4678usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_flag(&mut self, flag: crate::classes::label_3d::DrawFlags, enabled: bool,) { + type CallSig = ((), crate::classes::label_3d::DrawFlags, bool); + let args = (flag, enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4679usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_draw_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_draw_flag(&self, flag: crate::classes::label_3d::DrawFlags,) -> bool { + type CallSig = (bool, crate::classes::label_3d::DrawFlags); + let args = (flag,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4680usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_draw_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_billboard_mode(&mut self, mode: crate::classes::base_material_3d::BillboardMode,) { + type CallSig = ((), crate::classes::base_material_3d::BillboardMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4681usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_billboard_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_billboard_mode(&self,) -> crate::classes::base_material_3d::BillboardMode { + type CallSig = (crate::classes::base_material_3d::BillboardMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4682usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_billboard_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_cut_mode(&mut self, mode: crate::classes::label_3d::AlphaCutMode,) { + type CallSig = ((), crate::classes::label_3d::AlphaCutMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4683usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_alpha_cut_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_cut_mode(&self,) -> crate::classes::label_3d::AlphaCutMode { + type CallSig = (crate::classes::label_3d::AlphaCutMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4684usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_alpha_cut_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_scissor_threshold(&mut self, threshold: f32,) { + type CallSig = ((), f32); + let args = (threshold,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4685usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_alpha_scissor_threshold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_scissor_threshold(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4686usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_alpha_scissor_threshold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_hash_scale(&mut self, threshold: f32,) { + type CallSig = ((), f32); + let args = (threshold,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4687usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_alpha_hash_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_hash_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4688usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_alpha_hash_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_antialiasing(&mut self, alpha_aa: crate::classes::base_material_3d::AlphaAntiAliasing,) { + type CallSig = ((), crate::classes::base_material_3d::AlphaAntiAliasing); + let args = (alpha_aa,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4689usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_alpha_antialiasing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_antialiasing(&self,) -> crate::classes::base_material_3d::AlphaAntiAliasing { + type CallSig = (crate::classes::base_material_3d::AlphaAntiAliasing,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4690usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_alpha_antialiasing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_antialiasing_edge(&mut self, edge: f32,) { + type CallSig = ((), f32); + let args = (edge,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4691usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_alpha_antialiasing_edge", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_antialiasing_edge(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4692usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_alpha_antialiasing_edge", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_filter(&mut self, mode: crate::classes::base_material_3d::TextureFilter,) { + type CallSig = ((), crate::classes::base_material_3d::TextureFilter); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4693usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "set_texture_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_filter(&self,) -> crate::classes::base_material_3d::TextureFilter { + type CallSig = (crate::classes::base_material_3d::TextureFilter,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4694usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "get_texture_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn generate_triangle_mesh(&self,) -> Option < Gd < crate::classes::TriangleMesh > > { + type CallSig = (Option < Gd < crate::classes::TriangleMesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4695usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Label3D", "generate_triangle_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Label3D { + type Base = crate::classes::GeometryInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Label3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Label3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for Label3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for Label3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for Label3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Label3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Label3D { + + } + impl crate::obj::cap::GodotDefault for Label3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Label3D { + type Target = crate::classes::GeometryInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Label3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Label3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Label3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Label3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DrawFlags { + ord: i32 +} +impl DrawFlags { + #[doc(alias = "FLAG_SHADED")] + #[doc = "Godot enumerator name: `FLAG_SHADED`"] + pub const SHADED: DrawFlags = DrawFlags { + ord: 0i32 + }; + #[doc(alias = "FLAG_DOUBLE_SIDED")] + #[doc = "Godot enumerator name: `FLAG_DOUBLE_SIDED`"] + pub const DOUBLE_SIDED: DrawFlags = DrawFlags { + ord: 1i32 + }; + #[doc(alias = "FLAG_DISABLE_DEPTH_TEST")] + #[doc = "Godot enumerator name: `FLAG_DISABLE_DEPTH_TEST`"] + pub const DISABLE_DEPTH_TEST: DrawFlags = DrawFlags { + ord: 2i32 + }; + #[doc(alias = "FLAG_FIXED_SIZE")] + #[doc = "Godot enumerator name: `FLAG_FIXED_SIZE`"] + pub const FIXED_SIZE: DrawFlags = DrawFlags { + ord: 3i32 + }; + #[doc(alias = "FLAG_MAX")] + #[doc = "Godot enumerator name: `FLAG_MAX`"] + pub const MAX: DrawFlags = DrawFlags { + ord: 4i32 + }; + +} +impl std::fmt::Debug for DrawFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DrawFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DrawFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SHADED => "SHADED", Self::DOUBLE_SIDED => "DOUBLE_SIDED", Self::DISABLE_DEPTH_TEST => "DISABLE_DEPTH_TEST", Self::FIXED_SIZE => "FIXED_SIZE", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SHADED => "FLAG_SHADED", Self::DOUBLE_SIDED => "FLAG_DOUBLE_SIDED", Self::DISABLE_DEPTH_TEST => "FLAG_DISABLE_DEPTH_TEST", Self::FIXED_SIZE => "FLAG_FIXED_SIZE", Self::MAX => "FLAG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for DrawFlags { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for DrawFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for DrawFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DrawFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AlphaCutMode { + ord: i32 +} +impl AlphaCutMode { + #[doc(alias = "ALPHA_CUT_DISABLED")] + #[doc = "Godot enumerator name: `ALPHA_CUT_DISABLED`"] + pub const DISABLED: AlphaCutMode = AlphaCutMode { + ord: 0i32 + }; + #[doc(alias = "ALPHA_CUT_DISCARD")] + #[doc = "Godot enumerator name: `ALPHA_CUT_DISCARD`"] + pub const DISCARD: AlphaCutMode = AlphaCutMode { + ord: 1i32 + }; + #[doc(alias = "ALPHA_CUT_OPAQUE_PREPASS")] + #[doc = "Godot enumerator name: `ALPHA_CUT_OPAQUE_PREPASS`"] + pub const OPAQUE_PREPASS: AlphaCutMode = AlphaCutMode { + ord: 2i32 + }; + #[doc(alias = "ALPHA_CUT_HASH")] + #[doc = "Godot enumerator name: `ALPHA_CUT_HASH`"] + pub const HASH: AlphaCutMode = AlphaCutMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for AlphaCutMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AlphaCutMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AlphaCutMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::DISCARD => "DISCARD", Self::OPAQUE_PREPASS => "OPAQUE_PREPASS", Self::HASH => "HASH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "ALPHA_CUT_DISABLED", Self::DISCARD => "ALPHA_CUT_DISCARD", Self::OPAQUE_PREPASS => "ALPHA_CUT_OPAQUE_PREPASS", Self::HASH => "ALPHA_CUT_HASH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AlphaCutMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AlphaCutMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AlphaCutMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/label_settings.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/label_settings.rs new file mode 100644 index 0000000..3f0c549 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/label_settings.rs @@ -0,0 +1,346 @@ +#![doc = "Sidecar module for class [`LabelSettings`][crate::classes::LabelSettings].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `LabelSettings` enums](https://docs.godotengine.org/en/stable/classes/class_labelsettings.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `LabelSettings.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`ILabelSettings`][crate::classes::ILabelSettings]: virtual methods\n\n\nSee also [Godot docs for `LabelSettings`](https://docs.godotengine.org/en/stable/classes/class_labelsettings.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`LabelSettings::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct LabelSettings { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`LabelSettings`][crate::classes::LabelSettings].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `LabelSettings` methods](https://docs.godotengine.org/en/stable/classes/class_labelsettings.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILabelSettings: crate::obj::GodotClass < Base = LabelSettings > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl LabelSettings { + pub fn set_line_spacing(&mut self, spacing: f32,) { + type CallSig = ((), f32); + let args = (spacing,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4696usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "set_line_spacing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_line_spacing(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4697usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "get_line_spacing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_font(&mut self, font: impl AsObjectArg < crate::classes::Font >,) { + type CallSig = ((), ObjectArg < crate::classes::Font >); + let args = (font.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4698usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "set_font", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_font(&self,) -> Option < Gd < crate::classes::Font > > { + type CallSig = (Option < Gd < crate::classes::Font > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4699usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "get_font", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_font_size(&mut self, size: i32,) { + type CallSig = ((), i32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4700usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "set_font_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_font_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4701usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "get_font_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_font_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4702usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "set_font_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_font_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4703usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "get_font_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_outline_size(&mut self, size: i32,) { + type CallSig = ((), i32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4704usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "set_outline_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_outline_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4705usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "get_outline_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_outline_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4706usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "set_outline_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_outline_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4707usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "get_outline_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shadow_size(&mut self, size: i32,) { + type CallSig = ((), i32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4708usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "set_shadow_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shadow_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4709usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "get_shadow_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shadow_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4710usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "set_shadow_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shadow_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4711usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "get_shadow_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shadow_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4712usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "set_shadow_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shadow_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4713usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LabelSettings", "get_shadow_offset", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for LabelSettings { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"LabelSettings")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for LabelSettings { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for LabelSettings { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for LabelSettings { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for LabelSettings { + + } + impl crate::obj::cap::GodotDefault for LabelSettings { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for LabelSettings { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for LabelSettings { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`LabelSettings`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_LabelSettings { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::LabelSettings > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/light_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/light_2d.rs new file mode 100644 index 0000000..83200ec --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/light_2d.rs @@ -0,0 +1,639 @@ +#![doc = "Sidecar module for class [`Light2D`][crate::classes::Light2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Light2D` enums](https://docs.godotengine.org/en/stable/classes/class_light2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Light2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`light_2d`][crate::classes::light_2d]: sidecar module with related enum/flag types\n* [`ILight2D`][crate::classes::ILight2D]: virtual methods\n\n\nSee also [Godot docs for `Light2D`](https://docs.godotengine.org/en/stable/classes/class_light2d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct Light2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Light2D`][crate::classes::Light2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Light2D` methods](https://docs.godotengine.org/en/stable/classes/class_light2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILight2D: crate::obj::GodotClass < Base = Light2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Light2D { + pub fn set_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4714usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4715usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "is_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_editor_only(&mut self, editor_only: bool,) { + type CallSig = ((), bool); + let args = (editor_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4716usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_editor_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_editor_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4717usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "is_editor_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4718usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4719usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_energy(&mut self, energy: f32,) { + type CallSig = ((), f32); + let args = (energy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4720usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_energy(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4721usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_z_range_min(&mut self, z: i32,) { + type CallSig = ((), i32); + let args = (z,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4722usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_z_range_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_z_range_min(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4723usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_z_range_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_z_range_max(&mut self, z: i32,) { + type CallSig = ((), i32); + let args = (z,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4724usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_z_range_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_z_range_max(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4725usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_z_range_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_layer_range_min(&mut self, layer: i32,) { + type CallSig = ((), i32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4726usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_layer_range_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_layer_range_min(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4727usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_layer_range_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_layer_range_max(&mut self, layer: i32,) { + type CallSig = ((), i32); + let args = (layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4728usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_layer_range_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_layer_range_max(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4729usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_layer_range_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_cull_mask(&mut self, item_cull_mask: i32,) { + type CallSig = ((), i32); + let args = (item_cull_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4730usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_item_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_cull_mask(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4731usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_item_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_shadow_cull_mask(&mut self, item_shadow_cull_mask: i32,) { + type CallSig = ((), i32); + let args = (item_shadow_cull_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4732usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_item_shadow_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_shadow_cull_mask(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4733usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_item_shadow_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shadow_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4734usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_shadow_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_shadow_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4735usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "is_shadow_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shadow_smooth(&mut self, smooth: f32,) { + type CallSig = ((), f32); + let args = (smooth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4736usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_shadow_smooth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shadow_smooth(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4737usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_shadow_smooth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shadow_filter(&mut self, filter: crate::classes::light_2d::ShadowFilter,) { + type CallSig = ((), crate::classes::light_2d::ShadowFilter); + let args = (filter,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4738usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_shadow_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shadow_filter(&self,) -> crate::classes::light_2d::ShadowFilter { + type CallSig = (crate::classes::light_2d::ShadowFilter,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4739usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_shadow_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shadow_color(&mut self, shadow_color: Color,) { + type CallSig = ((), Color); + let args = (shadow_color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4740usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_shadow_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shadow_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4741usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_shadow_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_mode(&mut self, mode: crate::classes::light_2d::BlendMode,) { + type CallSig = ((), crate::classes::light_2d::BlendMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4742usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_mode(&self,) -> crate::classes::light_2d::BlendMode { + type CallSig = (crate::classes::light_2d::BlendMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4743usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: f32,) { + type CallSig = ((), f32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4744usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4745usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light2D", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Light2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Light2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Light2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for Light2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Light2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Light2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Light2D { + + } + impl std::ops::Deref for Light2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Light2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Light2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Light2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Light2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShadowFilter { + ord: i32 +} +impl ShadowFilter { + #[doc(alias = "SHADOW_FILTER_NONE")] + #[doc = "Godot enumerator name: `SHADOW_FILTER_NONE`"] + pub const NONE: ShadowFilter = ShadowFilter { + ord: 0i32 + }; + #[doc(alias = "SHADOW_FILTER_PCF5")] + #[doc = "Godot enumerator name: `SHADOW_FILTER_PCF5`"] + pub const PCF5: ShadowFilter = ShadowFilter { + ord: 1i32 + }; + #[doc(alias = "SHADOW_FILTER_PCF13")] + #[doc = "Godot enumerator name: `SHADOW_FILTER_PCF13`"] + pub const PCF13: ShadowFilter = ShadowFilter { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ShadowFilter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShadowFilter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShadowFilter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::PCF5 => "PCF5", Self::PCF13 => "PCF13", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "SHADOW_FILTER_NONE", Self::PCF5 => "SHADOW_FILTER_PCF5", Self::PCF13 => "SHADOW_FILTER_PCF13", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ShadowFilter { + type Via = i32; + +} +impl crate::meta::ToGodot for ShadowFilter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShadowFilter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BlendMode { + ord: i32 +} +impl BlendMode { + #[doc(alias = "BLEND_MODE_ADD")] + #[doc = "Godot enumerator name: `BLEND_MODE_ADD`"] + pub const ADD: BlendMode = BlendMode { + ord: 0i32 + }; + #[doc(alias = "BLEND_MODE_SUB")] + #[doc = "Godot enumerator name: `BLEND_MODE_SUB`"] + pub const SUB: BlendMode = BlendMode { + ord: 1i32 + }; + #[doc(alias = "BLEND_MODE_MIX")] + #[doc = "Godot enumerator name: `BLEND_MODE_MIX`"] + pub const MIX: BlendMode = BlendMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for BlendMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BlendMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BlendMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD => "ADD", Self::SUB => "SUB", Self::MIX => "MIX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD => "BLEND_MODE_ADD", Self::SUB => "BLEND_MODE_SUB", Self::MIX => "BLEND_MODE_MIX", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BlendMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BlendMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BlendMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/light_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/light_3d.rs new file mode 100644 index 0000000..4216819 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/light_3d.rs @@ -0,0 +1,714 @@ +#![doc = "Sidecar module for class [`Light3D`][crate::classes::Light3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Light3D` enums](https://docs.godotengine.org/en/stable/classes/class_light3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Light3D.`\n\nInherits [`VisualInstance3D`][crate::classes::VisualInstance3D].\n\nRelated symbols:\n\n* [`light_3d`][crate::classes::light_3d]: sidecar module with related enum/flag types\n* [`ILight3D`][crate::classes::ILight3D]: virtual methods\n\n\nSee also [Godot docs for `Light3D`](https://docs.godotengine.org/en/stable/classes/class_light3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct Light3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Light3D`][crate::classes::Light3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Light3D` methods](https://docs.godotengine.org/en/stable/classes/class_light3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILight3D: crate::obj::GodotClass < Base = Light3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Light3D { + pub fn set_editor_only(&mut self, editor_only: bool,) { + type CallSig = ((), bool); + let args = (editor_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4746usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_editor_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_editor_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4747usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "is_editor_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param(&mut self, param: crate::classes::light_3d::Param, value: f32,) { + type CallSig = ((), crate::classes::light_3d::Param, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4748usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param(&self, param: crate::classes::light_3d::Param,) -> f32 { + type CallSig = (f32, crate::classes::light_3d::Param); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4749usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shadow(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4750usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_shadow", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_shadow(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4751usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "has_shadow", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_negative(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4752usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_negative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_negative(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4753usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "is_negative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cull_mask(&mut self, cull_mask: u32,) { + type CallSig = ((), u32); + let args = (cull_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4754usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cull_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4755usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "get_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_distance_fade(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4756usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_enable_distance_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_distance_fade_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4757usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "is_distance_fade_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_distance_fade_begin(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4758usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_distance_fade_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_distance_fade_begin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4759usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "get_distance_fade_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_distance_fade_shadow(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4760usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_distance_fade_shadow", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_distance_fade_shadow(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4761usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "get_distance_fade_shadow", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_distance_fade_length(&mut self, distance: f32,) { + type CallSig = ((), f32); + let args = (distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4762usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_distance_fade_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_distance_fade_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4763usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "get_distance_fade_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4764usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4765usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shadow_reverse_cull_face(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4766usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_shadow_reverse_cull_face", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shadow_reverse_cull_face(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4767usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "get_shadow_reverse_cull_face", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bake_mode(&mut self, bake_mode: crate::classes::light_3d::BakeMode,) { + type CallSig = ((), crate::classes::light_3d::BakeMode); + let args = (bake_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4768usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_bake_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_mode(&self,) -> crate::classes::light_3d::BakeMode { + type CallSig = (crate::classes::light_3d::BakeMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4769usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "get_bake_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_projector(&mut self, projector: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (projector.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4770usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_projector", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_projector(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4771usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "get_projector", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_temperature(&mut self, temperature: f32,) { + type CallSig = ((), f32); + let args = (temperature,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4772usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "set_temperature", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_temperature(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4773usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "get_temperature", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_correlated_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4774usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Light3D", "get_correlated_color", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Light3D { + type Base = crate::classes::VisualInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Light3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Light3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for Light3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for Light3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Light3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Light3D { + + } + impl std::ops::Deref for Light3D { + type Target = crate::classes::VisualInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Light3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Light3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Light3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Light3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Param { + ord: i32 +} +impl Param { + #[doc(alias = "PARAM_ENERGY")] + #[doc = "Godot enumerator name: `PARAM_ENERGY`"] + pub const ENERGY: Param = Param { + ord: 0i32 + }; + #[doc(alias = "PARAM_INDIRECT_ENERGY")] + #[doc = "Godot enumerator name: `PARAM_INDIRECT_ENERGY`"] + pub const INDIRECT_ENERGY: Param = Param { + ord: 1i32 + }; + #[doc(alias = "PARAM_VOLUMETRIC_FOG_ENERGY")] + #[doc = "Godot enumerator name: `PARAM_VOLUMETRIC_FOG_ENERGY`"] + pub const VOLUMETRIC_FOG_ENERGY: Param = Param { + ord: 2i32 + }; + #[doc(alias = "PARAM_SPECULAR")] + #[doc = "Godot enumerator name: `PARAM_SPECULAR`"] + pub const SPECULAR: Param = Param { + ord: 3i32 + }; + #[doc(alias = "PARAM_RANGE")] + #[doc = "Godot enumerator name: `PARAM_RANGE`"] + pub const RANGE: Param = Param { + ord: 4i32 + }; + #[doc(alias = "PARAM_SIZE")] + #[doc = "Godot enumerator name: `PARAM_SIZE`"] + pub const SIZE: Param = Param { + ord: 5i32 + }; + #[doc(alias = "PARAM_ATTENUATION")] + #[doc = "Godot enumerator name: `PARAM_ATTENUATION`"] + pub const ATTENUATION: Param = Param { + ord: 6i32 + }; + #[doc(alias = "PARAM_SPOT_ANGLE")] + #[doc = "Godot enumerator name: `PARAM_SPOT_ANGLE`"] + pub const SPOT_ANGLE: Param = Param { + ord: 7i32 + }; + #[doc(alias = "PARAM_SPOT_ATTENUATION")] + #[doc = "Godot enumerator name: `PARAM_SPOT_ATTENUATION`"] + pub const SPOT_ATTENUATION: Param = Param { + ord: 8i32 + }; + #[doc(alias = "PARAM_SHADOW_MAX_DISTANCE")] + #[doc = "Godot enumerator name: `PARAM_SHADOW_MAX_DISTANCE`"] + pub const SHADOW_MAX_DISTANCE: Param = Param { + ord: 9i32 + }; + #[doc(alias = "PARAM_SHADOW_SPLIT_1_OFFSET")] + #[doc = "Godot enumerator name: `PARAM_SHADOW_SPLIT_1_OFFSET`"] + pub const SHADOW_SPLIT_1_OFFSET: Param = Param { + ord: 10i32 + }; + #[doc(alias = "PARAM_SHADOW_SPLIT_2_OFFSET")] + #[doc = "Godot enumerator name: `PARAM_SHADOW_SPLIT_2_OFFSET`"] + pub const SHADOW_SPLIT_2_OFFSET: Param = Param { + ord: 11i32 + }; + #[doc(alias = "PARAM_SHADOW_SPLIT_3_OFFSET")] + #[doc = "Godot enumerator name: `PARAM_SHADOW_SPLIT_3_OFFSET`"] + pub const SHADOW_SPLIT_3_OFFSET: Param = Param { + ord: 12i32 + }; + #[doc(alias = "PARAM_SHADOW_FADE_START")] + #[doc = "Godot enumerator name: `PARAM_SHADOW_FADE_START`"] + pub const SHADOW_FADE_START: Param = Param { + ord: 13i32 + }; + #[doc(alias = "PARAM_SHADOW_NORMAL_BIAS")] + #[doc = "Godot enumerator name: `PARAM_SHADOW_NORMAL_BIAS`"] + pub const SHADOW_NORMAL_BIAS: Param = Param { + ord: 14i32 + }; + #[doc(alias = "PARAM_SHADOW_BIAS")] + #[doc = "Godot enumerator name: `PARAM_SHADOW_BIAS`"] + pub const SHADOW_BIAS: Param = Param { + ord: 15i32 + }; + #[doc(alias = "PARAM_SHADOW_PANCAKE_SIZE")] + #[doc = "Godot enumerator name: `PARAM_SHADOW_PANCAKE_SIZE`"] + pub const SHADOW_PANCAKE_SIZE: Param = Param { + ord: 16i32 + }; + #[doc(alias = "PARAM_SHADOW_OPACITY")] + #[doc = "Godot enumerator name: `PARAM_SHADOW_OPACITY`"] + pub const SHADOW_OPACITY: Param = Param { + ord: 17i32 + }; + #[doc(alias = "PARAM_SHADOW_BLUR")] + #[doc = "Godot enumerator name: `PARAM_SHADOW_BLUR`"] + pub const SHADOW_BLUR: Param = Param { + ord: 18i32 + }; + #[doc(alias = "PARAM_TRANSMITTANCE_BIAS")] + #[doc = "Godot enumerator name: `PARAM_TRANSMITTANCE_BIAS`"] + pub const TRANSMITTANCE_BIAS: Param = Param { + ord: 19i32 + }; + #[doc(alias = "PARAM_INTENSITY")] + #[doc = "Godot enumerator name: `PARAM_INTENSITY`"] + pub const INTENSITY: Param = Param { + ord: 20i32 + }; + #[doc(alias = "PARAM_MAX")] + #[doc = "Godot enumerator name: `PARAM_MAX`"] + pub const MAX: Param = Param { + ord: 21i32 + }; + +} +impl std::fmt::Debug for Param { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Param") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Param { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ENERGY => "ENERGY", Self::INDIRECT_ENERGY => "INDIRECT_ENERGY", Self::VOLUMETRIC_FOG_ENERGY => "VOLUMETRIC_FOG_ENERGY", Self::SPECULAR => "SPECULAR", Self::RANGE => "RANGE", Self::SIZE => "SIZE", Self::ATTENUATION => "ATTENUATION", Self::SPOT_ANGLE => "SPOT_ANGLE", Self::SPOT_ATTENUATION => "SPOT_ATTENUATION", Self::SHADOW_MAX_DISTANCE => "SHADOW_MAX_DISTANCE", Self::SHADOW_SPLIT_1_OFFSET => "SHADOW_SPLIT_1_OFFSET", Self::SHADOW_SPLIT_2_OFFSET => "SHADOW_SPLIT_2_OFFSET", Self::SHADOW_SPLIT_3_OFFSET => "SHADOW_SPLIT_3_OFFSET", Self::SHADOW_FADE_START => "SHADOW_FADE_START", Self::SHADOW_NORMAL_BIAS => "SHADOW_NORMAL_BIAS", Self::SHADOW_BIAS => "SHADOW_BIAS", Self::SHADOW_PANCAKE_SIZE => "SHADOW_PANCAKE_SIZE", Self::SHADOW_OPACITY => "SHADOW_OPACITY", Self::SHADOW_BLUR => "SHADOW_BLUR", Self::TRANSMITTANCE_BIAS => "TRANSMITTANCE_BIAS", Self::INTENSITY => "INTENSITY", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ENERGY => "PARAM_ENERGY", Self::INDIRECT_ENERGY => "PARAM_INDIRECT_ENERGY", Self::VOLUMETRIC_FOG_ENERGY => "PARAM_VOLUMETRIC_FOG_ENERGY", Self::SPECULAR => "PARAM_SPECULAR", Self::RANGE => "PARAM_RANGE", Self::SIZE => "PARAM_SIZE", Self::ATTENUATION => "PARAM_ATTENUATION", Self::SPOT_ANGLE => "PARAM_SPOT_ANGLE", Self::SPOT_ATTENUATION => "PARAM_SPOT_ATTENUATION", Self::SHADOW_MAX_DISTANCE => "PARAM_SHADOW_MAX_DISTANCE", Self::SHADOW_SPLIT_1_OFFSET => "PARAM_SHADOW_SPLIT_1_OFFSET", Self::SHADOW_SPLIT_2_OFFSET => "PARAM_SHADOW_SPLIT_2_OFFSET", Self::SHADOW_SPLIT_3_OFFSET => "PARAM_SHADOW_SPLIT_3_OFFSET", Self::SHADOW_FADE_START => "PARAM_SHADOW_FADE_START", Self::SHADOW_NORMAL_BIAS => "PARAM_SHADOW_NORMAL_BIAS", Self::SHADOW_BIAS => "PARAM_SHADOW_BIAS", Self::SHADOW_PANCAKE_SIZE => "PARAM_SHADOW_PANCAKE_SIZE", Self::SHADOW_OPACITY => "PARAM_SHADOW_OPACITY", Self::SHADOW_BLUR => "PARAM_SHADOW_BLUR", Self::TRANSMITTANCE_BIAS => "PARAM_TRANSMITTANCE_BIAS", Self::INTENSITY => "PARAM_INTENSITY", Self::MAX => "PARAM_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Param { + const ENUMERATOR_COUNT: usize = 21usize; + +} +impl crate::meta::GodotConvert for Param { + type Via = i32; + +} +impl crate::meta::ToGodot for Param { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Param { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BakeMode { + ord: i32 +} +impl BakeMode { + #[doc(alias = "BAKE_DISABLED")] + #[doc = "Godot enumerator name: `BAKE_DISABLED`"] + pub const DISABLED: BakeMode = BakeMode { + ord: 0i32 + }; + #[doc(alias = "BAKE_STATIC")] + #[doc = "Godot enumerator name: `BAKE_STATIC`"] + pub const STATIC: BakeMode = BakeMode { + ord: 1i32 + }; + #[doc(alias = "BAKE_DYNAMIC")] + #[doc = "Godot enumerator name: `BAKE_DYNAMIC`"] + pub const DYNAMIC: BakeMode = BakeMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for BakeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BakeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BakeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::STATIC => "STATIC", Self::DYNAMIC => "DYNAMIC", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "BAKE_DISABLED", Self::STATIC => "BAKE_STATIC", Self::DYNAMIC => "BAKE_DYNAMIC", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BakeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BakeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BakeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/light_occluder_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/light_occluder_2d.rs new file mode 100644 index 0000000..0dc178b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/light_occluder_2d.rs @@ -0,0 +1,286 @@ +#![doc = "Sidecar module for class [`LightOccluder2D`][crate::classes::LightOccluder2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `LightOccluder2D` enums](https://docs.godotengine.org/en/stable/classes/class_lightoccluder2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `LightOccluder2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`ILightOccluder2D`][crate::classes::ILightOccluder2D]: virtual methods\n\n\nSee also [Godot docs for `LightOccluder2D`](https://docs.godotengine.org/en/stable/classes/class_lightoccluder2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`LightOccluder2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct LightOccluder2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`LightOccluder2D`][crate::classes::LightOccluder2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `LightOccluder2D` methods](https://docs.godotengine.org/en/stable/classes/class_lightoccluder2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILightOccluder2D: crate::obj::GodotClass < Base = LightOccluder2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl LightOccluder2D { + pub fn set_occluder_polygon(&mut self, polygon: impl AsObjectArg < crate::classes::OccluderPolygon2D >,) { + type CallSig = ((), ObjectArg < crate::classes::OccluderPolygon2D >); + let args = (polygon.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4775usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightOccluder2D", "set_occluder_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_occluder_polygon(&self,) -> Option < Gd < crate::classes::OccluderPolygon2D > > { + type CallSig = (Option < Gd < crate::classes::OccluderPolygon2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4776usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightOccluder2D", "get_occluder_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_occluder_light_mask(&mut self, mask: i32,) { + type CallSig = ((), i32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4777usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightOccluder2D", "set_occluder_light_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_occluder_light_mask(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4778usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightOccluder2D", "get_occluder_light_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_as_sdf_collision(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4779usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightOccluder2D", "set_as_sdf_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_set_as_sdf_collision(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4780usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightOccluder2D", "is_set_as_sdf_collision", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for LightOccluder2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"LightOccluder2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for LightOccluder2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for LightOccluder2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for LightOccluder2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for LightOccluder2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for LightOccluder2D { + + } + impl crate::obj::cap::GodotDefault for LightOccluder2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for LightOccluder2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for LightOccluder2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`LightOccluder2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_LightOccluder2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::LightOccluder2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmap_gi.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmap_gi.rs new file mode 100644 index 0000000..7e99c1a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmap_gi.rs @@ -0,0 +1,907 @@ +#![doc = "Sidecar module for class [`LightmapGi`][crate::classes::LightmapGi].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `LightmapGI` enums](https://docs.godotengine.org/en/stable/classes/class_lightmapgi.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `LightmapGI.`\n\nInherits [`VisualInstance3D`][crate::classes::VisualInstance3D].\n\nRelated symbols:\n\n* [`lightmap_gi`][crate::classes::lightmap_gi]: sidecar module with related enum/flag types\n* [`ILightmapGi`][crate::classes::ILightmapGi]: virtual methods\n\n\nSee also [Godot docs for `LightmapGI`](https://docs.godotengine.org/en/stable/classes/class_lightmapgi.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`LightmapGi::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct LightmapGi { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`LightmapGi`][crate::classes::LightmapGi].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `LightmapGI` methods](https://docs.godotengine.org/en/stable/classes/class_lightmapgi.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILightmapGi: crate::obj::GodotClass < Base = LightmapGi > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl LightmapGi { + pub fn set_light_data(&mut self, data: impl AsObjectArg < crate::classes::LightmapGiData >,) { + type CallSig = ((), ObjectArg < crate::classes::LightmapGiData >); + let args = (data.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4781usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_light_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_light_data(&self,) -> Option < Gd < crate::classes::LightmapGiData > > { + type CallSig = (Option < Gd < crate::classes::LightmapGiData > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4782usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_light_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bake_quality(&mut self, bake_quality: crate::classes::lightmap_gi::BakeQuality,) { + type CallSig = ((), crate::classes::lightmap_gi::BakeQuality); + let args = (bake_quality,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4783usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_bake_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_quality(&self,) -> crate::classes::lightmap_gi::BakeQuality { + type CallSig = (crate::classes::lightmap_gi::BakeQuality,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4784usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_bake_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bounces(&mut self, bounces: i32,) { + type CallSig = ((), i32); + let args = (bounces,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4785usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_bounces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bounces(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4786usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_bounces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bounce_indirect_energy(&mut self, bounce_indirect_energy: f32,) { + type CallSig = ((), f32); + let args = (bounce_indirect_energy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4787usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_bounce_indirect_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bounce_indirect_energy(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4788usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_bounce_indirect_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_generate_probes(&mut self, subdivision: crate::classes::lightmap_gi::GenerateProbes,) { + type CallSig = ((), crate::classes::lightmap_gi::GenerateProbes); + let args = (subdivision,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4789usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_generate_probes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_generate_probes(&self,) -> crate::classes::lightmap_gi::GenerateProbes { + type CallSig = (crate::classes::lightmap_gi::GenerateProbes,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4790usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_generate_probes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bias(&mut self, bias: f32,) { + type CallSig = ((), f32); + let args = (bias,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4791usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bias(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4792usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_environment_mode(&mut self, mode: crate::classes::lightmap_gi::EnvironmentMode,) { + type CallSig = ((), crate::classes::lightmap_gi::EnvironmentMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4793usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_environment_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_environment_mode(&self,) -> crate::classes::lightmap_gi::EnvironmentMode { + type CallSig = (crate::classes::lightmap_gi::EnvironmentMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4794usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_environment_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_environment_custom_sky(&mut self, sky: impl AsObjectArg < crate::classes::Sky >,) { + type CallSig = ((), ObjectArg < crate::classes::Sky >); + let args = (sky.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4795usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_environment_custom_sky", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_environment_custom_sky(&self,) -> Option < Gd < crate::classes::Sky > > { + type CallSig = (Option < Gd < crate::classes::Sky > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4796usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_environment_custom_sky", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_environment_custom_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4797usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_environment_custom_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_environment_custom_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4798usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_environment_custom_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_environment_custom_energy(&mut self, energy: f32,) { + type CallSig = ((), f32); + let args = (energy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4799usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_environment_custom_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_environment_custom_energy(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4800usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_environment_custom_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texel_scale(&mut self, texel_scale: f32,) { + type CallSig = ((), f32); + let args = (texel_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4801usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_texel_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texel_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4802usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_texel_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_texture_size(&mut self, max_texture_size: i32,) { + type CallSig = ((), i32); + let args = (max_texture_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4803usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_max_texture_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_texture_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4804usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_max_texture_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_denoiser(&mut self, use_denoiser: bool,) { + type CallSig = ((), bool); + let args = (use_denoiser,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4805usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_use_denoiser", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_denoiser(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4806usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "is_using_denoiser", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_denoiser_strength(&mut self, denoiser_strength: f32,) { + type CallSig = ((), f32); + let args = (denoiser_strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4807usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_denoiser_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_denoiser_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4808usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_denoiser_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_denoiser_range(&mut self, denoiser_range: i32,) { + type CallSig = ((), i32); + let args = (denoiser_range,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4809usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_denoiser_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_denoiser_range(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4810usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_denoiser_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_interior(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4811usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_interior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_interior(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4812usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "is_interior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_directional(&mut self, directional: bool,) { + type CallSig = ((), bool); + let args = (directional,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4813usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_directional", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_directional(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4814usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "is_directional", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_texture_for_bounces(&mut self, use_texture_for_bounces: bool,) { + type CallSig = ((), bool); + let args = (use_texture_for_bounces,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4815usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_use_texture_for_bounces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_texture_for_bounces(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4816usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "is_using_texture_for_bounces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_camera_attributes(&mut self, camera_attributes: impl AsObjectArg < crate::classes::CameraAttributes >,) { + type CallSig = ((), ObjectArg < crate::classes::CameraAttributes >); + let args = (camera_attributes.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4817usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "set_camera_attributes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_camera_attributes(&self,) -> Option < Gd < crate::classes::CameraAttributes > > { + type CallSig = (Option < Gd < crate::classes::CameraAttributes > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4818usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGi", "get_camera_attributes", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for LightmapGi { + type Base = crate::classes::VisualInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"LightmapGI")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for LightmapGi { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for LightmapGi { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for LightmapGi { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for LightmapGi { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for LightmapGi { + + } + impl crate::obj::cap::GodotDefault for LightmapGi { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for LightmapGi { + type Target = crate::classes::VisualInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for LightmapGi { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`LightmapGi`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_LightmapGi { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::LightmapGi > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BakeQuality { + ord: i32 +} +impl BakeQuality { + #[doc(alias = "BAKE_QUALITY_LOW")] + #[doc = "Godot enumerator name: `BAKE_QUALITY_LOW`"] + pub const LOW: BakeQuality = BakeQuality { + ord: 0i32 + }; + #[doc(alias = "BAKE_QUALITY_MEDIUM")] + #[doc = "Godot enumerator name: `BAKE_QUALITY_MEDIUM`"] + pub const MEDIUM: BakeQuality = BakeQuality { + ord: 1i32 + }; + #[doc(alias = "BAKE_QUALITY_HIGH")] + #[doc = "Godot enumerator name: `BAKE_QUALITY_HIGH`"] + pub const HIGH: BakeQuality = BakeQuality { + ord: 2i32 + }; + #[doc(alias = "BAKE_QUALITY_ULTRA")] + #[doc = "Godot enumerator name: `BAKE_QUALITY_ULTRA`"] + pub const ULTRA: BakeQuality = BakeQuality { + ord: 3i32 + }; + +} +impl std::fmt::Debug for BakeQuality { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BakeQuality") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BakeQuality { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOW => "LOW", Self::MEDIUM => "MEDIUM", Self::HIGH => "HIGH", Self::ULTRA => "ULTRA", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOW => "BAKE_QUALITY_LOW", Self::MEDIUM => "BAKE_QUALITY_MEDIUM", Self::HIGH => "BAKE_QUALITY_HIGH", Self::ULTRA => "BAKE_QUALITY_ULTRA", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BakeQuality { + type Via = i32; + +} +impl crate::meta::ToGodot for BakeQuality { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BakeQuality { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct GenerateProbes { + ord: i32 +} +impl GenerateProbes { + #[doc(alias = "GENERATE_PROBES_DISABLED")] + #[doc = "Godot enumerator name: `GENERATE_PROBES_DISABLED`"] + pub const DISABLED: GenerateProbes = GenerateProbes { + ord: 0i32 + }; + #[doc(alias = "GENERATE_PROBES_SUBDIV_4")] + #[doc = "Godot enumerator name: `GENERATE_PROBES_SUBDIV_4`"] + pub const SUBDIV_4: GenerateProbes = GenerateProbes { + ord: 1i32 + }; + #[doc(alias = "GENERATE_PROBES_SUBDIV_8")] + #[doc = "Godot enumerator name: `GENERATE_PROBES_SUBDIV_8`"] + pub const SUBDIV_8: GenerateProbes = GenerateProbes { + ord: 2i32 + }; + #[doc(alias = "GENERATE_PROBES_SUBDIV_16")] + #[doc = "Godot enumerator name: `GENERATE_PROBES_SUBDIV_16`"] + pub const SUBDIV_16: GenerateProbes = GenerateProbes { + ord: 3i32 + }; + #[doc(alias = "GENERATE_PROBES_SUBDIV_32")] + #[doc = "Godot enumerator name: `GENERATE_PROBES_SUBDIV_32`"] + pub const SUBDIV_32: GenerateProbes = GenerateProbes { + ord: 4i32 + }; + +} +impl std::fmt::Debug for GenerateProbes { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("GenerateProbes") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for GenerateProbes { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::SUBDIV_4 => "SUBDIV_4", Self::SUBDIV_8 => "SUBDIV_8", Self::SUBDIV_16 => "SUBDIV_16", Self::SUBDIV_32 => "SUBDIV_32", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "GENERATE_PROBES_DISABLED", Self::SUBDIV_4 => "GENERATE_PROBES_SUBDIV_4", Self::SUBDIV_8 => "GENERATE_PROBES_SUBDIV_8", Self::SUBDIV_16 => "GENERATE_PROBES_SUBDIV_16", Self::SUBDIV_32 => "GENERATE_PROBES_SUBDIV_32", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for GenerateProbes { + type Via = i32; + +} +impl crate::meta::ToGodot for GenerateProbes { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for GenerateProbes { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BakeError { + ord: i32 +} +impl BakeError { + #[doc(alias = "BAKE_ERROR_OK")] + #[doc = "Godot enumerator name: `BAKE_ERROR_OK`"] + pub const OK: BakeError = BakeError { + ord: 0i32 + }; + #[doc(alias = "BAKE_ERROR_NO_SCENE_ROOT")] + #[doc = "Godot enumerator name: `BAKE_ERROR_NO_SCENE_ROOT`"] + pub const NO_SCENE_ROOT: BakeError = BakeError { + ord: 1i32 + }; + #[doc(alias = "BAKE_ERROR_FOREIGN_DATA")] + #[doc = "Godot enumerator name: `BAKE_ERROR_FOREIGN_DATA`"] + pub const FOREIGN_DATA: BakeError = BakeError { + ord: 2i32 + }; + #[doc(alias = "BAKE_ERROR_NO_LIGHTMAPPER")] + #[doc = "Godot enumerator name: `BAKE_ERROR_NO_LIGHTMAPPER`"] + pub const NO_LIGHTMAPPER: BakeError = BakeError { + ord: 3i32 + }; + #[doc(alias = "BAKE_ERROR_NO_SAVE_PATH")] + #[doc = "Godot enumerator name: `BAKE_ERROR_NO_SAVE_PATH`"] + pub const NO_SAVE_PATH: BakeError = BakeError { + ord: 4i32 + }; + #[doc(alias = "BAKE_ERROR_NO_MESHES")] + #[doc = "Godot enumerator name: `BAKE_ERROR_NO_MESHES`"] + pub const NO_MESHES: BakeError = BakeError { + ord: 5i32 + }; + #[doc(alias = "BAKE_ERROR_MESHES_INVALID")] + #[doc = "Godot enumerator name: `BAKE_ERROR_MESHES_INVALID`"] + pub const MESHES_INVALID: BakeError = BakeError { + ord: 6i32 + }; + #[doc(alias = "BAKE_ERROR_CANT_CREATE_IMAGE")] + #[doc = "Godot enumerator name: `BAKE_ERROR_CANT_CREATE_IMAGE`"] + pub const CANT_CREATE_IMAGE: BakeError = BakeError { + ord: 7i32 + }; + #[doc(alias = "BAKE_ERROR_USER_ABORTED")] + #[doc = "Godot enumerator name: `BAKE_ERROR_USER_ABORTED`"] + pub const USER_ABORTED: BakeError = BakeError { + ord: 8i32 + }; + #[doc(alias = "BAKE_ERROR_TEXTURE_SIZE_TOO_SMALL")] + #[doc = "Godot enumerator name: `BAKE_ERROR_TEXTURE_SIZE_TOO_SMALL`"] + pub const TEXTURE_SIZE_TOO_SMALL: BakeError = BakeError { + ord: 9i32 + }; + #[doc(alias = "BAKE_ERROR_LIGHTMAP_TOO_SMALL")] + #[doc = "Godot enumerator name: `BAKE_ERROR_LIGHTMAP_TOO_SMALL`"] + pub const LIGHTMAP_TOO_SMALL: BakeError = BakeError { + ord: 10i32 + }; + #[doc(alias = "BAKE_ERROR_ATLAS_TOO_SMALL")] + #[doc = "Godot enumerator name: `BAKE_ERROR_ATLAS_TOO_SMALL`"] + pub const ATLAS_TOO_SMALL: BakeError = BakeError { + ord: 11i32 + }; + +} +impl std::fmt::Debug for BakeError { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BakeError") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BakeError { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OK => "OK", Self::NO_SCENE_ROOT => "NO_SCENE_ROOT", Self::FOREIGN_DATA => "FOREIGN_DATA", Self::NO_LIGHTMAPPER => "NO_LIGHTMAPPER", Self::NO_SAVE_PATH => "NO_SAVE_PATH", Self::NO_MESHES => "NO_MESHES", Self::MESHES_INVALID => "MESHES_INVALID", Self::CANT_CREATE_IMAGE => "CANT_CREATE_IMAGE", Self::USER_ABORTED => "USER_ABORTED", Self::TEXTURE_SIZE_TOO_SMALL => "TEXTURE_SIZE_TOO_SMALL", Self::LIGHTMAP_TOO_SMALL => "LIGHTMAP_TOO_SMALL", Self::ATLAS_TOO_SMALL => "ATLAS_TOO_SMALL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OK => "BAKE_ERROR_OK", Self::NO_SCENE_ROOT => "BAKE_ERROR_NO_SCENE_ROOT", Self::FOREIGN_DATA => "BAKE_ERROR_FOREIGN_DATA", Self::NO_LIGHTMAPPER => "BAKE_ERROR_NO_LIGHTMAPPER", Self::NO_SAVE_PATH => "BAKE_ERROR_NO_SAVE_PATH", Self::NO_MESHES => "BAKE_ERROR_NO_MESHES", Self::MESHES_INVALID => "BAKE_ERROR_MESHES_INVALID", Self::CANT_CREATE_IMAGE => "BAKE_ERROR_CANT_CREATE_IMAGE", Self::USER_ABORTED => "BAKE_ERROR_USER_ABORTED", Self::TEXTURE_SIZE_TOO_SMALL => "BAKE_ERROR_TEXTURE_SIZE_TOO_SMALL", Self::LIGHTMAP_TOO_SMALL => "BAKE_ERROR_LIGHTMAP_TOO_SMALL", Self::ATLAS_TOO_SMALL => "BAKE_ERROR_ATLAS_TOO_SMALL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BakeError { + type Via = i32; + +} +impl crate::meta::ToGodot for BakeError { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BakeError { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EnvironmentMode { + ord: i32 +} +impl EnvironmentMode { + #[doc(alias = "ENVIRONMENT_MODE_DISABLED")] + #[doc = "Godot enumerator name: `ENVIRONMENT_MODE_DISABLED`"] + pub const DISABLED: EnvironmentMode = EnvironmentMode { + ord: 0i32 + }; + #[doc(alias = "ENVIRONMENT_MODE_SCENE")] + #[doc = "Godot enumerator name: `ENVIRONMENT_MODE_SCENE`"] + pub const SCENE: EnvironmentMode = EnvironmentMode { + ord: 1i32 + }; + #[doc(alias = "ENVIRONMENT_MODE_CUSTOM_SKY")] + #[doc = "Godot enumerator name: `ENVIRONMENT_MODE_CUSTOM_SKY`"] + pub const CUSTOM_SKY: EnvironmentMode = EnvironmentMode { + ord: 2i32 + }; + #[doc(alias = "ENVIRONMENT_MODE_CUSTOM_COLOR")] + #[doc = "Godot enumerator name: `ENVIRONMENT_MODE_CUSTOM_COLOR`"] + pub const CUSTOM_COLOR: EnvironmentMode = EnvironmentMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for EnvironmentMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::SCENE => "SCENE", Self::CUSTOM_SKY => "CUSTOM_SKY", Self::CUSTOM_COLOR => "CUSTOM_COLOR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "ENVIRONMENT_MODE_DISABLED", Self::SCENE => "ENVIRONMENT_MODE_SCENE", Self::CUSTOM_SKY => "ENVIRONMENT_MODE_CUSTOM_SKY", Self::CUSTOM_COLOR => "ENVIRONMENT_MODE_CUSTOM_COLOR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EnvironmentMode { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmap_gi_data.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmap_gi_data.rs new file mode 100644 index 0000000..b5cc080 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmap_gi_data.rs @@ -0,0 +1,282 @@ +#![doc = "Sidecar module for class [`LightmapGiData`][crate::classes::LightmapGiData].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `LightmapGIData` enums](https://docs.godotengine.org/en/stable/classes/class_lightmapgidata.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `LightmapGIData.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`ILightmapGiData`][crate::classes::ILightmapGiData]: virtual methods\n\n\nSee also [Godot docs for `LightmapGIData`](https://docs.godotengine.org/en/stable/classes/class_lightmapgidata.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`LightmapGiData::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct LightmapGiData { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`LightmapGiData`][crate::classes::LightmapGiData].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `LightmapGIData` methods](https://docs.godotengine.org/en/stable/classes/class_lightmapgidata.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILightmapGiData: crate::obj::GodotClass < Base = LightmapGiData > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl LightmapGiData { + pub fn set_lightmap_textures(&mut self, light_textures: &Array < Gd < crate::classes::TextureLayered > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::TextureLayered > > >); + let args = (RefArg::new(light_textures),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4819usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGiData", "set_lightmap_textures", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lightmap_textures(&self,) -> Array < Gd < crate::classes::TextureLayered > > { + type CallSig = (Array < Gd < crate::classes::TextureLayered > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4820usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGiData", "get_lightmap_textures", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uses_spherical_harmonics(&mut self, uses_spherical_harmonics: bool,) { + type CallSig = ((), bool); + let args = (uses_spherical_harmonics,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4821usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGiData", "set_uses_spherical_harmonics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_spherical_harmonics(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4822usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGiData", "is_using_spherical_harmonics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_user(&mut self, path: impl AsArg < NodePath >, uv_scale: Rect2, slice_index: i32, sub_instance: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >, Rect2, i32, i32); + let args = (path.into_arg(), uv_scale, slice_index, sub_instance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4823usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGiData", "add_user", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_user_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4824usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGiData", "get_user_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_user_path(&self, user_idx: i32,) -> NodePath { + type CallSig = (NodePath, i32); + let args = (user_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4825usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGiData", "get_user_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_users(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4826usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGiData", "clear_users", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_light_texture(&mut self, light_texture: impl AsObjectArg < crate::classes::TextureLayered >,) { + type CallSig = ((), ObjectArg < crate::classes::TextureLayered >); + let args = (light_texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4827usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGiData", "set_light_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_light_texture(&self,) -> Option < Gd < crate::classes::TextureLayered > > { + type CallSig = (Option < Gd < crate::classes::TextureLayered > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4828usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LightmapGiData", "get_light_texture", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for LightmapGiData { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"LightmapGIData")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for LightmapGiData { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for LightmapGiData { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for LightmapGiData { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for LightmapGiData { + + } + impl crate::obj::cap::GodotDefault for LightmapGiData { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for LightmapGiData { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for LightmapGiData { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`LightmapGiData`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_LightmapGiData { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::LightmapGiData > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmap_probe.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmap_probe.rs new file mode 100644 index 0000000..e907bf5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmap_probe.rs @@ -0,0 +1,229 @@ +#![doc = "Sidecar module for class [`LightmapProbe`][crate::classes::LightmapProbe].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `LightmapProbe` enums](https://docs.godotengine.org/en/stable/classes/class_lightmapprobe.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `LightmapProbe.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`ILightmapProbe`][crate::classes::ILightmapProbe]: virtual methods\n\n\nSee also [Godot docs for `LightmapProbe`](https://docs.godotengine.org/en/stable/classes/class_lightmapprobe.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`LightmapProbe::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct LightmapProbe { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`LightmapProbe`][crate::classes::LightmapProbe].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `LightmapProbe` methods](https://docs.godotengine.org/en/stable/classes/class_lightmapprobe.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILightmapProbe: crate::obj::GodotClass < Base = LightmapProbe > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl LightmapProbe { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for LightmapProbe { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"LightmapProbe")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for LightmapProbe { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for LightmapProbe { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for LightmapProbe { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for LightmapProbe { + + } + impl crate::obj::cap::GodotDefault for LightmapProbe { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for LightmapProbe { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for LightmapProbe { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`LightmapProbe`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_LightmapProbe { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::LightmapProbe > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmapper.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmapper.rs new file mode 100644 index 0000000..2ba68d9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmapper.rs @@ -0,0 +1,188 @@ +#![doc = "Sidecar module for class [`Lightmapper`][crate::classes::Lightmapper].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Lightmapper` enums](https://docs.godotengine.org/en/stable/classes/class_lightmapper.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Lightmapper.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`ILightmapper`][crate::classes::ILightmapper]: virtual methods\n\n\nSee also [Godot docs for `Lightmapper`](https://docs.godotengine.org/en/stable/classes/class_lightmapper.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct Lightmapper { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Lightmapper`][crate::classes::Lightmapper].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Lightmapper` methods](https://docs.godotengine.org/en/stable/classes/class_lightmapper.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILightmapper: crate::obj::GodotClass < Base = Lightmapper > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Lightmapper { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Lightmapper { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Lightmapper")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Lightmapper { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Lightmapper { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Lightmapper { + + } + impl std::ops::Deref for Lightmapper { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Lightmapper { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Lightmapper`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Lightmapper { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Lightmapper > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmapper_rd.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmapper_rd.rs new file mode 100644 index 0000000..8694baf --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/lightmapper_rd.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`LightmapperRd`][crate::classes::LightmapperRd].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `LightmapperRD` enums](https://docs.godotengine.org/en/stable/classes/class_lightmapperrd.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `LightmapperRD.`\n\nInherits [`Lightmapper`][crate::classes::Lightmapper].\n\nRelated symbols:\n\n* [`ILightmapperRd`][crate::classes::ILightmapperRd]: virtual methods\n\n\nSee also [Godot docs for `LightmapperRD`](https://docs.godotengine.org/en/stable/classes/class_lightmapperrd.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`LightmapperRd::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct LightmapperRd { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`LightmapperRd`][crate::classes::LightmapperRd].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `LightmapperRD` methods](https://docs.godotengine.org/en/stable/classes/class_lightmapperrd.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILightmapperRd: crate::obj::GodotClass < Base = LightmapperRd > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl LightmapperRd { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for LightmapperRd { + type Base = crate::classes::Lightmapper; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"LightmapperRD")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for LightmapperRd { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Lightmapper > for LightmapperRd { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for LightmapperRd { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for LightmapperRd { + + } + impl crate::obj::cap::GodotDefault for LightmapperRd { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for LightmapperRd { + type Target = crate::classes::Lightmapper; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for LightmapperRd { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`LightmapperRd`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_LightmapperRd { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::LightmapperRd > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Lightmapper > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/line_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/line_2d.rs new file mode 100644 index 0000000..fd07133 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/line_2d.rs @@ -0,0 +1,772 @@ +#![doc = "Sidecar module for class [`Line2D`][crate::classes::Line2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Line2D` enums](https://docs.godotengine.org/en/stable/classes/class_line2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Line2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`line_2d`][crate::classes::line_2d]: sidecar module with related enum/flag types\n* [`ILine2D`][crate::classes::ILine2D]: virtual methods\n\n\nSee also [Godot docs for `Line2D`](https://docs.godotengine.org/en/stable/classes/class_line2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Line2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Line2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Line2D`][crate::classes::Line2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Line2D` methods](https://docs.godotengine.org/en/stable/classes/class_line2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILine2D: crate::obj::GodotClass < Base = Line2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Line2D { + pub fn set_points(&mut self, points: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(points),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4829usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_points(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4830usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_position(&mut self, index: i32, position: Vector2,) { + type CallSig = ((), i32, Vector2); + let args = (index, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4831usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_position(&self, index: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4832usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_point_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4833usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_point_full(&mut self, position: Vector2, index: i32,) { + type CallSig = ((), Vector2, i32); + let args = (position, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4834usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "add_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_point(&mut self, position: Vector2,) { + self.add_point_ex(position,) . done() + } + #[inline] + pub fn add_point_ex < 'a > (&'a mut self, position: Vector2,) -> ExAddPoint < 'a > { + ExAddPoint::new(self, position,) + } + pub fn remove_point(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4835usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "remove_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_points(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4836usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "clear_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_closed(&mut self, closed: bool,) { + type CallSig = ((), bool); + let args = (closed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4837usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_closed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_closed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4838usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "is_closed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_width(&mut self, width: f32,) { + type CallSig = ((), f32); + let args = (width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4839usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_width(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4840usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_curve(&mut self, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4841usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_curve(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4842usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_default_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4843usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_default_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_default_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4844usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_default_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gradient(&mut self, color: impl AsObjectArg < crate::classes::Gradient >,) { + type CallSig = ((), ObjectArg < crate::classes::Gradient >); + let args = (color.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4845usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_gradient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gradient(&self,) -> Option < Gd < crate::classes::Gradient > > { + type CallSig = (Option < Gd < crate::classes::Gradient > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4846usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_gradient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4847usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4848usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_mode(&mut self, mode: crate::classes::line_2d::LineTextureMode,) { + type CallSig = ((), crate::classes::line_2d::LineTextureMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4849usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_texture_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_mode(&self,) -> crate::classes::line_2d::LineTextureMode { + type CallSig = (crate::classes::line_2d::LineTextureMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4850usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_texture_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_joint_mode(&mut self, mode: crate::classes::line_2d::LineJointMode,) { + type CallSig = ((), crate::classes::line_2d::LineJointMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4851usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_joint_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joint_mode(&self,) -> crate::classes::line_2d::LineJointMode { + type CallSig = (crate::classes::line_2d::LineJointMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4852usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_joint_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_begin_cap_mode(&mut self, mode: crate::classes::line_2d::LineCapMode,) { + type CallSig = ((), crate::classes::line_2d::LineCapMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4853usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_begin_cap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_begin_cap_mode(&self,) -> crate::classes::line_2d::LineCapMode { + type CallSig = (crate::classes::line_2d::LineCapMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4854usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_begin_cap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_end_cap_mode(&mut self, mode: crate::classes::line_2d::LineCapMode,) { + type CallSig = ((), crate::classes::line_2d::LineCapMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4855usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_end_cap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_end_cap_mode(&self,) -> crate::classes::line_2d::LineCapMode { + type CallSig = (crate::classes::line_2d::LineCapMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4856usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_end_cap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sharp_limit(&mut self, limit: f32,) { + type CallSig = ((), f32); + let args = (limit,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4857usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_sharp_limit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sharp_limit(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4858usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_sharp_limit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_round_precision(&mut self, precision: i32,) { + type CallSig = ((), i32); + let args = (precision,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4859usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_round_precision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_round_precision(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4860usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_round_precision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_antialiased(&mut self, antialiased: bool,) { + type CallSig = ((), bool); + let args = (antialiased,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4861usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "set_antialiased", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_antialiased(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4862usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Line2D", "get_antialiased", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Line2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Line2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Line2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for Line2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Line2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Line2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Line2D { + + } + impl crate::obj::cap::GodotDefault for Line2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Line2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Line2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Line2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Line2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Line2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Line2D::add_point_ex`][super::Line2D::add_point_ex]."] +#[must_use] +pub struct ExAddPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Line2D, position: Vector2, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddPoint < 'a > { + fn new(surround_object: &'a mut re_export::Line2D, position: Vector2,) -> Self { + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, index: index, + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, index, + } + = self; + re_export::Line2D::add_point_full(surround_object, position, index,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LineJointMode { + ord: i32 +} +impl LineJointMode { + #[doc(alias = "LINE_JOINT_SHARP")] + #[doc = "Godot enumerator name: `LINE_JOINT_SHARP`"] + pub const SHARP: LineJointMode = LineJointMode { + ord: 0i32 + }; + #[doc(alias = "LINE_JOINT_BEVEL")] + #[doc = "Godot enumerator name: `LINE_JOINT_BEVEL`"] + pub const BEVEL: LineJointMode = LineJointMode { + ord: 1i32 + }; + #[doc(alias = "LINE_JOINT_ROUND")] + #[doc = "Godot enumerator name: `LINE_JOINT_ROUND`"] + pub const ROUND: LineJointMode = LineJointMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for LineJointMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LineJointMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LineJointMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SHARP => "SHARP", Self::BEVEL => "BEVEL", Self::ROUND => "ROUND", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SHARP => "LINE_JOINT_SHARP", Self::BEVEL => "LINE_JOINT_BEVEL", Self::ROUND => "LINE_JOINT_ROUND", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LineJointMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LineJointMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LineJointMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LineCapMode { + ord: i32 +} +impl LineCapMode { + #[doc(alias = "LINE_CAP_NONE")] + #[doc = "Godot enumerator name: `LINE_CAP_NONE`"] + pub const NONE: LineCapMode = LineCapMode { + ord: 0i32 + }; + #[doc(alias = "LINE_CAP_BOX")] + #[doc = "Godot enumerator name: `LINE_CAP_BOX`"] + pub const BOX: LineCapMode = LineCapMode { + ord: 1i32 + }; + #[doc(alias = "LINE_CAP_ROUND")] + #[doc = "Godot enumerator name: `LINE_CAP_ROUND`"] + pub const ROUND: LineCapMode = LineCapMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for LineCapMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LineCapMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LineCapMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::BOX => "BOX", Self::ROUND => "ROUND", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "LINE_CAP_NONE", Self::BOX => "LINE_CAP_BOX", Self::ROUND => "LINE_CAP_ROUND", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LineCapMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LineCapMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LineCapMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LineTextureMode { + ord: i32 +} +impl LineTextureMode { + #[doc(alias = "LINE_TEXTURE_NONE")] + #[doc = "Godot enumerator name: `LINE_TEXTURE_NONE`"] + pub const NONE: LineTextureMode = LineTextureMode { + ord: 0i32 + }; + #[doc(alias = "LINE_TEXTURE_TILE")] + #[doc = "Godot enumerator name: `LINE_TEXTURE_TILE`"] + pub const TILE: LineTextureMode = LineTextureMode { + ord: 1i32 + }; + #[doc(alias = "LINE_TEXTURE_STRETCH")] + #[doc = "Godot enumerator name: `LINE_TEXTURE_STRETCH`"] + pub const STRETCH: LineTextureMode = LineTextureMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for LineTextureMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LineTextureMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LineTextureMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::TILE => "TILE", Self::STRETCH => "STRETCH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "LINE_TEXTURE_NONE", Self::TILE => "LINE_TEXTURE_TILE", Self::STRETCH => "LINE_TEXTURE_STRETCH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LineTextureMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LineTextureMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LineTextureMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/line_edit.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/line_edit.rs new file mode 100644 index 0000000..e3e9aee --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/line_edit.rs @@ -0,0 +1,1228 @@ +#![doc = "Sidecar module for class [`LineEdit`][crate::classes::LineEdit].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `LineEdit` enums](https://docs.godotengine.org/en/stable/classes/class_lineedit.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `LineEdit.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`line_edit`][crate::classes::line_edit]: sidecar module with related enum/flag types\n* [`ILineEdit`][crate::classes::ILineEdit]: virtual methods\n\n\nSee also [Godot docs for `LineEdit`](https://docs.godotengine.org/en/stable/classes/class_lineedit.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`LineEdit::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct LineEdit { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`LineEdit`][crate::classes::LineEdit].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `LineEdit` methods](https://docs.godotengine.org/en/stable/classes/class_lineedit.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILineEdit: crate::obj::GodotClass < Base = LineEdit > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl LineEdit { + pub fn set_horizontal_alignment(&mut self, alignment: crate::global::HorizontalAlignment,) { + type CallSig = ((), crate::global::HorizontalAlignment); + let args = (alignment,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4863usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_horizontal_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_horizontal_alignment(&self,) -> crate::global::HorizontalAlignment { + type CallSig = (crate::global::HorizontalAlignment,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4864usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_horizontal_alignment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4865usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn select_full(&mut self, from: i32, to: i32,) { + type CallSig = ((), i32, i32); + let args = (from, to,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4866usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "select", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::select_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn select(&mut self,) { + self.select_ex() . done() + } + #[inline] + pub fn select_ex < 'a > (&'a mut self,) -> ExSelect < 'a > { + ExSelect::new(self,) + } + pub fn select_all(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4867usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "select_all", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn deselect(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4868usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "deselect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_selection(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4869usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "has_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selected_text(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4870usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_selected_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selection_from_column(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4871usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_selection_from_column", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selection_to_column(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4872usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_selection_to_column", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4873usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4874usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_draw_control_chars(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4875usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_draw_control_chars", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_control_chars(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4876usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_draw_control_chars", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text_direction(&mut self, direction: crate::classes::control::TextDirection,) { + type CallSig = ((), crate::classes::control::TextDirection); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4877usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_direction(&self,) -> crate::classes::control::TextDirection { + type CallSig = (crate::classes::control::TextDirection,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4878usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_language(&mut self, language: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4879usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_language(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4880usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_structured_text_bidi_override(&mut self, parser: crate::classes::text_server::StructuredTextParser,) { + type CallSig = ((), crate::classes::text_server::StructuredTextParser); + let args = (parser,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4881usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_structured_text_bidi_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_structured_text_bidi_override(&self,) -> crate::classes::text_server::StructuredTextParser { + type CallSig = (crate::classes::text_server::StructuredTextParser,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4882usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_structured_text_bidi_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_structured_text_bidi_override_options(&mut self, args: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(args),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4883usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_structured_text_bidi_override_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_structured_text_bidi_override_options(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4884usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_structured_text_bidi_override_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_placeholder(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4885usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_placeholder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_placeholder(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4886usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_placeholder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_caret_column(&mut self, position: i32,) { + type CallSig = ((), i32); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4887usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_caret_column", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_caret_column(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4888usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_caret_column", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scroll_offset(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4889usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_scroll_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_expand_to_text_length_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4890usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_expand_to_text_length_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_expand_to_text_length_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4891usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_expand_to_text_length_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_caret_blink_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4892usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_caret_blink_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_caret_blink_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4893usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_caret_blink_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_caret_mid_grapheme_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4894usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_caret_mid_grapheme_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_caret_mid_grapheme_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4895usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_caret_mid_grapheme_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_caret_force_displayed(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4896usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_caret_force_displayed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_caret_force_displayed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4897usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_caret_force_displayed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_caret_blink_interval(&mut self, interval: f32,) { + type CallSig = ((), f32); + let args = (interval,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4898usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_caret_blink_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_caret_blink_interval(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4899usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_caret_blink_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_length(&mut self, chars: i32,) { + type CallSig = ((), i32); + let args = (chars,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4900usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_max_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_length(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4901usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_max_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn insert_text_at_caret(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4902usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "insert_text_at_caret", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn delete_char_at_caret(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4903usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "delete_char_at_caret", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn delete_text(&mut self, from_column: i32, to_column: i32,) { + type CallSig = ((), i32, i32); + let args = (from_column, to_column,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4904usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "delete_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_editable(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4905usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_editable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_editable(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4906usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_editable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_secret(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4907usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_secret", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_secret(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4908usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_secret", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_secret_character(&mut self, character: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (character.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4909usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_secret_character", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_secret_character(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4910usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_secret_character", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn menu_option(&mut self, option: i32,) { + type CallSig = ((), i32); + let args = (option,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4911usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "menu_option", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_menu(&self,) -> Option < Gd < crate::classes::PopupMenu > > { + type CallSig = (Option < Gd < crate::classes::PopupMenu > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4912usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_menu_visible(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4913usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_menu_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_context_menu_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4914usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_context_menu_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_context_menu_enabled(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4915usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_context_menu_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_virtual_keyboard_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4916usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_virtual_keyboard_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_virtual_keyboard_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4917usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_virtual_keyboard_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_virtual_keyboard_type(&mut self, type_: crate::classes::line_edit::VirtualKeyboardType,) { + type CallSig = ((), crate::classes::line_edit::VirtualKeyboardType); + let args = (type_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4918usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_virtual_keyboard_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_virtual_keyboard_type(&self,) -> crate::classes::line_edit::VirtualKeyboardType { + type CallSig = (crate::classes::line_edit::VirtualKeyboardType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4919usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_virtual_keyboard_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_clear_button_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4920usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_clear_button_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_clear_button_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4921usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_clear_button_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shortcut_keys_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4922usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_shortcut_keys_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_shortcut_keys_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4923usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_shortcut_keys_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_middle_mouse_paste_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4924usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_middle_mouse_paste_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_middle_mouse_paste_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4925usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_middle_mouse_paste_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_selecting_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4926usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_selecting_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_selecting_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4927usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_selecting_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_deselect_on_focus_loss_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4928usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_deselect_on_focus_loss_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_deselect_on_focus_loss_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4929usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_deselect_on_focus_loss_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_drag_and_drop_selection_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4930usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_drag_and_drop_selection_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_drag_and_drop_selection_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4931usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_drag_and_drop_selection_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_right_icon(&mut self, icon: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (icon.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4932usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_right_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_right_icon(&mut self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4933usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "get_right_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flat(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4934usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_flat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_flat(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4935usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_flat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_select_all_on_focus(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4936usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "set_select_all_on_focus", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_select_all_on_focus(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4937usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LineEdit", "is_select_all_on_focus", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for LineEdit { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"LineEdit")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for LineEdit { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for LineEdit { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for LineEdit { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for LineEdit { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for LineEdit { + + } + impl crate::obj::cap::GodotDefault for LineEdit { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for LineEdit { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for LineEdit { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`LineEdit`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_LineEdit { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::LineEdit > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`LineEdit::select_ex`][super::LineEdit::select_ex]."] +#[must_use] +pub struct ExSelect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::LineEdit, from: i32, to: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSelect < 'a > { + fn new(surround_object: &'a mut re_export::LineEdit,) -> Self { + let from = 0i32; + let to = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from: from, to: to, + } + } + #[inline] + pub fn from(self, from: i32) -> Self { + Self { + from: from, .. self + } + } + #[inline] + pub fn to(self, to: i32) -> Self { + Self { + to: to, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, from, to, + } + = self; + re_export::LineEdit::select_full(surround_object, from, to,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MenuItems { + ord: i32 +} +impl MenuItems { + #[doc(alias = "MENU_CUT")] + #[doc = "Godot enumerator name: `MENU_CUT`"] + pub const CUT: MenuItems = MenuItems { + ord: 0i32 + }; + #[doc(alias = "MENU_COPY")] + #[doc = "Godot enumerator name: `MENU_COPY`"] + pub const COPY: MenuItems = MenuItems { + ord: 1i32 + }; + #[doc(alias = "MENU_PASTE")] + #[doc = "Godot enumerator name: `MENU_PASTE`"] + pub const PASTE: MenuItems = MenuItems { + ord: 2i32 + }; + #[doc(alias = "MENU_CLEAR")] + #[doc = "Godot enumerator name: `MENU_CLEAR`"] + pub const CLEAR: MenuItems = MenuItems { + ord: 3i32 + }; + #[doc(alias = "MENU_SELECT_ALL")] + #[doc = "Godot enumerator name: `MENU_SELECT_ALL`"] + pub const SELECT_ALL: MenuItems = MenuItems { + ord: 4i32 + }; + #[doc(alias = "MENU_UNDO")] + #[doc = "Godot enumerator name: `MENU_UNDO`"] + pub const UNDO: MenuItems = MenuItems { + ord: 5i32 + }; + #[doc(alias = "MENU_REDO")] + #[doc = "Godot enumerator name: `MENU_REDO`"] + pub const REDO: MenuItems = MenuItems { + ord: 6i32 + }; + #[doc(alias = "MENU_SUBMENU_TEXT_DIR")] + #[doc = "Godot enumerator name: `MENU_SUBMENU_TEXT_DIR`"] + pub const SUBMENU_TEXT_DIR: MenuItems = MenuItems { + ord: 7i32 + }; + #[doc(alias = "MENU_DIR_INHERITED")] + #[doc = "Godot enumerator name: `MENU_DIR_INHERITED`"] + pub const DIR_INHERITED: MenuItems = MenuItems { + ord: 8i32 + }; + #[doc(alias = "MENU_DIR_AUTO")] + #[doc = "Godot enumerator name: `MENU_DIR_AUTO`"] + pub const DIR_AUTO: MenuItems = MenuItems { + ord: 9i32 + }; + #[doc(alias = "MENU_DIR_LTR")] + #[doc = "Godot enumerator name: `MENU_DIR_LTR`"] + pub const DIR_LTR: MenuItems = MenuItems { + ord: 10i32 + }; + #[doc(alias = "MENU_DIR_RTL")] + #[doc = "Godot enumerator name: `MENU_DIR_RTL`"] + pub const DIR_RTL: MenuItems = MenuItems { + ord: 11i32 + }; + #[doc(alias = "MENU_DISPLAY_UCC")] + #[doc = "Godot enumerator name: `MENU_DISPLAY_UCC`"] + pub const DISPLAY_UCC: MenuItems = MenuItems { + ord: 12i32 + }; + #[doc(alias = "MENU_SUBMENU_INSERT_UCC")] + #[doc = "Godot enumerator name: `MENU_SUBMENU_INSERT_UCC`"] + pub const SUBMENU_INSERT_UCC: MenuItems = MenuItems { + ord: 13i32 + }; + #[doc(alias = "MENU_INSERT_LRM")] + #[doc = "Godot enumerator name: `MENU_INSERT_LRM`"] + pub const INSERT_LRM: MenuItems = MenuItems { + ord: 14i32 + }; + #[doc(alias = "MENU_INSERT_RLM")] + #[doc = "Godot enumerator name: `MENU_INSERT_RLM`"] + pub const INSERT_RLM: MenuItems = MenuItems { + ord: 15i32 + }; + #[doc(alias = "MENU_INSERT_LRE")] + #[doc = "Godot enumerator name: `MENU_INSERT_LRE`"] + pub const INSERT_LRE: MenuItems = MenuItems { + ord: 16i32 + }; + #[doc(alias = "MENU_INSERT_RLE")] + #[doc = "Godot enumerator name: `MENU_INSERT_RLE`"] + pub const INSERT_RLE: MenuItems = MenuItems { + ord: 17i32 + }; + #[doc(alias = "MENU_INSERT_LRO")] + #[doc = "Godot enumerator name: `MENU_INSERT_LRO`"] + pub const INSERT_LRO: MenuItems = MenuItems { + ord: 18i32 + }; + #[doc(alias = "MENU_INSERT_RLO")] + #[doc = "Godot enumerator name: `MENU_INSERT_RLO`"] + pub const INSERT_RLO: MenuItems = MenuItems { + ord: 19i32 + }; + #[doc(alias = "MENU_INSERT_PDF")] + #[doc = "Godot enumerator name: `MENU_INSERT_PDF`"] + pub const INSERT_PDF: MenuItems = MenuItems { + ord: 20i32 + }; + #[doc(alias = "MENU_INSERT_ALM")] + #[doc = "Godot enumerator name: `MENU_INSERT_ALM`"] + pub const INSERT_ALM: MenuItems = MenuItems { + ord: 21i32 + }; + #[doc(alias = "MENU_INSERT_LRI")] + #[doc = "Godot enumerator name: `MENU_INSERT_LRI`"] + pub const INSERT_LRI: MenuItems = MenuItems { + ord: 22i32 + }; + #[doc(alias = "MENU_INSERT_RLI")] + #[doc = "Godot enumerator name: `MENU_INSERT_RLI`"] + pub const INSERT_RLI: MenuItems = MenuItems { + ord: 23i32 + }; + #[doc(alias = "MENU_INSERT_FSI")] + #[doc = "Godot enumerator name: `MENU_INSERT_FSI`"] + pub const INSERT_FSI: MenuItems = MenuItems { + ord: 24i32 + }; + #[doc(alias = "MENU_INSERT_PDI")] + #[doc = "Godot enumerator name: `MENU_INSERT_PDI`"] + pub const INSERT_PDI: MenuItems = MenuItems { + ord: 25i32 + }; + #[doc(alias = "MENU_INSERT_ZWJ")] + #[doc = "Godot enumerator name: `MENU_INSERT_ZWJ`"] + pub const INSERT_ZWJ: MenuItems = MenuItems { + ord: 26i32 + }; + #[doc(alias = "MENU_INSERT_ZWNJ")] + #[doc = "Godot enumerator name: `MENU_INSERT_ZWNJ`"] + pub const INSERT_ZWNJ: MenuItems = MenuItems { + ord: 27i32 + }; + #[doc(alias = "MENU_INSERT_WJ")] + #[doc = "Godot enumerator name: `MENU_INSERT_WJ`"] + pub const INSERT_WJ: MenuItems = MenuItems { + ord: 28i32 + }; + #[doc(alias = "MENU_INSERT_SHY")] + #[doc = "Godot enumerator name: `MENU_INSERT_SHY`"] + pub const INSERT_SHY: MenuItems = MenuItems { + ord: 29i32 + }; + #[doc(alias = "MENU_MAX")] + #[doc = "Godot enumerator name: `MENU_MAX`"] + pub const MAX: MenuItems = MenuItems { + ord: 30i32 + }; + +} +impl std::fmt::Debug for MenuItems { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MenuItems") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MenuItems { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 | ord @ 26i32 | ord @ 27i32 | ord @ 28i32 | ord @ 29i32 | ord @ 30i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CUT => "CUT", Self::COPY => "COPY", Self::PASTE => "PASTE", Self::CLEAR => "CLEAR", Self::SELECT_ALL => "SELECT_ALL", Self::UNDO => "UNDO", Self::REDO => "REDO", Self::SUBMENU_TEXT_DIR => "SUBMENU_TEXT_DIR", Self::DIR_INHERITED => "DIR_INHERITED", Self::DIR_AUTO => "DIR_AUTO", Self::DIR_LTR => "DIR_LTR", Self::DIR_RTL => "DIR_RTL", Self::DISPLAY_UCC => "DISPLAY_UCC", Self::SUBMENU_INSERT_UCC => "SUBMENU_INSERT_UCC", Self::INSERT_LRM => "INSERT_LRM", Self::INSERT_RLM => "INSERT_RLM", Self::INSERT_LRE => "INSERT_LRE", Self::INSERT_RLE => "INSERT_RLE", Self::INSERT_LRO => "INSERT_LRO", Self::INSERT_RLO => "INSERT_RLO", Self::INSERT_PDF => "INSERT_PDF", Self::INSERT_ALM => "INSERT_ALM", Self::INSERT_LRI => "INSERT_LRI", Self::INSERT_RLI => "INSERT_RLI", Self::INSERT_FSI => "INSERT_FSI", Self::INSERT_PDI => "INSERT_PDI", Self::INSERT_ZWJ => "INSERT_ZWJ", Self::INSERT_ZWNJ => "INSERT_ZWNJ", Self::INSERT_WJ => "INSERT_WJ", Self::INSERT_SHY => "INSERT_SHY", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CUT => "MENU_CUT", Self::COPY => "MENU_COPY", Self::PASTE => "MENU_PASTE", Self::CLEAR => "MENU_CLEAR", Self::SELECT_ALL => "MENU_SELECT_ALL", Self::UNDO => "MENU_UNDO", Self::REDO => "MENU_REDO", Self::SUBMENU_TEXT_DIR => "MENU_SUBMENU_TEXT_DIR", Self::DIR_INHERITED => "MENU_DIR_INHERITED", Self::DIR_AUTO => "MENU_DIR_AUTO", Self::DIR_LTR => "MENU_DIR_LTR", Self::DIR_RTL => "MENU_DIR_RTL", Self::DISPLAY_UCC => "MENU_DISPLAY_UCC", Self::SUBMENU_INSERT_UCC => "MENU_SUBMENU_INSERT_UCC", Self::INSERT_LRM => "MENU_INSERT_LRM", Self::INSERT_RLM => "MENU_INSERT_RLM", Self::INSERT_LRE => "MENU_INSERT_LRE", Self::INSERT_RLE => "MENU_INSERT_RLE", Self::INSERT_LRO => "MENU_INSERT_LRO", Self::INSERT_RLO => "MENU_INSERT_RLO", Self::INSERT_PDF => "MENU_INSERT_PDF", Self::INSERT_ALM => "MENU_INSERT_ALM", Self::INSERT_LRI => "MENU_INSERT_LRI", Self::INSERT_RLI => "MENU_INSERT_RLI", Self::INSERT_FSI => "MENU_INSERT_FSI", Self::INSERT_PDI => "MENU_INSERT_PDI", Self::INSERT_ZWJ => "MENU_INSERT_ZWJ", Self::INSERT_ZWNJ => "MENU_INSERT_ZWNJ", Self::INSERT_WJ => "MENU_INSERT_WJ", Self::INSERT_SHY => "MENU_INSERT_SHY", Self::MAX => "MENU_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for MenuItems { + const ENUMERATOR_COUNT: usize = 30usize; + +} +impl crate::meta::GodotConvert for MenuItems { + type Via = i32; + +} +impl crate::meta::ToGodot for MenuItems { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MenuItems { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct VirtualKeyboardType { + ord: i32 +} +impl VirtualKeyboardType { + #[doc(alias = "KEYBOARD_TYPE_DEFAULT")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_DEFAULT`"] + pub const DEFAULT: VirtualKeyboardType = VirtualKeyboardType { + ord: 0i32 + }; + #[doc(alias = "KEYBOARD_TYPE_MULTILINE")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_MULTILINE`"] + pub const MULTILINE: VirtualKeyboardType = VirtualKeyboardType { + ord: 1i32 + }; + #[doc(alias = "KEYBOARD_TYPE_NUMBER")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_NUMBER`"] + pub const NUMBER: VirtualKeyboardType = VirtualKeyboardType { + ord: 2i32 + }; + #[doc(alias = "KEYBOARD_TYPE_NUMBER_DECIMAL")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_NUMBER_DECIMAL`"] + pub const NUMBER_DECIMAL: VirtualKeyboardType = VirtualKeyboardType { + ord: 3i32 + }; + #[doc(alias = "KEYBOARD_TYPE_PHONE")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_PHONE`"] + pub const PHONE: VirtualKeyboardType = VirtualKeyboardType { + ord: 4i32 + }; + #[doc(alias = "KEYBOARD_TYPE_EMAIL_ADDRESS")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_EMAIL_ADDRESS`"] + pub const EMAIL_ADDRESS: VirtualKeyboardType = VirtualKeyboardType { + ord: 5i32 + }; + #[doc(alias = "KEYBOARD_TYPE_PASSWORD")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_PASSWORD`"] + pub const PASSWORD: VirtualKeyboardType = VirtualKeyboardType { + ord: 6i32 + }; + #[doc(alias = "KEYBOARD_TYPE_URL")] + #[doc = "Godot enumerator name: `KEYBOARD_TYPE_URL`"] + pub const URL: VirtualKeyboardType = VirtualKeyboardType { + ord: 7i32 + }; + +} +impl std::fmt::Debug for VirtualKeyboardType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("VirtualKeyboardType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for VirtualKeyboardType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "DEFAULT", Self::MULTILINE => "MULTILINE", Self::NUMBER => "NUMBER", Self::NUMBER_DECIMAL => "NUMBER_DECIMAL", Self::PHONE => "PHONE", Self::EMAIL_ADDRESS => "EMAIL_ADDRESS", Self::PASSWORD => "PASSWORD", Self::URL => "URL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "KEYBOARD_TYPE_DEFAULT", Self::MULTILINE => "KEYBOARD_TYPE_MULTILINE", Self::NUMBER => "KEYBOARD_TYPE_NUMBER", Self::NUMBER_DECIMAL => "KEYBOARD_TYPE_NUMBER_DECIMAL", Self::PHONE => "KEYBOARD_TYPE_PHONE", Self::EMAIL_ADDRESS => "KEYBOARD_TYPE_EMAIL_ADDRESS", Self::PASSWORD => "KEYBOARD_TYPE_PASSWORD", Self::URL => "KEYBOARD_TYPE_URL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for VirtualKeyboardType { + type Via = i32; + +} +impl crate::meta::ToGodot for VirtualKeyboardType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for VirtualKeyboardType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/link_button.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/link_button.rs new file mode 100644 index 0000000..a96661f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/link_button.rs @@ -0,0 +1,464 @@ +#![doc = "Sidecar module for class [`LinkButton`][crate::classes::LinkButton].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `LinkButton` enums](https://docs.godotengine.org/en/stable/classes/class_linkbutton.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `LinkButton.`\n\nInherits [`BaseButton`][crate::classes::BaseButton].\n\nRelated symbols:\n\n* [`link_button`][crate::classes::link_button]: sidecar module with related enum/flag types\n* [`ILinkButton`][crate::classes::ILinkButton]: virtual methods\n\n\nSee also [Godot docs for `LinkButton`](https://docs.godotengine.org/en/stable/classes/class_linkbutton.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`LinkButton::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct LinkButton { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`LinkButton`][crate::classes::LinkButton].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `LinkButton` methods](https://docs.godotengine.org/en/stable/classes/class_linkbutton.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ILinkButton: crate::obj::GodotClass < Base = LinkButton > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn pressed(&mut self,) { + unimplemented !() + } + fn toggled(&mut self, toggled_on: bool,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl LinkButton { + pub fn set_text(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4938usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "set_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4939usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "get_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text_direction(&mut self, direction: crate::classes::control::TextDirection,) { + type CallSig = ((), crate::classes::control::TextDirection); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4940usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "set_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_direction(&self,) -> crate::classes::control::TextDirection { + type CallSig = (crate::classes::control::TextDirection,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4941usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "get_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_language(&mut self, language: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4942usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "set_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_language(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4943usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "get_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uri(&mut self, uri: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (uri.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4944usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "set_uri", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_uri(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4945usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "get_uri", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_underline_mode(&mut self, underline_mode: crate::classes::link_button::UnderlineMode,) { + type CallSig = ((), crate::classes::link_button::UnderlineMode); + let args = (underline_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4946usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "set_underline_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_underline_mode(&self,) -> crate::classes::link_button::UnderlineMode { + type CallSig = (crate::classes::link_button::UnderlineMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4947usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "get_underline_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_structured_text_bidi_override(&mut self, parser: crate::classes::text_server::StructuredTextParser,) { + type CallSig = ((), crate::classes::text_server::StructuredTextParser); + let args = (parser,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4948usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "set_structured_text_bidi_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_structured_text_bidi_override(&self,) -> crate::classes::text_server::StructuredTextParser { + type CallSig = (crate::classes::text_server::StructuredTextParser,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4949usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "get_structured_text_bidi_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_structured_text_bidi_override_options(&mut self, args: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(args),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4950usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "set_structured_text_bidi_override_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_structured_text_bidi_override_options(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4951usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "LinkButton", "get_structured_text_bidi_override_options", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for LinkButton { + type Base = crate::classes::BaseButton; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"LinkButton")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for LinkButton { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::BaseButton > for LinkButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for LinkButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for LinkButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for LinkButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for LinkButton { + + } + impl crate::obj::cap::GodotDefault for LinkButton { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for LinkButton { + type Target = crate::classes::BaseButton; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for LinkButton { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`LinkButton`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_LinkButton { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::LinkButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BaseButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct UnderlineMode { + ord: i32 +} +impl UnderlineMode { + #[doc(alias = "UNDERLINE_MODE_ALWAYS")] + #[doc = "Godot enumerator name: `UNDERLINE_MODE_ALWAYS`"] + pub const ALWAYS: UnderlineMode = UnderlineMode { + ord: 0i32 + }; + #[doc(alias = "UNDERLINE_MODE_ON_HOVER")] + #[doc = "Godot enumerator name: `UNDERLINE_MODE_ON_HOVER`"] + pub const ON_HOVER: UnderlineMode = UnderlineMode { + ord: 1i32 + }; + #[doc(alias = "UNDERLINE_MODE_NEVER")] + #[doc = "Godot enumerator name: `UNDERLINE_MODE_NEVER`"] + pub const NEVER: UnderlineMode = UnderlineMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for UnderlineMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("UnderlineMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for UnderlineMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALWAYS => "ALWAYS", Self::ON_HOVER => "ON_HOVER", Self::NEVER => "NEVER", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALWAYS => "UNDERLINE_MODE_ALWAYS", Self::ON_HOVER => "UNDERLINE_MODE_ON_HOVER", Self::NEVER => "UNDERLINE_MODE_NEVER", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for UnderlineMode { + type Via = i32; + +} +impl crate::meta::ToGodot for UnderlineMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for UnderlineMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/main_loop.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/main_loop.rs new file mode 100644 index 0000000..f3545d9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/main_loop.rs @@ -0,0 +1,265 @@ +#![doc = "Sidecar module for class [`MainLoop`][crate::classes::MainLoop].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MainLoop` enums](https://docs.godotengine.org/en/stable/classes/class_mainloop.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MainLoop.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IMainLoop`][crate::classes::IMainLoop]: virtual methods\n* [`MainLoopNotification`][crate::classes::notify::MainLoopNotification]: notification type\n\n\nSee also [Godot docs for `MainLoop`](https://docs.godotengine.org/en/stable/classes/class_mainloop.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MainLoop::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MainLoop { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MainLoop`][crate::classes::MainLoop].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MainLoop` methods](https://docs.godotengine.org/en/stable/classes/class_mainloop.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMainLoop: crate::obj::GodotClass < Base = MainLoop > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: MainLoopNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn initialize(&mut self,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) -> bool { + unimplemented !() + } + fn process(&mut self, delta: f64,) -> bool { + unimplemented !() + } + fn finalize(&mut self,) { + unimplemented !() + } + } + #[doc = "Notification type for class [`MainLoop`][crate::classes::MainLoop]."] + #[doc = r""] + #[doc = r" Makes it easier to keep an overview all possible notification variants for a given class, including"] + #[doc = r" notifications defined in base classes."] + #[doc = r""] + #[doc = r" Contains the [`Unknown`][Self::Unknown] variant for forward compatibility."] + #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] + #[repr(i32)] + #[allow(non_camel_case_types)] + pub enum MainLoopNotification { + OS_MEMORY_WARNING = 2009i32, TRANSLATION_CHANGED = 2010i32, WM_ABOUT = 2011i32, CRASH = 2012i32, OS_IME_UPDATE = 2013i32, APPLICATION_RESUMED = 2014i32, APPLICATION_PAUSED = 2015i32, APPLICATION_FOCUS_IN = 2016i32, APPLICATION_FOCUS_OUT = 2017i32, TEXT_SERVER_CHANGED = 2018i32, POSTINITIALIZE = 0i32, PREDELETE = 1i32, EXTENSION_RELOADED = 2i32, #[doc = r" Since Godot represents notifications as integers, it's always possible that a notification outside the known types"] + #[doc = r" is received. For example, the user can manually issue notifications through `Object::notify()`."] + #[doc = r""] + #[doc = r" This is also necessary if you develop an extension on a Godot version and want to be forward-compatible with newer"] + #[doc = r" versions. If Godot adds new notifications, they will be unknown to your extension, but you can still handle them."] + Unknown(i32), + } + impl From < i32 > for MainLoopNotification { + #[doc = r" Always succeeds, mapping unknown integers to the `Unknown` variant."] + fn from(enumerator: i32) -> Self { + match enumerator { + 2009i32 => Self::OS_MEMORY_WARNING, 2010i32 => Self::TRANSLATION_CHANGED, 2011i32 => Self::WM_ABOUT, 2012i32 => Self::CRASH, 2013i32 => Self::OS_IME_UPDATE, 2014i32 => Self::APPLICATION_RESUMED, 2015i32 => Self::APPLICATION_PAUSED, 2016i32 => Self::APPLICATION_FOCUS_IN, 2017i32 => Self::APPLICATION_FOCUS_OUT, 2018i32 => Self::TEXT_SERVER_CHANGED, 0i32 => Self::POSTINITIALIZE, 1i32 => Self::PREDELETE, 2i32 => Self::EXTENSION_RELOADED, other_int => Self::Unknown(other_int), + } + } + } + impl From < MainLoopNotification > for i32 { + fn from(notification: MainLoopNotification) -> i32 { + match notification { + MainLoopNotification::OS_MEMORY_WARNING => 2009i32, MainLoopNotification::TRANSLATION_CHANGED => 2010i32, MainLoopNotification::WM_ABOUT => 2011i32, MainLoopNotification::CRASH => 2012i32, MainLoopNotification::OS_IME_UPDATE => 2013i32, MainLoopNotification::APPLICATION_RESUMED => 2014i32, MainLoopNotification::APPLICATION_PAUSED => 2015i32, MainLoopNotification::APPLICATION_FOCUS_IN => 2016i32, MainLoopNotification::APPLICATION_FOCUS_OUT => 2017i32, MainLoopNotification::TEXT_SERVER_CHANGED => 2018i32, MainLoopNotification::POSTINITIALIZE => 0i32, MainLoopNotification::PREDELETE => 1i32, MainLoopNotification::EXTENSION_RELOADED => 2i32, MainLoopNotification::Unknown(int) => int, + } + } + } + impl MainLoop { + #[doc = r" ⚠️ Sends a Godot notification to all classes inherited by the object."] + #[doc = r""] + #[doc = r" Triggers calls to `on_notification()`, and depending on the notification, also to Godot's lifecycle callbacks such as `ready()`."] + #[doc = r""] + #[doc = r" Starts from the highest ancestor (the `Object` class) and goes down the hierarchy."] + #[doc = r" See also [Godot docs for `Object::notification()`](https://docs.godotengine.org/en/latest/classes/class_object.html#id3)."] + #[doc = r""] + #[doc = r" # Panics"] + #[doc = r""] + #[doc = r" If you call this method on a user-defined object while holding a `GdRef` or `GdMut` guard on the instance, you will encounter"] + #[doc = r" a panic. The reason is that the receiving virtual method `on_notification()` acquires a `GdMut` lock dynamically, which must"] + #[doc = r" be exclusive."] + pub fn notify(&mut self, what: MainLoopNotification) { + self.notification(i32::from(what), false); + + } + #[doc = r" ⚠️ Like [`Self::notify()`], but starts at the most-derived class and goes up the hierarchy."] + #[doc = r""] + #[doc = r" See docs of that method, including the panics."] + pub fn notify_reversed(&mut self, what: MainLoopNotification) { + self.notification(i32::from(what), true); + + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub(crate) const NOTIFICATION_OS_MEMORY_WARNING: i32 = 2009i32; + pub(crate) const NOTIFICATION_TRANSLATION_CHANGED: i32 = 2010i32; + pub(crate) const NOTIFICATION_WM_ABOUT: i32 = 2011i32; + pub(crate) const NOTIFICATION_CRASH: i32 = 2012i32; + pub(crate) const NOTIFICATION_OS_IME_UPDATE: i32 = 2013i32; + pub(crate) const NOTIFICATION_APPLICATION_RESUMED: i32 = 2014i32; + pub(crate) const NOTIFICATION_APPLICATION_PAUSED: i32 = 2015i32; + pub(crate) const NOTIFICATION_APPLICATION_FOCUS_IN: i32 = 2016i32; + pub(crate) const NOTIFICATION_APPLICATION_FOCUS_OUT: i32 = 2017i32; + pub(crate) const NOTIFICATION_TEXT_SERVER_CHANGED: i32 = 2018i32; + + } + impl crate::obj::GodotClass for MainLoop { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MainLoop")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MainLoop { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MainLoop { + + } + impl crate::obj::cap::GodotDefault for MainLoop { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MainLoop { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MainLoop { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MainLoop`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MainLoop { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MainLoop > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/margin_container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/margin_container.rs new file mode 100644 index 0000000..cc215cc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/margin_container.rs @@ -0,0 +1,277 @@ +#![doc = "Sidecar module for class [`MarginContainer`][crate::classes::MarginContainer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MarginContainer` enums](https://docs.godotengine.org/en/stable/classes/class_margincontainer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MarginContainer.`\n\nInherits [`Container`][crate::classes::Container].\n\nRelated symbols:\n\n* [`IMarginContainer`][crate::classes::IMarginContainer]: virtual methods\n\n\nSee also [Godot docs for `MarginContainer`](https://docs.godotengine.org/en/stable/classes/class_margincontainer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MarginContainer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MarginContainer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MarginContainer`][crate::classes::MarginContainer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MarginContainer` methods](https://docs.godotengine.org/en/stable/classes/class_margincontainer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMarginContainer: crate::obj::GodotClass < Base = MarginContainer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl MarginContainer { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MarginContainer { + type Base = crate::classes::Container; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MarginContainer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MarginContainer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for MarginContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for MarginContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for MarginContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for MarginContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MarginContainer { + + } + impl crate::obj::cap::GodotDefault for MarginContainer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MarginContainer { + type Target = crate::classes::Container; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MarginContainer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MarginContainer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MarginContainer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MarginContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/marker_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/marker_2d.rs new file mode 100644 index 0000000..f443cfb --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/marker_2d.rs @@ -0,0 +1,254 @@ +#![doc = "Sidecar module for class [`Marker2D`][crate::classes::Marker2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Marker2D` enums](https://docs.godotengine.org/en/stable/classes/class_marker2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Marker2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IMarker2D`][crate::classes::IMarker2D]: virtual methods\n\n\nSee also [Godot docs for `Marker2D`](https://docs.godotengine.org/en/stable/classes/class_marker2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Marker2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Marker2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Marker2D`][crate::classes::Marker2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Marker2D` methods](https://docs.godotengine.org/en/stable/classes/class_marker2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMarker2D: crate::obj::GodotClass < Base = Marker2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Marker2D { + pub fn set_gizmo_extents(&mut self, extents: f32,) { + type CallSig = ((), f32); + let args = (extents,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4952usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Marker2D", "set_gizmo_extents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gizmo_extents(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4953usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Marker2D", "get_gizmo_extents", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Marker2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Marker2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Marker2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for Marker2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Marker2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Marker2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Marker2D { + + } + impl crate::obj::cap::GodotDefault for Marker2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Marker2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Marker2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Marker2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Marker2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Marker2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/marker_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/marker_3d.rs new file mode 100644 index 0000000..3e0187d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/marker_3d.rs @@ -0,0 +1,245 @@ +#![doc = "Sidecar module for class [`Marker3D`][crate::classes::Marker3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Marker3D` enums](https://docs.godotengine.org/en/stable/classes/class_marker3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Marker3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`IMarker3D`][crate::classes::IMarker3D]: virtual methods\n\n\nSee also [Godot docs for `Marker3D`](https://docs.godotengine.org/en/stable/classes/class_marker3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Marker3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Marker3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Marker3D`][crate::classes::Marker3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Marker3D` methods](https://docs.godotengine.org/en/stable/classes/class_marker3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMarker3D: crate::obj::GodotClass < Base = Marker3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Marker3D { + pub fn set_gizmo_extents(&mut self, extents: f32,) { + type CallSig = ((), f32); + let args = (extents,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4954usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Marker3D", "set_gizmo_extents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gizmo_extents(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4955usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Marker3D", "get_gizmo_extents", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Marker3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Marker3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Marker3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for Marker3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Marker3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Marker3D { + + } + impl crate::obj::cap::GodotDefault for Marker3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Marker3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Marker3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Marker3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Marker3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Marker3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/marshalls.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/marshalls.rs new file mode 100644 index 0000000..a000883 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/marshalls.rs @@ -0,0 +1,311 @@ +#![doc = "Sidecar module for class [`Marshalls`][crate::classes::Marshalls].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Marshalls` enums](https://docs.godotengine.org/en/stable/classes/class_marshalls.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Marshalls.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`marshalls`][crate::classes::marshalls]: sidecar module with related enum/flag types\n* [`IMarshalls`][crate::classes::IMarshalls]: virtual methods\n\n\nSee also [Godot docs for `Marshalls`](https://docs.godotengine.org/en/stable/classes/class_marshalls.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`Marshalls::singleton()`][Marshalls::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct Marshalls { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Marshalls`][crate::classes::Marshalls].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Marshalls` methods](https://docs.godotengine.org/en/stable/classes/class_marshalls.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMarshalls: crate::obj::GodotClass < Base = Marshalls > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Marshalls { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"Marshalls"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub(crate) fn variant_to_base64_full(&mut self, variant: RefArg < Variant >, full_objects: bool,) -> GString { + type CallSig < 'a0, > = (GString, RefArg < 'a0, Variant >, bool); + let args = (variant, full_objects,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4956usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Marshalls", "variant_to_base64", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::variant_to_base64_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn variant_to_base64(&mut self, variant: &Variant,) -> GString { + self.variant_to_base64_ex(variant,) . done() + } + #[inline] + pub fn variant_to_base64_ex < 'a > (&'a mut self, variant: &'a Variant,) -> ExVariantToBase64 < 'a > { + ExVariantToBase64::new(self, variant,) + } + pub(crate) fn base64_to_variant_full(&mut self, base64_str: CowArg < GString >, allow_objects: bool,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, GString >, bool); + let args = (base64_str, allow_objects,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4957usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Marshalls", "base64_to_variant", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::base64_to_variant_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn base64_to_variant(&mut self, base64_str: impl AsArg < GString >,) -> Variant { + self.base64_to_variant_ex(base64_str,) . done() + } + #[inline] + pub fn base64_to_variant_ex < 'a > (&'a mut self, base64_str: impl AsArg < GString > + 'a,) -> ExBase64ToVariant < 'a > { + ExBase64ToVariant::new(self, base64_str,) + } + pub fn raw_to_base64(&mut self, array: &PackedByteArray,) -> GString { + type CallSig < 'a0, > = (GString, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(array),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4958usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Marshalls", "raw_to_base64", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn base64_to_raw(&mut self, base64_str: impl AsArg < GString >,) -> PackedByteArray { + type CallSig < 'a0, > = (PackedByteArray, CowArg < 'a0, GString >); + let args = (base64_str.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4959usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Marshalls", "base64_to_raw", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn utf8_to_base64(&mut self, utf8_str: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (utf8_str.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4960usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Marshalls", "utf8_to_base64", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn base64_to_utf8(&mut self, base64_str: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (base64_str.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4961usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Marshalls", "base64_to_utf8", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Marshalls { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Marshalls")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Marshalls { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Marshalls { + + } + impl std::ops::Deref for Marshalls { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Marshalls { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Marshalls`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Marshalls { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Marshalls > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Marshalls::variant_to_base64_ex`][super::Marshalls::variant_to_base64_ex]."] +#[must_use] +pub struct ExVariantToBase64 < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Marshalls, variant: CowArg < 'a, Variant >, full_objects: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExVariantToBase64 < 'a > { + fn new(surround_object: &'a mut re_export::Marshalls, variant: &'a Variant,) -> Self { + let full_objects = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, variant: CowArg::Borrowed(variant), full_objects: full_objects, + } + } + #[inline] + pub fn full_objects(self, full_objects: bool) -> Self { + Self { + full_objects: full_objects, .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, variant, full_objects, + } + = self; + re_export::Marshalls::variant_to_base64_full(surround_object, variant.cow_as_arg(), full_objects,) + } +} +#[doc = "Default-param extender for [`Marshalls::base64_to_variant_ex`][super::Marshalls::base64_to_variant_ex]."] +#[must_use] +pub struct ExBase64ToVariant < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Marshalls, base64_str: CowArg < 'a, GString >, allow_objects: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBase64ToVariant < 'a > { + fn new(surround_object: &'a mut re_export::Marshalls, base64_str: impl AsArg < GString > + 'a,) -> Self { + let allow_objects = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, base64_str: base64_str.into_arg(), allow_objects: allow_objects, + } + } + #[inline] + pub fn allow_objects(self, allow_objects: bool) -> Self { + Self { + allow_objects: allow_objects, .. self + } + } + #[inline] + pub fn done(self) -> Variant { + let Self { + _phantom, surround_object, base64_str, allow_objects, + } + = self; + re_export::Marshalls::base64_to_variant_full(surround_object, base64_str, allow_objects,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/material.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/material.rs new file mode 100644 index 0000000..4cac839 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/material.rs @@ -0,0 +1,261 @@ +#![doc = "Sidecar module for class [`Material`][crate::classes::Material].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Material` enums](https://docs.godotengine.org/en/stable/classes/class_material.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Material.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IMaterial`][crate::classes::IMaterial]: virtual methods\n\n\nSee also [Godot docs for `Material`](https://docs.godotengine.org/en/stable/classes/class_material.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Material::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Material { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Material`][crate::classes::Material].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Material` methods](https://docs.godotengine.org/en/stable/classes/class_material.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMaterial: crate::obj::GodotClass < Base = Material > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_shader_rid(&self,) -> Rid; + fn get_shader_mode(&self,) -> crate::classes::shader::Mode; + fn can_do_next_pass(&self,) -> bool { + unimplemented !() + } + fn can_use_render_priority(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Material { + pub fn set_next_pass(&mut self, next_pass: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (next_pass.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4962usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Material", "set_next_pass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_next_pass(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4963usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Material", "get_next_pass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_render_priority(&mut self, priority: i32,) { + type CallSig = ((), i32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4964usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Material", "set_render_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_render_priority(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4965usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Material", "get_render_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn inspect_native_shader_code(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4966usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Material", "inspect_native_shader_code", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_placeholder(&self,) -> Option < Gd < crate::classes::Resource > > { + type CallSig = (Option < Gd < crate::classes::Resource > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4967usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Material", "create_placeholder", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const RENDER_PRIORITY_MAX: i32 = 127i32; + pub const RENDER_PRIORITY_MIN: i32 = - 128i32; + + } + impl crate::obj::GodotClass for Material { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Material")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Material { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Material { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Material { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Material { + + } + impl crate::obj::cap::GodotDefault for Material { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Material { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Material { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Material`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Material { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Material > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/menu_bar.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/menu_bar.rs new file mode 100644 index 0000000..07c2eaa --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/menu_bar.rs @@ -0,0 +1,457 @@ +#![doc = "Sidecar module for class [`MenuBar`][crate::classes::MenuBar].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MenuBar` enums](https://docs.godotengine.org/en/stable/classes/class_menubar.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MenuBar.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`IMenuBar`][crate::classes::IMenuBar]: virtual methods\n\n\nSee also [Godot docs for `MenuBar`](https://docs.godotengine.org/en/stable/classes/class_menubar.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MenuBar::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MenuBar { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MenuBar`][crate::classes::MenuBar].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MenuBar` methods](https://docs.godotengine.org/en/stable/classes/class_menubar.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMenuBar: crate::obj::GodotClass < Base = MenuBar > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl MenuBar { + pub fn set_switch_on_hover(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4968usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "set_switch_on_hover", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_switch_on_hover(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4969usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "is_switch_on_hover", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disable_shortcuts(&mut self, disabled: bool,) { + type CallSig = ((), bool); + let args = (disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4970usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "set_disable_shortcuts", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_prefer_global_menu(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4971usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "set_prefer_global_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_prefer_global_menu(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4972usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "is_prefer_global_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_native_menu(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4973usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "is_native_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_menu_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4974usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "get_menu_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text_direction(&mut self, direction: crate::classes::control::TextDirection,) { + type CallSig = ((), crate::classes::control::TextDirection); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4975usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "set_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_direction(&self,) -> crate::classes::control::TextDirection { + type CallSig = (crate::classes::control::TextDirection,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4976usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "get_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_language(&mut self, language: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4977usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "set_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_language(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4978usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "get_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flat(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4979usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "set_flat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_flat(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4980usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "is_flat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_start_index(&mut self, enabled: i32,) { + type CallSig = ((), i32); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4981usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "set_start_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_start_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4982usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "get_start_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_menu_title(&mut self, menu: i32, title: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (menu, title.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4983usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "set_menu_title", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_menu_title(&self, menu: i32,) -> GString { + type CallSig = (GString, i32); + let args = (menu,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4984usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "get_menu_title", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_menu_tooltip(&mut self, menu: i32, tooltip: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (menu, tooltip.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4985usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "set_menu_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_menu_tooltip(&self, menu: i32,) -> GString { + type CallSig = (GString, i32); + let args = (menu,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4986usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "get_menu_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_menu_disabled(&mut self, menu: i32, disabled: bool,) { + type CallSig = ((), i32, bool); + let args = (menu, disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4987usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "set_menu_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_menu_disabled(&self, menu: i32,) -> bool { + type CallSig = (bool, i32); + let args = (menu,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4988usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "is_menu_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_menu_hidden(&mut self, menu: i32, hidden: bool,) { + type CallSig = ((), i32, bool); + let args = (menu, hidden,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4989usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "set_menu_hidden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_menu_hidden(&self, menu: i32,) -> bool { + type CallSig = (bool, i32); + let args = (menu,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4990usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "is_menu_hidden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_menu_popup(&self, menu: i32,) -> Option < Gd < crate::classes::PopupMenu > > { + type CallSig = (Option < Gd < crate::classes::PopupMenu > >, i32); + let args = (menu,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4991usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuBar", "get_menu_popup", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MenuBar { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MenuBar")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MenuBar { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for MenuBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for MenuBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for MenuBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MenuBar { + + } + impl crate::obj::cap::GodotDefault for MenuBar { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MenuBar { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MenuBar { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MenuBar`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MenuBar { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MenuBar > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/menu_button.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/menu_button.rs new file mode 100644 index 0000000..91642d0 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/menu_button.rs @@ -0,0 +1,339 @@ +#![doc = "Sidecar module for class [`MenuButton`][crate::classes::MenuButton].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MenuButton` enums](https://docs.godotengine.org/en/stable/classes/class_menubutton.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MenuButton.`\n\nInherits [`Button`][crate::classes::Button].\n\nRelated symbols:\n\n* [`IMenuButton`][crate::classes::IMenuButton]: virtual methods\n\n\nSee also [Godot docs for `MenuButton`](https://docs.godotengine.org/en/stable/classes/class_menubutton.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MenuButton::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MenuButton { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MenuButton`][crate::classes::MenuButton].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MenuButton` methods](https://docs.godotengine.org/en/stable/classes/class_menubutton.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMenuButton: crate::obj::GodotClass < Base = MenuButton > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn pressed(&mut self,) { + unimplemented !() + } + fn toggled(&mut self, toggled_on: bool,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl MenuButton { + pub fn get_popup(&self,) -> Option < Gd < crate::classes::PopupMenu > > { + type CallSig = (Option < Gd < crate::classes::PopupMenu > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4992usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuButton", "get_popup", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn show_popup(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4993usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuButton", "show_popup", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_switch_on_hover(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4994usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuButton", "set_switch_on_hover", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_switch_on_hover(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4995usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuButton", "is_switch_on_hover", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disable_shortcuts(&mut self, disabled: bool,) { + type CallSig = ((), bool); + let args = (disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4996usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuButton", "set_disable_shortcuts", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4997usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuButton", "set_item_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4998usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MenuButton", "get_item_count", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MenuButton { + type Base = crate::classes::Button; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MenuButton")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MenuButton { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Button > for MenuButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::BaseButton > for MenuButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for MenuButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for MenuButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for MenuButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MenuButton { + + } + impl crate::obj::cap::GodotDefault for MenuButton { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MenuButton { + type Target = crate::classes::Button; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MenuButton { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MenuButton`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MenuButton { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MenuButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Button > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BaseButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh.rs new file mode 100644 index 0000000..8aae4f7 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh.rs @@ -0,0 +1,960 @@ +#![doc = "Sidecar module for class [`Mesh`][crate::classes::Mesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Mesh` enums](https://docs.godotengine.org/en/stable/classes/class_mesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Mesh.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`mesh`][crate::classes::mesh]: sidecar module with related enum/flag types\n* [`IMesh`][crate::classes::IMesh]: virtual methods\n\n\nSee also [Godot docs for `Mesh`](https://docs.godotengine.org/en/stable/classes/class_mesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Mesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Mesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Mesh`][crate::classes::Mesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Mesh` methods](https://docs.godotengine.org/en/stable/classes/class_mesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMesh: crate::obj::GodotClass < Base = Mesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Mesh { + pub fn set_lightmap_size_hint(&mut self, size: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(4999usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "set_lightmap_size_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lightmap_size_hint(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5000usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "get_lightmap_size_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_aabb(&self,) -> Aabb { + type CallSig = (Aabb,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5001usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "get_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_faces(&self,) -> PackedVector3Array { + type CallSig = (PackedVector3Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5002usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "get_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5003usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "get_surface_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_get_arrays(&self, surf_idx: i32,) -> VariantArray { + type CallSig = (VariantArray, i32); + let args = (surf_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5004usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "surface_get_arrays", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_get_blend_shape_arrays(&self, surf_idx: i32,) -> Array < VariantArray > { + type CallSig = (Array < VariantArray >, i32); + let args = (surf_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5005usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "surface_get_blend_shape_arrays", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_set_material(&mut self, surf_idx: i32, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Material >); + let args = (surf_idx, material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5006usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "surface_set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn surface_get_material(&self, surf_idx: i32,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >, i32); + let args = (surf_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5007usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "surface_get_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_placeholder(&self,) -> Option < Gd < crate::classes::Resource > > { + type CallSig = (Option < Gd < crate::classes::Resource > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5008usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "create_placeholder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_trimesh_shape(&self,) -> Option < Gd < crate::classes::ConcavePolygonShape3D > > { + type CallSig = (Option < Gd < crate::classes::ConcavePolygonShape3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5009usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "create_trimesh_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn create_convex_shape_full(&self, clean: bool, simplify: bool,) -> Option < Gd < crate::classes::ConvexPolygonShape3D > > { + type CallSig = (Option < Gd < crate::classes::ConvexPolygonShape3D > >, bool, bool); + let args = (clean, simplify,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5010usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "create_convex_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_convex_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_convex_shape(&self,) -> Option < Gd < crate::classes::ConvexPolygonShape3D > > { + self.create_convex_shape_ex() . done() + } + #[inline] + pub fn create_convex_shape_ex < 'a > (&'a self,) -> ExCreateConvexShape < 'a > { + ExCreateConvexShape::new(self,) + } + pub fn create_outline(&self, margin: f32,) -> Option < Gd < crate::classes::Mesh > > { + type CallSig = (Option < Gd < crate::classes::Mesh > >, f32); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5011usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "create_outline", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn generate_triangle_mesh(&self,) -> Option < Gd < crate::classes::TriangleMesh > > { + type CallSig = (Option < Gd < crate::classes::TriangleMesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5012usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Mesh", "generate_triangle_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Mesh { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Mesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Mesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Mesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Mesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Mesh { + + } + impl crate::obj::cap::GodotDefault for Mesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Mesh { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Mesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Mesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Mesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Mesh::create_convex_shape_ex`][super::Mesh::create_convex_shape_ex]."] +#[must_use] +pub struct ExCreateConvexShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Mesh, clean: bool, simplify: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateConvexShape < 'a > { + fn new(surround_object: &'a re_export::Mesh,) -> Self { + let clean = true; + let simplify = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, clean: clean, simplify: simplify, + } + } + #[inline] + pub fn clean(self, clean: bool) -> Self { + Self { + clean: clean, .. self + } + } + #[inline] + pub fn simplify(self, simplify: bool) -> Self { + Self { + simplify: simplify, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::ConvexPolygonShape3D > > { + let Self { + _phantom, surround_object, clean, simplify, + } + = self; + re_export::Mesh::create_convex_shape_full(surround_object, clean, simplify,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PrimitiveType { + ord: i32 +} +impl PrimitiveType { + #[doc(alias = "PRIMITIVE_POINTS")] + #[doc = "Godot enumerator name: `PRIMITIVE_POINTS`"] + pub const POINTS: PrimitiveType = PrimitiveType { + ord: 0i32 + }; + #[doc(alias = "PRIMITIVE_LINES")] + #[doc = "Godot enumerator name: `PRIMITIVE_LINES`"] + pub const LINES: PrimitiveType = PrimitiveType { + ord: 1i32 + }; + #[doc(alias = "PRIMITIVE_LINE_STRIP")] + #[doc = "Godot enumerator name: `PRIMITIVE_LINE_STRIP`"] + pub const LINE_STRIP: PrimitiveType = PrimitiveType { + ord: 2i32 + }; + #[doc(alias = "PRIMITIVE_TRIANGLES")] + #[doc = "Godot enumerator name: `PRIMITIVE_TRIANGLES`"] + pub const TRIANGLES: PrimitiveType = PrimitiveType { + ord: 3i32 + }; + #[doc(alias = "PRIMITIVE_TRIANGLE_STRIP")] + #[doc = "Godot enumerator name: `PRIMITIVE_TRIANGLE_STRIP`"] + pub const TRIANGLE_STRIP: PrimitiveType = PrimitiveType { + ord: 4i32 + }; + +} +impl std::fmt::Debug for PrimitiveType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PrimitiveType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PrimitiveType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINTS => "POINTS", Self::LINES => "LINES", Self::LINE_STRIP => "LINE_STRIP", Self::TRIANGLES => "TRIANGLES", Self::TRIANGLE_STRIP => "TRIANGLE_STRIP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINTS => "PRIMITIVE_POINTS", Self::LINES => "PRIMITIVE_LINES", Self::LINE_STRIP => "PRIMITIVE_LINE_STRIP", Self::TRIANGLES => "PRIMITIVE_TRIANGLES", Self::TRIANGLE_STRIP => "PRIMITIVE_TRIANGLE_STRIP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PrimitiveType { + type Via = i32; + +} +impl crate::meta::ToGodot for PrimitiveType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PrimitiveType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ArrayType { + ord: i32 +} +impl ArrayType { + #[doc(alias = "ARRAY_VERTEX")] + #[doc = "Godot enumerator name: `ARRAY_VERTEX`"] + pub const VERTEX: ArrayType = ArrayType { + ord: 0i32 + }; + #[doc(alias = "ARRAY_NORMAL")] + #[doc = "Godot enumerator name: `ARRAY_NORMAL`"] + pub const NORMAL: ArrayType = ArrayType { + ord: 1i32 + }; + #[doc(alias = "ARRAY_TANGENT")] + #[doc = "Godot enumerator name: `ARRAY_TANGENT`"] + pub const TANGENT: ArrayType = ArrayType { + ord: 2i32 + }; + #[doc(alias = "ARRAY_COLOR")] + #[doc = "Godot enumerator name: `ARRAY_COLOR`"] + pub const COLOR: ArrayType = ArrayType { + ord: 3i32 + }; + #[doc(alias = "ARRAY_TEX_UV")] + #[doc = "Godot enumerator name: `ARRAY_TEX_UV`"] + pub const TEX_UV: ArrayType = ArrayType { + ord: 4i32 + }; + #[doc(alias = "ARRAY_TEX_UV2")] + #[doc = "Godot enumerator name: `ARRAY_TEX_UV2`"] + pub const TEX_UV2: ArrayType = ArrayType { + ord: 5i32 + }; + #[doc(alias = "ARRAY_CUSTOM0")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM0`"] + pub const CUSTOM0: ArrayType = ArrayType { + ord: 6i32 + }; + #[doc(alias = "ARRAY_CUSTOM1")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM1`"] + pub const CUSTOM1: ArrayType = ArrayType { + ord: 7i32 + }; + #[doc(alias = "ARRAY_CUSTOM2")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM2`"] + pub const CUSTOM2: ArrayType = ArrayType { + ord: 8i32 + }; + #[doc(alias = "ARRAY_CUSTOM3")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM3`"] + pub const CUSTOM3: ArrayType = ArrayType { + ord: 9i32 + }; + #[doc(alias = "ARRAY_BONES")] + #[doc = "Godot enumerator name: `ARRAY_BONES`"] + pub const BONES: ArrayType = ArrayType { + ord: 10i32 + }; + #[doc(alias = "ARRAY_WEIGHTS")] + #[doc = "Godot enumerator name: `ARRAY_WEIGHTS`"] + pub const WEIGHTS: ArrayType = ArrayType { + ord: 11i32 + }; + #[doc(alias = "ARRAY_INDEX")] + #[doc = "Godot enumerator name: `ARRAY_INDEX`"] + pub const INDEX: ArrayType = ArrayType { + ord: 12i32 + }; + #[doc(alias = "ARRAY_MAX")] + #[doc = "Godot enumerator name: `ARRAY_MAX`"] + pub const MAX: ArrayType = ArrayType { + ord: 13i32 + }; + +} +impl std::fmt::Debug for ArrayType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ArrayType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ArrayType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERTEX => "VERTEX", Self::NORMAL => "NORMAL", Self::TANGENT => "TANGENT", Self::COLOR => "COLOR", Self::TEX_UV => "TEX_UV", Self::TEX_UV2 => "TEX_UV2", Self::CUSTOM0 => "CUSTOM0", Self::CUSTOM1 => "CUSTOM1", Self::CUSTOM2 => "CUSTOM2", Self::CUSTOM3 => "CUSTOM3", Self::BONES => "BONES", Self::WEIGHTS => "WEIGHTS", Self::INDEX => "INDEX", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERTEX => "ARRAY_VERTEX", Self::NORMAL => "ARRAY_NORMAL", Self::TANGENT => "ARRAY_TANGENT", Self::COLOR => "ARRAY_COLOR", Self::TEX_UV => "ARRAY_TEX_UV", Self::TEX_UV2 => "ARRAY_TEX_UV2", Self::CUSTOM0 => "ARRAY_CUSTOM0", Self::CUSTOM1 => "ARRAY_CUSTOM1", Self::CUSTOM2 => "ARRAY_CUSTOM2", Self::CUSTOM3 => "ARRAY_CUSTOM3", Self::BONES => "ARRAY_BONES", Self::WEIGHTS => "ARRAY_WEIGHTS", Self::INDEX => "ARRAY_INDEX", Self::MAX => "ARRAY_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ArrayType { + const ENUMERATOR_COUNT: usize = 13usize; + +} +impl crate::meta::GodotConvert for ArrayType { + type Via = i32; + +} +impl crate::meta::ToGodot for ArrayType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ArrayType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ArrayCustomFormat { + ord: i32 +} +impl ArrayCustomFormat { + #[doc(alias = "ARRAY_CUSTOM_RGBA8_UNORM")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RGBA8_UNORM`"] + pub const RGBA8_UNORM: ArrayCustomFormat = ArrayCustomFormat { + ord: 0i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RGBA8_SNORM")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RGBA8_SNORM`"] + pub const RGBA8_SNORM: ArrayCustomFormat = ArrayCustomFormat { + ord: 1i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RG_HALF")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RG_HALF`"] + pub const RG_HALF: ArrayCustomFormat = ArrayCustomFormat { + ord: 2i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RGBA_HALF")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RGBA_HALF`"] + pub const RGBA_HALF: ArrayCustomFormat = ArrayCustomFormat { + ord: 3i32 + }; + #[doc(alias = "ARRAY_CUSTOM_R_FLOAT")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_R_FLOAT`"] + pub const R_FLOAT: ArrayCustomFormat = ArrayCustomFormat { + ord: 4i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RG_FLOAT")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RG_FLOAT`"] + pub const RG_FLOAT: ArrayCustomFormat = ArrayCustomFormat { + ord: 5i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RGB_FLOAT")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RGB_FLOAT`"] + pub const RGB_FLOAT: ArrayCustomFormat = ArrayCustomFormat { + ord: 6i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RGBA_FLOAT")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RGBA_FLOAT`"] + pub const RGBA_FLOAT: ArrayCustomFormat = ArrayCustomFormat { + ord: 7i32 + }; + #[doc(alias = "ARRAY_CUSTOM_MAX")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_MAX`"] + pub const MAX: ArrayCustomFormat = ArrayCustomFormat { + ord: 8i32 + }; + +} +impl std::fmt::Debug for ArrayCustomFormat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ArrayCustomFormat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ArrayCustomFormat { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RGBA8_UNORM => "RGBA8_UNORM", Self::RGBA8_SNORM => "RGBA8_SNORM", Self::RG_HALF => "RG_HALF", Self::RGBA_HALF => "RGBA_HALF", Self::R_FLOAT => "R_FLOAT", Self::RG_FLOAT => "RG_FLOAT", Self::RGB_FLOAT => "RGB_FLOAT", Self::RGBA_FLOAT => "RGBA_FLOAT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RGBA8_UNORM => "ARRAY_CUSTOM_RGBA8_UNORM", Self::RGBA8_SNORM => "ARRAY_CUSTOM_RGBA8_SNORM", Self::RG_HALF => "ARRAY_CUSTOM_RG_HALF", Self::RGBA_HALF => "ARRAY_CUSTOM_RGBA_HALF", Self::R_FLOAT => "ARRAY_CUSTOM_R_FLOAT", Self::RG_FLOAT => "ARRAY_CUSTOM_RG_FLOAT", Self::RGB_FLOAT => "ARRAY_CUSTOM_RGB_FLOAT", Self::RGBA_FLOAT => "ARRAY_CUSTOM_RGBA_FLOAT", Self::MAX => "ARRAY_CUSTOM_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ArrayCustomFormat { + const ENUMERATOR_COUNT: usize = 8usize; + +} +impl crate::meta::GodotConvert for ArrayCustomFormat { + type Via = i32; + +} +impl crate::meta::ToGodot for ArrayCustomFormat { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ArrayCustomFormat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct ArrayFormat { + ord: u64 +} +impl ArrayFormat { + #[doc(alias = "ARRAY_FORMAT_VERTEX")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_VERTEX`"] + pub const VERTEX: ArrayFormat = ArrayFormat { + ord: 1u64 + }; + #[doc(alias = "ARRAY_FORMAT_NORMAL")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_NORMAL`"] + pub const NORMAL: ArrayFormat = ArrayFormat { + ord: 2u64 + }; + #[doc(alias = "ARRAY_FORMAT_TANGENT")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_TANGENT`"] + pub const TANGENT: ArrayFormat = ArrayFormat { + ord: 4u64 + }; + #[doc(alias = "ARRAY_FORMAT_COLOR")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_COLOR`"] + pub const COLOR: ArrayFormat = ArrayFormat { + ord: 8u64 + }; + #[doc(alias = "ARRAY_FORMAT_TEX_UV")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_TEX_UV`"] + pub const TEX_UV: ArrayFormat = ArrayFormat { + ord: 16u64 + }; + #[doc(alias = "ARRAY_FORMAT_TEX_UV2")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_TEX_UV2`"] + pub const TEX_UV2: ArrayFormat = ArrayFormat { + ord: 32u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM0")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM0`"] + pub const CUSTOM0: ArrayFormat = ArrayFormat { + ord: 64u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM1")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM1`"] + pub const CUSTOM1: ArrayFormat = ArrayFormat { + ord: 128u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM2")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM2`"] + pub const CUSTOM2: ArrayFormat = ArrayFormat { + ord: 256u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM3")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM3`"] + pub const CUSTOM3: ArrayFormat = ArrayFormat { + ord: 512u64 + }; + #[doc(alias = "ARRAY_FORMAT_BONES")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_BONES`"] + pub const BONES: ArrayFormat = ArrayFormat { + ord: 1024u64 + }; + #[doc(alias = "ARRAY_FORMAT_WEIGHTS")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_WEIGHTS`"] + pub const WEIGHTS: ArrayFormat = ArrayFormat { + ord: 2048u64 + }; + #[doc(alias = "ARRAY_FORMAT_INDEX")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_INDEX`"] + pub const INDEX: ArrayFormat = ArrayFormat { + ord: 4096u64 + }; + #[doc(alias = "ARRAY_FORMAT_BLEND_SHAPE_MASK")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_BLEND_SHAPE_MASK`"] + pub const BLEND_SHAPE_MASK: ArrayFormat = ArrayFormat { + ord: 7u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM_BASE")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM_BASE`"] + pub const CUSTOM_BASE: ArrayFormat = ArrayFormat { + ord: 13u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM_BITS")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM_BITS`"] + pub const CUSTOM_BITS: ArrayFormat = ArrayFormat { + ord: 3u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM0_SHIFT")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM0_SHIFT`"] + pub const CUSTOM0_SHIFT: ArrayFormat = ArrayFormat { + ord: 13u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM1_SHIFT")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM1_SHIFT`"] + pub const CUSTOM1_SHIFT: ArrayFormat = ArrayFormat { + ord: 16u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM2_SHIFT")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM2_SHIFT`"] + pub const CUSTOM2_SHIFT: ArrayFormat = ArrayFormat { + ord: 19u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM3_SHIFT")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM3_SHIFT`"] + pub const CUSTOM3_SHIFT: ArrayFormat = ArrayFormat { + ord: 22u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM_MASK")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM_MASK`"] + pub const CUSTOM_MASK: ArrayFormat = ArrayFormat { + ord: 7u64 + }; + #[doc(alias = "ARRAY_COMPRESS_FLAGS_BASE")] + #[doc = "Godot enumerator name: `ARRAY_COMPRESS_FLAGS_BASE`"] + pub const COMPRESS_FLAGS_BASE: ArrayFormat = ArrayFormat { + ord: 25u64 + }; + #[doc(alias = "ARRAY_FLAG_USE_2D_VERTICES")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_USE_2D_VERTICES`"] + pub const FLAG_USE_2D_VERTICES: ArrayFormat = ArrayFormat { + ord: 33554432u64 + }; + #[doc(alias = "ARRAY_FLAG_USE_DYNAMIC_UPDATE")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_USE_DYNAMIC_UPDATE`"] + pub const FLAG_USE_DYNAMIC_UPDATE: ArrayFormat = ArrayFormat { + ord: 67108864u64 + }; + #[doc(alias = "ARRAY_FLAG_USE_8_BONE_WEIGHTS")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_USE_8_BONE_WEIGHTS`"] + pub const FLAG_USE_8_BONE_WEIGHTS: ArrayFormat = ArrayFormat { + ord: 134217728u64 + }; + #[doc(alias = "ARRAY_FLAG_USES_EMPTY_VERTEX_ARRAY")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_USES_EMPTY_VERTEX_ARRAY`"] + pub const FLAG_USES_EMPTY_VERTEX_ARRAY: ArrayFormat = ArrayFormat { + ord: 268435456u64 + }; + #[doc(alias = "ARRAY_FLAG_COMPRESS_ATTRIBUTES")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_COMPRESS_ATTRIBUTES`"] + pub const FLAG_COMPRESS_ATTRIBUTES: ArrayFormat = ArrayFormat { + ord: 536870912u64 + }; + +} +impl std::fmt::Debug for ArrayFormat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::VERTEX => "VERTEX", Self::NORMAL => "NORMAL", Self::TANGENT => "TANGENT", Self::COLOR => "COLOR", Self::TEX_UV => "TEX_UV", Self::TEX_UV2 => "TEX_UV2", Self::CUSTOM0 => "CUSTOM0", Self::CUSTOM1 => "CUSTOM1", Self::CUSTOM2 => "CUSTOM2", Self::CUSTOM3 => "CUSTOM3", Self::BONES => "BONES", Self::WEIGHTS => "WEIGHTS", Self::INDEX => "INDEX", Self::BLEND_SHAPE_MASK => "BLEND_SHAPE_MASK", Self::CUSTOM_BASE => "CUSTOM_BASE", Self::CUSTOM_BITS => "CUSTOM_BITS", Self::CUSTOM0_SHIFT => "CUSTOM0_SHIFT", Self::CUSTOM1_SHIFT => "CUSTOM1_SHIFT", Self::CUSTOM2_SHIFT => "CUSTOM2_SHIFT", Self::CUSTOM3_SHIFT => "CUSTOM3_SHIFT", Self::CUSTOM_MASK => "CUSTOM_MASK", Self::COMPRESS_FLAGS_BASE => "COMPRESS_FLAGS_BASE", Self::FLAG_USE_2D_VERTICES => "FLAG_USE_2D_VERTICES", Self::FLAG_USE_DYNAMIC_UPDATE => "FLAG_USE_DYNAMIC_UPDATE", Self::FLAG_USE_8_BONE_WEIGHTS => "FLAG_USE_8_BONE_WEIGHTS", Self::FLAG_USES_EMPTY_VERTEX_ARRAY => "FLAG_USES_EMPTY_VERTEX_ARRAY", Self::FLAG_COMPRESS_ATTRIBUTES => "FLAG_COMPRESS_ATTRIBUTES", _ => { + f.debug_struct("ArrayFormat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for ArrayFormat { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for ArrayFormat { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for ArrayFormat { + type Via = u64; + +} +impl crate::meta::ToGodot for ArrayFormat { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for ArrayFormat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BlendShapeMode { + ord: i32 +} +impl BlendShapeMode { + #[doc(alias = "BLEND_SHAPE_MODE_NORMALIZED")] + #[doc = "Godot enumerator name: `BLEND_SHAPE_MODE_NORMALIZED`"] + pub const NORMALIZED: BlendShapeMode = BlendShapeMode { + ord: 0i32 + }; + #[doc(alias = "BLEND_SHAPE_MODE_RELATIVE")] + #[doc = "Godot enumerator name: `BLEND_SHAPE_MODE_RELATIVE`"] + pub const RELATIVE: BlendShapeMode = BlendShapeMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for BlendShapeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BlendShapeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BlendShapeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NORMALIZED => "NORMALIZED", Self::RELATIVE => "RELATIVE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NORMALIZED => "BLEND_SHAPE_MODE_NORMALIZED", Self::RELATIVE => "BLEND_SHAPE_MODE_RELATIVE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BlendShapeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BlendShapeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BlendShapeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_convex_decomposition_settings.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_convex_decomposition_settings.rs new file mode 100644 index 0000000..36798e3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_convex_decomposition_settings.rs @@ -0,0 +1,471 @@ +#![doc = "Sidecar module for class [`MeshConvexDecompositionSettings`][crate::classes::MeshConvexDecompositionSettings].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MeshConvexDecompositionSettings` enums](https://docs.godotengine.org/en/stable/classes/class_meshconvexdecompositionsettings.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MeshConvexDecompositionSettings.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`mesh_convex_decomposition_settings`][crate::classes::mesh_convex_decomposition_settings]: sidecar module with related enum/flag types\n* [`IMeshConvexDecompositionSettings`][crate::classes::IMeshConvexDecompositionSettings]: virtual methods\n\n\nSee also [Godot docs for `MeshConvexDecompositionSettings`](https://docs.godotengine.org/en/stable/classes/class_meshconvexdecompositionsettings.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`MeshConvexDecompositionSettings::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct MeshConvexDecompositionSettings { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MeshConvexDecompositionSettings`][crate::classes::MeshConvexDecompositionSettings].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MeshConvexDecompositionSettings` methods](https://docs.godotengine.org/en/stable/classes/class_meshconvexdecompositionsettings.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMeshConvexDecompositionSettings: crate::obj::GodotClass < Base = MeshConvexDecompositionSettings > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl MeshConvexDecompositionSettings { + pub fn set_max_concavity(&mut self, max_concavity: f32,) { + type CallSig = ((), f32); + let args = (max_concavity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5013usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_max_concavity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_concavity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5014usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_max_concavity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_symmetry_planes_clipping_bias(&mut self, symmetry_planes_clipping_bias: f32,) { + type CallSig = ((), f32); + let args = (symmetry_planes_clipping_bias,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5015usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_symmetry_planes_clipping_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_symmetry_planes_clipping_bias(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5016usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_symmetry_planes_clipping_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_revolution_axes_clipping_bias(&mut self, revolution_axes_clipping_bias: f32,) { + type CallSig = ((), f32); + let args = (revolution_axes_clipping_bias,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5017usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_revolution_axes_clipping_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_revolution_axes_clipping_bias(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5018usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_revolution_axes_clipping_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_min_volume_per_convex_hull(&mut self, min_volume_per_convex_hull: f32,) { + type CallSig = ((), f32); + let args = (min_volume_per_convex_hull,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5019usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_min_volume_per_convex_hull", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_min_volume_per_convex_hull(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5020usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_min_volume_per_convex_hull", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_resolution(&mut self, min_volume_per_convex_hull: u32,) { + type CallSig = ((), u32); + let args = (min_volume_per_convex_hull,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5021usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_resolution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_resolution(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5022usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_resolution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_num_vertices_per_convex_hull(&mut self, max_num_vertices_per_convex_hull: u32,) { + type CallSig = ((), u32); + let args = (max_num_vertices_per_convex_hull,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5023usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_max_num_vertices_per_convex_hull", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_num_vertices_per_convex_hull(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5024usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_max_num_vertices_per_convex_hull", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_plane_downsampling(&mut self, plane_downsampling: u32,) { + type CallSig = ((), u32); + let args = (plane_downsampling,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5025usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_plane_downsampling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_plane_downsampling(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5026usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_plane_downsampling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_convex_hull_downsampling(&mut self, convex_hull_downsampling: u32,) { + type CallSig = ((), u32); + let args = (convex_hull_downsampling,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5027usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_convex_hull_downsampling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_convex_hull_downsampling(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5028usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_convex_hull_downsampling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_normalize_mesh(&mut self, normalize_mesh: bool,) { + type CallSig = ((), bool); + let args = (normalize_mesh,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5029usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_normalize_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_normalize_mesh(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5030usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_normalize_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mode(&mut self, mode: crate::classes::mesh_convex_decomposition_settings::Mode,) { + type CallSig = ((), crate::classes::mesh_convex_decomposition_settings::Mode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5031usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mode(&self,) -> crate::classes::mesh_convex_decomposition_settings::Mode { + type CallSig = (crate::classes::mesh_convex_decomposition_settings::Mode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5032usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_convex_hull_approximation(&mut self, convex_hull_approximation: bool,) { + type CallSig = ((), bool); + let args = (convex_hull_approximation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5033usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_convex_hull_approximation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_convex_hull_approximation(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5034usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_convex_hull_approximation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_convex_hulls(&mut self, max_convex_hulls: u32,) { + type CallSig = ((), u32); + let args = (max_convex_hulls,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5035usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_max_convex_hulls", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_convex_hulls(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5036usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_max_convex_hulls", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_project_hull_vertices(&mut self, project_hull_vertices: bool,) { + type CallSig = ((), bool); + let args = (project_hull_vertices,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5037usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "set_project_hull_vertices", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_project_hull_vertices(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5038usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshConvexDecompositionSettings", "get_project_hull_vertices", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MeshConvexDecompositionSettings { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MeshConvexDecompositionSettings")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MeshConvexDecompositionSettings { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MeshConvexDecompositionSettings { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MeshConvexDecompositionSettings { + + } + impl crate::obj::cap::GodotDefault for MeshConvexDecompositionSettings { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MeshConvexDecompositionSettings { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MeshConvexDecompositionSettings { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MeshConvexDecompositionSettings`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MeshConvexDecompositionSettings { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MeshConvexDecompositionSettings > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Mode { + ord: i32 +} +impl Mode { + #[doc(alias = "CONVEX_DECOMPOSITION_MODE_VOXEL")] + #[doc = "Godot enumerator name: `CONVEX_DECOMPOSITION_MODE_VOXEL`"] + pub const VOXEL: Mode = Mode { + ord: 0i32 + }; + #[doc(alias = "CONVEX_DECOMPOSITION_MODE_TETRAHEDRON")] + #[doc = "Godot enumerator name: `CONVEX_DECOMPOSITION_MODE_TETRAHEDRON`"] + pub const TETRAHEDRON: Mode = Mode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for Mode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Mode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Mode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VOXEL => "VOXEL", Self::TETRAHEDRON => "TETRAHEDRON", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VOXEL => "CONVEX_DECOMPOSITION_MODE_VOXEL", Self::TETRAHEDRON => "CONVEX_DECOMPOSITION_MODE_TETRAHEDRON", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Mode { + type Via = i32; + +} +impl crate::meta::ToGodot for Mode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Mode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_data_tool.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_data_tool.rs new file mode 100644 index 0000000..657f376 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_data_tool.rs @@ -0,0 +1,534 @@ +#![doc = "Sidecar module for class [`MeshDataTool`][crate::classes::MeshDataTool].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MeshDataTool` enums](https://docs.godotengine.org/en/stable/classes/class_meshdatatool.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MeshDataTool.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`mesh_data_tool`][crate::classes::mesh_data_tool]: sidecar module with related enum/flag types\n* [`IMeshDataTool`][crate::classes::IMeshDataTool]: virtual methods\n\n\nSee also [Godot docs for `MeshDataTool`](https://docs.godotengine.org/en/stable/classes/class_meshdatatool.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`MeshDataTool::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct MeshDataTool { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MeshDataTool`][crate::classes::MeshDataTool].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MeshDataTool` methods](https://docs.godotengine.org/en/stable/classes/class_meshdatatool.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMeshDataTool: crate::obj::GodotClass < Base = MeshDataTool > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl MeshDataTool { + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5039usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_from_surface(&mut self, mesh: impl AsObjectArg < crate::classes::ArrayMesh >, surface: i32,) -> crate::global::Error { + type CallSig = (crate::global::Error, ObjectArg < crate::classes::ArrayMesh >, i32); + let args = (mesh.as_object_arg(), surface,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5040usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "create_from_surface", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn commit_to_surface_full(&mut self, mesh: ObjectArg < crate::classes::ArrayMesh >, compression_flags: u64,) -> crate::global::Error { + type CallSig = (crate::global::Error, ObjectArg < crate::classes::ArrayMesh >, u64); + let args = (mesh, compression_flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5041usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "commit_to_surface", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::commit_to_surface_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn commit_to_surface(&mut self, mesh: impl AsObjectArg < crate::classes::ArrayMesh >,) -> crate::global::Error { + self.commit_to_surface_ex(mesh,) . done() + } + #[inline] + pub fn commit_to_surface_ex < 'a > (&'a mut self, mesh: impl AsObjectArg < crate::classes::ArrayMesh >,) -> ExCommitToSurface < 'a > { + ExCommitToSurface::new(self, mesh,) + } + pub fn get_format(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5042usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5043usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_edge_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5044usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_edge_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_face_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5045usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_face_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertex(&mut self, idx: i32, vertex: Vector3,) { + type CallSig = ((), i32, Vector3); + let args = (idx, vertex,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5046usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_vertex", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex(&self, idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5047usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertex_normal(&mut self, idx: i32, normal: Vector3,) { + type CallSig = ((), i32, Vector3); + let args = (idx, normal,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5048usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_vertex_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_normal(&self, idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5049usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertex_tangent(&mut self, idx: i32, tangent: Plane,) { + type CallSig = ((), i32, Plane); + let args = (idx, tangent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5050usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_vertex_tangent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_tangent(&self, idx: i32,) -> Plane { + type CallSig = (Plane, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5051usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex_tangent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertex_uv(&mut self, idx: i32, uv: Vector2,) { + type CallSig = ((), i32, Vector2); + let args = (idx, uv,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5052usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_vertex_uv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_uv(&self, idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5053usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex_uv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertex_uv2(&mut self, idx: i32, uv2: Vector2,) { + type CallSig = ((), i32, Vector2); + let args = (idx, uv2,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5054usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_vertex_uv2", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_uv2(&self, idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5055usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex_uv2", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertex_color(&mut self, idx: i32, color: Color,) { + type CallSig = ((), i32, Color); + let args = (idx, color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5056usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_vertex_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_color(&self, idx: i32,) -> Color { + type CallSig = (Color, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5057usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertex_bones(&mut self, idx: i32, bones: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, PackedInt32Array >); + let args = (idx, RefArg::new(bones),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5058usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_vertex_bones", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_bones(&self, idx: i32,) -> PackedInt32Array { + type CallSig = (PackedInt32Array, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5059usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex_bones", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertex_weights(&mut self, idx: i32, weights: &PackedFloat32Array,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, PackedFloat32Array >); + let args = (idx, RefArg::new(weights),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5060usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_vertex_weights", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_weights(&self, idx: i32,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5061usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex_weights", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertex_meta(&mut self, idx: i32, meta: &Variant,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, Variant >); + let args = (idx, RefArg::new(meta),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5062usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_vertex_meta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_meta(&self, idx: i32,) -> Variant { + type CallSig = (Variant, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5063usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex_meta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_edges(&self, idx: i32,) -> PackedInt32Array { + type CallSig = (PackedInt32Array, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5064usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex_edges", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_faces(&self, idx: i32,) -> PackedInt32Array { + type CallSig = (PackedInt32Array, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5065usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_vertex_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_edge_vertex(&self, idx: i32, vertex: i32,) -> i32 { + type CallSig = (i32, i32, i32); + let args = (idx, vertex,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5066usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_edge_vertex", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_edge_faces(&self, idx: i32,) -> PackedInt32Array { + type CallSig = (PackedInt32Array, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5067usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_edge_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_edge_meta(&mut self, idx: i32, meta: &Variant,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, Variant >); + let args = (idx, RefArg::new(meta),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5068usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_edge_meta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_edge_meta(&self, idx: i32,) -> Variant { + type CallSig = (Variant, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5069usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_edge_meta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_face_vertex(&self, idx: i32, vertex: i32,) -> i32 { + type CallSig = (i32, i32, i32); + let args = (idx, vertex,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5070usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_face_vertex", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_face_edge(&self, idx: i32, edge: i32,) -> i32 { + type CallSig = (i32, i32, i32); + let args = (idx, edge,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5071usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_face_edge", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_face_meta(&mut self, idx: i32, meta: &Variant,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, Variant >); + let args = (idx, RefArg::new(meta),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5072usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_face_meta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_face_meta(&self, idx: i32,) -> Variant { + type CallSig = (Variant, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5073usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_face_meta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_face_normal(&self, idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5074usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_face_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5075usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5076usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshDataTool", "get_material", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MeshDataTool { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MeshDataTool")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MeshDataTool { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MeshDataTool { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MeshDataTool { + + } + impl crate::obj::cap::GodotDefault for MeshDataTool { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MeshDataTool { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MeshDataTool { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MeshDataTool`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MeshDataTool { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MeshDataTool > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`MeshDataTool::commit_to_surface_ex`][super::MeshDataTool::commit_to_surface_ex]."] +#[must_use] +pub struct ExCommitToSurface < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::MeshDataTool, mesh: ObjectCow < crate::classes::ArrayMesh >, compression_flags: u64, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCommitToSurface < 'a > { + fn new(surround_object: &'a mut re_export::MeshDataTool, mesh: impl AsObjectArg < crate::classes::ArrayMesh >,) -> Self { + let compression_flags = 0u64; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, mesh: mesh.consume_arg(), compression_flags: compression_flags, + } + } + #[inline] + pub fn compression_flags(self, compression_flags: u64) -> Self { + Self { + compression_flags: compression_flags, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, mesh, compression_flags, + } + = self; + re_export::MeshDataTool::commit_to_surface_full(surround_object, mesh.cow_as_object_arg(), compression_flags,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_instance_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_instance_2d.rs new file mode 100644 index 0000000..3a4af29 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_instance_2d.rs @@ -0,0 +1,270 @@ +#![doc = "Sidecar module for class [`MeshInstance2D`][crate::classes::MeshInstance2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MeshInstance2D` enums](https://docs.godotengine.org/en/stable/classes/class_meshinstance2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MeshInstance2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IMeshInstance2D`][crate::classes::IMeshInstance2D]: virtual methods\n\n\nSee also [Godot docs for `MeshInstance2D`](https://docs.godotengine.org/en/stable/classes/class_meshinstance2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MeshInstance2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MeshInstance2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MeshInstance2D`][crate::classes::MeshInstance2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MeshInstance2D` methods](https://docs.godotengine.org/en/stable/classes/class_meshinstance2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMeshInstance2D: crate::obj::GodotClass < Base = MeshInstance2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl MeshInstance2D { + pub fn set_mesh(&mut self, mesh: impl AsObjectArg < crate::classes::Mesh >,) { + type CallSig = ((), ObjectArg < crate::classes::Mesh >); + let args = (mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5077usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance2D", "set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh(&self,) -> Option < Gd < crate::classes::Mesh > > { + type CallSig = (Option < Gd < crate::classes::Mesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5078usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance2D", "get_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5079usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance2D", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5080usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance2D", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MeshInstance2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MeshInstance2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MeshInstance2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for MeshInstance2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for MeshInstance2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for MeshInstance2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MeshInstance2D { + + } + impl crate::obj::cap::GodotDefault for MeshInstance2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MeshInstance2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MeshInstance2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MeshInstance2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MeshInstance2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MeshInstance2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_instance_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_instance_3d.rs new file mode 100644 index 0000000..f2c0fee --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_instance_3d.rs @@ -0,0 +1,522 @@ +#![doc = "Sidecar module for class [`MeshInstance3D`][crate::classes::MeshInstance3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MeshInstance3D` enums](https://docs.godotengine.org/en/stable/classes/class_meshinstance3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MeshInstance3D.`\n\nInherits [`GeometryInstance3D`][crate::classes::GeometryInstance3D].\n\nRelated symbols:\n\n* [`mesh_instance_3d`][crate::classes::mesh_instance_3d]: sidecar module with related enum/flag types\n* [`IMeshInstance3D`][crate::classes::IMeshInstance3D]: virtual methods\n\n\nSee also [Godot docs for `MeshInstance3D`](https://docs.godotengine.org/en/stable/classes/class_meshinstance3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MeshInstance3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MeshInstance3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MeshInstance3D`][crate::classes::MeshInstance3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MeshInstance3D` methods](https://docs.godotengine.org/en/stable/classes/class_meshinstance3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMeshInstance3D: crate::obj::GodotClass < Base = MeshInstance3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl MeshInstance3D { + pub fn set_mesh(&mut self, mesh: impl AsObjectArg < crate::classes::Mesh >,) { + type CallSig = ((), ObjectArg < crate::classes::Mesh >); + let args = (mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5081usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh(&self,) -> Option < Gd < crate::classes::Mesh > > { + type CallSig = (Option < Gd < crate::classes::Mesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5082usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "get_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skeleton_path(&mut self, skeleton_path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (skeleton_path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5083usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "set_skeleton_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skeleton_path(&mut self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5084usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "get_skeleton_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skin(&mut self, skin: impl AsObjectArg < crate::classes::Skin >,) { + type CallSig = ((), ObjectArg < crate::classes::Skin >); + let args = (skin.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5085usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "set_skin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skin(&self,) -> Option < Gd < crate::classes::Skin > > { + type CallSig = (Option < Gd < crate::classes::Skin > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5086usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "get_skin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skin_reference(&self,) -> Option < Gd < crate::classes::SkinReference > > { + type CallSig = (Option < Gd < crate::classes::SkinReference > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5087usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "get_skin_reference", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_override_material_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5088usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "get_surface_override_material_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_surface_override_material(&mut self, surface: i32, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Material >); + let args = (surface, material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5089usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "set_surface_override_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_surface_override_material(&self, surface: i32,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >, i32); + let args = (surface,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5090usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "get_surface_override_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_active_material(&self, surface: i32,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >, i32); + let args = (surface,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5091usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "get_active_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_trimesh_collision(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5092usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "create_trimesh_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn create_convex_collision_full(&mut self, clean: bool, simplify: bool,) { + type CallSig = ((), bool, bool); + let args = (clean, simplify,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5093usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "create_convex_collision", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_convex_collision_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_convex_collision(&mut self,) { + self.create_convex_collision_ex() . done() + } + #[inline] + pub fn create_convex_collision_ex < 'a > (&'a mut self,) -> ExCreateConvexCollision < 'a > { + ExCreateConvexCollision::new(self,) + } + pub(crate) fn create_multiple_convex_collisions_full(&mut self, settings: ObjectArg < crate::classes::MeshConvexDecompositionSettings >,) { + type CallSig = ((), ObjectArg < crate::classes::MeshConvexDecompositionSettings >); + let args = (settings,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5094usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "create_multiple_convex_collisions", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_multiple_convex_collisions_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_multiple_convex_collisions(&mut self,) { + self.create_multiple_convex_collisions_ex() . done() + } + #[inline] + pub fn create_multiple_convex_collisions_ex < 'a > (&'a mut self,) -> ExCreateMultipleConvexCollisions < 'a > { + ExCreateMultipleConvexCollisions::new(self,) + } + pub fn get_blend_shape_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5095usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "get_blend_shape_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_blend_shape_by_name(&mut self, name: impl AsArg < StringName >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5096usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "find_blend_shape_by_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_shape_value(&self, blend_shape_idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (blend_shape_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5097usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "get_blend_shape_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_shape_value(&mut self, blend_shape_idx: i32, value: f32,) { + type CallSig = ((), i32, f32); + let args = (blend_shape_idx, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5098usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "set_blend_shape_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_debug_tangents(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5099usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "create_debug_tangents", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn bake_mesh_from_current_blend_shape_mix_full(&mut self, existing: ObjectArg < crate::classes::ArrayMesh >,) -> Option < Gd < crate::classes::ArrayMesh > > { + type CallSig = (Option < Gd < crate::classes::ArrayMesh > >, ObjectArg < crate::classes::ArrayMesh >); + let args = (existing,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5100usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshInstance3D", "bake_mesh_from_current_blend_shape_mix", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::bake_mesh_from_current_blend_shape_mix_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn bake_mesh_from_current_blend_shape_mix(&mut self,) -> Option < Gd < crate::classes::ArrayMesh > > { + self.bake_mesh_from_current_blend_shape_mix_ex() . done() + } + #[inline] + pub fn bake_mesh_from_current_blend_shape_mix_ex < 'a > (&'a mut self,) -> ExBakeMeshFromCurrentBlendShapeMix < 'a > { + ExBakeMeshFromCurrentBlendShapeMix::new(self,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MeshInstance3D { + type Base = crate::classes::GeometryInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MeshInstance3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MeshInstance3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for MeshInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for MeshInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for MeshInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for MeshInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MeshInstance3D { + + } + impl crate::obj::cap::GodotDefault for MeshInstance3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MeshInstance3D { + type Target = crate::classes::GeometryInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MeshInstance3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MeshInstance3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MeshInstance3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MeshInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`MeshInstance3D::create_convex_collision_ex`][super::MeshInstance3D::create_convex_collision_ex]."] +#[must_use] +pub struct ExCreateConvexCollision < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::MeshInstance3D, clean: bool, simplify: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateConvexCollision < 'a > { + fn new(surround_object: &'a mut re_export::MeshInstance3D,) -> Self { + let clean = true; + let simplify = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, clean: clean, simplify: simplify, + } + } + #[inline] + pub fn clean(self, clean: bool) -> Self { + Self { + clean: clean, .. self + } + } + #[inline] + pub fn simplify(self, simplify: bool) -> Self { + Self { + simplify: simplify, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, clean, simplify, + } + = self; + re_export::MeshInstance3D::create_convex_collision_full(surround_object, clean, simplify,) + } +} +#[doc = "Default-param extender for [`MeshInstance3D::create_multiple_convex_collisions_ex`][super::MeshInstance3D::create_multiple_convex_collisions_ex]."] +#[must_use] +pub struct ExCreateMultipleConvexCollisions < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::MeshInstance3D, settings: ObjectCow < crate::classes::MeshConvexDecompositionSettings >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateMultipleConvexCollisions < 'a > { + fn new(surround_object: &'a mut re_export::MeshInstance3D,) -> Self { + let settings = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, settings: settings.consume_arg(), + } + } + #[inline] + pub fn settings(self, settings: impl AsObjectArg < crate::classes::MeshConvexDecompositionSettings >) -> Self { + Self { + settings: settings.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, settings, + } + = self; + re_export::MeshInstance3D::create_multiple_convex_collisions_full(surround_object, settings.cow_as_object_arg(),) + } +} +#[doc = "Default-param extender for [`MeshInstance3D::bake_mesh_from_current_blend_shape_mix_ex`][super::MeshInstance3D::bake_mesh_from_current_blend_shape_mix_ex]."] +#[must_use] +pub struct ExBakeMeshFromCurrentBlendShapeMix < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::MeshInstance3D, existing: ObjectCow < crate::classes::ArrayMesh >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBakeMeshFromCurrentBlendShapeMix < 'a > { + fn new(surround_object: &'a mut re_export::MeshInstance3D,) -> Self { + let existing = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, existing: existing.consume_arg(), + } + } + #[inline] + pub fn existing(self, existing: impl AsObjectArg < crate::classes::ArrayMesh >) -> Self { + Self { + existing: existing.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::ArrayMesh > > { + let Self { + _phantom, surround_object, existing, + } + = self; + re_export::MeshInstance3D::bake_mesh_from_current_blend_shape_mix_full(surround_object, existing.cow_as_object_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_library.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_library.rs new file mode 100644 index 0000000..1b7438f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_library.rs @@ -0,0 +1,362 @@ +#![doc = "Sidecar module for class [`MeshLibrary`][crate::classes::MeshLibrary].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MeshLibrary` enums](https://docs.godotengine.org/en/stable/classes/class_meshlibrary.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MeshLibrary.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IMeshLibrary`][crate::classes::IMeshLibrary]: virtual methods\n\n\nSee also [Godot docs for `MeshLibrary`](https://docs.godotengine.org/en/stable/classes/class_meshlibrary.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`MeshLibrary::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct MeshLibrary { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MeshLibrary`][crate::classes::MeshLibrary].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MeshLibrary` methods](https://docs.godotengine.org/en/stable/classes/class_meshlibrary.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMeshLibrary: crate::obj::GodotClass < Base = MeshLibrary > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl MeshLibrary { + pub fn create_item(&mut self, id: i32,) { + type CallSig = ((), i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5101usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "create_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_name(&mut self, id: i32, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (id, name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5102usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "set_item_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_mesh(&mut self, id: i32, mesh: impl AsObjectArg < crate::classes::Mesh >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Mesh >); + let args = (id, mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5103usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "set_item_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_mesh_transform(&mut self, id: i32, mesh_transform: Transform3D,) { + type CallSig = ((), i32, Transform3D); + let args = (id, mesh_transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5104usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "set_item_mesh_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_navigation_mesh_transform(&mut self, id: i32, navigation_mesh: Transform3D,) { + type CallSig = ((), i32, Transform3D); + let args = (id, navigation_mesh,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5105usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "set_item_navigation_mesh_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_navigation_layers(&mut self, id: i32, navigation_layers: u32,) { + type CallSig = ((), i32, u32); + let args = (id, navigation_layers,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5106usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "set_item_navigation_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_shapes(&mut self, id: i32, shapes: &VariantArray,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, VariantArray >); + let args = (id, RefArg::new(shapes),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5107usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "set_item_shapes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_preview(&mut self, id: i32, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Texture2D >); + let args = (id, texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5108usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "set_item_preview", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_name(&self, id: i32,) -> GString { + type CallSig = (GString, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5109usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "get_item_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_mesh(&self, id: i32,) -> Option < Gd < crate::classes::Mesh > > { + type CallSig = (Option < Gd < crate::classes::Mesh > >, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5110usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "get_item_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_mesh_transform(&self, id: i32,) -> Transform3D { + type CallSig = (Transform3D, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5111usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "get_item_mesh_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_navigation_mesh_transform(&self, id: i32,) -> Transform3D { + type CallSig = (Transform3D, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5112usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "get_item_navigation_mesh_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_navigation_layers(&self, id: i32,) -> u32 { + type CallSig = (u32, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5113usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "get_item_navigation_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_shapes(&self, id: i32,) -> VariantArray { + type CallSig = (VariantArray, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5114usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "get_item_shapes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_preview(&self, id: i32,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5115usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "get_item_preview", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_item(&mut self, id: i32,) { + type CallSig = ((), i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5116usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "remove_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_item_by_name(&self, name: impl AsArg < GString >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5117usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "find_item_by_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5118usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_list(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5119usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "get_item_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_last_unused_item_id(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5120usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshLibrary", "get_last_unused_item_id", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MeshLibrary { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MeshLibrary")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MeshLibrary { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for MeshLibrary { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MeshLibrary { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MeshLibrary { + + } + impl crate::obj::cap::GodotDefault for MeshLibrary { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MeshLibrary { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MeshLibrary { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MeshLibrary`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MeshLibrary { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MeshLibrary > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_texture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_texture.rs new file mode 100644 index 0000000..acaa44d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mesh_texture.rs @@ -0,0 +1,279 @@ +#![doc = "Sidecar module for class [`MeshTexture`][crate::classes::MeshTexture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MeshTexture` enums](https://docs.godotengine.org/en/stable/classes/class_meshtexture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MeshTexture.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`IMeshTexture`][crate::classes::IMeshTexture]: virtual methods\n\n\nSee also [Godot docs for `MeshTexture`](https://docs.godotengine.org/en/stable/classes/class_meshtexture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`MeshTexture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct MeshTexture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MeshTexture`][crate::classes::MeshTexture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MeshTexture` methods](https://docs.godotengine.org/en/stable/classes/class_meshtexture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMeshTexture: crate::obj::GodotClass < Base = MeshTexture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl MeshTexture { + pub fn set_mesh(&mut self, mesh: impl AsObjectArg < crate::classes::Mesh >,) { + type CallSig = ((), ObjectArg < crate::classes::Mesh >); + let args = (mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5121usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshTexture", "set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh(&self,) -> Option < Gd < crate::classes::Mesh > > { + type CallSig = (Option < Gd < crate::classes::Mesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5122usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshTexture", "get_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_image_size(&mut self, size: Vector2,) { + type CallSig = ((), Vector2); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5123usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshTexture", "set_image_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_image_size(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5124usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshTexture", "get_image_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_base_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5125usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshTexture", "set_base_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_base_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5126usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MeshTexture", "get_base_texture", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MeshTexture { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MeshTexture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MeshTexture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for MeshTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for MeshTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for MeshTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MeshTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MeshTexture { + + } + impl crate::obj::cap::GodotDefault for MeshTexture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MeshTexture { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MeshTexture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MeshTexture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MeshTexture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MeshTexture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/method_tweener.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/method_tweener.rs new file mode 100644 index 0000000..596ab14 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/method_tweener.rs @@ -0,0 +1,223 @@ +#![doc = "Sidecar module for class [`MethodTweener`][crate::classes::MethodTweener].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MethodTweener` enums](https://docs.godotengine.org/en/stable/classes/class_methodtweener.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MethodTweener.`\n\nInherits [`Tweener`][crate::classes::Tweener].\n\nRelated symbols:\n\n* [`IMethodTweener`][crate::classes::IMethodTweener]: virtual methods\n\n\nSee also [Godot docs for `MethodTweener`](https://docs.godotengine.org/en/stable/classes/class_methodtweener.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`MethodTweener::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct MethodTweener { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MethodTweener`][crate::classes::MethodTweener].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MethodTweener` methods](https://docs.godotengine.org/en/stable/classes/class_methodtweener.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMethodTweener: crate::obj::GodotClass < Base = MethodTweener > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl MethodTweener { + pub fn set_delay(&mut self, delay: f64,) -> Option < Gd < crate::classes::MethodTweener > > { + type CallSig = (Option < Gd < crate::classes::MethodTweener > >, f64); + let args = (delay,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5127usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MethodTweener", "set_delay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_trans(&mut self, trans: crate::classes::tween::TransitionType,) -> Option < Gd < crate::classes::MethodTweener > > { + type CallSig = (Option < Gd < crate::classes::MethodTweener > >, crate::classes::tween::TransitionType); + let args = (trans,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5128usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MethodTweener", "set_trans", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ease(&mut self, ease: crate::classes::tween::EaseType,) -> Option < Gd < crate::classes::MethodTweener > > { + type CallSig = (Option < Gd < crate::classes::MethodTweener > >, crate::classes::tween::EaseType); + let args = (ease,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5129usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MethodTweener", "set_ease", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MethodTweener { + type Base = crate::classes::Tweener; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MethodTweener")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MethodTweener { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Tweener > for MethodTweener { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MethodTweener { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MethodTweener { + + } + impl crate::obj::cap::GodotDefault for MethodTweener { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MethodTweener { + type Target = crate::classes::Tweener; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MethodTweener { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MethodTweener`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MethodTweener { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MethodTweener > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Tweener > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/missing_node.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/missing_node.rs new file mode 100644 index 0000000..2a4d596 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/missing_node.rs @@ -0,0 +1,271 @@ +#![doc = "Sidecar module for class [`MissingNode`][crate::classes::MissingNode].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MissingNode` enums](https://docs.godotengine.org/en/stable/classes/class_missingnode.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MissingNode.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`IMissingNode`][crate::classes::IMissingNode]: virtual methods\n\n\nSee also [Godot docs for `MissingNode`](https://docs.godotengine.org/en/stable/classes/class_missingnode.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MissingNode::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MissingNode { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MissingNode`][crate::classes::MissingNode].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MissingNode` methods](https://docs.godotengine.org/en/stable/classes/class_missingnode.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMissingNode: crate::obj::GodotClass < Base = MissingNode > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl MissingNode { + pub fn set_original_class(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5130usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MissingNode", "set_original_class", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_original_class(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5131usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MissingNode", "get_original_class", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_original_scene(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5132usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MissingNode", "set_original_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_original_scene(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5133usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MissingNode", "get_original_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_recording_properties(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5134usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MissingNode", "set_recording_properties", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_recording_properties(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5135usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MissingNode", "is_recording_properties", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MissingNode { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MissingNode")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MissingNode { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for MissingNode { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MissingNode { + + } + impl crate::obj::cap::GodotDefault for MissingNode { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MissingNode { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MissingNode { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MissingNode`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MissingNode { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MissingNode > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/missing_resource.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/missing_resource.rs new file mode 100644 index 0000000..80bc5f7 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/missing_resource.rs @@ -0,0 +1,234 @@ +#![doc = "Sidecar module for class [`MissingResource`][crate::classes::MissingResource].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MissingResource` enums](https://docs.godotengine.org/en/stable/classes/class_missingresource.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MissingResource.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IMissingResource`][crate::classes::IMissingResource]: virtual methods\n\n\nSee also [Godot docs for `MissingResource`](https://docs.godotengine.org/en/stable/classes/class_missingresource.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`MissingResource::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct MissingResource { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MissingResource`][crate::classes::MissingResource].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MissingResource` methods](https://docs.godotengine.org/en/stable/classes/class_missingresource.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMissingResource: crate::obj::GodotClass < Base = MissingResource > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl MissingResource { + pub fn set_original_class(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5136usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MissingResource", "set_original_class", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_original_class(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5137usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MissingResource", "get_original_class", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_recording_properties(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5138usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MissingResource", "set_recording_properties", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_recording_properties(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5139usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MissingResource", "is_recording_properties", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MissingResource { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MissingResource")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MissingResource { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for MissingResource { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MissingResource { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MissingResource { + + } + impl crate::obj::cap::GodotDefault for MissingResource { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MissingResource { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MissingResource { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MissingResource`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MissingResource { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MissingResource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mobile_vr_interface.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mobile_vr_interface.rs new file mode 100644 index 0000000..51271dc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mobile_vr_interface.rs @@ -0,0 +1,359 @@ +#![doc = "Sidecar module for class [`MobileVrInterface`][crate::classes::MobileVrInterface].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MobileVRInterface` enums](https://docs.godotengine.org/en/stable/classes/class_mobilevrinterface.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MobileVRInterface.`\n\nInherits [`XrInterface`][crate::classes::XrInterface].\n\nRelated symbols:\n\n* [`IMobileVrInterface`][crate::classes::IMobileVrInterface]: virtual methods\n\n\nSee also [Godot docs for `MobileVRInterface`](https://docs.godotengine.org/en/stable/classes/class_mobilevrinterface.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`MobileVrInterface::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct MobileVrInterface { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MobileVrInterface`][crate::classes::MobileVrInterface].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MobileVRInterface` methods](https://docs.godotengine.org/en/stable/classes/class_mobilevrinterface.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMobileVrInterface: crate::obj::GodotClass < Base = MobileVrInterface > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl MobileVrInterface { + pub fn set_eye_height(&mut self, eye_height: f64,) { + type CallSig = ((), f64); + let args = (eye_height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5140usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "set_eye_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_eye_height(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5141usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "get_eye_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_iod(&mut self, iod: f64,) { + type CallSig = ((), f64); + let args = (iod,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5142usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "set_iod", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_iod(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5143usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "get_iod", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_display_width(&mut self, display_width: f64,) { + type CallSig = ((), f64); + let args = (display_width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5144usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "set_display_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_display_width(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5145usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "get_display_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_display_to_lens(&mut self, display_to_lens: f64,) { + type CallSig = ((), f64); + let args = (display_to_lens,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5146usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "set_display_to_lens", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_display_to_lens(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5147usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "get_display_to_lens", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offset_rect(&mut self, offset_rect: Rect2,) { + type CallSig = ((), Rect2); + let args = (offset_rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5148usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "set_offset_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset_rect(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5149usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "get_offset_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_oversample(&mut self, oversample: f64,) { + type CallSig = ((), f64); + let args = (oversample,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5150usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "set_oversample", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_oversample(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5151usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "get_oversample", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_k1(&mut self, k: f64,) { + type CallSig = ((), f64); + let args = (k,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5152usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "set_k1", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_k1(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5153usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "get_k1", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_k2(&mut self, k: f64,) { + type CallSig = ((), f64); + let args = (k,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5154usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "set_k2", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_k2(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5155usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "get_k2", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vrs_min_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5156usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "get_vrs_min_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vrs_min_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5157usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "set_vrs_min_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vrs_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5158usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "get_vrs_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vrs_strength(&mut self, strength: f32,) { + type CallSig = ((), f32); + let args = (strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5159usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MobileVrInterface", "set_vrs_strength", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MobileVrInterface { + type Base = crate::classes::XrInterface; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MobileVRInterface")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MobileVrInterface { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::XrInterface > for MobileVrInterface { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MobileVrInterface { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MobileVrInterface { + + } + impl crate::obj::cap::GodotDefault for MobileVrInterface { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MobileVrInterface { + type Target = crate::classes::XrInterface; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MobileVrInterface { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MobileVrInterface`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MobileVrInterface { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MobileVrInterface > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::XrInterface > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mod.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mod.rs new file mode 100644 index 0000000..8c7aa33 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/mod.rs @@ -0,0 +1,3499 @@ +pub mod aes_context; +pub use aes_context::re_export::AesContext; +pub use aes_context::re_export::IAesContext; +pub mod a_star_2d; +pub use a_star_2d::re_export::AStar2D; +pub use a_star_2d::re_export::IAStar2D; +pub mod a_star_3d; +pub use a_star_3d::re_export::AStar3D; +pub use a_star_3d::re_export::IAStar3D; +pub mod a_star_grid_2d; +pub use a_star_grid_2d::re_export::AStarGrid2D; +pub use a_star_grid_2d::re_export::IAStarGrid2D; +pub mod accept_dialog; +pub use accept_dialog::re_export::AcceptDialog; +pub use accept_dialog::re_export::IAcceptDialog; +mod animatable_body_2d; +pub use animatable_body_2d::re_export::AnimatableBody2D; +pub use animatable_body_2d::re_export::IAnimatableBody2D; +mod animatable_body_3d; +pub use animatable_body_3d::re_export::AnimatableBody3D; +pub use animatable_body_3d::re_export::IAnimatableBody3D; +pub mod animated_sprite_2d; +pub use animated_sprite_2d::re_export::AnimatedSprite2D; +pub use animated_sprite_2d::re_export::IAnimatedSprite2D; +pub mod animated_sprite_3d; +pub use animated_sprite_3d::re_export::AnimatedSprite3D; +pub use animated_sprite_3d::re_export::IAnimatedSprite3D; +mod animated_texture; +pub use animated_texture::re_export::AnimatedTexture; +pub use animated_texture::re_export::IAnimatedTexture; +pub mod animation; +pub use animation::re_export::Animation; +pub use animation::re_export::IAnimation; +mod animation_library; +pub use animation_library::re_export::AnimationLibrary; +pub use animation_library::re_export::IAnimationLibrary; +pub mod animation_mixer; +pub use animation_mixer::re_export::AnimationMixer; +pub use animation_mixer::re_export::IAnimationMixer; +pub mod animation_node; +pub use animation_node::re_export::AnimationNode; +pub use animation_node::re_export::IAnimationNode; +mod animation_node_add2; +pub use animation_node_add2::re_export::AnimationNodeAdd2; +pub use animation_node_add2::re_export::IAnimationNodeAdd2; +mod animation_node_add3; +pub use animation_node_add3::re_export::AnimationNodeAdd3; +pub use animation_node_add3::re_export::IAnimationNodeAdd3; +pub mod animation_node_animation; +pub use animation_node_animation::re_export::AnimationNodeAnimation; +pub use animation_node_animation::re_export::IAnimationNodeAnimation; +mod animation_node_blend2; +pub use animation_node_blend2::re_export::AnimationNodeBlend2; +pub use animation_node_blend2::re_export::IAnimationNodeBlend2; +mod animation_node_blend3; +pub use animation_node_blend3::re_export::AnimationNodeBlend3; +pub use animation_node_blend3::re_export::IAnimationNodeBlend3; +pub mod animation_node_blend_space_1d; +pub use animation_node_blend_space_1d::re_export::AnimationNodeBlendSpace1D; +pub use animation_node_blend_space_1d::re_export::IAnimationNodeBlendSpace1D; +pub mod animation_node_blend_space_2d; +pub use animation_node_blend_space_2d::re_export::AnimationNodeBlendSpace2D; +pub use animation_node_blend_space_2d::re_export::IAnimationNodeBlendSpace2D; +pub mod animation_node_blend_tree; +pub use animation_node_blend_tree::re_export::AnimationNodeBlendTree; +pub use animation_node_blend_tree::re_export::IAnimationNodeBlendTree; +pub mod animation_node_one_shot; +pub use animation_node_one_shot::re_export::AnimationNodeOneShot; +pub use animation_node_one_shot::re_export::IAnimationNodeOneShot; +mod animation_node_output; +pub use animation_node_output::re_export::AnimationNodeOutput; +pub use animation_node_output::re_export::IAnimationNodeOutput; +pub mod animation_node_state_machine; +pub use animation_node_state_machine::re_export::AnimationNodeStateMachine; +pub use animation_node_state_machine::re_export::IAnimationNodeStateMachine; +pub mod animation_node_state_machine_playback; +pub use animation_node_state_machine_playback::re_export::AnimationNodeStateMachinePlayback; +pub use animation_node_state_machine_playback::re_export::IAnimationNodeStateMachinePlayback; +pub mod animation_node_state_machine_transition; +pub use animation_node_state_machine_transition::re_export::AnimationNodeStateMachineTransition; +pub use animation_node_state_machine_transition::re_export::IAnimationNodeStateMachineTransition; +mod animation_node_sub2; +pub use animation_node_sub2::re_export::AnimationNodeSub2; +pub use animation_node_sub2::re_export::IAnimationNodeSub2; +mod animation_node_sync; +pub use animation_node_sync::re_export::AnimationNodeSync; +pub use animation_node_sync::re_export::IAnimationNodeSync; +mod animation_node_time_scale; +pub use animation_node_time_scale::re_export::AnimationNodeTimeScale; +pub use animation_node_time_scale::re_export::IAnimationNodeTimeScale; +mod animation_node_time_seek; +pub use animation_node_time_seek::re_export::AnimationNodeTimeSeek; +pub use animation_node_time_seek::re_export::IAnimationNodeTimeSeek; +mod animation_node_transition; +pub use animation_node_transition::re_export::AnimationNodeTransition; +pub use animation_node_transition::re_export::IAnimationNodeTransition; +pub mod animation_player; +pub use animation_player::re_export::AnimationPlayer; +pub use animation_player::re_export::IAnimationPlayer; +mod animation_root_node; +pub use animation_root_node::re_export::AnimationRootNode; +pub use animation_root_node::re_export::IAnimationRootNode; +pub mod animation_tree; +pub use animation_tree::re_export::AnimationTree; +pub use animation_tree::re_export::IAnimationTree; +pub mod area_2d; +pub use area_2d::re_export::Area2D; +pub use area_2d::re_export::IArea2D; +pub mod area_3d; +pub use area_3d::re_export::Area3D; +pub use area_3d::re_export::IArea3D; +pub mod array_mesh; +pub use array_mesh::re_export::ArrayMesh; +pub use array_mesh::re_export::IArrayMesh; +mod array_occluder_3d; +pub use array_occluder_3d::re_export::ArrayOccluder3D; +pub use array_occluder_3d::re_export::IArrayOccluder3D; +pub mod aspect_ratio_container; +pub use aspect_ratio_container::re_export::AspectRatioContainer; +pub use aspect_ratio_container::re_export::IAspectRatioContainer; +mod atlas_texture; +pub use atlas_texture::re_export::AtlasTexture; +pub use atlas_texture::re_export::IAtlasTexture; +mod audio_bus_layout; +pub use audio_bus_layout::re_export::AudioBusLayout; +pub use audio_bus_layout::re_export::IAudioBusLayout; +mod audio_effect; +pub use audio_effect::re_export::AudioEffect; +pub use audio_effect::re_export::IAudioEffect; +mod audio_effect_amplify; +pub use audio_effect_amplify::re_export::AudioEffectAmplify; +pub use audio_effect_amplify::re_export::IAudioEffectAmplify; +mod audio_effect_band_limit_filter; +pub use audio_effect_band_limit_filter::re_export::AudioEffectBandLimitFilter; +pub use audio_effect_band_limit_filter::re_export::IAudioEffectBandLimitFilter; +mod audio_effect_band_pass_filter; +pub use audio_effect_band_pass_filter::re_export::AudioEffectBandPassFilter; +pub use audio_effect_band_pass_filter::re_export::IAudioEffectBandPassFilter; +mod audio_effect_capture; +pub use audio_effect_capture::re_export::AudioEffectCapture; +pub use audio_effect_capture::re_export::IAudioEffectCapture; +mod audio_effect_chorus; +pub use audio_effect_chorus::re_export::AudioEffectChorus; +pub use audio_effect_chorus::re_export::IAudioEffectChorus; +mod audio_effect_compressor; +pub use audio_effect_compressor::re_export::AudioEffectCompressor; +pub use audio_effect_compressor::re_export::IAudioEffectCompressor; +mod audio_effect_delay; +pub use audio_effect_delay::re_export::AudioEffectDelay; +pub use audio_effect_delay::re_export::IAudioEffectDelay; +pub mod audio_effect_distortion; +pub use audio_effect_distortion::re_export::AudioEffectDistortion; +pub use audio_effect_distortion::re_export::IAudioEffectDistortion; +mod audio_effect_eq; +pub use audio_effect_eq::re_export::AudioEffectEq; +pub use audio_effect_eq::re_export::IAudioEffectEq; +mod audio_effect_eq10; +pub use audio_effect_eq10::re_export::AudioEffectEq10; +pub use audio_effect_eq10::re_export::IAudioEffectEq10; +mod audio_effect_eq21; +pub use audio_effect_eq21::re_export::AudioEffectEq21; +pub use audio_effect_eq21::re_export::IAudioEffectEq21; +mod audio_effect_eq6; +pub use audio_effect_eq6::re_export::AudioEffectEq6; +pub use audio_effect_eq6::re_export::IAudioEffectEq6; +pub mod audio_effect_filter; +pub use audio_effect_filter::re_export::AudioEffectFilter; +pub use audio_effect_filter::re_export::IAudioEffectFilter; +mod audio_effect_hard_limiter; +pub use audio_effect_hard_limiter::re_export::AudioEffectHardLimiter; +pub use audio_effect_hard_limiter::re_export::IAudioEffectHardLimiter; +mod audio_effect_high_pass_filter; +pub use audio_effect_high_pass_filter::re_export::AudioEffectHighPassFilter; +pub use audio_effect_high_pass_filter::re_export::IAudioEffectHighPassFilter; +mod audio_effect_high_shelf_filter; +pub use audio_effect_high_shelf_filter::re_export::AudioEffectHighShelfFilter; +pub use audio_effect_high_shelf_filter::re_export::IAudioEffectHighShelfFilter; +mod audio_effect_instance; +pub use audio_effect_instance::re_export::AudioEffectInstance; +pub use audio_effect_instance::re_export::IAudioEffectInstance; +mod audio_effect_limiter; +pub use audio_effect_limiter::re_export::AudioEffectLimiter; +pub use audio_effect_limiter::re_export::IAudioEffectLimiter; +mod audio_effect_low_pass_filter; +pub use audio_effect_low_pass_filter::re_export::AudioEffectLowPassFilter; +pub use audio_effect_low_pass_filter::re_export::IAudioEffectLowPassFilter; +mod audio_effect_low_shelf_filter; +pub use audio_effect_low_shelf_filter::re_export::AudioEffectLowShelfFilter; +pub use audio_effect_low_shelf_filter::re_export::IAudioEffectLowShelfFilter; +mod audio_effect_notch_filter; +pub use audio_effect_notch_filter::re_export::AudioEffectNotchFilter; +pub use audio_effect_notch_filter::re_export::IAudioEffectNotchFilter; +mod audio_effect_panner; +pub use audio_effect_panner::re_export::AudioEffectPanner; +pub use audio_effect_panner::re_export::IAudioEffectPanner; +mod audio_effect_phaser; +pub use audio_effect_phaser::re_export::AudioEffectPhaser; +pub use audio_effect_phaser::re_export::IAudioEffectPhaser; +pub mod audio_effect_pitch_shift; +pub use audio_effect_pitch_shift::re_export::AudioEffectPitchShift; +pub use audio_effect_pitch_shift::re_export::IAudioEffectPitchShift; +mod audio_effect_record; +pub use audio_effect_record::re_export::AudioEffectRecord; +pub use audio_effect_record::re_export::IAudioEffectRecord; +mod audio_effect_reverb; +pub use audio_effect_reverb::re_export::AudioEffectReverb; +pub use audio_effect_reverb::re_export::IAudioEffectReverb; +pub mod audio_effect_spectrum_analyzer; +pub use audio_effect_spectrum_analyzer::re_export::AudioEffectSpectrumAnalyzer; +pub use audio_effect_spectrum_analyzer::re_export::IAudioEffectSpectrumAnalyzer; +pub mod audio_effect_spectrum_analyzer_instance; +pub use audio_effect_spectrum_analyzer_instance::re_export::AudioEffectSpectrumAnalyzerInstance; +pub use audio_effect_spectrum_analyzer_instance::re_export::IAudioEffectSpectrumAnalyzerInstance; +mod audio_effect_stereo_enhance; +pub use audio_effect_stereo_enhance::re_export::AudioEffectStereoEnhance; +pub use audio_effect_stereo_enhance::re_export::IAudioEffectStereoEnhance; +mod audio_listener_2d; +pub use audio_listener_2d::re_export::AudioListener2D; +pub use audio_listener_2d::re_export::IAudioListener2D; +mod audio_listener_3d; +pub use audio_listener_3d::re_export::AudioListener3D; +pub use audio_listener_3d::re_export::IAudioListener3D; +pub mod audio_server; +pub use audio_server::re_export::AudioServer; +pub use audio_server::re_export::IAudioServer; +mod audio_stream; +pub use audio_stream::re_export::AudioStream; +pub use audio_stream::re_export::IAudioStream; +mod audio_stream_generator; +pub use audio_stream_generator::re_export::AudioStreamGenerator; +pub use audio_stream_generator::re_export::IAudioStreamGenerator; +mod audio_stream_generator_playback; +pub use audio_stream_generator_playback::re_export::AudioStreamGeneratorPlayback; +pub use audio_stream_generator_playback::re_export::IAudioStreamGeneratorPlayback; +pub mod audio_stream_interactive; +pub use audio_stream_interactive::re_export::AudioStreamInteractive; +pub use audio_stream_interactive::re_export::IAudioStreamInteractive; +mod audio_stream_mp3; +pub use audio_stream_mp3::re_export::AudioStreamMp3; +pub use audio_stream_mp3::re_export::IAudioStreamMp3; +mod audio_stream_microphone; +pub use audio_stream_microphone::re_export::AudioStreamMicrophone; +pub use audio_stream_microphone::re_export::IAudioStreamMicrophone; +mod audio_stream_ogg_vorbis; +pub use audio_stream_ogg_vorbis::re_export::AudioStreamOggVorbis; +pub use audio_stream_ogg_vorbis::re_export::IAudioStreamOggVorbis; +mod audio_stream_playback; +pub use audio_stream_playback::re_export::AudioStreamPlayback; +pub use audio_stream_playback::re_export::IAudioStreamPlayback; +mod audio_stream_playback_interactive; +pub use audio_stream_playback_interactive::re_export::AudioStreamPlaybackInteractive; +pub use audio_stream_playback_interactive::re_export::IAudioStreamPlaybackInteractive; +mod audio_stream_playback_ogg_vorbis; +pub use audio_stream_playback_ogg_vorbis::re_export::AudioStreamPlaybackOggVorbis; +pub use audio_stream_playback_ogg_vorbis::re_export::IAudioStreamPlaybackOggVorbis; +mod audio_stream_playback_playlist; +pub use audio_stream_playback_playlist::re_export::AudioStreamPlaybackPlaylist; +pub use audio_stream_playback_playlist::re_export::IAudioStreamPlaybackPlaylist; +pub mod audio_stream_playback_polyphonic; +pub use audio_stream_playback_polyphonic::re_export::AudioStreamPlaybackPolyphonic; +pub use audio_stream_playback_polyphonic::re_export::IAudioStreamPlaybackPolyphonic; +mod audio_stream_playback_resampled; +pub use audio_stream_playback_resampled::re_export::AudioStreamPlaybackResampled; +pub use audio_stream_playback_resampled::re_export::IAudioStreamPlaybackResampled; +mod audio_stream_playback_synchronized; +pub use audio_stream_playback_synchronized::re_export::AudioStreamPlaybackSynchronized; +pub use audio_stream_playback_synchronized::re_export::IAudioStreamPlaybackSynchronized; +pub mod audio_stream_player; +pub use audio_stream_player::re_export::AudioStreamPlayer; +pub use audio_stream_player::re_export::IAudioStreamPlayer; +pub mod audio_stream_player_2d; +pub use audio_stream_player_2d::re_export::AudioStreamPlayer2D; +pub use audio_stream_player_2d::re_export::IAudioStreamPlayer2D; +pub mod audio_stream_player_3d; +pub use audio_stream_player_3d::re_export::AudioStreamPlayer3D; +pub use audio_stream_player_3d::re_export::IAudioStreamPlayer3D; +mod audio_stream_playlist; +pub use audio_stream_playlist::re_export::AudioStreamPlaylist; +pub use audio_stream_playlist::re_export::IAudioStreamPlaylist; +mod audio_stream_polyphonic; +pub use audio_stream_polyphonic::re_export::AudioStreamPolyphonic; +pub use audio_stream_polyphonic::re_export::IAudioStreamPolyphonic; +pub mod audio_stream_randomizer; +pub use audio_stream_randomizer::re_export::AudioStreamRandomizer; +pub use audio_stream_randomizer::re_export::IAudioStreamRandomizer; +mod audio_stream_synchronized; +pub use audio_stream_synchronized::re_export::AudioStreamSynchronized; +pub use audio_stream_synchronized::re_export::IAudioStreamSynchronized; +pub mod audio_stream_wav; +pub use audio_stream_wav::re_export::AudioStreamWav; +pub use audio_stream_wav::re_export::IAudioStreamWav; +pub mod back_buffer_copy; +pub use back_buffer_copy::re_export::BackBufferCopy; +pub use back_buffer_copy::re_export::IBackBufferCopy; +pub mod base_button; +pub use base_button::re_export::BaseButton; +pub use base_button::re_export::IBaseButton; +pub mod base_material_3d; +pub use base_material_3d::re_export::BaseMaterial3D; +pub use base_material_3d::re_export::IBaseMaterial3D; +pub mod bit_map; +pub use bit_map::re_export::BitMap; +pub use bit_map::re_export::IBitMap; +mod bone_2d; +pub use bone_2d::re_export::Bone2D; +pub use bone_2d::re_export::IBone2D; +mod bone_attachment_3d; +pub use bone_attachment_3d::re_export::BoneAttachment3D; +pub use bone_attachment_3d::re_export::IBoneAttachment3D; +mod bone_map; +pub use bone_map::re_export::BoneMap; +pub use bone_map::re_export::IBoneMap; +pub mod box_container; +pub use box_container::re_export::BoxContainer; +pub use box_container::re_export::IBoxContainer; +mod box_mesh; +pub use box_mesh::re_export::BoxMesh; +pub use box_mesh::re_export::IBoxMesh; +mod box_occluder_3d; +pub use box_occluder_3d::re_export::BoxOccluder3D; +pub use box_occluder_3d::re_export::IBoxOccluder3D; +mod box_shape_3d; +pub use box_shape_3d::re_export::BoxShape3D; +pub use box_shape_3d::re_export::IBoxShape3D; +mod button; +pub use button::re_export::Button; +pub use button::re_export::IButton; +mod button_group; +pub use button_group::re_export::ButtonGroup; +pub use button_group::re_export::IButtonGroup; +pub mod cpu_particles_2d; +pub use cpu_particles_2d::re_export::CpuParticles2D; +pub use cpu_particles_2d::re_export::ICpuParticles2D; +pub mod cpu_particles_3d; +pub use cpu_particles_3d::re_export::CpuParticles3D; +pub use cpu_particles_3d::re_export::ICpuParticles3D; +mod csg_box_3d; +pub use csg_box_3d::re_export::CsgBox3D; +pub use csg_box_3d::re_export::ICsgBox3D; +mod csg_combiner_3d; +pub use csg_combiner_3d::re_export::CsgCombiner3D; +pub use csg_combiner_3d::re_export::ICsgCombiner3D; +mod csg_cylinder_3d; +pub use csg_cylinder_3d::re_export::CsgCylinder3D; +pub use csg_cylinder_3d::re_export::ICsgCylinder3D; +mod csg_mesh_3d; +pub use csg_mesh_3d::re_export::CsgMesh3D; +pub use csg_mesh_3d::re_export::ICsgMesh3D; +pub mod csg_polygon_3d; +pub use csg_polygon_3d::re_export::CsgPolygon3D; +pub use csg_polygon_3d::re_export::ICsgPolygon3D; +mod csg_primitive_3d; +pub use csg_primitive_3d::re_export::CsgPrimitive3D; +pub use csg_primitive_3d::re_export::ICsgPrimitive3D; +pub mod csg_shape_3d; +pub use csg_shape_3d::re_export::CsgShape3D; +pub use csg_shape_3d::re_export::ICsgShape3D; +mod csg_sphere_3d; +pub use csg_sphere_3d::re_export::CsgSphere3D; +pub use csg_sphere_3d::re_export::ICsgSphere3D; +mod csg_torus_3d; +pub use csg_torus_3d::re_export::CsgTorus3D; +pub use csg_torus_3d::re_export::ICsgTorus3D; +mod callback_tweener; +pub use callback_tweener::re_export::CallbackTweener; +pub use callback_tweener::re_export::ICallbackTweener; +pub mod camera_2d; +pub use camera_2d::re_export::Camera2D; +pub use camera_2d::re_export::ICamera2D; +pub mod camera_3d; +pub use camera_3d::re_export::Camera3D; +pub use camera_3d::re_export::ICamera3D; +mod camera_attributes; +pub use camera_attributes::re_export::CameraAttributes; +pub use camera_attributes::re_export::ICameraAttributes; +mod camera_attributes_physical; +pub use camera_attributes_physical::re_export::CameraAttributesPhysical; +pub use camera_attributes_physical::re_export::ICameraAttributesPhysical; +mod camera_attributes_practical; +pub use camera_attributes_practical::re_export::CameraAttributesPractical; +pub use camera_attributes_practical::re_export::ICameraAttributesPractical; +pub mod camera_feed; +pub use camera_feed::re_export::CameraFeed; +pub use camera_feed::re_export::ICameraFeed; +pub mod camera_server; +pub use camera_server::re_export::CameraServer; +pub use camera_server::re_export::ICameraServer; +mod camera_texture; +pub use camera_texture::re_export::CameraTexture; +pub use camera_texture::re_export::ICameraTexture; +mod canvas_group; +pub use canvas_group::re_export::CanvasGroup; +pub use canvas_group::re_export::ICanvasGroup; +pub mod canvas_item; +pub use canvas_item::re_export::CanvasItem; +pub use canvas_item::re_export::ICanvasItem; +pub mod canvas_item_material; +pub use canvas_item_material::re_export::CanvasItemMaterial; +pub use canvas_item_material::re_export::ICanvasItemMaterial; +mod canvas_layer; +pub use canvas_layer::re_export::CanvasLayer; +pub use canvas_layer::re_export::ICanvasLayer; +mod canvas_modulate; +pub use canvas_modulate::re_export::CanvasModulate; +pub use canvas_modulate::re_export::ICanvasModulate; +mod canvas_texture; +pub use canvas_texture::re_export::CanvasTexture; +pub use canvas_texture::re_export::ICanvasTexture; +mod capsule_mesh; +pub use capsule_mesh::re_export::CapsuleMesh; +pub use capsule_mesh::re_export::ICapsuleMesh; +mod capsule_shape_2d; +pub use capsule_shape_2d::re_export::CapsuleShape2D; +pub use capsule_shape_2d::re_export::ICapsuleShape2D; +mod capsule_shape_3d; +pub use capsule_shape_3d::re_export::CapsuleShape3D; +pub use capsule_shape_3d::re_export::ICapsuleShape3D; +mod center_container; +pub use center_container::re_export::CenterContainer; +pub use center_container::re_export::ICenterContainer; +mod char_fx_transform; +pub use char_fx_transform::re_export::CharFxTransform; +pub use char_fx_transform::re_export::ICharFxTransform; +pub mod character_body_2d; +pub use character_body_2d::re_export::CharacterBody2D; +pub use character_body_2d::re_export::ICharacterBody2D; +pub mod character_body_3d; +pub use character_body_3d::re_export::CharacterBody3D; +pub use character_body_3d::re_export::ICharacterBody3D; +mod check_box; +pub use check_box::re_export::CheckBox; +pub use check_box::re_export::ICheckBox; +mod check_button; +pub use check_button::re_export::CheckButton; +pub use check_button::re_export::ICheckButton; +mod circle_shape_2d; +pub use circle_shape_2d::re_export::CircleShape2D; +pub use circle_shape_2d::re_export::ICircleShape2D; +pub mod class_db; +pub use class_db::re_export::ClassDb; +pub use class_db::re_export::IClassDb; +pub mod code_edit; +pub use code_edit::re_export::CodeEdit; +pub use code_edit::re_export::ICodeEdit; +pub mod code_highlighter; +pub use code_highlighter::re_export::CodeHighlighter; +pub use code_highlighter::re_export::ICodeHighlighter; +pub mod collision_object_2d; +pub use collision_object_2d::re_export::CollisionObject2D; +pub use collision_object_2d::re_export::ICollisionObject2D; +pub mod collision_object_3d; +pub use collision_object_3d::re_export::CollisionObject3D; +pub use collision_object_3d::re_export::ICollisionObject3D; +pub mod collision_polygon_2d; +pub use collision_polygon_2d::re_export::CollisionPolygon2D; +pub use collision_polygon_2d::re_export::ICollisionPolygon2D; +mod collision_polygon_3d; +pub use collision_polygon_3d::re_export::CollisionPolygon3D; +pub use collision_polygon_3d::re_export::ICollisionPolygon3D; +mod collision_shape_2d; +pub use collision_shape_2d::re_export::CollisionShape2D; +pub use collision_shape_2d::re_export::ICollisionShape2D; +mod collision_shape_3d; +pub use collision_shape_3d::re_export::CollisionShape3D; +pub use collision_shape_3d::re_export::ICollisionShape3D; +pub mod color_picker; +pub use color_picker::re_export::ColorPicker; +pub use color_picker::re_export::IColorPicker; +mod color_picker_button; +pub use color_picker_button::re_export::ColorPickerButton; +pub use color_picker_button::re_export::IColorPickerButton; +mod color_rect; +pub use color_rect::re_export::ColorRect; +pub use color_rect::re_export::IColorRect; +mod compressed_cubemap; +pub use compressed_cubemap::re_export::CompressedCubemap; +pub use compressed_cubemap::re_export::ICompressedCubemap; +mod compressed_cubemap_array; +pub use compressed_cubemap_array::re_export::CompressedCubemapArray; +pub use compressed_cubemap_array::re_export::ICompressedCubemapArray; +mod compressed_texture_2d; +pub use compressed_texture_2d::re_export::CompressedTexture2D; +pub use compressed_texture_2d::re_export::ICompressedTexture2D; +mod compressed_texture_2d_array; +pub use compressed_texture_2d_array::re_export::CompressedTexture2DArray; +pub use compressed_texture_2d_array::re_export::ICompressedTexture2DArray; +mod compressed_texture_3d; +pub use compressed_texture_3d::re_export::CompressedTexture3D; +pub use compressed_texture_3d::re_export::ICompressedTexture3D; +mod compressed_texture_layered; +pub use compressed_texture_layered::re_export::CompressedTextureLayered; +pub use compressed_texture_layered::re_export::ICompressedTextureLayered; +mod concave_polygon_shape_2d; +pub use concave_polygon_shape_2d::re_export::ConcavePolygonShape2D; +pub use concave_polygon_shape_2d::re_export::IConcavePolygonShape2D; +mod concave_polygon_shape_3d; +pub use concave_polygon_shape_3d::re_export::ConcavePolygonShape3D; +pub use concave_polygon_shape_3d::re_export::IConcavePolygonShape3D; +pub mod cone_twist_joint_3d; +pub use cone_twist_joint_3d::re_export::ConeTwistJoint3D; +pub use cone_twist_joint_3d::re_export::IConeTwistJoint3D; +pub mod config_file; +pub use config_file::re_export::ConfigFile; +pub use config_file::re_export::IConfigFile; +mod confirmation_dialog; +pub use confirmation_dialog::re_export::ConfirmationDialog; +pub use confirmation_dialog::re_export::IConfirmationDialog; +mod container; +pub use container::re_export::Container; +pub use container::re_export::IContainer; +pub mod control; +pub use control::re_export::Control; +pub use control::re_export::IControl; +mod convex_polygon_shape_2d; +pub use convex_polygon_shape_2d::re_export::ConvexPolygonShape2D; +pub use convex_polygon_shape_2d::re_export::IConvexPolygonShape2D; +mod convex_polygon_shape_3d; +pub use convex_polygon_shape_3d::re_export::ConvexPolygonShape3D; +pub use convex_polygon_shape_3d::re_export::IConvexPolygonShape3D; +pub mod crypto; +pub use crypto::re_export::Crypto; +pub use crypto::re_export::ICrypto; +pub mod crypto_key; +pub use crypto_key::re_export::CryptoKey; +pub use crypto_key::re_export::ICryptoKey; +mod cubemap; +pub use cubemap::re_export::Cubemap; +pub use cubemap::re_export::ICubemap; +mod cubemap_array; +pub use cubemap_array::re_export::CubemapArray; +pub use cubemap_array::re_export::ICubemapArray; +pub mod curve; +pub use curve::re_export::Curve; +pub use curve::re_export::ICurve; +pub mod curve_2d; +pub use curve_2d::re_export::Curve2D; +pub use curve_2d::re_export::ICurve2D; +pub mod curve_3d; +pub use curve_3d::re_export::Curve3D; +pub use curve_3d::re_export::ICurve3D; +pub mod curve_texture; +pub use curve_texture::re_export::CurveTexture; +pub use curve_texture::re_export::ICurveTexture; +mod curve_xyz_texture; +pub use curve_xyz_texture::re_export::CurveXyzTexture; +pub use curve_xyz_texture::re_export::ICurveXyzTexture; +mod cylinder_mesh; +pub use cylinder_mesh::re_export::CylinderMesh; +pub use cylinder_mesh::re_export::ICylinderMesh; +mod cylinder_shape_3d; +pub use cylinder_shape_3d::re_export::CylinderShape3D; +pub use cylinder_shape_3d::re_export::ICylinderShape3D; +mod dtls_server; +pub use dtls_server::re_export::DtlsServer; +pub use dtls_server::re_export::IDtlsServer; +mod damped_spring_joint_2d; +pub use damped_spring_joint_2d::re_export::DampedSpringJoint2D; +pub use damped_spring_joint_2d::re_export::IDampedSpringJoint2D; +pub mod decal; +pub use decal::re_export::Decal; +pub use decal::re_export::IDecal; +pub mod dir_access; +pub use dir_access::re_export::DirAccess; +pub use dir_access::re_export::IDirAccess; +mod directional_light_2d; +pub use directional_light_2d::re_export::DirectionalLight2D; +pub use directional_light_2d::re_export::IDirectionalLight2D; +pub mod directional_light_3d; +pub use directional_light_3d::re_export::DirectionalLight3D; +pub use directional_light_3d::re_export::IDirectionalLight3D; +pub mod display_server; +pub use display_server::re_export::DisplayServer; +pub use display_server::re_export::IDisplayServer; +pub mod enet_connection; +pub use enet_connection::re_export::ENetConnection; +pub use enet_connection::re_export::IENetConnection; +pub mod enet_multiplayer_peer; +pub use enet_multiplayer_peer::re_export::ENetMultiplayerPeer; +pub use enet_multiplayer_peer::re_export::IENetMultiplayerPeer; +pub mod enet_packet_peer; +pub use enet_packet_peer::re_export::ENetPacketPeer; +pub use enet_packet_peer::re_export::IENetPacketPeer; +pub mod editor_command_palette; +pub use editor_command_palette::re_export::EditorCommandPalette; +pub use editor_command_palette::re_export::IEditorCommandPalette; +mod editor_debugger_plugin; +pub use editor_debugger_plugin::re_export::EditorDebuggerPlugin; +pub use editor_debugger_plugin::re_export::IEditorDebuggerPlugin; +pub mod editor_debugger_session; +pub use editor_debugger_session::re_export::EditorDebuggerSession; +pub use editor_debugger_session::re_export::IEditorDebuggerSession; +mod editor_export_platform; +pub use editor_export_platform::re_export::EditorExportPlatform; +pub use editor_export_platform::re_export::IEditorExportPlatform; +mod editor_export_platform_android; +pub use editor_export_platform_android::re_export::EditorExportPlatformAndroid; +pub use editor_export_platform_android::re_export::IEditorExportPlatformAndroid; +mod editor_export_platform_ios; +pub use editor_export_platform_ios::re_export::EditorExportPlatformIos; +pub use editor_export_platform_ios::re_export::IEditorExportPlatformIos; +mod editor_export_platform_linux_bsd; +pub use editor_export_platform_linux_bsd::re_export::EditorExportPlatformLinuxBsd; +pub use editor_export_platform_linux_bsd::re_export::IEditorExportPlatformLinuxBsd; +mod editor_export_platform_mac_os; +pub use editor_export_platform_mac_os::re_export::EditorExportPlatformMacOs; +pub use editor_export_platform_mac_os::re_export::IEditorExportPlatformMacOs; +mod editor_export_platform_pc; +pub use editor_export_platform_pc::re_export::EditorExportPlatformPc; +pub use editor_export_platform_pc::re_export::IEditorExportPlatformPc; +mod editor_export_platform_web; +pub use editor_export_platform_web::re_export::EditorExportPlatformWeb; +pub use editor_export_platform_web::re_export::IEditorExportPlatformWeb; +mod editor_export_platform_windows; +pub use editor_export_platform_windows::re_export::EditorExportPlatformWindows; +pub use editor_export_platform_windows::re_export::IEditorExportPlatformWindows; +mod editor_export_plugin; +pub use editor_export_plugin::re_export::EditorExportPlugin; +pub use editor_export_plugin::re_export::IEditorExportPlugin; +pub mod editor_feature_profile; +pub use editor_feature_profile::re_export::EditorFeatureProfile; +pub use editor_feature_profile::re_export::IEditorFeatureProfile; +pub mod editor_file_dialog; +pub use editor_file_dialog::re_export::EditorFileDialog; +pub use editor_file_dialog::re_export::IEditorFileDialog; +mod editor_file_system; +pub use editor_file_system::re_export::EditorFileSystem; +pub use editor_file_system::re_export::IEditorFileSystem; +mod editor_file_system_directory; +pub use editor_file_system_directory::re_export::EditorFileSystemDirectory; +pub use editor_file_system_directory::re_export::IEditorFileSystemDirectory; +mod editor_file_system_import_format_support_query; +pub use editor_file_system_import_format_support_query::re_export::EditorFileSystemImportFormatSupportQuery; +pub use editor_file_system_import_format_support_query::re_export::IEditorFileSystemImportFormatSupportQuery; +pub mod editor_import_plugin; +pub use editor_import_plugin::re_export::EditorImportPlugin; +pub use editor_import_plugin::re_export::IEditorImportPlugin; +mod editor_inspector; +pub use editor_inspector::re_export::EditorInspector; +pub use editor_inspector::re_export::IEditorInspector; +pub mod editor_inspector_plugin; +pub use editor_inspector_plugin::re_export::EditorInspectorPlugin; +pub use editor_inspector_plugin::re_export::IEditorInspectorPlugin; +pub mod editor_interface; +pub use editor_interface::re_export::EditorInterface; +pub use editor_interface::re_export::IEditorInterface; +pub mod editor_node_3d_gizmo; +pub use editor_node_3d_gizmo::re_export::EditorNode3DGizmo; +pub use editor_node_3d_gizmo::re_export::IEditorNode3DGizmo; +pub mod editor_node_3d_gizmo_plugin; +pub use editor_node_3d_gizmo_plugin::re_export::EditorNode3DGizmoPlugin; +pub use editor_node_3d_gizmo_plugin::re_export::IEditorNode3DGizmoPlugin; +mod editor_paths; +pub use editor_paths::re_export::EditorPaths; +pub use editor_paths::re_export::IEditorPaths; +pub mod editor_plugin; +pub use editor_plugin::re_export::EditorPlugin; +pub use editor_plugin::re_export::IEditorPlugin; +pub mod editor_property; +pub use editor_property::re_export::EditorProperty; +pub use editor_property::re_export::IEditorProperty; +mod editor_resource_conversion_plugin; +pub use editor_resource_conversion_plugin::re_export::EditorResourceConversionPlugin; +pub use editor_resource_conversion_plugin::re_export::IEditorResourceConversionPlugin; +mod editor_resource_picker; +pub use editor_resource_picker::re_export::EditorResourcePicker; +pub use editor_resource_picker::re_export::IEditorResourcePicker; +mod editor_resource_preview; +pub use editor_resource_preview::re_export::EditorResourcePreview; +pub use editor_resource_preview::re_export::IEditorResourcePreview; +mod editor_resource_preview_generator; +pub use editor_resource_preview_generator::re_export::EditorResourcePreviewGenerator; +pub use editor_resource_preview_generator::re_export::IEditorResourcePreviewGenerator; +mod editor_resource_tooltip_plugin; +pub use editor_resource_tooltip_plugin::re_export::EditorResourceTooltipPlugin; +pub use editor_resource_tooltip_plugin::re_export::IEditorResourceTooltipPlugin; +mod editor_scene_format_importer; +pub use editor_scene_format_importer::re_export::EditorSceneFormatImporter; +pub use editor_scene_format_importer::re_export::IEditorSceneFormatImporter; +mod editor_scene_format_importer_blend; +pub use editor_scene_format_importer_blend::re_export::EditorSceneFormatImporterBlend; +pub use editor_scene_format_importer_blend::re_export::IEditorSceneFormatImporterBlend; +mod editor_scene_format_importer_fbx2gltf; +pub use editor_scene_format_importer_fbx2gltf::re_export::EditorSceneFormatImporterFbx2gltf; +pub use editor_scene_format_importer_fbx2gltf::re_export::IEditorSceneFormatImporterFbx2gltf; +mod editor_scene_format_importer_gltf; +pub use editor_scene_format_importer_gltf::re_export::EditorSceneFormatImporterGltf; +pub use editor_scene_format_importer_gltf::re_export::IEditorSceneFormatImporterGltf; +mod editor_scene_format_importer_ufbx; +pub use editor_scene_format_importer_ufbx::re_export::EditorSceneFormatImporterUfbx; +pub use editor_scene_format_importer_ufbx::re_export::IEditorSceneFormatImporterUfbx; +mod editor_scene_post_import; +pub use editor_scene_post_import::re_export::EditorScenePostImport; +pub use editor_scene_post_import::re_export::IEditorScenePostImport; +pub mod editor_scene_post_import_plugin; +pub use editor_scene_post_import_plugin::re_export::EditorScenePostImportPlugin; +pub use editor_scene_post_import_plugin::re_export::IEditorScenePostImportPlugin; +mod editor_script; +pub use editor_script::re_export::EditorScript; +pub use editor_script::re_export::IEditorScript; +mod editor_script_picker; +pub use editor_script_picker::re_export::EditorScriptPicker; +pub use editor_script_picker::re_export::IEditorScriptPicker; +mod editor_selection; +pub use editor_selection::re_export::EditorSelection; +pub use editor_selection::re_export::IEditorSelection; +pub mod editor_settings; +pub use editor_settings::re_export::EditorSettings; +pub use editor_settings::re_export::IEditorSettings; +mod editor_spin_slider; +pub use editor_spin_slider::re_export::EditorSpinSlider; +pub use editor_spin_slider::re_export::IEditorSpinSlider; +mod editor_syntax_highlighter; +pub use editor_syntax_highlighter::re_export::EditorSyntaxHighlighter; +pub use editor_syntax_highlighter::re_export::IEditorSyntaxHighlighter; +mod editor_translation_parser_plugin; +pub use editor_translation_parser_plugin::re_export::EditorTranslationParserPlugin; +pub use editor_translation_parser_plugin::re_export::IEditorTranslationParserPlugin; +pub mod editor_undo_redo_manager; +pub use editor_undo_redo_manager::re_export::EditorUndoRedoManager; +pub use editor_undo_redo_manager::re_export::IEditorUndoRedoManager; +pub mod editor_vcs_interface; +pub use editor_vcs_interface::re_export::EditorVcsInterface; +pub use editor_vcs_interface::re_export::IEditorVcsInterface; +mod encoded_object_as_id; +pub use encoded_object_as_id::re_export::EncodedObjectAsId; +pub use encoded_object_as_id::re_export::IEncodedObjectAsId; +mod engine; +pub use engine::re_export::Engine; +pub use engine::re_export::IEngine; +pub mod engine_debugger; +pub use engine_debugger::re_export::EngineDebugger; +pub use engine_debugger::re_export::IEngineDebugger; +mod engine_profiler; +pub use engine_profiler::re_export::EngineProfiler; +pub use engine_profiler::re_export::IEngineProfiler; +pub mod environment; +pub use environment::re_export::Environment; +pub use environment::re_export::IEnvironment; +pub mod expression; +pub use expression::re_export::Expression; +pub use expression::re_export::IExpression; +mod fbx_document; +pub use fbx_document::re_export::FbxDocument; +pub use fbx_document::re_export::IFbxDocument; +mod fbx_state; +pub use fbx_state::re_export::FbxState; +pub use fbx_state::re_export::IFbxState; +pub mod fast_noise_lite; +pub use fast_noise_lite::re_export::FastNoiseLite; +pub use fast_noise_lite::re_export::IFastNoiseLite; +pub mod file_access; +pub use file_access::re_export::FileAccess; +pub use file_access::re_export::IFileAccess; +pub mod file_dialog; +pub use file_dialog::re_export::FileDialog; +pub use file_dialog::re_export::IFileDialog; +mod file_system_dock; +pub use file_system_dock::re_export::FileSystemDock; +pub use file_system_dock::re_export::IFileSystemDock; +pub mod flow_container; +pub use flow_container::re_export::FlowContainer; +pub use flow_container::re_export::IFlowContainer; +mod fog_material; +pub use fog_material::re_export::FogMaterial; +pub use fog_material::re_export::IFogMaterial; +mod fog_volume; +pub use fog_volume::re_export::FogVolume; +pub use fog_volume::re_export::IFogVolume; +pub mod font; +pub use font::re_export::Font; +pub use font::re_export::IFont; +mod font_file; +pub use font_file::re_export::FontFile; +pub use font_file::re_export::IFontFile; +mod font_variation; +pub use font_variation::re_export::FontVariation; +pub use font_variation::re_export::IFontVariation; +pub mod gdextension; +pub use gdextension::re_export::GDExtension; +pub use gdextension::re_export::IGDExtension; +pub mod gdextension_manager; +pub use gdextension_manager::re_export::GDExtensionManager; +pub use gdextension_manager::re_export::IGDExtensionManager; +mod gdscript; +pub use gdscript::re_export::GDScript; +pub use gdscript::re_export::IGDScript; +pub mod gltf_accessor; +pub use gltf_accessor::re_export::GltfAccessor; +pub use gltf_accessor::re_export::IGltfAccessor; +mod gltf_animation; +pub use gltf_animation::re_export::GltfAnimation; +pub use gltf_animation::re_export::IGltfAnimation; +mod gltf_buffer_view; +pub use gltf_buffer_view::re_export::GltfBufferView; +pub use gltf_buffer_view::re_export::IGltfBufferView; +mod gltf_camera; +pub use gltf_camera::re_export::GltfCamera; +pub use gltf_camera::re_export::IGltfCamera; +pub mod gltf_document; +pub use gltf_document::re_export::GltfDocument; +pub use gltf_document::re_export::IGltfDocument; +mod gltf_document_extension; +pub use gltf_document_extension::re_export::GltfDocumentExtension; +pub use gltf_document_extension::re_export::IGltfDocumentExtension; +mod gltf_document_extension_convert_importer_mesh; +pub use gltf_document_extension_convert_importer_mesh::re_export::GltfDocumentExtensionConvertImporterMesh; +pub use gltf_document_extension_convert_importer_mesh::re_export::IGltfDocumentExtensionConvertImporterMesh; +mod gltf_light; +pub use gltf_light::re_export::GltfLight; +pub use gltf_light::re_export::IGltfLight; +mod gltf_mesh; +pub use gltf_mesh::re_export::GltfMesh; +pub use gltf_mesh::re_export::IGltfMesh; +mod gltf_node; +pub use gltf_node::re_export::GltfNode; +pub use gltf_node::re_export::IGltfNode; +mod gltf_physics_body; +pub use gltf_physics_body::re_export::GltfPhysicsBody; +pub use gltf_physics_body::re_export::IGltfPhysicsBody; +pub mod gltf_physics_shape; +pub use gltf_physics_shape::re_export::GltfPhysicsShape; +pub use gltf_physics_shape::re_export::IGltfPhysicsShape; +mod gltf_skeleton; +pub use gltf_skeleton::re_export::GltfSkeleton; +pub use gltf_skeleton::re_export::IGltfSkeleton; +mod gltf_skin; +pub use gltf_skin::re_export::GltfSkin; +pub use gltf_skin::re_export::IGltfSkin; +mod gltf_spec_gloss; +pub use gltf_spec_gloss::re_export::GltfSpecGloss; +pub use gltf_spec_gloss::re_export::IGltfSpecGloss; +mod gltf_state; +pub use gltf_state::re_export::GltfState; +pub use gltf_state::re_export::IGltfState; +mod gltf_texture; +pub use gltf_texture::re_export::GltfTexture; +pub use gltf_texture::re_export::IGltfTexture; +mod gltf_texture_sampler; +pub use gltf_texture_sampler::re_export::GltfTextureSampler; +pub use gltf_texture_sampler::re_export::IGltfTextureSampler; +pub mod gpu_particles_2d; +pub use gpu_particles_2d::re_export::GpuParticles2D; +pub use gpu_particles_2d::re_export::IGpuParticles2D; +pub mod gpu_particles_3d; +pub use gpu_particles_3d::re_export::GpuParticles3D; +pub use gpu_particles_3d::re_export::IGpuParticles3D; +mod gpu_particles_attractor_3d; +pub use gpu_particles_attractor_3d::re_export::GpuParticlesAttractor3D; +pub use gpu_particles_attractor_3d::re_export::IGpuParticlesAttractor3D; +mod gpu_particles_attractor_box_3d; +pub use gpu_particles_attractor_box_3d::re_export::GpuParticlesAttractorBox3D; +pub use gpu_particles_attractor_box_3d::re_export::IGpuParticlesAttractorBox3D; +mod gpu_particles_attractor_sphere_3d; +pub use gpu_particles_attractor_sphere_3d::re_export::GpuParticlesAttractorSphere3D; +pub use gpu_particles_attractor_sphere_3d::re_export::IGpuParticlesAttractorSphere3D; +mod gpu_particles_attractor_vector_field_3d; +pub use gpu_particles_attractor_vector_field_3d::re_export::GpuParticlesAttractorVectorField3D; +pub use gpu_particles_attractor_vector_field_3d::re_export::IGpuParticlesAttractorVectorField3D; +mod gpu_particles_collision_3d; +pub use gpu_particles_collision_3d::re_export::GpuParticlesCollision3D; +pub use gpu_particles_collision_3d::re_export::IGpuParticlesCollision3D; +mod gpu_particles_collision_box_3d; +pub use gpu_particles_collision_box_3d::re_export::GpuParticlesCollisionBox3D; +pub use gpu_particles_collision_box_3d::re_export::IGpuParticlesCollisionBox3D; +pub mod gpu_particles_collision_height_field_3d; +pub use gpu_particles_collision_height_field_3d::re_export::GpuParticlesCollisionHeightField3D; +pub use gpu_particles_collision_height_field_3d::re_export::IGpuParticlesCollisionHeightField3D; +pub mod gpu_particles_collision_sdf_3d; +pub use gpu_particles_collision_sdf_3d::re_export::GpuParticlesCollisionSdf3d; +pub use gpu_particles_collision_sdf_3d::re_export::IGpuParticlesCollisionSdf3d; +mod gpu_particles_collision_sphere_3d; +pub use gpu_particles_collision_sphere_3d::re_export::GpuParticlesCollisionSphere3D; +pub use gpu_particles_collision_sphere_3d::re_export::IGpuParticlesCollisionSphere3D; +pub mod generic6_dof_joint_3d; +pub use generic6_dof_joint_3d::re_export::Generic6DofJoint3D; +pub use generic6_dof_joint_3d::re_export::IGeneric6DofJoint3D; +pub mod geometry_2d; +pub use geometry_2d::re_export::Geometry2D; +pub use geometry_2d::re_export::IGeometry2D; +pub mod geometry_3d; +pub use geometry_3d::re_export::Geometry3D; +pub use geometry_3d::re_export::IGeometry3D; +pub mod geometry_instance_3d; +pub use geometry_instance_3d::re_export::GeometryInstance3D; +pub use geometry_instance_3d::re_export::IGeometryInstance3D; +pub mod gradient; +pub use gradient::re_export::Gradient; +pub use gradient::re_export::IGradient; +mod gradient_texture_1d; +pub use gradient_texture_1d::re_export::GradientTexture1D; +pub use gradient_texture_1d::re_export::IGradientTexture1D; +pub mod gradient_texture_2d; +pub use gradient_texture_2d::re_export::GradientTexture2D; +pub use gradient_texture_2d::re_export::IGradientTexture2D; +mod grid_container; +pub use grid_container::re_export::GridContainer; +pub use grid_container::re_export::IGridContainer; +pub mod grid_map; +pub use grid_map::re_export::GridMap; +pub use grid_map::re_export::IGridMap; +mod groove_joint_2d; +pub use groove_joint_2d::re_export::GrooveJoint2D; +pub use groove_joint_2d::re_export::IGrooveJoint2D; +mod h_box_container; +pub use h_box_container::re_export::HBoxContainer; +pub use h_box_container::re_export::IHBoxContainer; +mod h_flow_container; +pub use h_flow_container::re_export::HFlowContainer; +pub use h_flow_container::re_export::IHFlowContainer; +mod hmac_context; +pub use hmac_context::re_export::HmacContext; +pub use hmac_context::re_export::IHmacContext; +mod h_scroll_bar; +pub use h_scroll_bar::re_export::HScrollBar; +pub use h_scroll_bar::re_export::IHScrollBar; +mod h_separator; +pub use h_separator::re_export::HSeparator; +pub use h_separator::re_export::IHSeparator; +mod h_slider; +pub use h_slider::re_export::HSlider; +pub use h_slider::re_export::IHSlider; +mod h_split_container; +pub use h_split_container::re_export::HSplitContainer; +pub use h_split_container::re_export::IHSplitContainer; +pub mod http_client; +pub use http_client::re_export::HttpClient; +pub use http_client::re_export::IHttpClient; +pub mod http_request; +pub use http_request::re_export::HttpRequest; +pub use http_request::re_export::IHttpRequest; +pub mod hashing_context; +pub use hashing_context::re_export::HashingContext; +pub use hashing_context::re_export::IHashingContext; +mod height_map_shape_3d; +pub use height_map_shape_3d::re_export::HeightMapShape3D; +pub use height_map_shape_3d::re_export::IHeightMapShape3D; +pub mod hinge_joint_3d; +pub use hinge_joint_3d::re_export::HingeJoint3D; +pub use hinge_joint_3d::re_export::IHingeJoint3D; +pub mod ip; +pub use ip::re_export::Ip; +pub use ip::re_export::IIp; +pub mod image; +pub use image::re_export::Image; +pub use image::re_export::IImage; +pub mod image_format_loader; +pub use image_format_loader::re_export::ImageFormatLoader; +pub use image_format_loader::re_export::IImageFormatLoader; +mod image_format_loader_extension; +pub use image_format_loader_extension::re_export::ImageFormatLoaderExtension; +pub use image_format_loader_extension::re_export::IImageFormatLoaderExtension; +mod image_texture; +pub use image_texture::re_export::ImageTexture; +pub use image_texture::re_export::IImageTexture; +mod image_texture_3d; +pub use image_texture_3d::re_export::ImageTexture3D; +pub use image_texture_3d::re_export::IImageTexture3D; +mod image_texture_layered; +pub use image_texture_layered::re_export::ImageTextureLayered; +pub use image_texture_layered::re_export::IImageTextureLayered; +pub mod immediate_mesh; +pub use immediate_mesh::re_export::ImmediateMesh; +pub use immediate_mesh::re_export::IImmediateMesh; +pub mod importer_mesh; +pub use importer_mesh::re_export::ImporterMesh; +pub use importer_mesh::re_export::IImporterMesh; +mod importer_mesh_instance_3d; +pub use importer_mesh_instance_3d::re_export::ImporterMeshInstance3D; +pub use importer_mesh_instance_3d::re_export::IImporterMeshInstance3D; +pub mod input; +pub use input::re_export::Input; +pub use input::re_export::IInput; +pub mod input_event; +pub use input_event::re_export::InputEvent; +pub use input_event::re_export::IInputEvent; +mod input_event_action; +pub use input_event_action::re_export::InputEventAction; +pub use input_event_action::re_export::IInputEventAction; +mod input_event_from_window; +pub use input_event_from_window::re_export::InputEventFromWindow; +pub use input_event_from_window::re_export::IInputEventFromWindow; +mod input_event_gesture; +pub use input_event_gesture::re_export::InputEventGesture; +pub use input_event_gesture::re_export::IInputEventGesture; +mod input_event_joypad_button; +pub use input_event_joypad_button::re_export::InputEventJoypadButton; +pub use input_event_joypad_button::re_export::IInputEventJoypadButton; +mod input_event_joypad_motion; +pub use input_event_joypad_motion::re_export::InputEventJoypadMotion; +pub use input_event_joypad_motion::re_export::IInputEventJoypadMotion; +mod input_event_key; +pub use input_event_key::re_export::InputEventKey; +pub use input_event_key::re_export::IInputEventKey; +mod input_event_midi; +pub use input_event_midi::re_export::InputEventMidi; +pub use input_event_midi::re_export::IInputEventMidi; +mod input_event_magnify_gesture; +pub use input_event_magnify_gesture::re_export::InputEventMagnifyGesture; +pub use input_event_magnify_gesture::re_export::IInputEventMagnifyGesture; +mod input_event_mouse; +pub use input_event_mouse::re_export::InputEventMouse; +pub use input_event_mouse::re_export::IInputEventMouse; +mod input_event_mouse_button; +pub use input_event_mouse_button::re_export::InputEventMouseButton; +pub use input_event_mouse_button::re_export::IInputEventMouseButton; +mod input_event_mouse_motion; +pub use input_event_mouse_motion::re_export::InputEventMouseMotion; +pub use input_event_mouse_motion::re_export::IInputEventMouseMotion; +mod input_event_pan_gesture; +pub use input_event_pan_gesture::re_export::InputEventPanGesture; +pub use input_event_pan_gesture::re_export::IInputEventPanGesture; +mod input_event_screen_drag; +pub use input_event_screen_drag::re_export::InputEventScreenDrag; +pub use input_event_screen_drag::re_export::IInputEventScreenDrag; +mod input_event_screen_touch; +pub use input_event_screen_touch::re_export::InputEventScreenTouch; +pub use input_event_screen_touch::re_export::IInputEventScreenTouch; +mod input_event_shortcut; +pub use input_event_shortcut::re_export::InputEventShortcut; +pub use input_event_shortcut::re_export::IInputEventShortcut; +mod input_event_with_modifiers; +pub use input_event_with_modifiers::re_export::InputEventWithModifiers; +pub use input_event_with_modifiers::re_export::IInputEventWithModifiers; +pub mod input_map; +pub use input_map::re_export::InputMap; +pub use input_map::re_export::IInputMap; +pub mod instance_placeholder; +pub use instance_placeholder::re_export::InstancePlaceholder; +pub use instance_placeholder::re_export::IInstancePlaceholder; +mod interval_tweener; +pub use interval_tweener::re_export::IntervalTweener; +pub use interval_tweener::re_export::IIntervalTweener; +pub mod item_list; +pub use item_list::re_export::ItemList; +pub use item_list::re_export::IItemList; +pub mod json; +pub use json::re_export::Json; +pub use json::re_export::IJson; +pub mod json_rpc; +pub use json_rpc::re_export::JsonRpc; +pub use json_rpc::re_export::IJsonRpc; +mod joint_2d; +pub use joint_2d::re_export::Joint2D; +pub use joint_2d::re_export::IJoint2D; +mod joint_3d; +pub use joint_3d::re_export::Joint3D; +pub use joint_3d::re_export::IJoint3D; +pub mod kinematic_collision_2d; +pub use kinematic_collision_2d::re_export::KinematicCollision2D; +pub use kinematic_collision_2d::re_export::IKinematicCollision2D; +pub mod kinematic_collision_3d; +pub use kinematic_collision_3d::re_export::KinematicCollision3D; +pub use kinematic_collision_3d::re_export::IKinematicCollision3D; +pub mod label; +pub use label::re_export::Label; +pub use label::re_export::ILabel; +pub mod label_3d; +pub use label_3d::re_export::Label3D; +pub use label_3d::re_export::ILabel3D; +mod label_settings; +pub use label_settings::re_export::LabelSettings; +pub use label_settings::re_export::ILabelSettings; +pub mod light_2d; +pub use light_2d::re_export::Light2D; +pub use light_2d::re_export::ILight2D; +pub mod light_3d; +pub use light_3d::re_export::Light3D; +pub use light_3d::re_export::ILight3D; +mod light_occluder_2d; +pub use light_occluder_2d::re_export::LightOccluder2D; +pub use light_occluder_2d::re_export::ILightOccluder2D; +pub mod lightmap_gi; +pub use lightmap_gi::re_export::LightmapGi; +pub use lightmap_gi::re_export::ILightmapGi; +mod lightmap_gi_data; +pub use lightmap_gi_data::re_export::LightmapGiData; +pub use lightmap_gi_data::re_export::ILightmapGiData; +mod lightmap_probe; +pub use lightmap_probe::re_export::LightmapProbe; +pub use lightmap_probe::re_export::ILightmapProbe; +mod lightmapper; +pub use lightmapper::re_export::Lightmapper; +pub use lightmapper::re_export::ILightmapper; +mod lightmapper_rd; +pub use lightmapper_rd::re_export::LightmapperRd; +pub use lightmapper_rd::re_export::ILightmapperRd; +pub mod line_2d; +pub use line_2d::re_export::Line2D; +pub use line_2d::re_export::ILine2D; +pub mod line_edit; +pub use line_edit::re_export::LineEdit; +pub use line_edit::re_export::ILineEdit; +pub mod link_button; +pub use link_button::re_export::LinkButton; +pub use link_button::re_export::ILinkButton; +mod main_loop; +pub use main_loop::re_export::MainLoop; +pub use main_loop::re_export::IMainLoop; +mod margin_container; +pub use margin_container::re_export::MarginContainer; +pub use margin_container::re_export::IMarginContainer; +mod marker_2d; +pub use marker_2d::re_export::Marker2D; +pub use marker_2d::re_export::IMarker2D; +mod marker_3d; +pub use marker_3d::re_export::Marker3D; +pub use marker_3d::re_export::IMarker3D; +pub mod marshalls; +pub use marshalls::re_export::Marshalls; +pub use marshalls::re_export::IMarshalls; +mod material; +pub use material::re_export::Material; +pub use material::re_export::IMaterial; +mod menu_bar; +pub use menu_bar::re_export::MenuBar; +pub use menu_bar::re_export::IMenuBar; +mod menu_button; +pub use menu_button::re_export::MenuButton; +pub use menu_button::re_export::IMenuButton; +pub mod mesh; +pub use mesh::re_export::Mesh; +pub use mesh::re_export::IMesh; +pub mod mesh_convex_decomposition_settings; +pub use mesh_convex_decomposition_settings::re_export::MeshConvexDecompositionSettings; +pub use mesh_convex_decomposition_settings::re_export::IMeshConvexDecompositionSettings; +pub mod mesh_data_tool; +pub use mesh_data_tool::re_export::MeshDataTool; +pub use mesh_data_tool::re_export::IMeshDataTool; +mod mesh_instance_2d; +pub use mesh_instance_2d::re_export::MeshInstance2D; +pub use mesh_instance_2d::re_export::IMeshInstance2D; +pub mod mesh_instance_3d; +pub use mesh_instance_3d::re_export::MeshInstance3D; +pub use mesh_instance_3d::re_export::IMeshInstance3D; +mod mesh_library; +pub use mesh_library::re_export::MeshLibrary; +pub use mesh_library::re_export::IMeshLibrary; +mod mesh_texture; +pub use mesh_texture::re_export::MeshTexture; +pub use mesh_texture::re_export::IMeshTexture; +mod method_tweener; +pub use method_tweener::re_export::MethodTweener; +pub use method_tweener::re_export::IMethodTweener; +mod missing_node; +pub use missing_node::re_export::MissingNode; +pub use missing_node::re_export::IMissingNode; +mod missing_resource; +pub use missing_resource::re_export::MissingResource; +pub use missing_resource::re_export::IMissingResource; +mod mobile_vr_interface; +pub use mobile_vr_interface::re_export::MobileVrInterface; +pub use mobile_vr_interface::re_export::IMobileVrInterface; +mod movie_writer; +pub use movie_writer::re_export::MovieWriter; +pub use movie_writer::re_export::IMovieWriter; +pub mod multi_mesh; +pub use multi_mesh::re_export::MultiMesh; +pub use multi_mesh::re_export::IMultiMesh; +mod multi_mesh_instance_2d; +pub use multi_mesh_instance_2d::re_export::MultiMeshInstance2D; +pub use multi_mesh_instance_2d::re_export::IMultiMeshInstance2D; +mod multi_mesh_instance_3d; +pub use multi_mesh_instance_3d::re_export::MultiMeshInstance3D; +pub use multi_mesh_instance_3d::re_export::IMultiMeshInstance3D; +pub mod multiplayer_api; +pub use multiplayer_api::re_export::MultiplayerApi; +pub use multiplayer_api::re_export::IMultiplayerApi; +mod multiplayer_api_extension; +pub use multiplayer_api_extension::re_export::MultiplayerApiExtension; +pub use multiplayer_api_extension::re_export::IMultiplayerApiExtension; +pub mod multiplayer_peer; +pub use multiplayer_peer::re_export::MultiplayerPeer; +pub use multiplayer_peer::re_export::IMultiplayerPeer; +mod multiplayer_peer_extension; +pub use multiplayer_peer_extension::re_export::MultiplayerPeerExtension; +pub use multiplayer_peer_extension::re_export::IMultiplayerPeerExtension; +pub mod multiplayer_spawner; +pub use multiplayer_spawner::re_export::MultiplayerSpawner; +pub use multiplayer_spawner::re_export::IMultiplayerSpawner; +pub mod multiplayer_synchronizer; +pub use multiplayer_synchronizer::re_export::MultiplayerSynchronizer; +pub use multiplayer_synchronizer::re_export::IMultiplayerSynchronizer; +pub mod native_menu; +pub use native_menu::re_export::NativeMenu; +pub use native_menu::re_export::INativeMenu; +mod navigation_mesh_generator; +pub use navigation_mesh_generator::re_export::NavigationMeshGenerator; +pub use navigation_mesh_generator::re_export::INavigationMeshGenerator; +pub mod nine_patch_rect; +pub use nine_patch_rect::re_export::NinePatchRect; +pub use nine_patch_rect::re_export::INinePatchRect; +pub mod node; +pub use node::re_export::Node; +pub use node::re_export::INode; +pub mod node_2d; +pub use node_2d::re_export::Node2D; +pub use node_2d::re_export::INode2D; +pub mod node_3d; +pub use node_3d::re_export::Node3D; +pub use node_3d::re_export::INode3D; +mod node_3d_gizmo; +pub use node_3d_gizmo::re_export::Node3DGizmo; +pub use node_3d_gizmo::re_export::INode3DGizmo; +pub mod noise; +pub use noise::re_export::Noise; +pub use noise::re_export::INoise; +mod noise_texture_2d; +pub use noise_texture_2d::re_export::NoiseTexture2D; +pub use noise_texture_2d::re_export::INoiseTexture2D; +mod noise_texture_3d; +pub use noise_texture_3d::re_export::NoiseTexture3D; +pub use noise_texture_3d::re_export::INoiseTexture3D; +mod orm_material_3d; +pub use orm_material_3d::re_export::OrmMaterial3D; +pub use orm_material_3d::re_export::IOrmMaterial3D; +pub mod os; +pub use os::re_export::Os; +pub use os::re_export::IOs; +pub mod object; +pub use object::re_export::Object; +pub use object::re_export::IObject; +mod occluder_3d; +pub use occluder_3d::re_export::Occluder3D; +pub use occluder_3d::re_export::IOccluder3D; +mod occluder_instance_3d; +pub use occluder_instance_3d::re_export::OccluderInstance3D; +pub use occluder_instance_3d::re_export::IOccluderInstance3D; +pub mod occluder_polygon_2d; +pub use occluder_polygon_2d::re_export::OccluderPolygon2D; +pub use occluder_polygon_2d::re_export::IOccluderPolygon2D; +mod offline_multiplayer_peer; +pub use offline_multiplayer_peer::re_export::OfflineMultiplayerPeer; +pub use offline_multiplayer_peer::re_export::IOfflineMultiplayerPeer; +mod ogg_packet_sequence; +pub use ogg_packet_sequence::re_export::OggPacketSequence; +pub use ogg_packet_sequence::re_export::IOggPacketSequence; +mod ogg_packet_sequence_playback; +pub use ogg_packet_sequence_playback::re_export::OggPacketSequencePlayback; +pub use ogg_packet_sequence_playback::re_export::IOggPacketSequencePlayback; +pub mod omni_light_3d; +pub use omni_light_3d::re_export::OmniLight3D; +pub use omni_light_3d::re_export::IOmniLight3D; +pub mod open_xr_api_extension; +pub use open_xr_api_extension::re_export::OpenXrApiExtension; +pub use open_xr_api_extension::re_export::IOpenXrApiExtension; +pub mod open_xr_action; +pub use open_xr_action::re_export::OpenXrAction; +pub use open_xr_action::re_export::IOpenXrAction; +mod open_xr_action_map; +pub use open_xr_action_map::re_export::OpenXrActionMap; +pub use open_xr_action_map::re_export::IOpenXrActionMap; +mod open_xr_action_set; +pub use open_xr_action_set::re_export::OpenXrActionSet; +pub use open_xr_action_set::re_export::IOpenXrActionSet; +mod open_xr_composition_layer; +pub use open_xr_composition_layer::re_export::OpenXrCompositionLayer; +pub use open_xr_composition_layer::re_export::IOpenXrCompositionLayer; +mod open_xr_composition_layer_cylinder; +pub use open_xr_composition_layer_cylinder::re_export::OpenXrCompositionLayerCylinder; +pub use open_xr_composition_layer_cylinder::re_export::IOpenXrCompositionLayerCylinder; +mod open_xr_composition_layer_equirect; +pub use open_xr_composition_layer_equirect::re_export::OpenXrCompositionLayerEquirect; +pub use open_xr_composition_layer_equirect::re_export::IOpenXrCompositionLayerEquirect; +mod open_xr_composition_layer_quad; +pub use open_xr_composition_layer_quad::re_export::OpenXrCompositionLayerQuad; +pub use open_xr_composition_layer_quad::re_export::IOpenXrCompositionLayerQuad; +mod open_xr_extension_wrapper_extension; +pub use open_xr_extension_wrapper_extension::re_export::OpenXrExtensionWrapperExtension; +pub use open_xr_extension_wrapper_extension::re_export::IOpenXrExtensionWrapperExtension; +pub mod open_xr_hand; +pub use open_xr_hand::re_export::OpenXrHand; +pub use open_xr_hand::re_export::IOpenXrHand; +mod open_xr_ip_binding; +pub use open_xr_ip_binding::re_export::OpenXrIpBinding; +pub use open_xr_ip_binding::re_export::IOpenXrIpBinding; +mod open_xr_interaction_profile; +pub use open_xr_interaction_profile::re_export::OpenXrInteractionProfile; +pub use open_xr_interaction_profile::re_export::IOpenXrInteractionProfile; +mod open_xr_interaction_profile_metadata; +pub use open_xr_interaction_profile_metadata::re_export::OpenXrInteractionProfileMetadata; +pub use open_xr_interaction_profile_metadata::re_export::IOpenXrInteractionProfileMetadata; +pub mod open_xr_interface; +pub use open_xr_interface::re_export::OpenXrInterface; +pub use open_xr_interface::re_export::IOpenXrInterface; +mod optimized_translation; +pub use optimized_translation::re_export::OptimizedTranslation; +pub use optimized_translation::re_export::IOptimizedTranslation; +pub mod option_button; +pub use option_button::re_export::OptionButton; +pub use option_button::re_export::IOptionButton; +pub mod pck_packer; +pub use pck_packer::re_export::PckPacker; +pub use pck_packer::re_export::IPckPacker; +mod packed_data_container; +pub use packed_data_container::re_export::PackedDataContainer; +pub use packed_data_container::re_export::IPackedDataContainer; +mod packed_data_container_ref; +pub use packed_data_container_ref::re_export::PackedDataContainerRef; +pub use packed_data_container_ref::re_export::IPackedDataContainerRef; +pub mod packed_scene; +pub use packed_scene::re_export::PackedScene; +pub use packed_scene::re_export::IPackedScene; +pub mod packet_peer; +pub use packet_peer::re_export::PacketPeer; +pub use packet_peer::re_export::IPacketPeer; +pub mod packet_peer_dtls; +pub use packet_peer_dtls::re_export::PacketPeerDtls; +pub use packet_peer_dtls::re_export::IPacketPeerDtls; +mod packet_peer_extension; +pub use packet_peer_extension::re_export::PacketPeerExtension; +pub use packet_peer_extension::re_export::IPacketPeerExtension; +mod packet_peer_stream; +pub use packet_peer_stream::re_export::PacketPeerStream; +pub use packet_peer_stream::re_export::IPacketPeerStream; +pub mod packet_peer_udp; +pub use packet_peer_udp::re_export::PacketPeerUdp; +pub use packet_peer_udp::re_export::IPacketPeerUdp; +mod panel; +pub use panel::re_export::Panel; +pub use panel::re_export::IPanel; +mod panel_container; +pub use panel_container::re_export::PanelContainer; +pub use panel_container::re_export::IPanelContainer; +mod panorama_sky_material; +pub use panorama_sky_material::re_export::PanoramaSkyMaterial; +pub use panorama_sky_material::re_export::IPanoramaSkyMaterial; +mod parallax_background; +pub use parallax_background::re_export::ParallaxBackground; +pub use parallax_background::re_export::IParallaxBackground; +mod parallax_layer; +pub use parallax_layer::re_export::ParallaxLayer; +pub use parallax_layer::re_export::IParallaxLayer; +pub mod particle_process_material; +pub use particle_process_material::re_export::ParticleProcessMaterial; +pub use particle_process_material::re_export::IParticleProcessMaterial; +mod path_2d; +pub use path_2d::re_export::Path2D; +pub use path_2d::re_export::IPath2D; +mod path_3d; +pub use path_3d::re_export::Path3D; +pub use path_3d::re_export::IPath3D; +mod path_follow_2d; +pub use path_follow_2d::re_export::PathFollow2D; +pub use path_follow_2d::re_export::IPathFollow2D; +pub mod path_follow_3d; +pub use path_follow_3d::re_export::PathFollow3D; +pub use path_follow_3d::re_export::IPathFollow3D; +pub mod performance; +pub use performance::re_export::Performance; +pub use performance::re_export::IPerformance; +mod physical_bone_2d; +pub use physical_bone_2d::re_export::PhysicalBone2D; +pub use physical_bone_2d::re_export::IPhysicalBone2D; +pub mod physical_bone_3d; +pub use physical_bone_3d::re_export::PhysicalBone3D; +pub use physical_bone_3d::re_export::IPhysicalBone3D; +pub mod physical_bone_simulator_3d; +pub use physical_bone_simulator_3d::re_export::PhysicalBoneSimulator3D; +pub use physical_bone_simulator_3d::re_export::IPhysicalBoneSimulator3D; +mod physical_sky_material; +pub use physical_sky_material::re_export::PhysicalSkyMaterial; +pub use physical_sky_material::re_export::IPhysicalSkyMaterial; +pub mod physics_body_2d; +pub use physics_body_2d::re_export::PhysicsBody2D; +pub use physics_body_2d::re_export::IPhysicsBody2D; +pub mod physics_body_3d; +pub use physics_body_3d::re_export::PhysicsBody3D; +pub use physics_body_3d::re_export::IPhysicsBody3D; +pub mod physics_direct_body_state_2d; +pub use physics_direct_body_state_2d::re_export::PhysicsDirectBodyState2D; +pub use physics_direct_body_state_2d::re_export::IPhysicsDirectBodyState2D; +mod physics_direct_body_state_2d_extension; +pub use physics_direct_body_state_2d_extension::re_export::PhysicsDirectBodyState2DExtension; +pub use physics_direct_body_state_2d_extension::re_export::IPhysicsDirectBodyState2DExtension; +pub mod physics_direct_body_state_3d; +pub use physics_direct_body_state_3d::re_export::PhysicsDirectBodyState3D; +pub use physics_direct_body_state_3d::re_export::IPhysicsDirectBodyState3D; +mod physics_direct_body_state_3d_extension; +pub use physics_direct_body_state_3d_extension::re_export::PhysicsDirectBodyState3DExtension; +pub use physics_direct_body_state_3d_extension::re_export::IPhysicsDirectBodyState3DExtension; +pub mod physics_direct_space_state_2d; +pub use physics_direct_space_state_2d::re_export::PhysicsDirectSpaceState2D; +pub use physics_direct_space_state_2d::re_export::IPhysicsDirectSpaceState2D; +mod physics_direct_space_state_2d_extension; +pub use physics_direct_space_state_2d_extension::re_export::PhysicsDirectSpaceState2DExtension; +pub use physics_direct_space_state_2d_extension::re_export::IPhysicsDirectSpaceState2DExtension; +pub mod physics_direct_space_state_3d; +pub use physics_direct_space_state_3d::re_export::PhysicsDirectSpaceState3D; +pub use physics_direct_space_state_3d::re_export::IPhysicsDirectSpaceState3D; +mod physics_direct_space_state_3d_extension; +pub use physics_direct_space_state_3d_extension::re_export::PhysicsDirectSpaceState3DExtension; +pub use physics_direct_space_state_3d_extension::re_export::IPhysicsDirectSpaceState3DExtension; +mod physics_material; +pub use physics_material::re_export::PhysicsMaterial; +pub use physics_material::re_export::IPhysicsMaterial; +mod physics_point_query_parameters_2d; +pub use physics_point_query_parameters_2d::re_export::PhysicsPointQueryParameters2D; +pub use physics_point_query_parameters_2d::re_export::IPhysicsPointQueryParameters2D; +mod physics_point_query_parameters_3d; +pub use physics_point_query_parameters_3d::re_export::PhysicsPointQueryParameters3D; +pub use physics_point_query_parameters_3d::re_export::IPhysicsPointQueryParameters3D; +pub mod physics_ray_query_parameters_2d; +pub use physics_ray_query_parameters_2d::re_export::PhysicsRayQueryParameters2D; +pub use physics_ray_query_parameters_2d::re_export::IPhysicsRayQueryParameters2D; +pub mod physics_ray_query_parameters_3d; +pub use physics_ray_query_parameters_3d::re_export::PhysicsRayQueryParameters3D; +pub use physics_ray_query_parameters_3d::re_export::IPhysicsRayQueryParameters3D; +pub mod physics_server_2d; +pub use physics_server_2d::re_export::PhysicsServer2D; +pub use physics_server_2d::re_export::IPhysicsServer2D; +mod physics_server_2d_extension; +pub use physics_server_2d_extension::re_export::PhysicsServer2DExtension; +pub use physics_server_2d_extension::re_export::IPhysicsServer2DExtension; +mod physics_server_2d_manager; +pub use physics_server_2d_manager::re_export::PhysicsServer2DManager; +pub use physics_server_2d_manager::re_export::IPhysicsServer2DManager; +pub mod physics_server_3d; +pub use physics_server_3d::re_export::PhysicsServer3D; +pub use physics_server_3d::re_export::IPhysicsServer3D; +mod physics_server_3d_extension; +pub use physics_server_3d_extension::re_export::PhysicsServer3DExtension; +pub use physics_server_3d_extension::re_export::IPhysicsServer3DExtension; +mod physics_server_3d_manager; +pub use physics_server_3d_manager::re_export::PhysicsServer3DManager; +pub use physics_server_3d_manager::re_export::IPhysicsServer3DManager; +mod physics_server_3d_rendering_server_handler; +pub use physics_server_3d_rendering_server_handler::re_export::PhysicsServer3DRenderingServerHandler; +pub use physics_server_3d_rendering_server_handler::re_export::IPhysicsServer3DRenderingServerHandler; +mod physics_shape_query_parameters_2d; +pub use physics_shape_query_parameters_2d::re_export::PhysicsShapeQueryParameters2D; +pub use physics_shape_query_parameters_2d::re_export::IPhysicsShapeQueryParameters2D; +mod physics_shape_query_parameters_3d; +pub use physics_shape_query_parameters_3d::re_export::PhysicsShapeQueryParameters3D; +pub use physics_shape_query_parameters_3d::re_export::IPhysicsShapeQueryParameters3D; +mod physics_test_motion_parameters_2d; +pub use physics_test_motion_parameters_2d::re_export::PhysicsTestMotionParameters2D; +pub use physics_test_motion_parameters_2d::re_export::IPhysicsTestMotionParameters2D; +mod physics_test_motion_parameters_3d; +pub use physics_test_motion_parameters_3d::re_export::PhysicsTestMotionParameters3D; +pub use physics_test_motion_parameters_3d::re_export::IPhysicsTestMotionParameters3D; +mod physics_test_motion_result_2d; +pub use physics_test_motion_result_2d::re_export::PhysicsTestMotionResult2D; +pub use physics_test_motion_result_2d::re_export::IPhysicsTestMotionResult2D; +pub mod physics_test_motion_result_3d; +pub use physics_test_motion_result_3d::re_export::PhysicsTestMotionResult3D; +pub use physics_test_motion_result_3d::re_export::IPhysicsTestMotionResult3D; +mod pin_joint_2d; +pub use pin_joint_2d::re_export::PinJoint2D; +pub use pin_joint_2d::re_export::IPinJoint2D; +pub mod pin_joint_3d; +pub use pin_joint_3d::re_export::PinJoint3D; +pub use pin_joint_3d::re_export::IPinJoint3D; +mod placeholder_cubemap; +pub use placeholder_cubemap::re_export::PlaceholderCubemap; +pub use placeholder_cubemap::re_export::IPlaceholderCubemap; +mod placeholder_cubemap_array; +pub use placeholder_cubemap_array::re_export::PlaceholderCubemapArray; +pub use placeholder_cubemap_array::re_export::IPlaceholderCubemapArray; +mod placeholder_material; +pub use placeholder_material::re_export::PlaceholderMaterial; +pub use placeholder_material::re_export::IPlaceholderMaterial; +mod placeholder_mesh; +pub use placeholder_mesh::re_export::PlaceholderMesh; +pub use placeholder_mesh::re_export::IPlaceholderMesh; +mod placeholder_texture_2d; +pub use placeholder_texture_2d::re_export::PlaceholderTexture2D; +pub use placeholder_texture_2d::re_export::IPlaceholderTexture2D; +mod placeholder_texture_2d_array; +pub use placeholder_texture_2d_array::re_export::PlaceholderTexture2DArray; +pub use placeholder_texture_2d_array::re_export::IPlaceholderTexture2DArray; +mod placeholder_texture_3d; +pub use placeholder_texture_3d::re_export::PlaceholderTexture3D; +pub use placeholder_texture_3d::re_export::IPlaceholderTexture3D; +mod placeholder_texture_layered; +pub use placeholder_texture_layered::re_export::PlaceholderTextureLayered; +pub use placeholder_texture_layered::re_export::IPlaceholderTextureLayered; +pub mod plane_mesh; +pub use plane_mesh::re_export::PlaneMesh; +pub use plane_mesh::re_export::IPlaneMesh; +mod point_light_2d; +pub use point_light_2d::re_export::PointLight2D; +pub use point_light_2d::re_export::IPointLight2D; +mod point_mesh; +pub use point_mesh::re_export::PointMesh; +pub use point_mesh::re_export::IPointMesh; +mod polygon_2d; +pub use polygon_2d::re_export::Polygon2D; +pub use polygon_2d::re_export::IPolygon2D; +mod polygon_occluder_3d; +pub use polygon_occluder_3d::re_export::PolygonOccluder3D; +pub use polygon_occluder_3d::re_export::IPolygonOccluder3D; +mod polygon_path_finder; +pub use polygon_path_finder::re_export::PolygonPathFinder; +pub use polygon_path_finder::re_export::IPolygonPathFinder; +mod popup; +pub use popup::re_export::Popup; +pub use popup::re_export::IPopup; +pub mod popup_menu; +pub use popup_menu::re_export::PopupMenu; +pub use popup_menu::re_export::IPopupMenu; +mod popup_panel; +pub use popup_panel::re_export::PopupPanel; +pub use popup_panel::re_export::IPopupPanel; +pub mod portable_compressed_texture_2d; +pub use portable_compressed_texture_2d::re_export::PortableCompressedTexture2D; +pub use portable_compressed_texture_2d::re_export::IPortableCompressedTexture2D; +mod primitive_mesh; +pub use primitive_mesh::re_export::PrimitiveMesh; +pub use primitive_mesh::re_export::IPrimitiveMesh; +mod prism_mesh; +pub use prism_mesh::re_export::PrismMesh; +pub use prism_mesh::re_export::IPrismMesh; +mod procedural_sky_material; +pub use procedural_sky_material::re_export::ProceduralSkyMaterial; +pub use procedural_sky_material::re_export::IProceduralSkyMaterial; +pub mod progress_bar; +pub use progress_bar::re_export::ProgressBar; +pub use progress_bar::re_export::IProgressBar; +pub mod project_settings; +pub use project_settings::re_export::ProjectSettings; +pub use project_settings::re_export::IProjectSettings; +mod property_tweener; +pub use property_tweener::re_export::PropertyTweener; +pub use property_tweener::re_export::IPropertyTweener; +mod quad_mesh; +pub use quad_mesh::re_export::QuadMesh; +pub use quad_mesh::re_export::IQuadMesh; +mod quad_occluder_3d; +pub use quad_occluder_3d::re_export::QuadOccluder3D; +pub use quad_occluder_3d::re_export::IQuadOccluder3D; +mod rd_attachment_format; +pub use rd_attachment_format::re_export::RdAttachmentFormat; +pub use rd_attachment_format::re_export::IRdAttachmentFormat; +mod rd_framebuffer_pass; +pub use rd_framebuffer_pass::re_export::RdFramebufferPass; +pub use rd_framebuffer_pass::re_export::IRdFramebufferPass; +mod rd_pipeline_color_blend_state; +pub use rd_pipeline_color_blend_state::re_export::RdPipelineColorBlendState; +pub use rd_pipeline_color_blend_state::re_export::IRdPipelineColorBlendState; +mod rd_pipeline_color_blend_state_attachment; +pub use rd_pipeline_color_blend_state_attachment::re_export::RdPipelineColorBlendStateAttachment; +pub use rd_pipeline_color_blend_state_attachment::re_export::IRdPipelineColorBlendStateAttachment; +mod rd_pipeline_depth_stencil_state; +pub use rd_pipeline_depth_stencil_state::re_export::RdPipelineDepthStencilState; +pub use rd_pipeline_depth_stencil_state::re_export::IRdPipelineDepthStencilState; +mod rd_pipeline_multisample_state; +pub use rd_pipeline_multisample_state::re_export::RdPipelineMultisampleState; +pub use rd_pipeline_multisample_state::re_export::IRdPipelineMultisampleState; +mod rd_pipeline_rasterization_state; +pub use rd_pipeline_rasterization_state::re_export::RdPipelineRasterizationState; +pub use rd_pipeline_rasterization_state::re_export::IRdPipelineRasterizationState; +mod rd_pipeline_specialization_constant; +pub use rd_pipeline_specialization_constant::re_export::RdPipelineSpecializationConstant; +pub use rd_pipeline_specialization_constant::re_export::IRdPipelineSpecializationConstant; +mod rd_sampler_state; +pub use rd_sampler_state::re_export::RdSamplerState; +pub use rd_sampler_state::re_export::IRdSamplerState; +pub mod rd_shader_file; +pub use rd_shader_file::re_export::RdShaderFile; +pub use rd_shader_file::re_export::IRdShaderFile; +mod rd_shader_spirv; +pub use rd_shader_spirv::re_export::RdShaderSpirv; +pub use rd_shader_spirv::re_export::IRdShaderSpirv; +mod rd_shader_source; +pub use rd_shader_source::re_export::RdShaderSource; +pub use rd_shader_source::re_export::IRdShaderSource; +mod rd_texture_format; +pub use rd_texture_format::re_export::RdTextureFormat; +pub use rd_texture_format::re_export::IRdTextureFormat; +mod rd_texture_view; +pub use rd_texture_view::re_export::RdTextureView; +pub use rd_texture_view::re_export::IRdTextureView; +mod rd_uniform; +pub use rd_uniform::re_export::RdUniform; +pub use rd_uniform::re_export::IRdUniform; +mod rd_vertex_attribute; +pub use rd_vertex_attribute::re_export::RdVertexAttribute; +pub use rd_vertex_attribute::re_export::IRdVertexAttribute; +pub mod random_number_generator; +pub use random_number_generator::re_export::RandomNumberGenerator; +pub use random_number_generator::re_export::IRandomNumberGenerator; +mod range; +pub use range::re_export::Range; +pub use range::re_export::IRange; +mod ray_cast_2d; +pub use ray_cast_2d::re_export::RayCast2D; +pub use ray_cast_2d::re_export::IRayCast2D; +mod ray_cast_3d; +pub use ray_cast_3d::re_export::RayCast3D; +pub use ray_cast_3d::re_export::IRayCast3D; +mod rectangle_shape_2d; +pub use rectangle_shape_2d::re_export::RectangleShape2D; +pub use rectangle_shape_2d::re_export::IRectangleShape2D; +mod ref_counted; +pub use ref_counted::re_export::RefCounted; +pub use ref_counted::re_export::IRefCounted; +mod reference_rect; +pub use reference_rect::re_export::ReferenceRect; +pub use reference_rect::re_export::IReferenceRect; +pub mod reflection_probe; +pub use reflection_probe::re_export::ReflectionProbe; +pub use reflection_probe::re_export::IReflectionProbe; +pub mod reg_ex; +pub use reg_ex::re_export::RegEx; +pub use reg_ex::re_export::IRegEx; +pub mod reg_ex_match; +pub use reg_ex_match::re_export::RegExMatch; +pub use reg_ex_match::re_export::IRegExMatch; +mod remote_transform_2d; +pub use remote_transform_2d::re_export::RemoteTransform2D; +pub use remote_transform_2d::re_export::IRemoteTransform2D; +mod remote_transform_3d; +pub use remote_transform_3d::re_export::RemoteTransform3D; +pub use remote_transform_3d::re_export::IRemoteTransform3D; +mod render_data; +pub use render_data::re_export::RenderData; +pub use render_data::re_export::IRenderData; +mod render_data_extension; +pub use render_data_extension::re_export::RenderDataExtension; +pub use render_data_extension::re_export::IRenderDataExtension; +mod render_data_rd; +pub use render_data_rd::re_export::RenderDataRd; +pub use render_data_rd::re_export::IRenderDataRd; +mod render_scene_buffers; +pub use render_scene_buffers::re_export::RenderSceneBuffers; +pub use render_scene_buffers::re_export::IRenderSceneBuffers; +mod render_scene_buffers_configuration; +pub use render_scene_buffers_configuration::re_export::RenderSceneBuffersConfiguration; +pub use render_scene_buffers_configuration::re_export::IRenderSceneBuffersConfiguration; +mod render_scene_buffers_extension; +pub use render_scene_buffers_extension::re_export::RenderSceneBuffersExtension; +pub use render_scene_buffers_extension::re_export::IRenderSceneBuffersExtension; +pub mod render_scene_buffers_rd; +pub use render_scene_buffers_rd::re_export::RenderSceneBuffersRd; +pub use render_scene_buffers_rd::re_export::IRenderSceneBuffersRd; +mod render_scene_data; +pub use render_scene_data::re_export::RenderSceneData; +pub use render_scene_data::re_export::IRenderSceneData; +mod render_scene_data_extension; +pub use render_scene_data_extension::re_export::RenderSceneDataExtension; +pub use render_scene_data_extension::re_export::IRenderSceneDataExtension; +mod render_scene_data_rd; +pub use render_scene_data_rd::re_export::RenderSceneDataRd; +pub use render_scene_data_rd::re_export::IRenderSceneDataRd; +pub mod rendering_device; +pub use rendering_device::re_export::RenderingDevice; +pub use rendering_device::re_export::IRenderingDevice; +pub mod rendering_server; +pub use rendering_server::re_export::RenderingServer; +pub use rendering_server::re_export::IRenderingServer; +pub mod resource; +pub use resource::re_export::Resource; +pub use resource::re_export::IResource; +pub mod resource_format_loader; +pub use resource_format_loader::re_export::ResourceFormatLoader; +pub use resource_format_loader::re_export::IResourceFormatLoader; +mod resource_format_saver; +pub use resource_format_saver::re_export::ResourceFormatSaver; +pub use resource_format_saver::re_export::IResourceFormatSaver; +pub mod resource_importer; +pub use resource_importer::re_export::ResourceImporter; +pub use resource_importer::re_export::IResourceImporter; +mod resource_importer_bm_font; +pub use resource_importer_bm_font::re_export::ResourceImporterBmFont; +pub use resource_importer_bm_font::re_export::IResourceImporterBmFont; +mod resource_importer_bit_map; +pub use resource_importer_bit_map::re_export::ResourceImporterBitMap; +pub use resource_importer_bit_map::re_export::IResourceImporterBitMap; +mod resource_importer_csv_translation; +pub use resource_importer_csv_translation::re_export::ResourceImporterCsvTranslation; +pub use resource_importer_csv_translation::re_export::IResourceImporterCsvTranslation; +mod resource_importer_dynamic_font; +pub use resource_importer_dynamic_font::re_export::ResourceImporterDynamicFont; +pub use resource_importer_dynamic_font::re_export::IResourceImporterDynamicFont; +mod resource_importer_image; +pub use resource_importer_image::re_export::ResourceImporterImage; +pub use resource_importer_image::re_export::IResourceImporterImage; +mod resource_importer_image_font; +pub use resource_importer_image_font::re_export::ResourceImporterImageFont; +pub use resource_importer_image_font::re_export::IResourceImporterImageFont; +mod resource_importer_layered_texture; +pub use resource_importer_layered_texture::re_export::ResourceImporterLayeredTexture; +pub use resource_importer_layered_texture::re_export::IResourceImporterLayeredTexture; +mod resource_importer_mp3; +pub use resource_importer_mp3::re_export::ResourceImporterMp3; +pub use resource_importer_mp3::re_export::IResourceImporterMp3; +mod resource_importer_obj; +pub use resource_importer_obj::re_export::ResourceImporterObj; +pub use resource_importer_obj::re_export::IResourceImporterObj; +mod resource_importer_ogg_vorbis; +pub use resource_importer_ogg_vorbis::re_export::ResourceImporterOggVorbis; +pub use resource_importer_ogg_vorbis::re_export::IResourceImporterOggVorbis; +mod resource_importer_scene; +pub use resource_importer_scene::re_export::ResourceImporterScene; +pub use resource_importer_scene::re_export::IResourceImporterScene; +mod resource_importer_shader_file; +pub use resource_importer_shader_file::re_export::ResourceImporterShaderFile; +pub use resource_importer_shader_file::re_export::IResourceImporterShaderFile; +mod resource_importer_texture; +pub use resource_importer_texture::re_export::ResourceImporterTexture; +pub use resource_importer_texture::re_export::IResourceImporterTexture; +mod resource_importer_texture_atlas; +pub use resource_importer_texture_atlas::re_export::ResourceImporterTextureAtlas; +pub use resource_importer_texture_atlas::re_export::IResourceImporterTextureAtlas; +mod resource_importer_wav; +pub use resource_importer_wav::re_export::ResourceImporterWav; +pub use resource_importer_wav::re_export::IResourceImporterWav; +pub mod resource_loader; +pub use resource_loader::re_export::ResourceLoader; +pub use resource_loader::re_export::IResourceLoader; +mod resource_preloader; +pub use resource_preloader::re_export::ResourcePreloader; +pub use resource_preloader::re_export::IResourcePreloader; +pub mod resource_saver; +pub use resource_saver::re_export::ResourceSaver; +pub use resource_saver::re_export::IResourceSaver; +mod resource_uid; +pub use resource_uid::re_export::ResourceUid; +pub use resource_uid::re_export::IResourceUid; +pub mod ribbon_trail_mesh; +pub use ribbon_trail_mesh::re_export::RibbonTrailMesh; +pub use ribbon_trail_mesh::re_export::IRibbonTrailMesh; +mod rich_text_effect; +pub use rich_text_effect::re_export::RichTextEffect; +pub use rich_text_effect::re_export::IRichTextEffect; +pub mod rich_text_label; +pub use rich_text_label::re_export::RichTextLabel; +pub use rich_text_label::re_export::IRichTextLabel; +pub mod rigid_body_2d; +pub use rigid_body_2d::re_export::RigidBody2D; +pub use rigid_body_2d::re_export::IRigidBody2D; +pub mod rigid_body_3d; +pub use rigid_body_3d::re_export::RigidBody3D; +pub use rigid_body_3d::re_export::IRigidBody3D; +mod root_motion_view; +pub use root_motion_view::re_export::RootMotionView; +pub use root_motion_view::re_export::IRootMotionView; +pub mod scene_multiplayer; +pub use scene_multiplayer::re_export::SceneMultiplayer; +pub use scene_multiplayer::re_export::ISceneMultiplayer; +pub mod scene_replication_config; +pub use scene_replication_config::re_export::SceneReplicationConfig; +pub use scene_replication_config::re_export::ISceneReplicationConfig; +pub mod scene_state; +pub use scene_state::re_export::SceneState; +pub use scene_state::re_export::ISceneState; +pub mod scene_tree; +pub use scene_tree::re_export::SceneTree; +pub use scene_tree::re_export::ISceneTree; +mod scene_tree_timer; +pub use scene_tree_timer::re_export::SceneTreeTimer; +pub use scene_tree_timer::re_export::ISceneTreeTimer; +pub mod script; +pub use script::re_export::Script; +pub use script::re_export::IScript; +pub mod script_create_dialog; +pub use script_create_dialog::re_export::ScriptCreateDialog; +pub use script_create_dialog::re_export::IScriptCreateDialog; +mod script_editor; +pub use script_editor::re_export::ScriptEditor; +pub use script_editor::re_export::IScriptEditor; +mod script_editor_base; +pub use script_editor_base::re_export::ScriptEditorBase; +pub use script_editor_base::re_export::IScriptEditorBase; +mod script_extension; +pub use script_extension::re_export::ScriptExtension; +pub use script_extension::re_export::IScriptExtension; +pub mod script_language; +pub use script_language::re_export::ScriptLanguage; +pub use script_language::re_export::IScriptLanguage; +pub mod script_language_extension; +pub use script_language_extension::re_export::ScriptLanguageExtension; +pub use script_language_extension::re_export::IScriptLanguageExtension; +mod scroll_bar; +pub use scroll_bar::re_export::ScrollBar; +pub use scroll_bar::re_export::IScrollBar; +pub mod scroll_container; +pub use scroll_container::re_export::ScrollContainer; +pub use scroll_container::re_export::IScrollContainer; +mod segment_shape_2d; +pub use segment_shape_2d::re_export::SegmentShape2D; +pub use segment_shape_2d::re_export::ISegmentShape2D; +mod separation_ray_shape_2d; +pub use separation_ray_shape_2d::re_export::SeparationRayShape2D; +pub use separation_ray_shape_2d::re_export::ISeparationRayShape2D; +mod separation_ray_shape_3d; +pub use separation_ray_shape_3d::re_export::SeparationRayShape3D; +pub use separation_ray_shape_3d::re_export::ISeparationRayShape3D; +mod separator; +pub use separator::re_export::Separator; +pub use separator::re_export::ISeparator; +pub mod shader; +pub use shader::re_export::Shader; +pub use shader::re_export::IShader; +mod shader_globals_override; +pub use shader_globals_override::re_export::ShaderGlobalsOverride; +pub use shader_globals_override::re_export::IShaderGlobalsOverride; +mod shader_include; +pub use shader_include::re_export::ShaderInclude; +pub use shader_include::re_export::IShaderInclude; +mod shader_material; +pub use shader_material::re_export::ShaderMaterial; +pub use shader_material::re_export::IShaderMaterial; +mod shape_2d; +pub use shape_2d::re_export::Shape2D; +pub use shape_2d::re_export::IShape2D; +mod shape_3d; +pub use shape_3d::re_export::Shape3D; +pub use shape_3d::re_export::IShape3D; +mod shape_cast_2d; +pub use shape_cast_2d::re_export::ShapeCast2D; +pub use shape_cast_2d::re_export::IShapeCast2D; +mod shape_cast_3d; +pub use shape_cast_3d::re_export::ShapeCast3D; +pub use shape_cast_3d::re_export::IShapeCast3D; +mod shortcut; +pub use shortcut::re_export::Shortcut; +pub use shortcut::re_export::IShortcut; +mod skeleton_2d; +pub use skeleton_2d::re_export::Skeleton2D; +pub use skeleton_2d::re_export::ISkeleton2D; +pub mod skeleton_3d; +pub use skeleton_3d::re_export::Skeleton3D; +pub use skeleton_3d::re_export::ISkeleton3D; +pub mod skeleton_ik_3d; +pub use skeleton_ik_3d::re_export::SkeletonIk3d; +pub use skeleton_ik_3d::re_export::ISkeletonIk3d; +mod skeleton_modifier_3d; +pub use skeleton_modifier_3d::re_export::SkeletonModifier3D; +pub use skeleton_modifier_3d::re_export::ISkeletonModifier3D; +pub mod skeleton_profile; +pub use skeleton_profile::re_export::SkeletonProfile; +pub use skeleton_profile::re_export::ISkeletonProfile; +mod skeleton_profile_humanoid; +pub use skeleton_profile_humanoid::re_export::SkeletonProfileHumanoid; +pub use skeleton_profile_humanoid::re_export::ISkeletonProfileHumanoid; +mod skin; +pub use skin::re_export::Skin; +pub use skin::re_export::ISkin; +mod skin_reference; +pub use skin_reference::re_export::SkinReference; +pub use skin_reference::re_export::ISkinReference; +pub mod sky; +pub use sky::re_export::Sky; +pub use sky::re_export::ISky; +mod slider; +pub use slider::re_export::Slider; +pub use slider::re_export::ISlider; +pub mod slider_joint_3d; +pub use slider_joint_3d::re_export::SliderJoint3D; +pub use slider_joint_3d::re_export::ISliderJoint3D; +pub mod soft_body_3d; +pub use soft_body_3d::re_export::SoftBody3D; +pub use soft_body_3d::re_export::ISoftBody3D; +mod sphere_mesh; +pub use sphere_mesh::re_export::SphereMesh; +pub use sphere_mesh::re_export::ISphereMesh; +mod sphere_occluder_3d; +pub use sphere_occluder_3d::re_export::SphereOccluder3D; +pub use sphere_occluder_3d::re_export::ISphereOccluder3D; +mod sphere_shape_3d; +pub use sphere_shape_3d::re_export::SphereShape3D; +pub use sphere_shape_3d::re_export::ISphereShape3D; +mod spin_box; +pub use spin_box::re_export::SpinBox; +pub use spin_box::re_export::ISpinBox; +pub mod split_container; +pub use split_container::re_export::SplitContainer; +pub use split_container::re_export::ISplitContainer; +mod spot_light_3d; +pub use spot_light_3d::re_export::SpotLight3D; +pub use spot_light_3d::re_export::ISpotLight3D; +mod spring_arm_3d; +pub use spring_arm_3d::re_export::SpringArm3D; +pub use spring_arm_3d::re_export::ISpringArm3D; +mod sprite_2d; +pub use sprite_2d::re_export::Sprite2D; +pub use sprite_2d::re_export::ISprite2D; +mod sprite_3d; +pub use sprite_3d::re_export::Sprite3D; +pub use sprite_3d::re_export::ISprite3D; +pub mod sprite_base_3d; +pub use sprite_base_3d::re_export::SpriteBase3D; +pub use sprite_base_3d::re_export::ISpriteBase3D; +pub mod sprite_frames; +pub use sprite_frames::re_export::SpriteFrames; +pub use sprite_frames::re_export::ISpriteFrames; +mod standard_material_3d; +pub use standard_material_3d::re_export::StandardMaterial3D; +pub use standard_material_3d::re_export::IStandardMaterial3D; +mod static_body_2d; +pub use static_body_2d::re_export::StaticBody2D; +pub use static_body_2d::re_export::IStaticBody2D; +mod static_body_3d; +pub use static_body_3d::re_export::StaticBody3D; +pub use static_body_3d::re_export::IStaticBody3D; +mod status_indicator; +pub use status_indicator::re_export::StatusIndicator; +pub use status_indicator::re_export::IStatusIndicator; +pub mod stream_peer; +pub use stream_peer::re_export::StreamPeer; +pub use stream_peer::re_export::IStreamPeer; +mod stream_peer_buffer; +pub use stream_peer_buffer::re_export::StreamPeerBuffer; +pub use stream_peer_buffer::re_export::IStreamPeerBuffer; +mod stream_peer_extension; +pub use stream_peer_extension::re_export::StreamPeerExtension; +pub use stream_peer_extension::re_export::IStreamPeerExtension; +pub mod stream_peer_tcp; +pub use stream_peer_tcp::re_export::StreamPeerTcp; +pub use stream_peer_tcp::re_export::IStreamPeerTcp; +pub mod stream_peer_tls; +pub use stream_peer_tls::re_export::StreamPeerTls; +pub use stream_peer_tls::re_export::IStreamPeerTls; +mod style_box; +pub use style_box::re_export::StyleBox; +pub use style_box::re_export::IStyleBox; +mod style_box_empty; +pub use style_box_empty::re_export::StyleBoxEmpty; +pub use style_box_empty::re_export::IStyleBoxEmpty; +mod style_box_flat; +pub use style_box_flat::re_export::StyleBoxFlat; +pub use style_box_flat::re_export::IStyleBoxFlat; +mod style_box_line; +pub use style_box_line::re_export::StyleBoxLine; +pub use style_box_line::re_export::IStyleBoxLine; +pub mod style_box_texture; +pub use style_box_texture::re_export::StyleBoxTexture; +pub use style_box_texture::re_export::IStyleBoxTexture; +pub mod sub_viewport; +pub use sub_viewport::re_export::SubViewport; +pub use sub_viewport::re_export::ISubViewport; +mod sub_viewport_container; +pub use sub_viewport_container::re_export::SubViewportContainer; +pub use sub_viewport_container::re_export::ISubViewportContainer; +pub mod surface_tool; +pub use surface_tool::re_export::SurfaceTool; +pub use surface_tool::re_export::ISurfaceTool; +mod syntax_highlighter; +pub use syntax_highlighter::re_export::SyntaxHighlighter; +pub use syntax_highlighter::re_export::ISyntaxHighlighter; +mod system_font; +pub use system_font::re_export::SystemFont; +pub use system_font::re_export::ISystemFont; +pub mod tcp_server; +pub use tcp_server::re_export::TcpServer; +pub use tcp_server::re_export::ITcpServer; +pub mod tls_options; +pub use tls_options::re_export::TlsOptions; +pub use tls_options::re_export::ITlsOptions; +pub mod tab_bar; +pub use tab_bar::re_export::TabBar; +pub use tab_bar::re_export::ITabBar; +pub mod tab_container; +pub use tab_container::re_export::TabContainer; +pub use tab_container::re_export::ITabContainer; +pub mod text_edit; +pub use text_edit::re_export::TextEdit; +pub use text_edit::re_export::ITextEdit; +pub mod text_line; +pub use text_line::re_export::TextLine; +pub use text_line::re_export::ITextLine; +mod text_mesh; +pub use text_mesh::re_export::TextMesh; +pub use text_mesh::re_export::ITextMesh; +pub mod text_paragraph; +pub use text_paragraph::re_export::TextParagraph; +pub use text_paragraph::re_export::ITextParagraph; +pub mod text_server; +pub use text_server::re_export::TextServer; +pub use text_server::re_export::ITextServer; +mod text_server_advanced; +pub use text_server_advanced::re_export::TextServerAdvanced; +pub use text_server_advanced::re_export::ITextServerAdvanced; +mod text_server_dummy; +pub use text_server_dummy::re_export::TextServerDummy; +pub use text_server_dummy::re_export::ITextServerDummy; +mod text_server_extension; +pub use text_server_extension::re_export::TextServerExtension; +pub use text_server_extension::re_export::ITextServerExtension; +mod text_server_manager; +pub use text_server_manager::re_export::TextServerManager; +pub use text_server_manager::re_export::ITextServerManager; +mod texture; +pub use texture::re_export::Texture; +pub use texture::re_export::ITexture; +pub mod texture_2d; +pub use texture_2d::re_export::Texture2D; +pub use texture_2d::re_export::ITexture2D; +mod texture_2d_array; +pub use texture_2d_array::re_export::Texture2DArray; +pub use texture_2d_array::re_export::ITexture2DArray; +mod texture_2d_array_rd; +pub use texture_2d_array_rd::re_export::Texture2DArrayRd; +pub use texture_2d_array_rd::re_export::ITexture2DArrayRd; +mod texture_2d_rd; +pub use texture_2d_rd::re_export::Texture2Drd; +pub use texture_2d_rd::re_export::ITexture2Drd; +mod texture_3d; +pub use texture_3d::re_export::Texture3D; +pub use texture_3d::re_export::ITexture3D; +mod texture_3d_rd; +pub use texture_3d_rd::re_export::Texture3Drd; +pub use texture_3d_rd::re_export::ITexture3Drd; +pub mod texture_button; +pub use texture_button::re_export::TextureButton; +pub use texture_button::re_export::ITextureButton; +mod texture_cubemap_array_rd; +pub use texture_cubemap_array_rd::re_export::TextureCubemapArrayRd; +pub use texture_cubemap_array_rd::re_export::ITextureCubemapArrayRd; +mod texture_cubemap_rd; +pub use texture_cubemap_rd::re_export::TextureCubemapRd; +pub use texture_cubemap_rd::re_export::ITextureCubemapRd; +pub mod texture_layered; +pub use texture_layered::re_export::TextureLayered; +pub use texture_layered::re_export::ITextureLayered; +mod texture_layered_rd; +pub use texture_layered_rd::re_export::TextureLayeredRd; +pub use texture_layered_rd::re_export::ITextureLayeredRd; +pub mod texture_progress_bar; +pub use texture_progress_bar::re_export::TextureProgressBar; +pub use texture_progress_bar::re_export::ITextureProgressBar; +pub mod texture_rect; +pub use texture_rect::re_export::TextureRect; +pub use texture_rect::re_export::ITextureRect; +pub mod theme; +pub use theme::re_export::Theme; +pub use theme::re_export::ITheme; +mod theme_db; +pub use theme_db::re_export::ThemeDb; +pub use theme_db::re_export::IThemeDb; +pub mod tile_data; +pub use tile_data::re_export::TileData; +pub use tile_data::re_export::ITileData; +pub mod tile_map; +pub use tile_map::re_export::TileMap; +pub use tile_map::re_export::ITileMap; +pub mod tile_map_layer; +pub use tile_map_layer::re_export::TileMapLayer; +pub use tile_map_layer::re_export::ITileMapLayer; +pub mod tile_map_pattern; +pub use tile_map_pattern::re_export::TileMapPattern; +pub use tile_map_pattern::re_export::ITileMapPattern; +pub mod tile_set; +pub use tile_set::re_export::TileSet; +pub use tile_set::re_export::ITileSet; +pub mod tile_set_atlas_source; +pub use tile_set_atlas_source::re_export::TileSetAtlasSource; +pub use tile_set_atlas_source::re_export::ITileSetAtlasSource; +pub mod tile_set_scenes_collection_source; +pub use tile_set_scenes_collection_source::re_export::TileSetScenesCollectionSource; +pub use tile_set_scenes_collection_source::re_export::ITileSetScenesCollectionSource; +mod tile_set_source; +pub use tile_set_source::re_export::TileSetSource; +pub use tile_set_source::re_export::ITileSetSource; +pub mod time; +pub use time::re_export::Time; +pub use time::re_export::ITime; +pub mod timer; +pub use timer::re_export::Timer; +pub use timer::re_export::ITimer; +mod torus_mesh; +pub use torus_mesh::re_export::TorusMesh; +pub use torus_mesh::re_export::ITorusMesh; +pub mod touch_screen_button; +pub use touch_screen_button::re_export::TouchScreenButton; +pub use touch_screen_button::re_export::ITouchScreenButton; +pub mod translation; +pub use translation::re_export::Translation; +pub use translation::re_export::ITranslation; +pub mod translation_server; +pub use translation_server::re_export::TranslationServer; +pub use translation_server::re_export::ITranslationServer; +pub mod tree; +pub use tree::re_export::Tree; +pub use tree::re_export::ITree; +pub mod tree_item; +pub use tree_item::re_export::TreeItem; +pub use tree_item::re_export::ITreeItem; +mod triangle_mesh; +pub use triangle_mesh::re_export::TriangleMesh; +pub use triangle_mesh::re_export::ITriangleMesh; +mod tube_trail_mesh; +pub use tube_trail_mesh::re_export::TubeTrailMesh; +pub use tube_trail_mesh::re_export::ITubeTrailMesh; +pub mod tween; +pub use tween::re_export::Tween; +pub use tween::re_export::ITween; +mod tweener; +pub use tweener::re_export::Tweener; +pub use tweener::re_export::ITweener; +pub mod udp_server; +pub use udp_server::re_export::UdpServer; +pub use udp_server::re_export::IUdpServer; +pub mod upnp; +pub use upnp::re_export::Upnp; +pub use upnp::re_export::IUpnp; +pub mod upnp_device; +pub use upnp_device::re_export::UpnpDevice; +pub use upnp_device::re_export::IUpnpDevice; +pub mod undo_redo; +pub use undo_redo::re_export::UndoRedo; +pub use undo_redo::re_export::IUndoRedo; +mod uniform_set_cache_rd; +pub use uniform_set_cache_rd::re_export::UniformSetCacheRd; +pub use uniform_set_cache_rd::re_export::IUniformSetCacheRd; +mod v_box_container; +pub use v_box_container::re_export::VBoxContainer; +pub use v_box_container::re_export::IVBoxContainer; +mod v_flow_container; +pub use v_flow_container::re_export::VFlowContainer; +pub use v_flow_container::re_export::IVFlowContainer; +mod v_scroll_bar; +pub use v_scroll_bar::re_export::VScrollBar; +pub use v_scroll_bar::re_export::IVScrollBar; +mod v_separator; +pub use v_separator::re_export::VSeparator; +pub use v_separator::re_export::IVSeparator; +mod v_slider; +pub use v_slider::re_export::VSlider; +pub use v_slider::re_export::IVSlider; +mod v_split_container; +pub use v_split_container::re_export::VSplitContainer; +pub use v_split_container::re_export::IVSplitContainer; +mod vehicle_body_3d; +pub use vehicle_body_3d::re_export::VehicleBody3D; +pub use vehicle_body_3d::re_export::IVehicleBody3D; +mod vehicle_wheel_3d; +pub use vehicle_wheel_3d::re_export::VehicleWheel3D; +pub use vehicle_wheel_3d::re_export::IVehicleWheel3D; +mod video_stream; +pub use video_stream::re_export::VideoStream; +pub use video_stream::re_export::IVideoStream; +pub mod video_stream_playback; +pub use video_stream_playback::re_export::VideoStreamPlayback; +pub use video_stream_playback::re_export::IVideoStreamPlayback; +mod video_stream_player; +pub use video_stream_player::re_export::VideoStreamPlayer; +pub use video_stream_player::re_export::IVideoStreamPlayer; +mod video_stream_theora; +pub use video_stream_theora::re_export::VideoStreamTheora; +pub use video_stream_theora::re_export::IVideoStreamTheora; +pub mod viewport; +pub use viewport::re_export::Viewport; +pub use viewport::re_export::IViewport; +mod viewport_texture; +pub use viewport_texture::re_export::ViewportTexture; +pub use viewport_texture::re_export::IViewportTexture; +pub mod visible_on_screen_enabler_2d; +pub use visible_on_screen_enabler_2d::re_export::VisibleOnScreenEnabler2D; +pub use visible_on_screen_enabler_2d::re_export::IVisibleOnScreenEnabler2D; +pub mod visible_on_screen_enabler_3d; +pub use visible_on_screen_enabler_3d::re_export::VisibleOnScreenEnabler3D; +pub use visible_on_screen_enabler_3d::re_export::IVisibleOnScreenEnabler3D; +mod visible_on_screen_notifier_2d; +pub use visible_on_screen_notifier_2d::re_export::VisibleOnScreenNotifier2D; +pub use visible_on_screen_notifier_2d::re_export::IVisibleOnScreenNotifier2D; +mod visible_on_screen_notifier_3d; +pub use visible_on_screen_notifier_3d::re_export::VisibleOnScreenNotifier3D; +pub use visible_on_screen_notifier_3d::re_export::IVisibleOnScreenNotifier3D; +mod visual_instance_3d; +pub use visual_instance_3d::re_export::VisualInstance3D; +pub use visual_instance_3d::re_export::IVisualInstance3D; +pub mod visual_shader; +pub use visual_shader::re_export::VisualShader; +pub use visual_shader::re_export::IVisualShader; +pub mod visual_shader_node; +pub use visual_shader_node::re_export::VisualShaderNode; +pub use visual_shader_node::re_export::IVisualShaderNode; +pub mod visual_shader_node_billboard; +pub use visual_shader_node_billboard::re_export::VisualShaderNodeBillboard; +pub use visual_shader_node_billboard::re_export::IVisualShaderNodeBillboard; +mod visual_shader_node_boolean_constant; +pub use visual_shader_node_boolean_constant::re_export::VisualShaderNodeBooleanConstant; +pub use visual_shader_node_boolean_constant::re_export::IVisualShaderNodeBooleanConstant; +mod visual_shader_node_boolean_parameter; +pub use visual_shader_node_boolean_parameter::re_export::VisualShaderNodeBooleanParameter; +pub use visual_shader_node_boolean_parameter::re_export::IVisualShaderNodeBooleanParameter; +pub mod visual_shader_node_clamp; +pub use visual_shader_node_clamp::re_export::VisualShaderNodeClamp; +pub use visual_shader_node_clamp::re_export::IVisualShaderNodeClamp; +mod visual_shader_node_color_constant; +pub use visual_shader_node_color_constant::re_export::VisualShaderNodeColorConstant; +pub use visual_shader_node_color_constant::re_export::IVisualShaderNodeColorConstant; +pub mod visual_shader_node_color_func; +pub use visual_shader_node_color_func::re_export::VisualShaderNodeColorFunc; +pub use visual_shader_node_color_func::re_export::IVisualShaderNodeColorFunc; +pub mod visual_shader_node_color_op; +pub use visual_shader_node_color_op::re_export::VisualShaderNodeColorOp; +pub use visual_shader_node_color_op::re_export::IVisualShaderNodeColorOp; +mod visual_shader_node_color_parameter; +pub use visual_shader_node_color_parameter::re_export::VisualShaderNodeColorParameter; +pub use visual_shader_node_color_parameter::re_export::IVisualShaderNodeColorParameter; +mod visual_shader_node_comment; +pub use visual_shader_node_comment::re_export::VisualShaderNodeComment; +pub use visual_shader_node_comment::re_export::IVisualShaderNodeComment; +pub mod visual_shader_node_compare; +pub use visual_shader_node_compare::re_export::VisualShaderNodeCompare; +pub use visual_shader_node_compare::re_export::IVisualShaderNodeCompare; +mod visual_shader_node_constant; +pub use visual_shader_node_constant::re_export::VisualShaderNodeConstant; +pub use visual_shader_node_constant::re_export::IVisualShaderNodeConstant; +pub mod visual_shader_node_cubemap; +pub use visual_shader_node_cubemap::re_export::VisualShaderNodeCubemap; +pub use visual_shader_node_cubemap::re_export::IVisualShaderNodeCubemap; +mod visual_shader_node_cubemap_parameter; +pub use visual_shader_node_cubemap_parameter::re_export::VisualShaderNodeCubemapParameter; +pub use visual_shader_node_cubemap_parameter::re_export::IVisualShaderNodeCubemapParameter; +mod visual_shader_node_curve_texture; +pub use visual_shader_node_curve_texture::re_export::VisualShaderNodeCurveTexture; +pub use visual_shader_node_curve_texture::re_export::IVisualShaderNodeCurveTexture; +mod visual_shader_node_curve_xyz_texture; +pub use visual_shader_node_curve_xyz_texture::re_export::VisualShaderNodeCurveXyzTexture; +pub use visual_shader_node_curve_xyz_texture::re_export::IVisualShaderNodeCurveXyzTexture; +mod visual_shader_node_custom; +pub use visual_shader_node_custom::re_export::VisualShaderNodeCustom; +pub use visual_shader_node_custom::re_export::IVisualShaderNodeCustom; +pub mod visual_shader_node_derivative_func; +pub use visual_shader_node_derivative_func::re_export::VisualShaderNodeDerivativeFunc; +pub use visual_shader_node_derivative_func::re_export::IVisualShaderNodeDerivativeFunc; +mod visual_shader_node_determinant; +pub use visual_shader_node_determinant::re_export::VisualShaderNodeDeterminant; +pub use visual_shader_node_determinant::re_export::IVisualShaderNodeDeterminant; +mod visual_shader_node_distance_fade; +pub use visual_shader_node_distance_fade::re_export::VisualShaderNodeDistanceFade; +pub use visual_shader_node_distance_fade::re_export::IVisualShaderNodeDistanceFade; +mod visual_shader_node_dot_product; +pub use visual_shader_node_dot_product::re_export::VisualShaderNodeDotProduct; +pub use visual_shader_node_dot_product::re_export::IVisualShaderNodeDotProduct; +mod visual_shader_node_expression; +pub use visual_shader_node_expression::re_export::VisualShaderNodeExpression; +pub use visual_shader_node_expression::re_export::IVisualShaderNodeExpression; +mod visual_shader_node_face_forward; +pub use visual_shader_node_face_forward::re_export::VisualShaderNodeFaceForward; +pub use visual_shader_node_face_forward::re_export::IVisualShaderNodeFaceForward; +mod visual_shader_node_float_constant; +pub use visual_shader_node_float_constant::re_export::VisualShaderNodeFloatConstant; +pub use visual_shader_node_float_constant::re_export::IVisualShaderNodeFloatConstant; +pub mod visual_shader_node_float_func; +pub use visual_shader_node_float_func::re_export::VisualShaderNodeFloatFunc; +pub use visual_shader_node_float_func::re_export::IVisualShaderNodeFloatFunc; +pub mod visual_shader_node_float_op; +pub use visual_shader_node_float_op::re_export::VisualShaderNodeFloatOp; +pub use visual_shader_node_float_op::re_export::IVisualShaderNodeFloatOp; +pub mod visual_shader_node_float_parameter; +pub use visual_shader_node_float_parameter::re_export::VisualShaderNodeFloatParameter; +pub use visual_shader_node_float_parameter::re_export::IVisualShaderNodeFloatParameter; +mod visual_shader_node_frame; +pub use visual_shader_node_frame::re_export::VisualShaderNodeFrame; +pub use visual_shader_node_frame::re_export::IVisualShaderNodeFrame; +mod visual_shader_node_fresnel; +pub use visual_shader_node_fresnel::re_export::VisualShaderNodeFresnel; +pub use visual_shader_node_fresnel::re_export::IVisualShaderNodeFresnel; +mod visual_shader_node_global_expression; +pub use visual_shader_node_global_expression::re_export::VisualShaderNodeGlobalExpression; +pub use visual_shader_node_global_expression::re_export::IVisualShaderNodeGlobalExpression; +mod visual_shader_node_group_base; +pub use visual_shader_node_group_base::re_export::VisualShaderNodeGroupBase; +pub use visual_shader_node_group_base::re_export::IVisualShaderNodeGroupBase; +mod visual_shader_node_if; +pub use visual_shader_node_if::re_export::VisualShaderNodeIf; +pub use visual_shader_node_if::re_export::IVisualShaderNodeIf; +mod visual_shader_node_input; +pub use visual_shader_node_input::re_export::VisualShaderNodeInput; +pub use visual_shader_node_input::re_export::IVisualShaderNodeInput; +mod visual_shader_node_int_constant; +pub use visual_shader_node_int_constant::re_export::VisualShaderNodeIntConstant; +pub use visual_shader_node_int_constant::re_export::IVisualShaderNodeIntConstant; +pub mod visual_shader_node_int_func; +pub use visual_shader_node_int_func::re_export::VisualShaderNodeIntFunc; +pub use visual_shader_node_int_func::re_export::IVisualShaderNodeIntFunc; +pub mod visual_shader_node_int_op; +pub use visual_shader_node_int_op::re_export::VisualShaderNodeIntOp; +pub use visual_shader_node_int_op::re_export::IVisualShaderNodeIntOp; +pub mod visual_shader_node_int_parameter; +pub use visual_shader_node_int_parameter::re_export::VisualShaderNodeIntParameter; +pub use visual_shader_node_int_parameter::re_export::IVisualShaderNodeIntParameter; +pub mod visual_shader_node_is; +pub use visual_shader_node_is::re_export::VisualShaderNodeIs; +pub use visual_shader_node_is::re_export::IVisualShaderNodeIs; +mod visual_shader_node_linear_scene_depth; +pub use visual_shader_node_linear_scene_depth::re_export::VisualShaderNodeLinearSceneDepth; +pub use visual_shader_node_linear_scene_depth::re_export::IVisualShaderNodeLinearSceneDepth; +pub mod visual_shader_node_mix; +pub use visual_shader_node_mix::re_export::VisualShaderNodeMix; +pub use visual_shader_node_mix::re_export::IVisualShaderNodeMix; +pub mod visual_shader_node_multiply_add; +pub use visual_shader_node_multiply_add::re_export::VisualShaderNodeMultiplyAdd; +pub use visual_shader_node_multiply_add::re_export::IVisualShaderNodeMultiplyAdd; +mod visual_shader_node_outer_product; +pub use visual_shader_node_outer_product::re_export::VisualShaderNodeOuterProduct; +pub use visual_shader_node_outer_product::re_export::IVisualShaderNodeOuterProduct; +mod visual_shader_node_output; +pub use visual_shader_node_output::re_export::VisualShaderNodeOutput; +pub use visual_shader_node_output::re_export::IVisualShaderNodeOutput; +pub mod visual_shader_node_parameter; +pub use visual_shader_node_parameter::re_export::VisualShaderNodeParameter; +pub use visual_shader_node_parameter::re_export::IVisualShaderNodeParameter; +mod visual_shader_node_parameter_ref; +pub use visual_shader_node_parameter_ref::re_export::VisualShaderNodeParameterRef; +pub use visual_shader_node_parameter_ref::re_export::IVisualShaderNodeParameterRef; +pub mod visual_shader_node_particle_accelerator; +pub use visual_shader_node_particle_accelerator::re_export::VisualShaderNodeParticleAccelerator; +pub use visual_shader_node_particle_accelerator::re_export::IVisualShaderNodeParticleAccelerator; +mod visual_shader_node_particle_box_emitter; +pub use visual_shader_node_particle_box_emitter::re_export::VisualShaderNodeParticleBoxEmitter; +pub use visual_shader_node_particle_box_emitter::re_export::IVisualShaderNodeParticleBoxEmitter; +mod visual_shader_node_particle_cone_velocity; +pub use visual_shader_node_particle_cone_velocity::re_export::VisualShaderNodeParticleConeVelocity; +pub use visual_shader_node_particle_cone_velocity::re_export::IVisualShaderNodeParticleConeVelocity; +pub mod visual_shader_node_particle_emit; +pub use visual_shader_node_particle_emit::re_export::VisualShaderNodeParticleEmit; +pub use visual_shader_node_particle_emit::re_export::IVisualShaderNodeParticleEmit; +mod visual_shader_node_particle_emitter; +pub use visual_shader_node_particle_emitter::re_export::VisualShaderNodeParticleEmitter; +pub use visual_shader_node_particle_emitter::re_export::IVisualShaderNodeParticleEmitter; +mod visual_shader_node_particle_mesh_emitter; +pub use visual_shader_node_particle_mesh_emitter::re_export::VisualShaderNodeParticleMeshEmitter; +pub use visual_shader_node_particle_mesh_emitter::re_export::IVisualShaderNodeParticleMeshEmitter; +mod visual_shader_node_particle_multiply_by_axis_angle; +pub use visual_shader_node_particle_multiply_by_axis_angle::re_export::VisualShaderNodeParticleMultiplyByAxisAngle; +pub use visual_shader_node_particle_multiply_by_axis_angle::re_export::IVisualShaderNodeParticleMultiplyByAxisAngle; +mod visual_shader_node_particle_output; +pub use visual_shader_node_particle_output::re_export::VisualShaderNodeParticleOutput; +pub use visual_shader_node_particle_output::re_export::IVisualShaderNodeParticleOutput; +pub mod visual_shader_node_particle_randomness; +pub use visual_shader_node_particle_randomness::re_export::VisualShaderNodeParticleRandomness; +pub use visual_shader_node_particle_randomness::re_export::IVisualShaderNodeParticleRandomness; +mod visual_shader_node_particle_ring_emitter; +pub use visual_shader_node_particle_ring_emitter::re_export::VisualShaderNodeParticleRingEmitter; +pub use visual_shader_node_particle_ring_emitter::re_export::IVisualShaderNodeParticleRingEmitter; +mod visual_shader_node_particle_sphere_emitter; +pub use visual_shader_node_particle_sphere_emitter::re_export::VisualShaderNodeParticleSphereEmitter; +pub use visual_shader_node_particle_sphere_emitter::re_export::IVisualShaderNodeParticleSphereEmitter; +mod visual_shader_node_proximity_fade; +pub use visual_shader_node_proximity_fade::re_export::VisualShaderNodeProximityFade; +pub use visual_shader_node_proximity_fade::re_export::IVisualShaderNodeProximityFade; +mod visual_shader_node_random_range; +pub use visual_shader_node_random_range::re_export::VisualShaderNodeRandomRange; +pub use visual_shader_node_random_range::re_export::IVisualShaderNodeRandomRange; +mod visual_shader_node_remap; +pub use visual_shader_node_remap::re_export::VisualShaderNodeRemap; +pub use visual_shader_node_remap::re_export::IVisualShaderNodeRemap; +mod visual_shader_node_reroute; +pub use visual_shader_node_reroute::re_export::VisualShaderNodeReroute; +pub use visual_shader_node_reroute::re_export::IVisualShaderNodeReroute; +mod visual_shader_node_resizable_base; +pub use visual_shader_node_resizable_base::re_export::VisualShaderNodeResizableBase; +pub use visual_shader_node_resizable_base::re_export::IVisualShaderNodeResizableBase; +mod visual_shader_node_rotation_by_axis; +pub use visual_shader_node_rotation_by_axis::re_export::VisualShaderNodeRotationByAxis; +pub use visual_shader_node_rotation_by_axis::re_export::IVisualShaderNodeRotationByAxis; +mod visual_shader_node_sdf_raymarch; +pub use visual_shader_node_sdf_raymarch::re_export::VisualShaderNodeSdfRaymarch; +pub use visual_shader_node_sdf_raymarch::re_export::IVisualShaderNodeSdfRaymarch; +mod visual_shader_node_sdf_to_screen_uv; +pub use visual_shader_node_sdf_to_screen_uv::re_export::VisualShaderNodeSdfToScreenUv; +pub use visual_shader_node_sdf_to_screen_uv::re_export::IVisualShaderNodeSdfToScreenUv; +pub mod visual_shader_node_sample_3d; +pub use visual_shader_node_sample_3d::re_export::VisualShaderNodeSample3D; +pub use visual_shader_node_sample_3d::re_export::IVisualShaderNodeSample3D; +mod visual_shader_node_screen_normal_world_space; +pub use visual_shader_node_screen_normal_world_space::re_export::VisualShaderNodeScreenNormalWorldSpace; +pub use visual_shader_node_screen_normal_world_space::re_export::IVisualShaderNodeScreenNormalWorldSpace; +mod visual_shader_node_screen_uv_to_sdf; +pub use visual_shader_node_screen_uv_to_sdf::re_export::VisualShaderNodeScreenUvToSdf; +pub use visual_shader_node_screen_uv_to_sdf::re_export::IVisualShaderNodeScreenUvToSdf; +pub mod visual_shader_node_smooth_step; +pub use visual_shader_node_smooth_step::re_export::VisualShaderNodeSmoothStep; +pub use visual_shader_node_smooth_step::re_export::IVisualShaderNodeSmoothStep; +pub mod visual_shader_node_step; +pub use visual_shader_node_step::re_export::VisualShaderNodeStep; +pub use visual_shader_node_step::re_export::IVisualShaderNodeStep; +pub mod visual_shader_node_switch; +pub use visual_shader_node_switch::re_export::VisualShaderNodeSwitch; +pub use visual_shader_node_switch::re_export::IVisualShaderNodeSwitch; +pub mod visual_shader_node_texture; +pub use visual_shader_node_texture::re_export::VisualShaderNodeTexture; +pub use visual_shader_node_texture::re_export::IVisualShaderNodeTexture; +mod visual_shader_node_texture_2d_array; +pub use visual_shader_node_texture_2d_array::re_export::VisualShaderNodeTexture2DArray; +pub use visual_shader_node_texture_2d_array::re_export::IVisualShaderNodeTexture2DArray; +mod visual_shader_node_texture_2d_array_parameter; +pub use visual_shader_node_texture_2d_array_parameter::re_export::VisualShaderNodeTexture2DArrayParameter; +pub use visual_shader_node_texture_2d_array_parameter::re_export::IVisualShaderNodeTexture2DArrayParameter; +mod visual_shader_node_texture_2d_parameter; +pub use visual_shader_node_texture_2d_parameter::re_export::VisualShaderNodeTexture2DParameter; +pub use visual_shader_node_texture_2d_parameter::re_export::IVisualShaderNodeTexture2DParameter; +mod visual_shader_node_texture_3d; +pub use visual_shader_node_texture_3d::re_export::VisualShaderNodeTexture3D; +pub use visual_shader_node_texture_3d::re_export::IVisualShaderNodeTexture3D; +mod visual_shader_node_texture_3d_parameter; +pub use visual_shader_node_texture_3d_parameter::re_export::VisualShaderNodeTexture3DParameter; +pub use visual_shader_node_texture_3d_parameter::re_export::IVisualShaderNodeTexture3DParameter; +pub mod visual_shader_node_texture_parameter; +pub use visual_shader_node_texture_parameter::re_export::VisualShaderNodeTextureParameter; +pub use visual_shader_node_texture_parameter::re_export::IVisualShaderNodeTextureParameter; +mod visual_shader_node_texture_parameter_triplanar; +pub use visual_shader_node_texture_parameter_triplanar::re_export::VisualShaderNodeTextureParameterTriplanar; +pub use visual_shader_node_texture_parameter_triplanar::re_export::IVisualShaderNodeTextureParameterTriplanar; +mod visual_shader_node_texture_sdf; +pub use visual_shader_node_texture_sdf::re_export::VisualShaderNodeTextureSdf; +pub use visual_shader_node_texture_sdf::re_export::IVisualShaderNodeTextureSdf; +mod visual_shader_node_texture_sdf_normal; +pub use visual_shader_node_texture_sdf_normal::re_export::VisualShaderNodeTextureSdfNormal; +pub use visual_shader_node_texture_sdf_normal::re_export::IVisualShaderNodeTextureSdfNormal; +mod visual_shader_node_transform_compose; +pub use visual_shader_node_transform_compose::re_export::VisualShaderNodeTransformCompose; +pub use visual_shader_node_transform_compose::re_export::IVisualShaderNodeTransformCompose; +mod visual_shader_node_transform_constant; +pub use visual_shader_node_transform_constant::re_export::VisualShaderNodeTransformConstant; +pub use visual_shader_node_transform_constant::re_export::IVisualShaderNodeTransformConstant; +mod visual_shader_node_transform_decompose; +pub use visual_shader_node_transform_decompose::re_export::VisualShaderNodeTransformDecompose; +pub use visual_shader_node_transform_decompose::re_export::IVisualShaderNodeTransformDecompose; +pub mod visual_shader_node_transform_func; +pub use visual_shader_node_transform_func::re_export::VisualShaderNodeTransformFunc; +pub use visual_shader_node_transform_func::re_export::IVisualShaderNodeTransformFunc; +pub mod visual_shader_node_transform_op; +pub use visual_shader_node_transform_op::re_export::VisualShaderNodeTransformOp; +pub use visual_shader_node_transform_op::re_export::IVisualShaderNodeTransformOp; +mod visual_shader_node_transform_parameter; +pub use visual_shader_node_transform_parameter::re_export::VisualShaderNodeTransformParameter; +pub use visual_shader_node_transform_parameter::re_export::IVisualShaderNodeTransformParameter; +pub mod visual_shader_node_transform_vec_mult; +pub use visual_shader_node_transform_vec_mult::re_export::VisualShaderNodeTransformVecMult; +pub use visual_shader_node_transform_vec_mult::re_export::IVisualShaderNodeTransformVecMult; +mod visual_shader_node_u_int_constant; +pub use visual_shader_node_u_int_constant::re_export::VisualShaderNodeUIntConstant; +pub use visual_shader_node_u_int_constant::re_export::IVisualShaderNodeUIntConstant; +pub mod visual_shader_node_u_int_func; +pub use visual_shader_node_u_int_func::re_export::VisualShaderNodeUIntFunc; +pub use visual_shader_node_u_int_func::re_export::IVisualShaderNodeUIntFunc; +pub mod visual_shader_node_u_int_op; +pub use visual_shader_node_u_int_op::re_export::VisualShaderNodeUIntOp; +pub use visual_shader_node_u_int_op::re_export::IVisualShaderNodeUIntOp; +mod visual_shader_node_u_int_parameter; +pub use visual_shader_node_u_int_parameter::re_export::VisualShaderNodeUIntParameter; +pub use visual_shader_node_u_int_parameter::re_export::IVisualShaderNodeUIntParameter; +pub mod visual_shader_node_uv_func; +pub use visual_shader_node_uv_func::re_export::VisualShaderNodeUvFunc; +pub use visual_shader_node_uv_func::re_export::IVisualShaderNodeUvFunc; +mod visual_shader_node_uv_polar_coord; +pub use visual_shader_node_uv_polar_coord::re_export::VisualShaderNodeUvPolarCoord; +pub use visual_shader_node_uv_polar_coord::re_export::IVisualShaderNodeUvPolarCoord; +mod visual_shader_node_varying; +pub use visual_shader_node_varying::re_export::VisualShaderNodeVarying; +pub use visual_shader_node_varying::re_export::IVisualShaderNodeVarying; +mod visual_shader_node_varying_getter; +pub use visual_shader_node_varying_getter::re_export::VisualShaderNodeVaryingGetter; +pub use visual_shader_node_varying_getter::re_export::IVisualShaderNodeVaryingGetter; +mod visual_shader_node_varying_setter; +pub use visual_shader_node_varying_setter::re_export::VisualShaderNodeVaryingSetter; +pub use visual_shader_node_varying_setter::re_export::IVisualShaderNodeVaryingSetter; +mod visual_shader_node_vec2_constant; +pub use visual_shader_node_vec2_constant::re_export::VisualShaderNodeVec2Constant; +pub use visual_shader_node_vec2_constant::re_export::IVisualShaderNodeVec2Constant; +mod visual_shader_node_vec2_parameter; +pub use visual_shader_node_vec2_parameter::re_export::VisualShaderNodeVec2Parameter; +pub use visual_shader_node_vec2_parameter::re_export::IVisualShaderNodeVec2Parameter; +mod visual_shader_node_vec3_constant; +pub use visual_shader_node_vec3_constant::re_export::VisualShaderNodeVec3Constant; +pub use visual_shader_node_vec3_constant::re_export::IVisualShaderNodeVec3Constant; +mod visual_shader_node_vec3_parameter; +pub use visual_shader_node_vec3_parameter::re_export::VisualShaderNodeVec3Parameter; +pub use visual_shader_node_vec3_parameter::re_export::IVisualShaderNodeVec3Parameter; +mod visual_shader_node_vec4_constant; +pub use visual_shader_node_vec4_constant::re_export::VisualShaderNodeVec4Constant; +pub use visual_shader_node_vec4_constant::re_export::IVisualShaderNodeVec4Constant; +mod visual_shader_node_vec4_parameter; +pub use visual_shader_node_vec4_parameter::re_export::VisualShaderNodeVec4Parameter; +pub use visual_shader_node_vec4_parameter::re_export::IVisualShaderNodeVec4Parameter; +pub mod visual_shader_node_vector_base; +pub use visual_shader_node_vector_base::re_export::VisualShaderNodeVectorBase; +pub use visual_shader_node_vector_base::re_export::IVisualShaderNodeVectorBase; +mod visual_shader_node_vector_compose; +pub use visual_shader_node_vector_compose::re_export::VisualShaderNodeVectorCompose; +pub use visual_shader_node_vector_compose::re_export::IVisualShaderNodeVectorCompose; +mod visual_shader_node_vector_decompose; +pub use visual_shader_node_vector_decompose::re_export::VisualShaderNodeVectorDecompose; +pub use visual_shader_node_vector_decompose::re_export::IVisualShaderNodeVectorDecompose; +mod visual_shader_node_vector_distance; +pub use visual_shader_node_vector_distance::re_export::VisualShaderNodeVectorDistance; +pub use visual_shader_node_vector_distance::re_export::IVisualShaderNodeVectorDistance; +pub mod visual_shader_node_vector_func; +pub use visual_shader_node_vector_func::re_export::VisualShaderNodeVectorFunc; +pub use visual_shader_node_vector_func::re_export::IVisualShaderNodeVectorFunc; +mod visual_shader_node_vector_len; +pub use visual_shader_node_vector_len::re_export::VisualShaderNodeVectorLen; +pub use visual_shader_node_vector_len::re_export::IVisualShaderNodeVectorLen; +pub mod visual_shader_node_vector_op; +pub use visual_shader_node_vector_op::re_export::VisualShaderNodeVectorOp; +pub use visual_shader_node_vector_op::re_export::IVisualShaderNodeVectorOp; +mod visual_shader_node_vector_refract; +pub use visual_shader_node_vector_refract::re_export::VisualShaderNodeVectorRefract; +pub use visual_shader_node_vector_refract::re_export::IVisualShaderNodeVectorRefract; +mod visual_shader_node_world_position_from_depth; +pub use visual_shader_node_world_position_from_depth::re_export::VisualShaderNodeWorldPositionFromDepth; +pub use visual_shader_node_world_position_from_depth::re_export::IVisualShaderNodeWorldPositionFromDepth; +pub mod voxel_gi; +pub use voxel_gi::re_export::VoxelGi; +pub use voxel_gi::re_export::IVoxelGi; +mod voxel_gi_data; +pub use voxel_gi_data::re_export::VoxelGiData; +pub use voxel_gi_data::re_export::IVoxelGiData; +mod weak_ref; +pub use weak_ref::re_export::WeakRef; +pub use weak_ref::re_export::IWeakRef; +pub mod web_rtc_data_channel; +pub use web_rtc_data_channel::re_export::WebRtcDataChannel; +pub use web_rtc_data_channel::re_export::IWebRtcDataChannel; +mod web_rtc_data_channel_extension; +pub use web_rtc_data_channel_extension::re_export::WebRtcDataChannelExtension; +pub use web_rtc_data_channel_extension::re_export::IWebRtcDataChannelExtension; +pub mod web_rtc_multiplayer_peer; +pub use web_rtc_multiplayer_peer::re_export::WebRtcMultiplayerPeer; +pub use web_rtc_multiplayer_peer::re_export::IWebRtcMultiplayerPeer; +pub mod web_rtc_peer_connection; +pub use web_rtc_peer_connection::re_export::WebRtcPeerConnection; +pub use web_rtc_peer_connection::re_export::IWebRtcPeerConnection; +mod web_rtc_peer_connection_extension; +pub use web_rtc_peer_connection_extension::re_export::WebRtcPeerConnectionExtension; +pub use web_rtc_peer_connection_extension::re_export::IWebRtcPeerConnectionExtension; +pub mod web_socket_multiplayer_peer; +pub use web_socket_multiplayer_peer::re_export::WebSocketMultiplayerPeer; +pub use web_socket_multiplayer_peer::re_export::IWebSocketMultiplayerPeer; +pub mod web_socket_peer; +pub use web_socket_peer::re_export::WebSocketPeer; +pub use web_socket_peer::re_export::IWebSocketPeer; +pub mod web_xr_interface; +pub use web_xr_interface::re_export::WebXrInterface; +pub use web_xr_interface::re_export::IWebXrInterface; +pub mod window; +pub use window::re_export::Window; +pub use window::re_export::IWindow; +pub mod worker_thread_pool; +pub use worker_thread_pool::re_export::WorkerThreadPool; +pub use worker_thread_pool::re_export::IWorkerThreadPool; +mod world_2d; +pub use world_2d::re_export::World2D; +pub use world_2d::re_export::IWorld2D; +mod world_3d; +pub use world_3d::re_export::World3D; +pub use world_3d::re_export::IWorld3D; +mod world_boundary_shape_2d; +pub use world_boundary_shape_2d::re_export::WorldBoundaryShape2D; +pub use world_boundary_shape_2d::re_export::IWorldBoundaryShape2D; +mod world_boundary_shape_3d; +pub use world_boundary_shape_3d::re_export::WorldBoundaryShape3D; +pub use world_boundary_shape_3d::re_export::IWorldBoundaryShape3D; +mod world_environment; +pub use world_environment::re_export::WorldEnvironment; +pub use world_environment::re_export::IWorldEnvironment; +mod x509_certificate; +pub use x509_certificate::re_export::X509Certificate; +pub use x509_certificate::re_export::IX509Certificate; +pub mod xml_parser; +pub use xml_parser::re_export::XmlParser; +pub use xml_parser::re_export::IXmlParser; +mod xr_anchor_3d; +pub use xr_anchor_3d::re_export::XrAnchor3D; +pub use xr_anchor_3d::re_export::IXrAnchor3D; +mod xr_camera_3d; +pub use xr_camera_3d::re_export::XrCamera3D; +pub use xr_camera_3d::re_export::IXrCamera3D; +mod xr_controller_3d; +pub use xr_controller_3d::re_export::XrController3D; +pub use xr_controller_3d::re_export::IXrController3D; +mod xr_controller_tracker; +pub use xr_controller_tracker::re_export::XrControllerTracker; +pub use xr_controller_tracker::re_export::IXrControllerTracker; +pub mod xr_hand_modifier_3d; +pub use xr_hand_modifier_3d::re_export::XrHandModifier3D; +pub use xr_hand_modifier_3d::re_export::IXrHandModifier3D; +pub mod xr_hand_tracker; +pub use xr_hand_tracker::re_export::XrHandTracker; +pub use xr_hand_tracker::re_export::IXrHandTracker; +pub mod xr_interface; +pub use xr_interface::re_export::XrInterface; +pub use xr_interface::re_export::IXrInterface; +mod xr_interface_extension; +pub use xr_interface_extension::re_export::XrInterfaceExtension; +pub use xr_interface_extension::re_export::IXrInterfaceExtension; +mod xr_node_3d; +pub use xr_node_3d::re_export::XrNode3D; +pub use xr_node_3d::re_export::IXrNode3D; +mod xr_origin_3d; +pub use xr_origin_3d::re_export::XrOrigin3D; +pub use xr_origin_3d::re_export::IXrOrigin3D; +pub mod xr_pose; +pub use xr_pose::re_export::XrPose; +pub use xr_pose::re_export::IXrPose; +pub mod xr_positional_tracker; +pub use xr_positional_tracker::re_export::XrPositionalTracker; +pub use xr_positional_tracker::re_export::IXrPositionalTracker; +pub mod xr_server; +pub use xr_server::re_export::XrServer; +pub use xr_server::re_export::IXrServer; +mod xr_tracker; +pub use xr_tracker::re_export::XrTracker; +pub use xr_tracker::re_export::IXrTracker; +mod xrvrs; +pub use xrvrs::re_export::Xrvrs; +pub use xrvrs::re_export::IXrvrs; +pub mod zip_packer; +pub use zip_packer::re_export::ZipPacker; +pub use zip_packer::re_export::IZipPacker; +pub mod zip_reader; +pub use zip_reader::re_export::ZipReader; +pub use zip_reader::re_export::IZipReader; +#[doc = r" Notification enums for all classes."] +pub mod notify { + pub use super::canvas_item::re_export::CanvasItemNotification; + pub use super::container::re_export::ContainerNotification; + pub use super::control::re_export::ControlNotification; + pub use super::editor_settings::re_export::EditorSettingsNotification; + pub use super::main_loop::re_export::MainLoopNotification; + pub use super::node::re_export::NodeNotification; + pub use super::node_3d::re_export::Node3DNotification; + pub use super::object::re_export::ObjectNotification; + pub use super::skeleton_3d::re_export::Skeleton3DNotification; + pub use super::window::re_export::WindowNotification; + +} +#[doc(hidden)] +pub mod class_macros { + pub use crate::*; + pub use unsafe_inherits_transitive_AesContext; + pub use unsafe_inherits_transitive_AStar2D; + pub use unsafe_inherits_transitive_AStar3D; + pub use unsafe_inherits_transitive_AStarGrid2D; + pub use unsafe_inherits_transitive_AcceptDialog; + pub use unsafe_inherits_transitive_AnimatableBody2D; + pub use unsafe_inherits_transitive_AnimatableBody3D; + pub use unsafe_inherits_transitive_AnimatedSprite2D; + pub use unsafe_inherits_transitive_AnimatedSprite3D; + pub use unsafe_inherits_transitive_AnimatedTexture; + pub use unsafe_inherits_transitive_Animation; + pub use unsafe_inherits_transitive_AnimationLibrary; + pub use unsafe_inherits_transitive_AnimationMixer; + pub use unsafe_inherits_transitive_AnimationNode; + pub use unsafe_inherits_transitive_AnimationNodeAdd2; + pub use unsafe_inherits_transitive_AnimationNodeAdd3; + pub use unsafe_inherits_transitive_AnimationNodeAnimation; + pub use unsafe_inherits_transitive_AnimationNodeBlend2; + pub use unsafe_inherits_transitive_AnimationNodeBlend3; + pub use unsafe_inherits_transitive_AnimationNodeBlendSpace1D; + pub use unsafe_inherits_transitive_AnimationNodeBlendSpace2D; + pub use unsafe_inherits_transitive_AnimationNodeBlendTree; + pub use unsafe_inherits_transitive_AnimationNodeOneShot; + pub use unsafe_inherits_transitive_AnimationNodeOutput; + pub use unsafe_inherits_transitive_AnimationNodeStateMachine; + pub use unsafe_inherits_transitive_AnimationNodeStateMachinePlayback; + pub use unsafe_inherits_transitive_AnimationNodeStateMachineTransition; + pub use unsafe_inherits_transitive_AnimationNodeSub2; + pub use unsafe_inherits_transitive_AnimationNodeSync; + pub use unsafe_inherits_transitive_AnimationNodeTimeScale; + pub use unsafe_inherits_transitive_AnimationNodeTimeSeek; + pub use unsafe_inherits_transitive_AnimationNodeTransition; + pub use unsafe_inherits_transitive_AnimationPlayer; + pub use unsafe_inherits_transitive_AnimationRootNode; + pub use unsafe_inherits_transitive_AnimationTree; + pub use unsafe_inherits_transitive_Area2D; + pub use unsafe_inherits_transitive_Area3D; + pub use unsafe_inherits_transitive_ArrayMesh; + pub use unsafe_inherits_transitive_ArrayOccluder3D; + pub use unsafe_inherits_transitive_AspectRatioContainer; + pub use unsafe_inherits_transitive_AtlasTexture; + pub use unsafe_inherits_transitive_AudioBusLayout; + pub use unsafe_inherits_transitive_AudioEffect; + pub use unsafe_inherits_transitive_AudioEffectAmplify; + pub use unsafe_inherits_transitive_AudioEffectBandLimitFilter; + pub use unsafe_inherits_transitive_AudioEffectBandPassFilter; + pub use unsafe_inherits_transitive_AudioEffectCapture; + pub use unsafe_inherits_transitive_AudioEffectChorus; + pub use unsafe_inherits_transitive_AudioEffectCompressor; + pub use unsafe_inherits_transitive_AudioEffectDelay; + pub use unsafe_inherits_transitive_AudioEffectDistortion; + pub use unsafe_inherits_transitive_AudioEffectEq; + pub use unsafe_inherits_transitive_AudioEffectEq10; + pub use unsafe_inherits_transitive_AudioEffectEq21; + pub use unsafe_inherits_transitive_AudioEffectEq6; + pub use unsafe_inherits_transitive_AudioEffectFilter; + pub use unsafe_inherits_transitive_AudioEffectHardLimiter; + pub use unsafe_inherits_transitive_AudioEffectHighPassFilter; + pub use unsafe_inherits_transitive_AudioEffectHighShelfFilter; + pub use unsafe_inherits_transitive_AudioEffectInstance; + pub use unsafe_inherits_transitive_AudioEffectLimiter; + pub use unsafe_inherits_transitive_AudioEffectLowPassFilter; + pub use unsafe_inherits_transitive_AudioEffectLowShelfFilter; + pub use unsafe_inherits_transitive_AudioEffectNotchFilter; + pub use unsafe_inherits_transitive_AudioEffectPanner; + pub use unsafe_inherits_transitive_AudioEffectPhaser; + pub use unsafe_inherits_transitive_AudioEffectPitchShift; + pub use unsafe_inherits_transitive_AudioEffectRecord; + pub use unsafe_inherits_transitive_AudioEffectReverb; + pub use unsafe_inherits_transitive_AudioEffectSpectrumAnalyzer; + pub use unsafe_inherits_transitive_AudioEffectSpectrumAnalyzerInstance; + pub use unsafe_inherits_transitive_AudioEffectStereoEnhance; + pub use unsafe_inherits_transitive_AudioListener2D; + pub use unsafe_inherits_transitive_AudioListener3D; + pub use unsafe_inherits_transitive_AudioServer; + pub use unsafe_inherits_transitive_AudioStream; + pub use unsafe_inherits_transitive_AudioStreamGenerator; + pub use unsafe_inherits_transitive_AudioStreamGeneratorPlayback; + pub use unsafe_inherits_transitive_AudioStreamInteractive; + pub use unsafe_inherits_transitive_AudioStreamMp3; + pub use unsafe_inherits_transitive_AudioStreamMicrophone; + pub use unsafe_inherits_transitive_AudioStreamOggVorbis; + pub use unsafe_inherits_transitive_AudioStreamPlayback; + pub use unsafe_inherits_transitive_AudioStreamPlaybackInteractive; + pub use unsafe_inherits_transitive_AudioStreamPlaybackOggVorbis; + pub use unsafe_inherits_transitive_AudioStreamPlaybackPlaylist; + pub use unsafe_inherits_transitive_AudioStreamPlaybackPolyphonic; + pub use unsafe_inherits_transitive_AudioStreamPlaybackResampled; + pub use unsafe_inherits_transitive_AudioStreamPlaybackSynchronized; + pub use unsafe_inherits_transitive_AudioStreamPlayer; + pub use unsafe_inherits_transitive_AudioStreamPlayer2D; + pub use unsafe_inherits_transitive_AudioStreamPlayer3D; + pub use unsafe_inherits_transitive_AudioStreamPlaylist; + pub use unsafe_inherits_transitive_AudioStreamPolyphonic; + pub use unsafe_inherits_transitive_AudioStreamRandomizer; + pub use unsafe_inherits_transitive_AudioStreamSynchronized; + pub use unsafe_inherits_transitive_AudioStreamWav; + pub use unsafe_inherits_transitive_BackBufferCopy; + pub use unsafe_inherits_transitive_BaseButton; + pub use unsafe_inherits_transitive_BaseMaterial3D; + pub use unsafe_inherits_transitive_BitMap; + pub use unsafe_inherits_transitive_Bone2D; + pub use unsafe_inherits_transitive_BoneAttachment3D; + pub use unsafe_inherits_transitive_BoneMap; + pub use unsafe_inherits_transitive_BoxContainer; + pub use unsafe_inherits_transitive_BoxMesh; + pub use unsafe_inherits_transitive_BoxOccluder3D; + pub use unsafe_inherits_transitive_BoxShape3D; + pub use unsafe_inherits_transitive_Button; + pub use unsafe_inherits_transitive_ButtonGroup; + pub use unsafe_inherits_transitive_CpuParticles2D; + pub use unsafe_inherits_transitive_CpuParticles3D; + pub use unsafe_inherits_transitive_CsgBox3D; + pub use unsafe_inherits_transitive_CsgCombiner3D; + pub use unsafe_inherits_transitive_CsgCylinder3D; + pub use unsafe_inherits_transitive_CsgMesh3D; + pub use unsafe_inherits_transitive_CsgPolygon3D; + pub use unsafe_inherits_transitive_CsgPrimitive3D; + pub use unsafe_inherits_transitive_CsgShape3D; + pub use unsafe_inherits_transitive_CsgSphere3D; + pub use unsafe_inherits_transitive_CsgTorus3D; + pub use unsafe_inherits_transitive_CallbackTweener; + pub use unsafe_inherits_transitive_Camera2D; + pub use unsafe_inherits_transitive_Camera3D; + pub use unsafe_inherits_transitive_CameraAttributes; + pub use unsafe_inherits_transitive_CameraAttributesPhysical; + pub use unsafe_inherits_transitive_CameraAttributesPractical; + pub use unsafe_inherits_transitive_CameraFeed; + pub use unsafe_inherits_transitive_CameraServer; + pub use unsafe_inherits_transitive_CameraTexture; + pub use unsafe_inherits_transitive_CanvasGroup; + pub use unsafe_inherits_transitive_CanvasItem; + pub use unsafe_inherits_transitive_CanvasItemMaterial; + pub use unsafe_inherits_transitive_CanvasLayer; + pub use unsafe_inherits_transitive_CanvasModulate; + pub use unsafe_inherits_transitive_CanvasTexture; + pub use unsafe_inherits_transitive_CapsuleMesh; + pub use unsafe_inherits_transitive_CapsuleShape2D; + pub use unsafe_inherits_transitive_CapsuleShape3D; + pub use unsafe_inherits_transitive_CenterContainer; + pub use unsafe_inherits_transitive_CharFxTransform; + pub use unsafe_inherits_transitive_CharacterBody2D; + pub use unsafe_inherits_transitive_CharacterBody3D; + pub use unsafe_inherits_transitive_CheckBox; + pub use unsafe_inherits_transitive_CheckButton; + pub use unsafe_inherits_transitive_CircleShape2D; + pub use unsafe_inherits_transitive_ClassDb; + pub use unsafe_inherits_transitive_CodeEdit; + pub use unsafe_inherits_transitive_CodeHighlighter; + pub use unsafe_inherits_transitive_CollisionObject2D; + pub use unsafe_inherits_transitive_CollisionObject3D; + pub use unsafe_inherits_transitive_CollisionPolygon2D; + pub use unsafe_inherits_transitive_CollisionPolygon3D; + pub use unsafe_inherits_transitive_CollisionShape2D; + pub use unsafe_inherits_transitive_CollisionShape3D; + pub use unsafe_inherits_transitive_ColorPicker; + pub use unsafe_inherits_transitive_ColorPickerButton; + pub use unsafe_inherits_transitive_ColorRect; + pub use unsafe_inherits_transitive_CompressedCubemap; + pub use unsafe_inherits_transitive_CompressedCubemapArray; + pub use unsafe_inherits_transitive_CompressedTexture2D; + pub use unsafe_inherits_transitive_CompressedTexture2DArray; + pub use unsafe_inherits_transitive_CompressedTexture3D; + pub use unsafe_inherits_transitive_CompressedTextureLayered; + pub use unsafe_inherits_transitive_ConcavePolygonShape2D; + pub use unsafe_inherits_transitive_ConcavePolygonShape3D; + pub use unsafe_inherits_transitive_ConeTwistJoint3D; + pub use unsafe_inherits_transitive_ConfigFile; + pub use unsafe_inherits_transitive_ConfirmationDialog; + pub use unsafe_inherits_transitive_Container; + pub use unsafe_inherits_transitive_Control; + pub use unsafe_inherits_transitive_ConvexPolygonShape2D; + pub use unsafe_inherits_transitive_ConvexPolygonShape3D; + pub use unsafe_inherits_transitive_Crypto; + pub use unsafe_inherits_transitive_CryptoKey; + pub use unsafe_inherits_transitive_Cubemap; + pub use unsafe_inherits_transitive_CubemapArray; + pub use unsafe_inherits_transitive_Curve; + pub use unsafe_inherits_transitive_Curve2D; + pub use unsafe_inherits_transitive_Curve3D; + pub use unsafe_inherits_transitive_CurveTexture; + pub use unsafe_inherits_transitive_CurveXyzTexture; + pub use unsafe_inherits_transitive_CylinderMesh; + pub use unsafe_inherits_transitive_CylinderShape3D; + pub use unsafe_inherits_transitive_DtlsServer; + pub use unsafe_inherits_transitive_DampedSpringJoint2D; + pub use unsafe_inherits_transitive_Decal; + pub use unsafe_inherits_transitive_DirAccess; + pub use unsafe_inherits_transitive_DirectionalLight2D; + pub use unsafe_inherits_transitive_DirectionalLight3D; + pub use unsafe_inherits_transitive_DisplayServer; + pub use unsafe_inherits_transitive_ENetConnection; + pub use unsafe_inherits_transitive_ENetMultiplayerPeer; + pub use unsafe_inherits_transitive_ENetPacketPeer; + pub use unsafe_inherits_transitive_EditorCommandPalette; + pub use unsafe_inherits_transitive_EditorDebuggerPlugin; + pub use unsafe_inherits_transitive_EditorDebuggerSession; + pub use unsafe_inherits_transitive_EditorExportPlatform; + pub use unsafe_inherits_transitive_EditorExportPlatformAndroid; + pub use unsafe_inherits_transitive_EditorExportPlatformIos; + pub use unsafe_inherits_transitive_EditorExportPlatformLinuxBsd; + pub use unsafe_inherits_transitive_EditorExportPlatformMacOs; + pub use unsafe_inherits_transitive_EditorExportPlatformPc; + pub use unsafe_inherits_transitive_EditorExportPlatformWeb; + pub use unsafe_inherits_transitive_EditorExportPlatformWindows; + pub use unsafe_inherits_transitive_EditorExportPlugin; + pub use unsafe_inherits_transitive_EditorFeatureProfile; + pub use unsafe_inherits_transitive_EditorFileDialog; + pub use unsafe_inherits_transitive_EditorFileSystem; + pub use unsafe_inherits_transitive_EditorFileSystemDirectory; + pub use unsafe_inherits_transitive_EditorFileSystemImportFormatSupportQuery; + pub use unsafe_inherits_transitive_EditorImportPlugin; + pub use unsafe_inherits_transitive_EditorInspector; + pub use unsafe_inherits_transitive_EditorInspectorPlugin; + pub use unsafe_inherits_transitive_EditorInterface; + pub use unsafe_inherits_transitive_EditorNode3DGizmo; + pub use unsafe_inherits_transitive_EditorNode3DGizmoPlugin; + pub use unsafe_inherits_transitive_EditorPaths; + pub use unsafe_inherits_transitive_EditorPlugin; + pub use unsafe_inherits_transitive_EditorProperty; + pub use unsafe_inherits_transitive_EditorResourceConversionPlugin; + pub use unsafe_inherits_transitive_EditorResourcePicker; + pub use unsafe_inherits_transitive_EditorResourcePreview; + pub use unsafe_inherits_transitive_EditorResourcePreviewGenerator; + pub use unsafe_inherits_transitive_EditorResourceTooltipPlugin; + pub use unsafe_inherits_transitive_EditorSceneFormatImporter; + pub use unsafe_inherits_transitive_EditorSceneFormatImporterBlend; + pub use unsafe_inherits_transitive_EditorSceneFormatImporterFbx2gltf; + pub use unsafe_inherits_transitive_EditorSceneFormatImporterGltf; + pub use unsafe_inherits_transitive_EditorSceneFormatImporterUfbx; + pub use unsafe_inherits_transitive_EditorScenePostImport; + pub use unsafe_inherits_transitive_EditorScenePostImportPlugin; + pub use unsafe_inherits_transitive_EditorScript; + pub use unsafe_inherits_transitive_EditorScriptPicker; + pub use unsafe_inherits_transitive_EditorSelection; + pub use unsafe_inherits_transitive_EditorSettings; + pub use unsafe_inherits_transitive_EditorSpinSlider; + pub use unsafe_inherits_transitive_EditorSyntaxHighlighter; + pub use unsafe_inherits_transitive_EditorTranslationParserPlugin; + pub use unsafe_inherits_transitive_EditorUndoRedoManager; + pub use unsafe_inherits_transitive_EditorVcsInterface; + pub use unsafe_inherits_transitive_EncodedObjectAsId; + pub use unsafe_inherits_transitive_Engine; + pub use unsafe_inherits_transitive_EngineDebugger; + pub use unsafe_inherits_transitive_EngineProfiler; + pub use unsafe_inherits_transitive_Environment; + pub use unsafe_inherits_transitive_Expression; + pub use unsafe_inherits_transitive_FbxDocument; + pub use unsafe_inherits_transitive_FbxState; + pub use unsafe_inherits_transitive_FastNoiseLite; + pub use unsafe_inherits_transitive_FileAccess; + pub use unsafe_inherits_transitive_FileDialog; + pub use unsafe_inherits_transitive_FileSystemDock; + pub use unsafe_inherits_transitive_FlowContainer; + pub use unsafe_inherits_transitive_FogMaterial; + pub use unsafe_inherits_transitive_FogVolume; + pub use unsafe_inherits_transitive_Font; + pub use unsafe_inherits_transitive_FontFile; + pub use unsafe_inherits_transitive_FontVariation; + pub use unsafe_inherits_transitive_GDExtension; + pub use unsafe_inherits_transitive_GDExtensionManager; + pub use unsafe_inherits_transitive_GDScript; + pub use unsafe_inherits_transitive_GltfAccessor; + pub use unsafe_inherits_transitive_GltfAnimation; + pub use unsafe_inherits_transitive_GltfBufferView; + pub use unsafe_inherits_transitive_GltfCamera; + pub use unsafe_inherits_transitive_GltfDocument; + pub use unsafe_inherits_transitive_GltfDocumentExtension; + pub use unsafe_inherits_transitive_GltfDocumentExtensionConvertImporterMesh; + pub use unsafe_inherits_transitive_GltfLight; + pub use unsafe_inherits_transitive_GltfMesh; + pub use unsafe_inherits_transitive_GltfNode; + pub use unsafe_inherits_transitive_GltfPhysicsBody; + pub use unsafe_inherits_transitive_GltfPhysicsShape; + pub use unsafe_inherits_transitive_GltfSkeleton; + pub use unsafe_inherits_transitive_GltfSkin; + pub use unsafe_inherits_transitive_GltfSpecGloss; + pub use unsafe_inherits_transitive_GltfState; + pub use unsafe_inherits_transitive_GltfTexture; + pub use unsafe_inherits_transitive_GltfTextureSampler; + pub use unsafe_inherits_transitive_GpuParticles2D; + pub use unsafe_inherits_transitive_GpuParticles3D; + pub use unsafe_inherits_transitive_GpuParticlesAttractor3D; + pub use unsafe_inherits_transitive_GpuParticlesAttractorBox3D; + pub use unsafe_inherits_transitive_GpuParticlesAttractorSphere3D; + pub use unsafe_inherits_transitive_GpuParticlesAttractorVectorField3D; + pub use unsafe_inherits_transitive_GpuParticlesCollision3D; + pub use unsafe_inherits_transitive_GpuParticlesCollisionBox3D; + pub use unsafe_inherits_transitive_GpuParticlesCollisionHeightField3D; + pub use unsafe_inherits_transitive_GpuParticlesCollisionSdf3d; + pub use unsafe_inherits_transitive_GpuParticlesCollisionSphere3D; + pub use unsafe_inherits_transitive_Generic6DofJoint3D; + pub use unsafe_inherits_transitive_Geometry2D; + pub use unsafe_inherits_transitive_Geometry3D; + pub use unsafe_inherits_transitive_GeometryInstance3D; + pub use unsafe_inherits_transitive_Gradient; + pub use unsafe_inherits_transitive_GradientTexture1D; + pub use unsafe_inherits_transitive_GradientTexture2D; + pub use unsafe_inherits_transitive_GridContainer; + pub use unsafe_inherits_transitive_GridMap; + pub use unsafe_inherits_transitive_GrooveJoint2D; + pub use unsafe_inherits_transitive_HBoxContainer; + pub use unsafe_inherits_transitive_HFlowContainer; + pub use unsafe_inherits_transitive_HmacContext; + pub use unsafe_inherits_transitive_HScrollBar; + pub use unsafe_inherits_transitive_HSeparator; + pub use unsafe_inherits_transitive_HSlider; + pub use unsafe_inherits_transitive_HSplitContainer; + pub use unsafe_inherits_transitive_HttpClient; + pub use unsafe_inherits_transitive_HttpRequest; + pub use unsafe_inherits_transitive_HashingContext; + pub use unsafe_inherits_transitive_HeightMapShape3D; + pub use unsafe_inherits_transitive_HingeJoint3D; + pub use unsafe_inherits_transitive_Ip; + pub use unsafe_inherits_transitive_Image; + pub use unsafe_inherits_transitive_ImageFormatLoader; + pub use unsafe_inherits_transitive_ImageFormatLoaderExtension; + pub use unsafe_inherits_transitive_ImageTexture; + pub use unsafe_inherits_transitive_ImageTexture3D; + pub use unsafe_inherits_transitive_ImageTextureLayered; + pub use unsafe_inherits_transitive_ImmediateMesh; + pub use unsafe_inherits_transitive_ImporterMesh; + pub use unsafe_inherits_transitive_ImporterMeshInstance3D; + pub use unsafe_inherits_transitive_Input; + pub use unsafe_inherits_transitive_InputEvent; + pub use unsafe_inherits_transitive_InputEventAction; + pub use unsafe_inherits_transitive_InputEventFromWindow; + pub use unsafe_inherits_transitive_InputEventGesture; + pub use unsafe_inherits_transitive_InputEventJoypadButton; + pub use unsafe_inherits_transitive_InputEventJoypadMotion; + pub use unsafe_inherits_transitive_InputEventKey; + pub use unsafe_inherits_transitive_InputEventMidi; + pub use unsafe_inherits_transitive_InputEventMagnifyGesture; + pub use unsafe_inherits_transitive_InputEventMouse; + pub use unsafe_inherits_transitive_InputEventMouseButton; + pub use unsafe_inherits_transitive_InputEventMouseMotion; + pub use unsafe_inherits_transitive_InputEventPanGesture; + pub use unsafe_inherits_transitive_InputEventScreenDrag; + pub use unsafe_inherits_transitive_InputEventScreenTouch; + pub use unsafe_inherits_transitive_InputEventShortcut; + pub use unsafe_inherits_transitive_InputEventWithModifiers; + pub use unsafe_inherits_transitive_InputMap; + pub use unsafe_inherits_transitive_InstancePlaceholder; + pub use unsafe_inherits_transitive_IntervalTweener; + pub use unsafe_inherits_transitive_ItemList; + pub use unsafe_inherits_transitive_Json; + pub use unsafe_inherits_transitive_JsonRpc; + pub use unsafe_inherits_transitive_Joint2D; + pub use unsafe_inherits_transitive_Joint3D; + pub use unsafe_inherits_transitive_KinematicCollision2D; + pub use unsafe_inherits_transitive_KinematicCollision3D; + pub use unsafe_inherits_transitive_Label; + pub use unsafe_inherits_transitive_Label3D; + pub use unsafe_inherits_transitive_LabelSettings; + pub use unsafe_inherits_transitive_Light2D; + pub use unsafe_inherits_transitive_Light3D; + pub use unsafe_inherits_transitive_LightOccluder2D; + pub use unsafe_inherits_transitive_LightmapGi; + pub use unsafe_inherits_transitive_LightmapGiData; + pub use unsafe_inherits_transitive_LightmapProbe; + pub use unsafe_inherits_transitive_Lightmapper; + pub use unsafe_inherits_transitive_LightmapperRd; + pub use unsafe_inherits_transitive_Line2D; + pub use unsafe_inherits_transitive_LineEdit; + pub use unsafe_inherits_transitive_LinkButton; + pub use unsafe_inherits_transitive_MainLoop; + pub use unsafe_inherits_transitive_MarginContainer; + pub use unsafe_inherits_transitive_Marker2D; + pub use unsafe_inherits_transitive_Marker3D; + pub use unsafe_inherits_transitive_Marshalls; + pub use unsafe_inherits_transitive_Material; + pub use unsafe_inherits_transitive_MenuBar; + pub use unsafe_inherits_transitive_MenuButton; + pub use unsafe_inherits_transitive_Mesh; + pub use unsafe_inherits_transitive_MeshConvexDecompositionSettings; + pub use unsafe_inherits_transitive_MeshDataTool; + pub use unsafe_inherits_transitive_MeshInstance2D; + pub use unsafe_inherits_transitive_MeshInstance3D; + pub use unsafe_inherits_transitive_MeshLibrary; + pub use unsafe_inherits_transitive_MeshTexture; + pub use unsafe_inherits_transitive_MethodTweener; + pub use unsafe_inherits_transitive_MissingNode; + pub use unsafe_inherits_transitive_MissingResource; + pub use unsafe_inherits_transitive_MobileVrInterface; + pub use unsafe_inherits_transitive_MovieWriter; + pub use unsafe_inherits_transitive_MultiMesh; + pub use unsafe_inherits_transitive_MultiMeshInstance2D; + pub use unsafe_inherits_transitive_MultiMeshInstance3D; + pub use unsafe_inherits_transitive_MultiplayerApi; + pub use unsafe_inherits_transitive_MultiplayerApiExtension; + pub use unsafe_inherits_transitive_MultiplayerPeer; + pub use unsafe_inherits_transitive_MultiplayerPeerExtension; + pub use unsafe_inherits_transitive_MultiplayerSpawner; + pub use unsafe_inherits_transitive_MultiplayerSynchronizer; + pub use unsafe_inherits_transitive_NativeMenu; + pub use unsafe_inherits_transitive_NavigationMeshGenerator; + pub use unsafe_inherits_transitive_NinePatchRect; + pub use unsafe_inherits_transitive_Node; + pub use unsafe_inherits_transitive_Node2D; + pub use unsafe_inherits_transitive_Node3D; + pub use unsafe_inherits_transitive_Node3DGizmo; + pub use unsafe_inherits_transitive_Noise; + pub use unsafe_inherits_transitive_NoiseTexture2D; + pub use unsafe_inherits_transitive_NoiseTexture3D; + pub use unsafe_inherits_transitive_OrmMaterial3D; + pub use unsafe_inherits_transitive_Os; + pub use unsafe_inherits_transitive_Object; + pub use unsafe_inherits_transitive_Occluder3D; + pub use unsafe_inherits_transitive_OccluderInstance3D; + pub use unsafe_inherits_transitive_OccluderPolygon2D; + pub use unsafe_inherits_transitive_OfflineMultiplayerPeer; + pub use unsafe_inherits_transitive_OggPacketSequence; + pub use unsafe_inherits_transitive_OggPacketSequencePlayback; + pub use unsafe_inherits_transitive_OmniLight3D; + pub use unsafe_inherits_transitive_OpenXrApiExtension; + pub use unsafe_inherits_transitive_OpenXrAction; + pub use unsafe_inherits_transitive_OpenXrActionMap; + pub use unsafe_inherits_transitive_OpenXrActionSet; + pub use unsafe_inherits_transitive_OpenXrCompositionLayer; + pub use unsafe_inherits_transitive_OpenXrCompositionLayerCylinder; + pub use unsafe_inherits_transitive_OpenXrCompositionLayerEquirect; + pub use unsafe_inherits_transitive_OpenXrCompositionLayerQuad; + pub use unsafe_inherits_transitive_OpenXrExtensionWrapperExtension; + pub use unsafe_inherits_transitive_OpenXrHand; + pub use unsafe_inherits_transitive_OpenXrIpBinding; + pub use unsafe_inherits_transitive_OpenXrInteractionProfile; + pub use unsafe_inherits_transitive_OpenXrInteractionProfileMetadata; + pub use unsafe_inherits_transitive_OpenXrInterface; + pub use unsafe_inherits_transitive_OptimizedTranslation; + pub use unsafe_inherits_transitive_OptionButton; + pub use unsafe_inherits_transitive_PckPacker; + pub use unsafe_inherits_transitive_PackedDataContainer; + pub use unsafe_inherits_transitive_PackedDataContainerRef; + pub use unsafe_inherits_transitive_PackedScene; + pub use unsafe_inherits_transitive_PacketPeer; + pub use unsafe_inherits_transitive_PacketPeerDtls; + pub use unsafe_inherits_transitive_PacketPeerExtension; + pub use unsafe_inherits_transitive_PacketPeerStream; + pub use unsafe_inherits_transitive_PacketPeerUdp; + pub use unsafe_inherits_transitive_Panel; + pub use unsafe_inherits_transitive_PanelContainer; + pub use unsafe_inherits_transitive_PanoramaSkyMaterial; + pub use unsafe_inherits_transitive_ParallaxBackground; + pub use unsafe_inherits_transitive_ParallaxLayer; + pub use unsafe_inherits_transitive_ParticleProcessMaterial; + pub use unsafe_inherits_transitive_Path2D; + pub use unsafe_inherits_transitive_Path3D; + pub use unsafe_inherits_transitive_PathFollow2D; + pub use unsafe_inherits_transitive_PathFollow3D; + pub use unsafe_inherits_transitive_Performance; + pub use unsafe_inherits_transitive_PhysicalBone2D; + pub use unsafe_inherits_transitive_PhysicalBone3D; + pub use unsafe_inherits_transitive_PhysicalBoneSimulator3D; + pub use unsafe_inherits_transitive_PhysicalSkyMaterial; + pub use unsafe_inherits_transitive_PhysicsBody2D; + pub use unsafe_inherits_transitive_PhysicsBody3D; + pub use unsafe_inherits_transitive_PhysicsDirectBodyState2D; + pub use unsafe_inherits_transitive_PhysicsDirectBodyState2DExtension; + pub use unsafe_inherits_transitive_PhysicsDirectBodyState3D; + pub use unsafe_inherits_transitive_PhysicsDirectBodyState3DExtension; + pub use unsafe_inherits_transitive_PhysicsDirectSpaceState2D; + pub use unsafe_inherits_transitive_PhysicsDirectSpaceState2DExtension; + pub use unsafe_inherits_transitive_PhysicsDirectSpaceState3D; + pub use unsafe_inherits_transitive_PhysicsDirectSpaceState3DExtension; + pub use unsafe_inherits_transitive_PhysicsMaterial; + pub use unsafe_inherits_transitive_PhysicsPointQueryParameters2D; + pub use unsafe_inherits_transitive_PhysicsPointQueryParameters3D; + pub use unsafe_inherits_transitive_PhysicsRayQueryParameters2D; + pub use unsafe_inherits_transitive_PhysicsRayQueryParameters3D; + pub use unsafe_inherits_transitive_PhysicsServer2D; + pub use unsafe_inherits_transitive_PhysicsServer2DExtension; + pub use unsafe_inherits_transitive_PhysicsServer2DManager; + pub use unsafe_inherits_transitive_PhysicsServer3D; + pub use unsafe_inherits_transitive_PhysicsServer3DExtension; + pub use unsafe_inherits_transitive_PhysicsServer3DManager; + pub use unsafe_inherits_transitive_PhysicsServer3DRenderingServerHandler; + pub use unsafe_inherits_transitive_PhysicsShapeQueryParameters2D; + pub use unsafe_inherits_transitive_PhysicsShapeQueryParameters3D; + pub use unsafe_inherits_transitive_PhysicsTestMotionParameters2D; + pub use unsafe_inherits_transitive_PhysicsTestMotionParameters3D; + pub use unsafe_inherits_transitive_PhysicsTestMotionResult2D; + pub use unsafe_inherits_transitive_PhysicsTestMotionResult3D; + pub use unsafe_inherits_transitive_PinJoint2D; + pub use unsafe_inherits_transitive_PinJoint3D; + pub use unsafe_inherits_transitive_PlaceholderCubemap; + pub use unsafe_inherits_transitive_PlaceholderCubemapArray; + pub use unsafe_inherits_transitive_PlaceholderMaterial; + pub use unsafe_inherits_transitive_PlaceholderMesh; + pub use unsafe_inherits_transitive_PlaceholderTexture2D; + pub use unsafe_inherits_transitive_PlaceholderTexture2DArray; + pub use unsafe_inherits_transitive_PlaceholderTexture3D; + pub use unsafe_inherits_transitive_PlaceholderTextureLayered; + pub use unsafe_inherits_transitive_PlaneMesh; + pub use unsafe_inherits_transitive_PointLight2D; + pub use unsafe_inherits_transitive_PointMesh; + pub use unsafe_inherits_transitive_Polygon2D; + pub use unsafe_inherits_transitive_PolygonOccluder3D; + pub use unsafe_inherits_transitive_PolygonPathFinder; + pub use unsafe_inherits_transitive_Popup; + pub use unsafe_inherits_transitive_PopupMenu; + pub use unsafe_inherits_transitive_PopupPanel; + pub use unsafe_inherits_transitive_PortableCompressedTexture2D; + pub use unsafe_inherits_transitive_PrimitiveMesh; + pub use unsafe_inherits_transitive_PrismMesh; + pub use unsafe_inherits_transitive_ProceduralSkyMaterial; + pub use unsafe_inherits_transitive_ProgressBar; + pub use unsafe_inherits_transitive_ProjectSettings; + pub use unsafe_inherits_transitive_PropertyTweener; + pub use unsafe_inherits_transitive_QuadMesh; + pub use unsafe_inherits_transitive_QuadOccluder3D; + pub use unsafe_inherits_transitive_RdAttachmentFormat; + pub use unsafe_inherits_transitive_RdFramebufferPass; + pub use unsafe_inherits_transitive_RdPipelineColorBlendState; + pub use unsafe_inherits_transitive_RdPipelineColorBlendStateAttachment; + pub use unsafe_inherits_transitive_RdPipelineDepthStencilState; + pub use unsafe_inherits_transitive_RdPipelineMultisampleState; + pub use unsafe_inherits_transitive_RdPipelineRasterizationState; + pub use unsafe_inherits_transitive_RdPipelineSpecializationConstant; + pub use unsafe_inherits_transitive_RdSamplerState; + pub use unsafe_inherits_transitive_RdShaderFile; + pub use unsafe_inherits_transitive_RdShaderSpirv; + pub use unsafe_inherits_transitive_RdShaderSource; + pub use unsafe_inherits_transitive_RdTextureFormat; + pub use unsafe_inherits_transitive_RdTextureView; + pub use unsafe_inherits_transitive_RdUniform; + pub use unsafe_inherits_transitive_RdVertexAttribute; + pub use unsafe_inherits_transitive_RandomNumberGenerator; + pub use unsafe_inherits_transitive_Range; + pub use unsafe_inherits_transitive_RayCast2D; + pub use unsafe_inherits_transitive_RayCast3D; + pub use unsafe_inherits_transitive_RectangleShape2D; + pub use unsafe_inherits_transitive_RefCounted; + pub use unsafe_inherits_transitive_ReferenceRect; + pub use unsafe_inherits_transitive_ReflectionProbe; + pub use unsafe_inherits_transitive_RegEx; + pub use unsafe_inherits_transitive_RegExMatch; + pub use unsafe_inherits_transitive_RemoteTransform2D; + pub use unsafe_inherits_transitive_RemoteTransform3D; + pub use unsafe_inherits_transitive_RenderData; + pub use unsafe_inherits_transitive_RenderDataExtension; + pub use unsafe_inherits_transitive_RenderDataRd; + pub use unsafe_inherits_transitive_RenderSceneBuffers; + pub use unsafe_inherits_transitive_RenderSceneBuffersConfiguration; + pub use unsafe_inherits_transitive_RenderSceneBuffersExtension; + pub use unsafe_inherits_transitive_RenderSceneBuffersRd; + pub use unsafe_inherits_transitive_RenderSceneData; + pub use unsafe_inherits_transitive_RenderSceneDataExtension; + pub use unsafe_inherits_transitive_RenderSceneDataRd; + pub use unsafe_inherits_transitive_RenderingDevice; + pub use unsafe_inherits_transitive_RenderingServer; + pub use unsafe_inherits_transitive_Resource; + pub use unsafe_inherits_transitive_ResourceFormatLoader; + pub use unsafe_inherits_transitive_ResourceFormatSaver; + pub use unsafe_inherits_transitive_ResourceImporter; + pub use unsafe_inherits_transitive_ResourceImporterBmFont; + pub use unsafe_inherits_transitive_ResourceImporterBitMap; + pub use unsafe_inherits_transitive_ResourceImporterCsvTranslation; + pub use unsafe_inherits_transitive_ResourceImporterDynamicFont; + pub use unsafe_inherits_transitive_ResourceImporterImage; + pub use unsafe_inherits_transitive_ResourceImporterImageFont; + pub use unsafe_inherits_transitive_ResourceImporterLayeredTexture; + pub use unsafe_inherits_transitive_ResourceImporterMp3; + pub use unsafe_inherits_transitive_ResourceImporterObj; + pub use unsafe_inherits_transitive_ResourceImporterOggVorbis; + pub use unsafe_inherits_transitive_ResourceImporterScene; + pub use unsafe_inherits_transitive_ResourceImporterShaderFile; + pub use unsafe_inherits_transitive_ResourceImporterTexture; + pub use unsafe_inherits_transitive_ResourceImporterTextureAtlas; + pub use unsafe_inherits_transitive_ResourceImporterWav; + pub use unsafe_inherits_transitive_ResourceLoader; + pub use unsafe_inherits_transitive_ResourcePreloader; + pub use unsafe_inherits_transitive_ResourceSaver; + pub use unsafe_inherits_transitive_ResourceUid; + pub use unsafe_inherits_transitive_RibbonTrailMesh; + pub use unsafe_inherits_transitive_RichTextEffect; + pub use unsafe_inherits_transitive_RichTextLabel; + pub use unsafe_inherits_transitive_RigidBody2D; + pub use unsafe_inherits_transitive_RigidBody3D; + pub use unsafe_inherits_transitive_RootMotionView; + pub use unsafe_inherits_transitive_SceneMultiplayer; + pub use unsafe_inherits_transitive_SceneReplicationConfig; + pub use unsafe_inherits_transitive_SceneState; + pub use unsafe_inherits_transitive_SceneTree; + pub use unsafe_inherits_transitive_SceneTreeTimer; + pub use unsafe_inherits_transitive_Script; + pub use unsafe_inherits_transitive_ScriptCreateDialog; + pub use unsafe_inherits_transitive_ScriptEditor; + pub use unsafe_inherits_transitive_ScriptEditorBase; + pub use unsafe_inherits_transitive_ScriptExtension; + pub use unsafe_inherits_transitive_ScriptLanguage; + pub use unsafe_inherits_transitive_ScriptLanguageExtension; + pub use unsafe_inherits_transitive_ScrollBar; + pub use unsafe_inherits_transitive_ScrollContainer; + pub use unsafe_inherits_transitive_SegmentShape2D; + pub use unsafe_inherits_transitive_SeparationRayShape2D; + pub use unsafe_inherits_transitive_SeparationRayShape3D; + pub use unsafe_inherits_transitive_Separator; + pub use unsafe_inherits_transitive_Shader; + pub use unsafe_inherits_transitive_ShaderGlobalsOverride; + pub use unsafe_inherits_transitive_ShaderInclude; + pub use unsafe_inherits_transitive_ShaderMaterial; + pub use unsafe_inherits_transitive_Shape2D; + pub use unsafe_inherits_transitive_Shape3D; + pub use unsafe_inherits_transitive_ShapeCast2D; + pub use unsafe_inherits_transitive_ShapeCast3D; + pub use unsafe_inherits_transitive_Shortcut; + pub use unsafe_inherits_transitive_Skeleton2D; + pub use unsafe_inherits_transitive_Skeleton3D; + pub use unsafe_inherits_transitive_SkeletonIk3d; + pub use unsafe_inherits_transitive_SkeletonModifier3D; + pub use unsafe_inherits_transitive_SkeletonProfile; + pub use unsafe_inherits_transitive_SkeletonProfileHumanoid; + pub use unsafe_inherits_transitive_Skin; + pub use unsafe_inherits_transitive_SkinReference; + pub use unsafe_inherits_transitive_Sky; + pub use unsafe_inherits_transitive_Slider; + pub use unsafe_inherits_transitive_SliderJoint3D; + pub use unsafe_inherits_transitive_SoftBody3D; + pub use unsafe_inherits_transitive_SphereMesh; + pub use unsafe_inherits_transitive_SphereOccluder3D; + pub use unsafe_inherits_transitive_SphereShape3D; + pub use unsafe_inherits_transitive_SpinBox; + pub use unsafe_inherits_transitive_SplitContainer; + pub use unsafe_inherits_transitive_SpotLight3D; + pub use unsafe_inherits_transitive_SpringArm3D; + pub use unsafe_inherits_transitive_Sprite2D; + pub use unsafe_inherits_transitive_Sprite3D; + pub use unsafe_inherits_transitive_SpriteBase3D; + pub use unsafe_inherits_transitive_SpriteFrames; + pub use unsafe_inherits_transitive_StandardMaterial3D; + pub use unsafe_inherits_transitive_StaticBody2D; + pub use unsafe_inherits_transitive_StaticBody3D; + pub use unsafe_inherits_transitive_StatusIndicator; + pub use unsafe_inherits_transitive_StreamPeer; + pub use unsafe_inherits_transitive_StreamPeerBuffer; + pub use unsafe_inherits_transitive_StreamPeerExtension; + pub use unsafe_inherits_transitive_StreamPeerTcp; + pub use unsafe_inherits_transitive_StreamPeerTls; + pub use unsafe_inherits_transitive_StyleBox; + pub use unsafe_inherits_transitive_StyleBoxEmpty; + pub use unsafe_inherits_transitive_StyleBoxFlat; + pub use unsafe_inherits_transitive_StyleBoxLine; + pub use unsafe_inherits_transitive_StyleBoxTexture; + pub use unsafe_inherits_transitive_SubViewport; + pub use unsafe_inherits_transitive_SubViewportContainer; + pub use unsafe_inherits_transitive_SurfaceTool; + pub use unsafe_inherits_transitive_SyntaxHighlighter; + pub use unsafe_inherits_transitive_SystemFont; + pub use unsafe_inherits_transitive_TcpServer; + pub use unsafe_inherits_transitive_TlsOptions; + pub use unsafe_inherits_transitive_TabBar; + pub use unsafe_inherits_transitive_TabContainer; + pub use unsafe_inherits_transitive_TextEdit; + pub use unsafe_inherits_transitive_TextLine; + pub use unsafe_inherits_transitive_TextMesh; + pub use unsafe_inherits_transitive_TextParagraph; + pub use unsafe_inherits_transitive_TextServer; + pub use unsafe_inherits_transitive_TextServerAdvanced; + pub use unsafe_inherits_transitive_TextServerDummy; + pub use unsafe_inherits_transitive_TextServerExtension; + pub use unsafe_inherits_transitive_TextServerManager; + pub use unsafe_inherits_transitive_Texture; + pub use unsafe_inherits_transitive_Texture2D; + pub use unsafe_inherits_transitive_Texture2DArray; + pub use unsafe_inherits_transitive_Texture2DArrayRd; + pub use unsafe_inherits_transitive_Texture2Drd; + pub use unsafe_inherits_transitive_Texture3D; + pub use unsafe_inherits_transitive_Texture3Drd; + pub use unsafe_inherits_transitive_TextureButton; + pub use unsafe_inherits_transitive_TextureCubemapArrayRd; + pub use unsafe_inherits_transitive_TextureCubemapRd; + pub use unsafe_inherits_transitive_TextureLayered; + pub use unsafe_inherits_transitive_TextureLayeredRd; + pub use unsafe_inherits_transitive_TextureProgressBar; + pub use unsafe_inherits_transitive_TextureRect; + pub use unsafe_inherits_transitive_Theme; + pub use unsafe_inherits_transitive_ThemeDb; + pub use unsafe_inherits_transitive_TileData; + pub use unsafe_inherits_transitive_TileMap; + pub use unsafe_inherits_transitive_TileMapLayer; + pub use unsafe_inherits_transitive_TileMapPattern; + pub use unsafe_inherits_transitive_TileSet; + pub use unsafe_inherits_transitive_TileSetAtlasSource; + pub use unsafe_inherits_transitive_TileSetScenesCollectionSource; + pub use unsafe_inherits_transitive_TileSetSource; + pub use unsafe_inherits_transitive_Time; + pub use unsafe_inherits_transitive_Timer; + pub use unsafe_inherits_transitive_TorusMesh; + pub use unsafe_inherits_transitive_TouchScreenButton; + pub use unsafe_inherits_transitive_Translation; + pub use unsafe_inherits_transitive_TranslationServer; + pub use unsafe_inherits_transitive_Tree; + pub use unsafe_inherits_transitive_TreeItem; + pub use unsafe_inherits_transitive_TriangleMesh; + pub use unsafe_inherits_transitive_TubeTrailMesh; + pub use unsafe_inherits_transitive_Tween; + pub use unsafe_inherits_transitive_Tweener; + pub use unsafe_inherits_transitive_UdpServer; + pub use unsafe_inherits_transitive_Upnp; + pub use unsafe_inherits_transitive_UpnpDevice; + pub use unsafe_inherits_transitive_UndoRedo; + pub use unsafe_inherits_transitive_UniformSetCacheRd; + pub use unsafe_inherits_transitive_VBoxContainer; + pub use unsafe_inherits_transitive_VFlowContainer; + pub use unsafe_inherits_transitive_VScrollBar; + pub use unsafe_inherits_transitive_VSeparator; + pub use unsafe_inherits_transitive_VSlider; + pub use unsafe_inherits_transitive_VSplitContainer; + pub use unsafe_inherits_transitive_VehicleBody3D; + pub use unsafe_inherits_transitive_VehicleWheel3D; + pub use unsafe_inherits_transitive_VideoStream; + pub use unsafe_inherits_transitive_VideoStreamPlayback; + pub use unsafe_inherits_transitive_VideoStreamPlayer; + pub use unsafe_inherits_transitive_VideoStreamTheora; + pub use unsafe_inherits_transitive_Viewport; + pub use unsafe_inherits_transitive_ViewportTexture; + pub use unsafe_inherits_transitive_VisibleOnScreenEnabler2D; + pub use unsafe_inherits_transitive_VisibleOnScreenEnabler3D; + pub use unsafe_inherits_transitive_VisibleOnScreenNotifier2D; + pub use unsafe_inherits_transitive_VisibleOnScreenNotifier3D; + pub use unsafe_inherits_transitive_VisualInstance3D; + pub use unsafe_inherits_transitive_VisualShader; + pub use unsafe_inherits_transitive_VisualShaderNode; + pub use unsafe_inherits_transitive_VisualShaderNodeBillboard; + pub use unsafe_inherits_transitive_VisualShaderNodeBooleanConstant; + pub use unsafe_inherits_transitive_VisualShaderNodeBooleanParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeClamp; + pub use unsafe_inherits_transitive_VisualShaderNodeColorConstant; + pub use unsafe_inherits_transitive_VisualShaderNodeColorFunc; + pub use unsafe_inherits_transitive_VisualShaderNodeColorOp; + pub use unsafe_inherits_transitive_VisualShaderNodeColorParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeComment; + pub use unsafe_inherits_transitive_VisualShaderNodeCompare; + pub use unsafe_inherits_transitive_VisualShaderNodeConstant; + pub use unsafe_inherits_transitive_VisualShaderNodeCubemap; + pub use unsafe_inherits_transitive_VisualShaderNodeCubemapParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeCurveTexture; + pub use unsafe_inherits_transitive_VisualShaderNodeCurveXyzTexture; + pub use unsafe_inherits_transitive_VisualShaderNodeCustom; + pub use unsafe_inherits_transitive_VisualShaderNodeDerivativeFunc; + pub use unsafe_inherits_transitive_VisualShaderNodeDeterminant; + pub use unsafe_inherits_transitive_VisualShaderNodeDistanceFade; + pub use unsafe_inherits_transitive_VisualShaderNodeDotProduct; + pub use unsafe_inherits_transitive_VisualShaderNodeExpression; + pub use unsafe_inherits_transitive_VisualShaderNodeFaceForward; + pub use unsafe_inherits_transitive_VisualShaderNodeFloatConstant; + pub use unsafe_inherits_transitive_VisualShaderNodeFloatFunc; + pub use unsafe_inherits_transitive_VisualShaderNodeFloatOp; + pub use unsafe_inherits_transitive_VisualShaderNodeFloatParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeFrame; + pub use unsafe_inherits_transitive_VisualShaderNodeFresnel; + pub use unsafe_inherits_transitive_VisualShaderNodeGlobalExpression; + pub use unsafe_inherits_transitive_VisualShaderNodeGroupBase; + pub use unsafe_inherits_transitive_VisualShaderNodeIf; + pub use unsafe_inherits_transitive_VisualShaderNodeInput; + pub use unsafe_inherits_transitive_VisualShaderNodeIntConstant; + pub use unsafe_inherits_transitive_VisualShaderNodeIntFunc; + pub use unsafe_inherits_transitive_VisualShaderNodeIntOp; + pub use unsafe_inherits_transitive_VisualShaderNodeIntParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeIs; + pub use unsafe_inherits_transitive_VisualShaderNodeLinearSceneDepth; + pub use unsafe_inherits_transitive_VisualShaderNodeMix; + pub use unsafe_inherits_transitive_VisualShaderNodeMultiplyAdd; + pub use unsafe_inherits_transitive_VisualShaderNodeOuterProduct; + pub use unsafe_inherits_transitive_VisualShaderNodeOutput; + pub use unsafe_inherits_transitive_VisualShaderNodeParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeParameterRef; + pub use unsafe_inherits_transitive_VisualShaderNodeParticleAccelerator; + pub use unsafe_inherits_transitive_VisualShaderNodeParticleBoxEmitter; + pub use unsafe_inherits_transitive_VisualShaderNodeParticleConeVelocity; + pub use unsafe_inherits_transitive_VisualShaderNodeParticleEmit; + pub use unsafe_inherits_transitive_VisualShaderNodeParticleEmitter; + pub use unsafe_inherits_transitive_VisualShaderNodeParticleMeshEmitter; + pub use unsafe_inherits_transitive_VisualShaderNodeParticleMultiplyByAxisAngle; + pub use unsafe_inherits_transitive_VisualShaderNodeParticleOutput; + pub use unsafe_inherits_transitive_VisualShaderNodeParticleRandomness; + pub use unsafe_inherits_transitive_VisualShaderNodeParticleRingEmitter; + pub use unsafe_inherits_transitive_VisualShaderNodeParticleSphereEmitter; + pub use unsafe_inherits_transitive_VisualShaderNodeProximityFade; + pub use unsafe_inherits_transitive_VisualShaderNodeRandomRange; + pub use unsafe_inherits_transitive_VisualShaderNodeRemap; + pub use unsafe_inherits_transitive_VisualShaderNodeReroute; + pub use unsafe_inherits_transitive_VisualShaderNodeResizableBase; + pub use unsafe_inherits_transitive_VisualShaderNodeRotationByAxis; + pub use unsafe_inherits_transitive_VisualShaderNodeSdfRaymarch; + pub use unsafe_inherits_transitive_VisualShaderNodeSdfToScreenUv; + pub use unsafe_inherits_transitive_VisualShaderNodeSample3D; + pub use unsafe_inherits_transitive_VisualShaderNodeScreenNormalWorldSpace; + pub use unsafe_inherits_transitive_VisualShaderNodeScreenUvToSdf; + pub use unsafe_inherits_transitive_VisualShaderNodeSmoothStep; + pub use unsafe_inherits_transitive_VisualShaderNodeStep; + pub use unsafe_inherits_transitive_VisualShaderNodeSwitch; + pub use unsafe_inherits_transitive_VisualShaderNodeTexture; + pub use unsafe_inherits_transitive_VisualShaderNodeTexture2DArray; + pub use unsafe_inherits_transitive_VisualShaderNodeTexture2DArrayParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeTexture2DParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeTexture3D; + pub use unsafe_inherits_transitive_VisualShaderNodeTexture3DParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeTextureParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeTextureParameterTriplanar; + pub use unsafe_inherits_transitive_VisualShaderNodeTextureSdf; + pub use unsafe_inherits_transitive_VisualShaderNodeTextureSdfNormal; + pub use unsafe_inherits_transitive_VisualShaderNodeTransformCompose; + pub use unsafe_inherits_transitive_VisualShaderNodeTransformConstant; + pub use unsafe_inherits_transitive_VisualShaderNodeTransformDecompose; + pub use unsafe_inherits_transitive_VisualShaderNodeTransformFunc; + pub use unsafe_inherits_transitive_VisualShaderNodeTransformOp; + pub use unsafe_inherits_transitive_VisualShaderNodeTransformParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeTransformVecMult; + pub use unsafe_inherits_transitive_VisualShaderNodeUIntConstant; + pub use unsafe_inherits_transitive_VisualShaderNodeUIntFunc; + pub use unsafe_inherits_transitive_VisualShaderNodeUIntOp; + pub use unsafe_inherits_transitive_VisualShaderNodeUIntParameter; + pub use unsafe_inherits_transitive_VisualShaderNodeUvFunc; + pub use unsafe_inherits_transitive_VisualShaderNodeUvPolarCoord; + pub use unsafe_inherits_transitive_VisualShaderNodeVarying; + pub use unsafe_inherits_transitive_VisualShaderNodeVaryingGetter; + pub use unsafe_inherits_transitive_VisualShaderNodeVaryingSetter; + pub use unsafe_inherits_transitive_VisualShaderNodeVec2Constant; + pub use unsafe_inherits_transitive_VisualShaderNodeVec2Parameter; + pub use unsafe_inherits_transitive_VisualShaderNodeVec3Constant; + pub use unsafe_inherits_transitive_VisualShaderNodeVec3Parameter; + pub use unsafe_inherits_transitive_VisualShaderNodeVec4Constant; + pub use unsafe_inherits_transitive_VisualShaderNodeVec4Parameter; + pub use unsafe_inherits_transitive_VisualShaderNodeVectorBase; + pub use unsafe_inherits_transitive_VisualShaderNodeVectorCompose; + pub use unsafe_inherits_transitive_VisualShaderNodeVectorDecompose; + pub use unsafe_inherits_transitive_VisualShaderNodeVectorDistance; + pub use unsafe_inherits_transitive_VisualShaderNodeVectorFunc; + pub use unsafe_inherits_transitive_VisualShaderNodeVectorLen; + pub use unsafe_inherits_transitive_VisualShaderNodeVectorOp; + pub use unsafe_inherits_transitive_VisualShaderNodeVectorRefract; + pub use unsafe_inherits_transitive_VisualShaderNodeWorldPositionFromDepth; + pub use unsafe_inherits_transitive_VoxelGi; + pub use unsafe_inherits_transitive_VoxelGiData; + pub use unsafe_inherits_transitive_WeakRef; + pub use unsafe_inherits_transitive_WebRtcDataChannel; + pub use unsafe_inherits_transitive_WebRtcDataChannelExtension; + pub use unsafe_inherits_transitive_WebRtcMultiplayerPeer; + pub use unsafe_inherits_transitive_WebRtcPeerConnection; + pub use unsafe_inherits_transitive_WebRtcPeerConnectionExtension; + pub use unsafe_inherits_transitive_WebSocketMultiplayerPeer; + pub use unsafe_inherits_transitive_WebSocketPeer; + pub use unsafe_inherits_transitive_WebXrInterface; + pub use unsafe_inherits_transitive_Window; + pub use unsafe_inherits_transitive_WorkerThreadPool; + pub use unsafe_inherits_transitive_World2D; + pub use unsafe_inherits_transitive_World3D; + pub use unsafe_inherits_transitive_WorldBoundaryShape2D; + pub use unsafe_inherits_transitive_WorldBoundaryShape3D; + pub use unsafe_inherits_transitive_WorldEnvironment; + pub use unsafe_inherits_transitive_X509Certificate; + pub use unsafe_inherits_transitive_XmlParser; + pub use unsafe_inherits_transitive_XrAnchor3D; + pub use unsafe_inherits_transitive_XrCamera3D; + pub use unsafe_inherits_transitive_XrController3D; + pub use unsafe_inherits_transitive_XrControllerTracker; + pub use unsafe_inherits_transitive_XrHandModifier3D; + pub use unsafe_inherits_transitive_XrHandTracker; + pub use unsafe_inherits_transitive_XrInterface; + pub use unsafe_inherits_transitive_XrInterfaceExtension; + pub use unsafe_inherits_transitive_XrNode3D; + pub use unsafe_inherits_transitive_XrOrigin3D; + pub use unsafe_inherits_transitive_XrPose; + pub use unsafe_inherits_transitive_XrPositionalTracker; + pub use unsafe_inherits_transitive_XrServer; + pub use unsafe_inherits_transitive_XrTracker; + pub use unsafe_inherits_transitive_Xrvrs; + pub use unsafe_inherits_transitive_ZipPacker; + pub use unsafe_inherits_transitive_ZipReader; + +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/movie_writer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/movie_writer.rs new file mode 100644 index 0000000..d36fc19 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/movie_writer.rs @@ -0,0 +1,206 @@ +#![doc = "Sidecar module for class [`MovieWriter`][crate::classes::MovieWriter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MovieWriter` enums](https://docs.godotengine.org/en/stable/classes/class_moviewriter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MovieWriter.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IMovieWriter`][crate::classes::IMovieWriter]: virtual methods\n\n\nSee also [Godot docs for `MovieWriter`](https://docs.godotengine.org/en/stable/classes/class_moviewriter.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MovieWriter::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MovieWriter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MovieWriter`][crate::classes::MovieWriter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MovieWriter` methods](https://docs.godotengine.org/en/stable/classes/class_moviewriter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMovieWriter: crate::obj::GodotClass < Base = MovieWriter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_audio_mix_rate(&self,) -> u32; + fn get_audio_speaker_mode(&self,) -> crate::classes::audio_server::SpeakerMode; + fn handles_file(&self, path: GString,) -> bool; + fn write_begin(&mut self, movie_size: Vector2i, fps: u32, base_path: GString,) -> crate::global::Error; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn write_frame(&mut self, frame_image: Option < Gd < crate::classes::Image > >, audio_frame_block: * const c_void,) -> crate::global::Error; + fn write_end(&mut self,); + + } + impl MovieWriter { + pub fn add_writer(writer: impl AsObjectArg < crate::classes::MovieWriter >,) { + type CallSig = ((), ObjectArg < crate::classes::MovieWriter >); + let args = (writer.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5160usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MovieWriter", "add_writer", std::ptr::null_mut(), None, args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MovieWriter { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MovieWriter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MovieWriter { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MovieWriter { + + } + impl crate::obj::cap::GodotDefault for MovieWriter { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MovieWriter { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MovieWriter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MovieWriter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MovieWriter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MovieWriter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multi_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multi_mesh.rs new file mode 100644 index 0000000..77f9793 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multi_mesh.rs @@ -0,0 +1,465 @@ +#![doc = "Sidecar module for class [`MultiMesh`][crate::classes::MultiMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MultiMesh` enums](https://docs.godotengine.org/en/stable/classes/class_multimesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MultiMesh.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`multi_mesh`][crate::classes::multi_mesh]: sidecar module with related enum/flag types\n* [`IMultiMesh`][crate::classes::IMultiMesh]: virtual methods\n\n\nSee also [Godot docs for `MultiMesh`](https://docs.godotengine.org/en/stable/classes/class_multimesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`MultiMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct MultiMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MultiMesh`][crate::classes::MultiMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MultiMesh` methods](https://docs.godotengine.org/en/stable/classes/class_multimesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMultiMesh: crate::obj::GodotClass < Base = MultiMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl MultiMesh { + pub fn set_mesh(&mut self, mesh: impl AsObjectArg < crate::classes::Mesh >,) { + type CallSig = ((), ObjectArg < crate::classes::Mesh >); + let args = (mesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5161usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh(&self,) -> Option < Gd < crate::classes::Mesh > > { + type CallSig = (Option < Gd < crate::classes::Mesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5162usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "get_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_colors(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5163usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_use_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_colors(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5164usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "is_using_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_custom_data(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5165usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_use_custom_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_custom_data(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5166usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "is_using_custom_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transform_format(&mut self, format: crate::classes::multi_mesh::TransformFormat,) { + type CallSig = ((), crate::classes::multi_mesh::TransformFormat); + let args = (format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5167usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_transform_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transform_format(&self,) -> crate::classes::multi_mesh::TransformFormat { + type CallSig = (crate::classes::multi_mesh::TransformFormat,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5168usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "get_transform_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_instance_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5169usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_instance_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_instance_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5170usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "get_instance_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visible_instance_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5171usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_visible_instance_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visible_instance_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5172usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "get_visible_instance_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_instance_transform(&mut self, instance: i32, transform: Transform3D,) { + type CallSig = ((), i32, Transform3D); + let args = (instance, transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5173usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_instance_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_instance_transform_2d(&mut self, instance: i32, transform: Transform2D,) { + type CallSig = ((), i32, Transform2D); + let args = (instance, transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5174usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_instance_transform_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_instance_transform(&self, instance: i32,) -> Transform3D { + type CallSig = (Transform3D, i32); + let args = (instance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5175usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "get_instance_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_instance_transform_2d(&self, instance: i32,) -> Transform2D { + type CallSig = (Transform2D, i32); + let args = (instance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5176usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "get_instance_transform_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_instance_color(&mut self, instance: i32, color: Color,) { + type CallSig = ((), i32, Color); + let args = (instance, color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5177usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_instance_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_instance_color(&self, instance: i32,) -> Color { + type CallSig = (Color, i32); + let args = (instance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5178usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "get_instance_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_instance_custom_data(&mut self, instance: i32, custom_data: Color,) { + type CallSig = ((), i32, Color); + let args = (instance, custom_data,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5179usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_instance_custom_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_instance_custom_data(&self, instance: i32,) -> Color { + type CallSig = (Color, i32); + let args = (instance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5180usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "get_instance_custom_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_custom_aabb(&mut self, aabb: Aabb,) { + type CallSig = ((), Aabb); + let args = (aabb,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5181usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_custom_aabb(&self,) -> Aabb { + type CallSig = (Aabb,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5182usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "get_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_aabb(&self,) -> Aabb { + type CallSig = (Aabb,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5183usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "get_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_buffer(&self,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5184usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "get_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_buffer(&mut self, buffer: &PackedFloat32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedFloat32Array >); + let args = (RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5185usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMesh", "set_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MultiMesh { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MultiMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MultiMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for MultiMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MultiMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MultiMesh { + + } + impl crate::obj::cap::GodotDefault for MultiMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MultiMesh { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MultiMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MultiMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MultiMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TransformFormat { + ord: i32 +} +impl TransformFormat { + pub const TRANSFORM_2D: TransformFormat = TransformFormat { + ord: 0i32 + }; + pub const TRANSFORM_3D: TransformFormat = TransformFormat { + ord: 1i32 + }; + +} +impl std::fmt::Debug for TransformFormat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TransformFormat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TransformFormat { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TRANSFORM_2D => "TRANSFORM_2D", Self::TRANSFORM_3D => "TRANSFORM_3D", _ => "", + } + } + fn godot_name(&self) -> &'static str { + self.as_str() + } +} +impl crate::meta::GodotConvert for TransformFormat { + type Via = i32; + +} +impl crate::meta::ToGodot for TransformFormat { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TransformFormat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multi_mesh_instance_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multi_mesh_instance_2d.rs new file mode 100644 index 0000000..db33ac6 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multi_mesh_instance_2d.rs @@ -0,0 +1,270 @@ +#![doc = "Sidecar module for class [`MultiMeshInstance2D`][crate::classes::MultiMeshInstance2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MultiMeshInstance2D` enums](https://docs.godotengine.org/en/stable/classes/class_multimeshinstance2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MultiMeshInstance2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IMultiMeshInstance2D`][crate::classes::IMultiMeshInstance2D]: virtual methods\n\n\nSee also [Godot docs for `MultiMeshInstance2D`](https://docs.godotengine.org/en/stable/classes/class_multimeshinstance2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MultiMeshInstance2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MultiMeshInstance2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MultiMeshInstance2D`][crate::classes::MultiMeshInstance2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MultiMeshInstance2D` methods](https://docs.godotengine.org/en/stable/classes/class_multimeshinstance2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMultiMeshInstance2D: crate::obj::GodotClass < Base = MultiMeshInstance2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl MultiMeshInstance2D { + pub fn set_multimesh(&mut self, multimesh: impl AsObjectArg < crate::classes::MultiMesh >,) { + type CallSig = ((), ObjectArg < crate::classes::MultiMesh >); + let args = (multimesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5186usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMeshInstance2D", "set_multimesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_multimesh(&self,) -> Option < Gd < crate::classes::MultiMesh > > { + type CallSig = (Option < Gd < crate::classes::MultiMesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5187usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMeshInstance2D", "get_multimesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5188usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMeshInstance2D", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5189usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMeshInstance2D", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MultiMeshInstance2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MultiMeshInstance2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MultiMeshInstance2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for MultiMeshInstance2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for MultiMeshInstance2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for MultiMeshInstance2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MultiMeshInstance2D { + + } + impl crate::obj::cap::GodotDefault for MultiMeshInstance2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MultiMeshInstance2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MultiMeshInstance2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MultiMeshInstance2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MultiMeshInstance2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiMeshInstance2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multi_mesh_instance_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multi_mesh_instance_3d.rs new file mode 100644 index 0000000..ef9c0fb --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multi_mesh_instance_3d.rs @@ -0,0 +1,260 @@ +#![doc = "Sidecar module for class [`MultiMeshInstance3D`][crate::classes::MultiMeshInstance3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MultiMeshInstance3D` enums](https://docs.godotengine.org/en/stable/classes/class_multimeshinstance3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MultiMeshInstance3D.`\n\nInherits [`GeometryInstance3D`][crate::classes::GeometryInstance3D].\n\nRelated symbols:\n\n* [`IMultiMeshInstance3D`][crate::classes::IMultiMeshInstance3D]: virtual methods\n\n\nSee also [Godot docs for `MultiMeshInstance3D`](https://docs.godotengine.org/en/stable/classes/class_multimeshinstance3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MultiMeshInstance3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MultiMeshInstance3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MultiMeshInstance3D`][crate::classes::MultiMeshInstance3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MultiMeshInstance3D` methods](https://docs.godotengine.org/en/stable/classes/class_multimeshinstance3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMultiMeshInstance3D: crate::obj::GodotClass < Base = MultiMeshInstance3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl MultiMeshInstance3D { + pub fn set_multimesh(&mut self, multimesh: impl AsObjectArg < crate::classes::MultiMesh >,) { + type CallSig = ((), ObjectArg < crate::classes::MultiMesh >); + let args = (multimesh.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5190usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMeshInstance3D", "set_multimesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_multimesh(&self,) -> Option < Gd < crate::classes::MultiMesh > > { + type CallSig = (Option < Gd < crate::classes::MultiMesh > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5191usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiMeshInstance3D", "get_multimesh", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MultiMeshInstance3D { + type Base = crate::classes::GeometryInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MultiMeshInstance3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MultiMeshInstance3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::GeometryInstance3D > for MultiMeshInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for MultiMeshInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for MultiMeshInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for MultiMeshInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MultiMeshInstance3D { + + } + impl crate::obj::cap::GodotDefault for MultiMeshInstance3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MultiMeshInstance3D { + type Target = crate::classes::GeometryInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MultiMeshInstance3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MultiMeshInstance3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MultiMeshInstance3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiMeshInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::GeometryInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_api.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_api.rs new file mode 100644 index 0000000..3366c3a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_api.rs @@ -0,0 +1,413 @@ +#![doc = "Sidecar module for class [`MultiplayerApi`][crate::classes::MultiplayerApi].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MultiplayerAPI` enums](https://docs.godotengine.org/en/stable/classes/class_multiplayerapi.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MultiplayerAPI.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`multiplayer_api`][crate::classes::multiplayer_api]: sidecar module with related enum/flag types\n* [`IMultiplayerApi`][crate::classes::IMultiplayerApi]: virtual methods\n\n\nSee also [Godot docs for `MultiplayerAPI`](https://docs.godotengine.org/en/stable/classes/class_multiplayerapi.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct MultiplayerApi { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MultiplayerApi`][crate::classes::MultiplayerApi].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MultiplayerAPI` methods](https://docs.godotengine.org/en/stable/classes/class_multiplayerapi.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMultiplayerApi: crate::obj::GodotClass < Base = MultiplayerApi > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl MultiplayerApi { + pub fn has_multiplayer_peer(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5192usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "has_multiplayer_peer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_multiplayer_peer(&mut self,) -> Option < Gd < crate::classes::MultiplayerPeer > > { + type CallSig = (Option < Gd < crate::classes::MultiplayerPeer > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5193usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "get_multiplayer_peer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_multiplayer_peer(&mut self, peer: impl AsObjectArg < crate::classes::MultiplayerPeer >,) { + type CallSig = ((), ObjectArg < crate::classes::MultiplayerPeer >); + let args = (peer.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5194usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "set_multiplayer_peer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_unique_id(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5195usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "get_unique_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_server(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5196usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "is_server", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_remote_sender_id(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5197usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "get_remote_sender_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn poll(&mut self,) -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5198usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "poll", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn rpc_full(&mut self, peer: i32, object: ObjectArg < crate::classes::Object >, method: CowArg < StringName >, arguments: RefArg < VariantArray >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, i32, ObjectArg < crate::classes::Object >, CowArg < 'a0, StringName >, RefArg < 'a1, VariantArray >); + let args = (peer, object, method, arguments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5199usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "rpc", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::rpc_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn rpc(&mut self, peer: i32, object: impl AsObjectArg < crate::classes::Object >, method: impl AsArg < StringName >,) -> crate::global::Error { + self.rpc_ex(peer, object, method,) . done() + } + #[inline] + pub fn rpc_ex < 'a > (&'a mut self, peer: i32, object: impl AsObjectArg < crate::classes::Object >, method: impl AsArg < StringName > + 'a,) -> ExRpc < 'a > { + ExRpc::new(self, peer, object, method,) + } + pub fn object_configuration_add(&mut self, object: impl AsObjectArg < crate::classes::Object >, configuration: &Variant,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, ObjectArg < crate::classes::Object >, RefArg < 'a0, Variant >); + let args = (object.as_object_arg(), RefArg::new(configuration),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5200usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "object_configuration_add", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn object_configuration_remove(&mut self, object: impl AsObjectArg < crate::classes::Object >, configuration: &Variant,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, ObjectArg < crate::classes::Object >, RefArg < 'a0, Variant >); + let args = (object.as_object_arg(), RefArg::new(configuration),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5201usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "object_configuration_remove", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_peers(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5202usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "get_peers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_default_interface(interface_name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (interface_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5203usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "set_default_interface", std::ptr::null_mut(), None, args,) + } + } + pub fn get_default_interface() -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5204usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "get_default_interface", std::ptr::null_mut(), None, args,) + } + } + pub fn create_default_interface() -> Option < Gd < crate::classes::MultiplayerApi > > { + type CallSig = (Option < Gd < crate::classes::MultiplayerApi > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5205usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerApi", "create_default_interface", std::ptr::null_mut(), None, args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MultiplayerApi { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MultiplayerAPI")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MultiplayerApi { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MultiplayerApi { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MultiplayerApi { + + } + impl std::ops::Deref for MultiplayerApi { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MultiplayerApi { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MultiplayerApi`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MultiplayerApi { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiplayerApi > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`MultiplayerApi::rpc_ex`][super::MultiplayerApi::rpc_ex]."] +#[must_use] +pub struct ExRpc < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::MultiplayerApi, peer: i32, object: ObjectCow < crate::classes::Object >, method: CowArg < 'a, StringName >, arguments: CowArg < 'a, VariantArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExRpc < 'a > { + fn new(surround_object: &'a mut re_export::MultiplayerApi, peer: i32, object: impl AsObjectArg < crate::classes::Object >, method: impl AsArg < StringName > + 'a,) -> Self { + let arguments = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, peer: peer, object: object.consume_arg(), method: method.into_arg(), arguments: CowArg::Owned(arguments), + } + } + #[inline] + pub fn arguments(self, arguments: &'a VariantArray) -> Self { + Self { + arguments: CowArg::Borrowed(arguments), .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, peer, object, method, arguments, + } + = self; + re_export::MultiplayerApi::rpc_full(surround_object, peer, object.cow_as_object_arg(), method, arguments.cow_as_arg(),) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `RPCMode`."] +pub struct RpcMode { + ord: i32 +} +impl RpcMode { + #[doc(alias = "RPC_MODE_DISABLED")] + #[doc = "Godot enumerator name: `RPC_MODE_DISABLED`"] + pub const DISABLED: RpcMode = RpcMode { + ord: 0i32 + }; + #[doc(alias = "RPC_MODE_ANY_PEER")] + #[doc = "Godot enumerator name: `RPC_MODE_ANY_PEER`"] + pub const ANY_PEER: RpcMode = RpcMode { + ord: 1i32 + }; + #[doc(alias = "RPC_MODE_AUTHORITY")] + #[doc = "Godot enumerator name: `RPC_MODE_AUTHORITY`"] + pub const AUTHORITY: RpcMode = RpcMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for RpcMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("RpcMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for RpcMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ANY_PEER => "ANY_PEER", Self::AUTHORITY => "AUTHORITY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "RPC_MODE_DISABLED", Self::ANY_PEER => "RPC_MODE_ANY_PEER", Self::AUTHORITY => "RPC_MODE_AUTHORITY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for RpcMode { + type Via = i32; + +} +impl crate::meta::ToGodot for RpcMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for RpcMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_api_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_api_extension.rs new file mode 100644 index 0000000..a2a131f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_api_extension.rs @@ -0,0 +1,226 @@ +#![doc = "Sidecar module for class [`MultiplayerApiExtension`][crate::classes::MultiplayerApiExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MultiplayerAPIExtension` enums](https://docs.godotengine.org/en/stable/classes/class_multiplayerapiextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MultiplayerAPIExtension.`\n\nInherits [`MultiplayerApi`][crate::classes::MultiplayerApi].\n\nRelated symbols:\n\n* [`IMultiplayerApiExtension`][crate::classes::IMultiplayerApiExtension]: virtual methods\n\n\nSee also [Godot docs for `MultiplayerAPIExtension`](https://docs.godotengine.org/en/stable/classes/class_multiplayerapiextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`MultiplayerApiExtension::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct MultiplayerApiExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MultiplayerApiExtension`][crate::classes::MultiplayerApiExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MultiplayerAPIExtension` methods](https://docs.godotengine.org/en/stable/classes/class_multiplayerapiextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMultiplayerApiExtension: crate::obj::GodotClass < Base = MultiplayerApiExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn poll(&mut self,) -> crate::global::Error { + unimplemented !() + } + fn set_multiplayer_peer(&mut self, multiplayer_peer: Option < Gd < crate::classes::MultiplayerPeer > >,) { + unimplemented !() + } + fn get_multiplayer_peer(&mut self,) -> Option < Gd < crate::classes::MultiplayerPeer > > { + unimplemented !() + } + fn get_unique_id(&self,) -> i32 { + unimplemented !() + } + fn get_peer_ids(&self,) -> PackedInt32Array { + unimplemented !() + } + fn rpc(&mut self, peer: i32, object: Option < Gd < crate::classes::Object > >, method: StringName, args: VariantArray,) -> crate::global::Error { + unimplemented !() + } + fn get_remote_sender_id(&self,) -> i32 { + unimplemented !() + } + fn object_configuration_add(&mut self, object: Option < Gd < crate::classes::Object > >, configuration: Variant,) -> crate::global::Error { + unimplemented !() + } + fn object_configuration_remove(&mut self, object: Option < Gd < crate::classes::Object > >, configuration: Variant,) -> crate::global::Error { + unimplemented !() + } + } + impl MultiplayerApiExtension { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MultiplayerApiExtension { + type Base = crate::classes::MultiplayerApi; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MultiplayerAPIExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MultiplayerApiExtension { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::MultiplayerApi > for MultiplayerApiExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MultiplayerApiExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MultiplayerApiExtension { + + } + impl crate::obj::cap::GodotDefault for MultiplayerApiExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MultiplayerApiExtension { + type Target = crate::classes::MultiplayerApi; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MultiplayerApiExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MultiplayerApiExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MultiplayerApiExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiplayerApiExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiplayerApi > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_peer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_peer.rs new file mode 100644 index 0000000..d38b892 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_peer.rs @@ -0,0 +1,520 @@ +#![doc = "Sidecar module for class [`MultiplayerPeer`][crate::classes::MultiplayerPeer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MultiplayerPeer` enums](https://docs.godotengine.org/en/stable/classes/class_multiplayerpeer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MultiplayerPeer.`\n\nInherits [`PacketPeer`][crate::classes::PacketPeer].\n\nRelated symbols:\n\n* [`multiplayer_peer`][crate::classes::multiplayer_peer]: sidecar module with related enum/flag types\n* [`IMultiplayerPeer`][crate::classes::IMultiplayerPeer]: virtual methods\n\n\nSee also [Godot docs for `MultiplayerPeer`](https://docs.godotengine.org/en/stable/classes/class_multiplayerpeer.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct MultiplayerPeer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MultiplayerPeer`][crate::classes::MultiplayerPeer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MultiplayerPeer` methods](https://docs.godotengine.org/en/stable/classes/class_multiplayerpeer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMultiplayerPeer: crate::obj::GodotClass < Base = MultiplayerPeer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl MultiplayerPeer { + pub fn set_transfer_channel(&mut self, channel: i32,) { + type CallSig = ((), i32); + let args = (channel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5206usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "set_transfer_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transfer_channel(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5207usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "get_transfer_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transfer_mode(&mut self, mode: crate::classes::multiplayer_peer::TransferMode,) { + type CallSig = ((), crate::classes::multiplayer_peer::TransferMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5208usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "set_transfer_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transfer_mode(&self,) -> crate::classes::multiplayer_peer::TransferMode { + type CallSig = (crate::classes::multiplayer_peer::TransferMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5209usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "get_transfer_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_target_peer(&mut self, id: i32,) { + type CallSig = ((), i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5210usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "set_target_peer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_packet_peer(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5211usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "get_packet_peer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_packet_channel(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5212usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "get_packet_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_packet_mode(&self,) -> crate::classes::multiplayer_peer::TransferMode { + type CallSig = (crate::classes::multiplayer_peer::TransferMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5213usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "get_packet_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn poll(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5214usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "poll", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn close(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5215usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "close", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn disconnect_peer_full(&mut self, peer: i32, force: bool,) { + type CallSig = ((), i32, bool); + let args = (peer, force,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5216usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "disconnect_peer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::disconnect_peer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn disconnect_peer(&mut self, peer: i32,) { + self.disconnect_peer_ex(peer,) . done() + } + #[inline] + pub fn disconnect_peer_ex < 'a > (&'a mut self, peer: i32,) -> ExDisconnectPeer < 'a > { + ExDisconnectPeer::new(self, peer,) + } + pub fn get_connection_status(&self,) -> crate::classes::multiplayer_peer::ConnectionStatus { + type CallSig = (crate::classes::multiplayer_peer::ConnectionStatus,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5217usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "get_connection_status", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_unique_id(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5218usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "get_unique_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn generate_unique_id(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5219usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "generate_unique_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_refuse_new_connections(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5220usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "set_refuse_new_connections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_refusing_new_connections(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5221usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "is_refusing_new_connections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_server_relay_supported(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5222usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerPeer", "is_server_relay_supported", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const TARGET_PEER_BROADCAST: i32 = 0i32; + pub const TARGET_PEER_SERVER: i32 = 1i32; + + } + impl crate::obj::GodotClass for MultiplayerPeer { + type Base = crate::classes::PacketPeer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MultiplayerPeer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MultiplayerPeer { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PacketPeer > for MultiplayerPeer { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MultiplayerPeer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MultiplayerPeer { + + } + impl std::ops::Deref for MultiplayerPeer { + type Target = crate::classes::PacketPeer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MultiplayerPeer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MultiplayerPeer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MultiplayerPeer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiplayerPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`MultiplayerPeer::disconnect_peer_ex`][super::MultiplayerPeer::disconnect_peer_ex]."] +#[must_use] +pub struct ExDisconnectPeer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::MultiplayerPeer, peer: i32, force: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDisconnectPeer < 'a > { + fn new(surround_object: &'a mut re_export::MultiplayerPeer, peer: i32,) -> Self { + let force = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, peer: peer, force: force, + } + } + #[inline] + pub fn force(self, force: bool) -> Self { + Self { + force: force, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, peer, force, + } + = self; + re_export::MultiplayerPeer::disconnect_peer_full(surround_object, peer, force,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ConnectionStatus { + ord: i32 +} +impl ConnectionStatus { + #[doc(alias = "CONNECTION_DISCONNECTED")] + #[doc = "Godot enumerator name: `CONNECTION_DISCONNECTED`"] + pub const DISCONNECTED: ConnectionStatus = ConnectionStatus { + ord: 0i32 + }; + #[doc(alias = "CONNECTION_CONNECTING")] + #[doc = "Godot enumerator name: `CONNECTION_CONNECTING`"] + pub const CONNECTING: ConnectionStatus = ConnectionStatus { + ord: 1i32 + }; + #[doc(alias = "CONNECTION_CONNECTED")] + #[doc = "Godot enumerator name: `CONNECTION_CONNECTED`"] + pub const CONNECTED: ConnectionStatus = ConnectionStatus { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ConnectionStatus { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ConnectionStatus") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ConnectionStatus { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISCONNECTED => "DISCONNECTED", Self::CONNECTING => "CONNECTING", Self::CONNECTED => "CONNECTED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISCONNECTED => "CONNECTION_DISCONNECTED", Self::CONNECTING => "CONNECTION_CONNECTING", Self::CONNECTED => "CONNECTION_CONNECTED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ConnectionStatus { + type Via = i32; + +} +impl crate::meta::ToGodot for ConnectionStatus { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ConnectionStatus { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TransferMode { + ord: i32 +} +impl TransferMode { + #[doc(alias = "TRANSFER_MODE_UNRELIABLE")] + #[doc = "Godot enumerator name: `TRANSFER_MODE_UNRELIABLE`"] + pub const UNRELIABLE: TransferMode = TransferMode { + ord: 0i32 + }; + #[doc(alias = "TRANSFER_MODE_UNRELIABLE_ORDERED")] + #[doc = "Godot enumerator name: `TRANSFER_MODE_UNRELIABLE_ORDERED`"] + pub const UNRELIABLE_ORDERED: TransferMode = TransferMode { + ord: 1i32 + }; + #[doc(alias = "TRANSFER_MODE_RELIABLE")] + #[doc = "Godot enumerator name: `TRANSFER_MODE_RELIABLE`"] + pub const RELIABLE: TransferMode = TransferMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for TransferMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TransferMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TransferMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNRELIABLE => "UNRELIABLE", Self::UNRELIABLE_ORDERED => "UNRELIABLE_ORDERED", Self::RELIABLE => "RELIABLE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNRELIABLE => "TRANSFER_MODE_UNRELIABLE", Self::UNRELIABLE_ORDERED => "TRANSFER_MODE_UNRELIABLE_ORDERED", Self::RELIABLE => "TRANSFER_MODE_RELIABLE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TransferMode { + type Via = i32; + +} +impl crate::meta::ToGodot for TransferMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TransferMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_peer_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_peer_extension.rs new file mode 100644 index 0000000..2662b07 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_peer_extension.rs @@ -0,0 +1,251 @@ +#![doc = "Sidecar module for class [`MultiplayerPeerExtension`][crate::classes::MultiplayerPeerExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MultiplayerPeerExtension` enums](https://docs.godotengine.org/en/stable/classes/class_multiplayerpeerextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MultiplayerPeerExtension.`\n\nInherits [`MultiplayerPeer`][crate::classes::MultiplayerPeer].\n\nRelated symbols:\n\n* [`IMultiplayerPeerExtension`][crate::classes::IMultiplayerPeerExtension]: virtual methods\n\n\nSee also [Godot docs for `MultiplayerPeerExtension`](https://docs.godotengine.org/en/stable/classes/class_multiplayerpeerextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`MultiplayerPeerExtension::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct MultiplayerPeerExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MultiplayerPeerExtension`][crate::classes::MultiplayerPeerExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MultiplayerPeerExtension` methods](https://docs.godotengine.org/en/stable/classes/class_multiplayerpeerextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMultiplayerPeerExtension: crate::obj::GodotClass < Base = MultiplayerPeerExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn get_packet(&mut self, r_buffer: * mut * const u8, r_buffer_size: * mut i32,) -> crate::global::Error { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn put_packet(&mut self, p_buffer: * const u8, p_buffer_size: i32,) -> crate::global::Error { + unimplemented !() + } + fn get_available_packet_count(&self,) -> i32; + fn get_max_packet_size(&self,) -> i32; + fn get_packet_script(&mut self,) -> PackedByteArray { + unimplemented !() + } + fn put_packet_script(&mut self, p_buffer: PackedByteArray,) -> crate::global::Error { + unimplemented !() + } + fn get_packet_channel(&self,) -> i32; + fn get_packet_mode(&self,) -> crate::classes::multiplayer_peer::TransferMode; + fn set_transfer_channel(&mut self, p_channel: i32,); + fn get_transfer_channel(&self,) -> i32; + fn set_transfer_mode(&mut self, p_mode: crate::classes::multiplayer_peer::TransferMode,); + fn get_transfer_mode(&self,) -> crate::classes::multiplayer_peer::TransferMode; + fn set_target_peer(&mut self, p_peer: i32,); + fn get_packet_peer(&self,) -> i32; + fn is_server(&self,) -> bool; + fn poll(&mut self,); + fn close(&mut self,); + fn disconnect_peer(&mut self, p_peer: i32, p_force: bool,); + fn get_unique_id(&self,) -> i32; + fn set_refuse_new_connections(&mut self, p_enable: bool,) { + unimplemented !() + } + fn is_refusing_new_connections(&self,) -> bool { + unimplemented !() + } + fn is_server_relay_supported(&self,) -> bool { + unimplemented !() + } + fn get_connection_status(&self,) -> crate::classes::multiplayer_peer::ConnectionStatus; + + } + impl MultiplayerPeerExtension { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MultiplayerPeerExtension { + type Base = crate::classes::MultiplayerPeer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MultiplayerPeerExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MultiplayerPeerExtension { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::MultiplayerPeer > for MultiplayerPeerExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::PacketPeer > for MultiplayerPeerExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for MultiplayerPeerExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MultiplayerPeerExtension { + + } + impl crate::obj::cap::GodotDefault for MultiplayerPeerExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MultiplayerPeerExtension { + type Target = crate::classes::MultiplayerPeer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MultiplayerPeerExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MultiplayerPeerExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MultiplayerPeerExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiplayerPeerExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiplayerPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_spawner.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_spawner.rs new file mode 100644 index 0000000..820960e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_spawner.rs @@ -0,0 +1,348 @@ +#![doc = "Sidecar module for class [`MultiplayerSpawner`][crate::classes::MultiplayerSpawner].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MultiplayerSpawner` enums](https://docs.godotengine.org/en/stable/classes/class_multiplayerspawner.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MultiplayerSpawner.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`multiplayer_spawner`][crate::classes::multiplayer_spawner]: sidecar module with related enum/flag types\n* [`IMultiplayerSpawner`][crate::classes::IMultiplayerSpawner]: virtual methods\n\n\nSee also [Godot docs for `MultiplayerSpawner`](https://docs.godotengine.org/en/stable/classes/class_multiplayerspawner.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MultiplayerSpawner::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MultiplayerSpawner { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MultiplayerSpawner`][crate::classes::MultiplayerSpawner].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MultiplayerSpawner` methods](https://docs.godotengine.org/en/stable/classes/class_multiplayerspawner.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMultiplayerSpawner: crate::obj::GodotClass < Base = MultiplayerSpawner > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl MultiplayerSpawner { + pub fn add_spawnable_scene(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5223usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSpawner", "add_spawnable_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spawnable_scene_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5224usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSpawner", "get_spawnable_scene_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spawnable_scene(&self, index: i32,) -> GString { + type CallSig = (GString, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5225usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSpawner", "get_spawnable_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_spawnable_scenes(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5226usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSpawner", "clear_spawnable_scenes", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn spawn_full(&mut self, data: RefArg < Variant >,) -> Option < Gd < crate::classes::Node > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Node > >, RefArg < 'a0, Variant >); + let args = (data,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5227usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSpawner", "spawn", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::spawn_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn spawn(&mut self,) -> Option < Gd < crate::classes::Node > > { + self.spawn_ex() . done() + } + #[inline] + pub fn spawn_ex < 'a > (&'a mut self,) -> ExSpawn < 'a > { + ExSpawn::new(self,) + } + pub fn get_spawn_path(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5228usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSpawner", "get_spawn_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_spawn_path(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5229usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSpawner", "set_spawn_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spawn_limit(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5230usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSpawner", "get_spawn_limit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_spawn_limit(&mut self, limit: u32,) { + type CallSig = ((), u32); + let args = (limit,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5231usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSpawner", "set_spawn_limit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spawn_function(&self,) -> Callable { + type CallSig = (Callable,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5232usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSpawner", "get_spawn_function", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_spawn_function(&mut self, spawn_function: &Callable,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >); + let args = (RefArg::new(spawn_function),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5233usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSpawner", "set_spawn_function", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MultiplayerSpawner { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MultiplayerSpawner")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MultiplayerSpawner { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for MultiplayerSpawner { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MultiplayerSpawner { + + } + impl crate::obj::cap::GodotDefault for MultiplayerSpawner { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MultiplayerSpawner { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MultiplayerSpawner { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MultiplayerSpawner`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MultiplayerSpawner { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiplayerSpawner > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`MultiplayerSpawner::spawn_ex`][super::MultiplayerSpawner::spawn_ex]."] +#[must_use] +pub struct ExSpawn < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::MultiplayerSpawner, data: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSpawn < 'a > { + fn new(surround_object: &'a mut re_export::MultiplayerSpawner,) -> Self { + let data = Variant::nil(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, data: CowArg::Owned(data), + } + } + #[inline] + pub fn data(self, data: &'a Variant) -> Self { + Self { + data: CowArg::Borrowed(data), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Node > > { + let Self { + _phantom, surround_object, data, + } + = self; + re_export::MultiplayerSpawner::spawn_full(surround_object, data.cow_as_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_synchronizer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_synchronizer.rs new file mode 100644 index 0000000..9e7dc2b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/multiplayer_synchronizer.rs @@ -0,0 +1,471 @@ +#![doc = "Sidecar module for class [`MultiplayerSynchronizer`][crate::classes::MultiplayerSynchronizer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `MultiplayerSynchronizer` enums](https://docs.godotengine.org/en/stable/classes/class_multiplayersynchronizer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `MultiplayerSynchronizer.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`multiplayer_synchronizer`][crate::classes::multiplayer_synchronizer]: sidecar module with related enum/flag types\n* [`IMultiplayerSynchronizer`][crate::classes::IMultiplayerSynchronizer]: virtual methods\n\n\nSee also [Godot docs for `MultiplayerSynchronizer`](https://docs.godotengine.org/en/stable/classes/class_multiplayersynchronizer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`MultiplayerSynchronizer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct MultiplayerSynchronizer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`MultiplayerSynchronizer`][crate::classes::MultiplayerSynchronizer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `MultiplayerSynchronizer` methods](https://docs.godotengine.org/en/stable/classes/class_multiplayersynchronizer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IMultiplayerSynchronizer: crate::obj::GodotClass < Base = MultiplayerSynchronizer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl MultiplayerSynchronizer { + pub fn set_root_path(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5234usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "set_root_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_path(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5235usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "get_root_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_replication_interval(&mut self, milliseconds: f64,) { + type CallSig = ((), f64); + let args = (milliseconds,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5236usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "set_replication_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_replication_interval(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5237usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "get_replication_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_delta_interval(&mut self, milliseconds: f64,) { + type CallSig = ((), f64); + let args = (milliseconds,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5238usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "set_delta_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_delta_interval(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5239usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "get_delta_interval", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_replication_config(&mut self, config: impl AsObjectArg < crate::classes::SceneReplicationConfig >,) { + type CallSig = ((), ObjectArg < crate::classes::SceneReplicationConfig >); + let args = (config.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5240usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "set_replication_config", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_replication_config(&mut self,) -> Option < Gd < crate::classes::SceneReplicationConfig > > { + type CallSig = (Option < Gd < crate::classes::SceneReplicationConfig > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5241usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "get_replication_config", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_update_mode(&mut self, mode: crate::classes::multiplayer_synchronizer::VisibilityUpdateMode,) { + type CallSig = ((), crate::classes::multiplayer_synchronizer::VisibilityUpdateMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5242usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "set_visibility_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_update_mode(&self,) -> crate::classes::multiplayer_synchronizer::VisibilityUpdateMode { + type CallSig = (crate::classes::multiplayer_synchronizer::VisibilityUpdateMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5243usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "get_visibility_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn update_visibility_full(&mut self, for_peer: i32,) { + type CallSig = ((), i32); + let args = (for_peer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5244usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "update_visibility", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::update_visibility_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn update_visibility(&mut self,) { + self.update_visibility_ex() . done() + } + #[inline] + pub fn update_visibility_ex < 'a > (&'a mut self,) -> ExUpdateVisibility < 'a > { + ExUpdateVisibility::new(self,) + } + pub fn set_visibility_public(&mut self, visible: bool,) { + type CallSig = ((), bool); + let args = (visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5245usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "set_visibility_public", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_visibility_public(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5246usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "is_visibility_public", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_visibility_filter(&mut self, filter: &Callable,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >); + let args = (RefArg::new(filter),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5247usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "add_visibility_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_visibility_filter(&mut self, filter: &Callable,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >); + let args = (RefArg::new(filter),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5248usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "remove_visibility_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_for(&mut self, peer: i32, visible: bool,) { + type CallSig = ((), i32, bool); + let args = (peer, visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5249usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "set_visibility_for", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_for(&self, peer: i32,) -> bool { + type CallSig = (bool, i32); + let args = (peer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5250usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "MultiplayerSynchronizer", "get_visibility_for", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for MultiplayerSynchronizer { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"MultiplayerSynchronizer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for MultiplayerSynchronizer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for MultiplayerSynchronizer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for MultiplayerSynchronizer { + + } + impl crate::obj::cap::GodotDefault for MultiplayerSynchronizer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for MultiplayerSynchronizer { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for MultiplayerSynchronizer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`MultiplayerSynchronizer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_MultiplayerSynchronizer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiplayerSynchronizer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`MultiplayerSynchronizer::update_visibility_ex`][super::MultiplayerSynchronizer::update_visibility_ex]."] +#[must_use] +pub struct ExUpdateVisibility < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::MultiplayerSynchronizer, for_peer: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExUpdateVisibility < 'a > { + fn new(surround_object: &'a mut re_export::MultiplayerSynchronizer,) -> Self { + let for_peer = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, for_peer: for_peer, + } + } + #[inline] + pub fn for_peer(self, for_peer: i32) -> Self { + Self { + for_peer: for_peer, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, for_peer, + } + = self; + re_export::MultiplayerSynchronizer::update_visibility_full(surround_object, for_peer,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct VisibilityUpdateMode { + ord: i32 +} +impl VisibilityUpdateMode { + #[doc(alias = "VISIBILITY_PROCESS_IDLE")] + #[doc = "Godot enumerator name: `VISIBILITY_PROCESS_IDLE`"] + pub const IDLE: VisibilityUpdateMode = VisibilityUpdateMode { + ord: 0i32 + }; + #[doc(alias = "VISIBILITY_PROCESS_PHYSICS")] + #[doc = "Godot enumerator name: `VISIBILITY_PROCESS_PHYSICS`"] + pub const PHYSICS: VisibilityUpdateMode = VisibilityUpdateMode { + ord: 1i32 + }; + #[doc(alias = "VISIBILITY_PROCESS_NONE")] + #[doc = "Godot enumerator name: `VISIBILITY_PROCESS_NONE`"] + pub const NONE: VisibilityUpdateMode = VisibilityUpdateMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for VisibilityUpdateMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("VisibilityUpdateMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for VisibilityUpdateMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IDLE => "IDLE", Self::PHYSICS => "PHYSICS", Self::NONE => "NONE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IDLE => "VISIBILITY_PROCESS_IDLE", Self::PHYSICS => "VISIBILITY_PROCESS_PHYSICS", Self::NONE => "VISIBILITY_PROCESS_NONE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for VisibilityUpdateMode { + type Via = i32; + +} +impl crate::meta::ToGodot for VisibilityUpdateMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for VisibilityUpdateMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/native_menu.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/native_menu.rs new file mode 100644 index 0000000..e95be14 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/native_menu.rs @@ -0,0 +1,1413 @@ +#![doc = "Sidecar module for class [`NativeMenu`][crate::classes::NativeMenu].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `NativeMenu` enums](https://docs.godotengine.org/en/stable/classes/class_nativemenu.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `NativeMenu.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`native_menu`][crate::classes::native_menu]: sidecar module with related enum/flag types\n* [`INativeMenu`][crate::classes::INativeMenu]: virtual methods\n\n\nSee also [Godot docs for `NativeMenu`](https://docs.godotengine.org/en/stable/classes/class_nativemenu.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`NativeMenu::singleton()`][NativeMenu::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct NativeMenu { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`NativeMenu`][crate::classes::NativeMenu].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `NativeMenu` methods](https://docs.godotengine.org/en/stable/classes/class_nativemenu.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait INativeMenu: crate::obj::GodotClass < Base = NativeMenu > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl NativeMenu { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"NativeMenu"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn has_feature(&self, feature: crate::classes::native_menu::Feature,) -> bool { + type CallSig = (bool, crate::classes::native_menu::Feature); + let args = (feature,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5251usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "has_feature", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_system_menu(&self, menu_id: crate::classes::native_menu::SystemMenus,) -> bool { + type CallSig = (bool, crate::classes::native_menu::SystemMenus); + let args = (menu_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5252usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "has_system_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_system_menu(&self, menu_id: crate::classes::native_menu::SystemMenus,) -> Rid { + type CallSig = (Rid, crate::classes::native_menu::SystemMenus); + let args = (menu_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5253usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_system_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_system_menu_name(&self, menu_id: crate::classes::native_menu::SystemMenus,) -> GString { + type CallSig = (GString, crate::classes::native_menu::SystemMenus); + let args = (menu_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5254usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_system_menu_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_menu(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5255usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "create_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_menu(&self, rid: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5256usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "has_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn free_menu(&mut self, rid: Rid,) { + type CallSig = ((), Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5257usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "free_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self, rid: Rid,) -> Vector2 { + type CallSig = (Vector2, Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5258usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn popup(&mut self, rid: Rid, position: Vector2i,) { + type CallSig = ((), Rid, Vector2i); + let args = (rid, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5259usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "popup", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_interface_direction(&mut self, rid: Rid, is_rtl: bool,) { + type CallSig = ((), Rid, bool); + let args = (rid, is_rtl,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5260usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_interface_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_popup_open_callback(&mut self, rid: Rid, callback: &Callable,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Callable >); + let args = (rid, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5261usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_popup_open_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_popup_open_callback(&self, rid: Rid,) -> Callable { + type CallSig = (Callable, Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5262usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_popup_open_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_popup_close_callback(&mut self, rid: Rid, callback: &Callable,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Callable >); + let args = (rid, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5263usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_popup_close_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_popup_close_callback(&self, rid: Rid,) -> Callable { + type CallSig = (Callable, Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5264usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_popup_close_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_minimum_width(&mut self, rid: Rid, width: f32,) { + type CallSig = ((), Rid, f32); + let args = (rid, width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5265usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_minimum_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_minimum_width(&self, rid: Rid,) -> f32 { + type CallSig = (f32, Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5266usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_minimum_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_opened(&self, rid: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5267usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "is_opened", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_submenu_item_full(&mut self, rid: Rid, label: CowArg < GString >, submenu_rid: Rid, tag: RefArg < Variant >, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, > = (i32, Rid, CowArg < 'a0, GString >, Rid, RefArg < 'a1, Variant >, i32); + let args = (rid, label, submenu_rid, tag, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5268usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "add_submenu_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_submenu_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_submenu_item(&mut self, rid: Rid, label: impl AsArg < GString >, submenu_rid: Rid,) -> i32 { + self.add_submenu_item_ex(rid, label, submenu_rid,) . done() + } + #[inline] + pub fn add_submenu_item_ex < 'a > (&'a mut self, rid: Rid, label: impl AsArg < GString > + 'a, submenu_rid: Rid,) -> ExAddSubmenuItem < 'a > { + ExAddSubmenuItem::new(self, rid, label, submenu_rid,) + } + pub(crate) fn add_item_full(&mut self, rid: Rid, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (i32, Rid, CowArg < 'a0, GString >, RefArg < 'a1, Callable >, RefArg < 'a2, Callable >, RefArg < 'a3, Variant >, crate::global::Key, i32); + let args = (rid, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5269usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "add_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_item(&mut self, rid: Rid, label: impl AsArg < GString >,) -> i32 { + self.add_item_ex(rid, label,) . done() + } + #[inline] + pub fn add_item_ex < 'a > (&'a mut self, rid: Rid, label: impl AsArg < GString > + 'a,) -> ExAddItem < 'a > { + ExAddItem::new(self, rid, label,) + } + pub(crate) fn add_check_item_full(&mut self, rid: Rid, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (i32, Rid, CowArg < 'a0, GString >, RefArg < 'a1, Callable >, RefArg < 'a2, Callable >, RefArg < 'a3, Variant >, crate::global::Key, i32); + let args = (rid, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5270usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "add_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_check_item(&mut self, rid: Rid, label: impl AsArg < GString >,) -> i32 { + self.add_check_item_ex(rid, label,) . done() + } + #[inline] + pub fn add_check_item_ex < 'a > (&'a mut self, rid: Rid, label: impl AsArg < GString > + 'a,) -> ExAddCheckItem < 'a > { + ExAddCheckItem::new(self, rid, label,) + } + pub(crate) fn add_icon_item_full(&mut self, rid: Rid, icon: ObjectArg < crate::classes::Texture2D >, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (i32, Rid, ObjectArg < crate::classes::Texture2D >, CowArg < 'a0, GString >, RefArg < 'a1, Callable >, RefArg < 'a2, Callable >, RefArg < 'a3, Variant >, crate::global::Key, i32); + let args = (rid, icon, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5271usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "add_icon_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_icon_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_icon_item(&mut self, rid: Rid, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString >,) -> i32 { + self.add_icon_item_ex(rid, icon, label,) . done() + } + #[inline] + pub fn add_icon_item_ex < 'a > (&'a mut self, rid: Rid, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> ExAddIconItem < 'a > { + ExAddIconItem::new(self, rid, icon, label,) + } + pub(crate) fn add_icon_check_item_full(&mut self, rid: Rid, icon: ObjectArg < crate::classes::Texture2D >, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (i32, Rid, ObjectArg < crate::classes::Texture2D >, CowArg < 'a0, GString >, RefArg < 'a1, Callable >, RefArg < 'a2, Callable >, RefArg < 'a3, Variant >, crate::global::Key, i32); + let args = (rid, icon, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5272usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "add_icon_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_icon_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_icon_check_item(&mut self, rid: Rid, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString >,) -> i32 { + self.add_icon_check_item_ex(rid, icon, label,) . done() + } + #[inline] + pub fn add_icon_check_item_ex < 'a > (&'a mut self, rid: Rid, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> ExAddIconCheckItem < 'a > { + ExAddIconCheckItem::new(self, rid, icon, label,) + } + pub(crate) fn add_radio_check_item_full(&mut self, rid: Rid, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (i32, Rid, CowArg < 'a0, GString >, RefArg < 'a1, Callable >, RefArg < 'a2, Callable >, RefArg < 'a3, Variant >, crate::global::Key, i32); + let args = (rid, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5273usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "add_radio_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_radio_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_radio_check_item(&mut self, rid: Rid, label: impl AsArg < GString >,) -> i32 { + self.add_radio_check_item_ex(rid, label,) . done() + } + #[inline] + pub fn add_radio_check_item_ex < 'a > (&'a mut self, rid: Rid, label: impl AsArg < GString > + 'a,) -> ExAddRadioCheckItem < 'a > { + ExAddRadioCheckItem::new(self, rid, label,) + } + pub(crate) fn add_icon_radio_check_item_full(&mut self, rid: Rid, icon: ObjectArg < crate::classes::Texture2D >, label: CowArg < GString >, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (i32, Rid, ObjectArg < crate::classes::Texture2D >, CowArg < 'a0, GString >, RefArg < 'a1, Callable >, RefArg < 'a2, Callable >, RefArg < 'a3, Variant >, crate::global::Key, i32); + let args = (rid, icon, label, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5274usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "add_icon_radio_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_icon_radio_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_icon_radio_check_item(&mut self, rid: Rid, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString >,) -> i32 { + self.add_icon_radio_check_item_ex(rid, icon, label,) . done() + } + #[inline] + pub fn add_icon_radio_check_item_ex < 'a > (&'a mut self, rid: Rid, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> ExAddIconRadioCheckItem < 'a > { + ExAddIconRadioCheckItem::new(self, rid, icon, label,) + } + pub(crate) fn add_multistate_item_full(&mut self, rid: Rid, label: CowArg < GString >, max_states: i32, default_state: i32, callback: RefArg < Callable >, key_callback: RefArg < Callable >, tag: RefArg < Variant >, accelerator: crate::global::Key, index: i32,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (i32, Rid, CowArg < 'a0, GString >, i32, i32, RefArg < 'a1, Callable >, RefArg < 'a2, Callable >, RefArg < 'a3, Variant >, crate::global::Key, i32); + let args = (rid, label, max_states, default_state, callback, key_callback, tag, accelerator, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5275usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "add_multistate_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_multistate_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_multistate_item(&mut self, rid: Rid, label: impl AsArg < GString >, max_states: i32, default_state: i32,) -> i32 { + self.add_multistate_item_ex(rid, label, max_states, default_state,) . done() + } + #[inline] + pub fn add_multistate_item_ex < 'a > (&'a mut self, rid: Rid, label: impl AsArg < GString > + 'a, max_states: i32, default_state: i32,) -> ExAddMultistateItem < 'a > { + ExAddMultistateItem::new(self, rid, label, max_states, default_state,) + } + pub(crate) fn add_separator_full(&mut self, rid: Rid, index: i32,) -> i32 { + type CallSig = (i32, Rid, i32); + let args = (rid, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5276usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "add_separator", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_separator_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_separator(&mut self, rid: Rid,) -> i32 { + self.add_separator_ex(rid,) . done() + } + #[inline] + pub fn add_separator_ex < 'a > (&'a mut self, rid: Rid,) -> ExAddSeparator < 'a > { + ExAddSeparator::new(self, rid,) + } + pub fn find_item_index_with_text(&self, rid: Rid, text: impl AsArg < GString >,) -> i32 { + type CallSig < 'a0, > = (i32, Rid, CowArg < 'a0, GString >); + let args = (rid, text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5277usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "find_item_index_with_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_item_index_with_tag(&self, rid: Rid, tag: &Variant,) -> i32 { + type CallSig < 'a0, > = (i32, Rid, RefArg < 'a0, Variant >); + let args = (rid, RefArg::new(tag),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5278usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "find_item_index_with_tag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_item_index_with_submenu(&self, rid: Rid, submenu_rid: Rid,) -> i32 { + type CallSig = (i32, Rid, Rid); + let args = (rid, submenu_rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5279usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "find_item_index_with_submenu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_checked(&self, rid: Rid, idx: i32,) -> bool { + type CallSig = (bool, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5280usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "is_item_checked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_checkable(&self, rid: Rid, idx: i32,) -> bool { + type CallSig = (bool, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5281usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "is_item_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_radio_checkable(&self, rid: Rid, idx: i32,) -> bool { + type CallSig = (bool, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5282usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "is_item_radio_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_callback(&self, rid: Rid, idx: i32,) -> Callable { + type CallSig = (Callable, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5283usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_key_callback(&self, rid: Rid, idx: i32,) -> Callable { + type CallSig = (Callable, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5284usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_key_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_tag(&self, rid: Rid, idx: i32,) -> Variant { + type CallSig = (Variant, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5285usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_tag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_text(&self, rid: Rid, idx: i32,) -> GString { + type CallSig = (GString, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5286usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_submenu(&self, rid: Rid, idx: i32,) -> Rid { + type CallSig = (Rid, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5287usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_submenu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_accelerator(&self, rid: Rid, idx: i32,) -> crate::global::Key { + type CallSig = (crate::global::Key, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5288usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_accelerator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_disabled(&self, rid: Rid, idx: i32,) -> bool { + type CallSig = (bool, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5289usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "is_item_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_hidden(&self, rid: Rid, idx: i32,) -> bool { + type CallSig = (bool, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5290usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "is_item_hidden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_tooltip(&self, rid: Rid, idx: i32,) -> GString { + type CallSig = (GString, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5291usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_state(&self, rid: Rid, idx: i32,) -> i32 { + type CallSig = (i32, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5292usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_max_states(&self, rid: Rid, idx: i32,) -> i32 { + type CallSig = (i32, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5293usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_max_states", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_icon(&self, rid: Rid, idx: i32,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5294usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_indentation_level(&self, rid: Rid, idx: i32,) -> i32 { + type CallSig = (i32, Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5295usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_indentation_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_checked(&mut self, rid: Rid, idx: i32, checked: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (rid, idx, checked,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5296usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_checked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_checkable(&mut self, rid: Rid, idx: i32, checkable: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (rid, idx, checkable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5297usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_radio_checkable(&mut self, rid: Rid, idx: i32, checkable: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (rid, idx, checkable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5298usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_radio_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_callback(&mut self, rid: Rid, idx: i32, callback: &Callable,) { + type CallSig < 'a0, > = ((), Rid, i32, RefArg < 'a0, Callable >); + let args = (rid, idx, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5299usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_hover_callbacks(&mut self, rid: Rid, idx: i32, callback: &Callable,) { + type CallSig < 'a0, > = ((), Rid, i32, RefArg < 'a0, Callable >); + let args = (rid, idx, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5300usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_hover_callbacks", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_key_callback(&mut self, rid: Rid, idx: i32, key_callback: &Callable,) { + type CallSig < 'a0, > = ((), Rid, i32, RefArg < 'a0, Callable >); + let args = (rid, idx, RefArg::new(key_callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5301usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_key_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_tag(&mut self, rid: Rid, idx: i32, tag: &Variant,) { + type CallSig < 'a0, > = ((), Rid, i32, RefArg < 'a0, Variant >); + let args = (rid, idx, RefArg::new(tag),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5302usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_tag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_text(&mut self, rid: Rid, idx: i32, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), Rid, i32, CowArg < 'a0, GString >); + let args = (rid, idx, text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5303usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_submenu(&mut self, rid: Rid, idx: i32, submenu_rid: Rid,) { + type CallSig = ((), Rid, i32, Rid); + let args = (rid, idx, submenu_rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5304usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_submenu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_accelerator(&mut self, rid: Rid, idx: i32, keycode: crate::global::Key,) { + type CallSig = ((), Rid, i32, crate::global::Key); + let args = (rid, idx, keycode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5305usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_accelerator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_disabled(&mut self, rid: Rid, idx: i32, disabled: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (rid, idx, disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5306usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_hidden(&mut self, rid: Rid, idx: i32, hidden: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (rid, idx, hidden,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5307usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_hidden", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_tooltip(&mut self, rid: Rid, idx: i32, tooltip: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), Rid, i32, CowArg < 'a0, GString >); + let args = (rid, idx, tooltip.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5308usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_state(&mut self, rid: Rid, idx: i32, state: i32,) { + type CallSig = ((), Rid, i32, i32); + let args = (rid, idx, state,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5309usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_max_states(&mut self, rid: Rid, idx: i32, max_states: i32,) { + type CallSig = ((), Rid, i32, i32); + let args = (rid, idx, max_states,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5310usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_max_states", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_icon(&mut self, rid: Rid, idx: i32, icon: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), Rid, i32, ObjectArg < crate::classes::Texture2D >); + let args = (rid, idx, icon.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5311usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_indentation_level(&mut self, rid: Rid, idx: i32, level: i32,) { + type CallSig = ((), Rid, i32, i32); + let args = (rid, idx, level,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5312usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "set_item_indentation_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_count(&self, rid: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5313usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "get_item_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_system_menu(&self, rid: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5314usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "is_system_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_item(&mut self, rid: Rid, idx: i32,) { + type CallSig = ((), Rid, i32); + let args = (rid, idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5315usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "remove_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self, rid: Rid,) { + type CallSig = ((), Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5316usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NativeMenu", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for NativeMenu { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"NativeMenu")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for NativeMenu { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for NativeMenu { + + } + impl std::ops::Deref for NativeMenu { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for NativeMenu { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`NativeMenu`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_NativeMenu { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::NativeMenu > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`NativeMenu::add_submenu_item_ex`][super::NativeMenu::add_submenu_item_ex]."] +#[must_use] +pub struct ExAddSubmenuItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::NativeMenu, rid: Rid, label: CowArg < 'a, GString >, submenu_rid: Rid, tag: CowArg < 'a, Variant >, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddSubmenuItem < 'a > { + fn new(surround_object: &'a mut re_export::NativeMenu, rid: Rid, label: impl AsArg < GString > + 'a, submenu_rid: Rid,) -> Self { + let tag = Variant::nil(); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rid: rid, label: label.into_arg(), submenu_rid: submenu_rid, tag: CowArg::Owned(tag), index: index, + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, rid, label, submenu_rid, tag, index, + } + = self; + re_export::NativeMenu::add_submenu_item_full(surround_object, rid, label, submenu_rid, tag.cow_as_arg(), index,) + } +} +#[doc = "Default-param extender for [`NativeMenu::add_item_ex`][super::NativeMenu::add_item_ex]."] +#[must_use] +pub struct ExAddItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::NativeMenu, rid: Rid, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddItem < 'a > { + fn new(surround_object: &'a mut re_export::NativeMenu, rid: Rid, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rid: rid, label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, rid, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::NativeMenu::add_item_full(surround_object, rid, label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`NativeMenu::add_check_item_ex`][super::NativeMenu::add_check_item_ex]."] +#[must_use] +pub struct ExAddCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::NativeMenu, rid: Rid, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::NativeMenu, rid: Rid, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rid: rid, label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, rid, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::NativeMenu::add_check_item_full(surround_object, rid, label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`NativeMenu::add_icon_item_ex`][super::NativeMenu::add_icon_item_ex]."] +#[must_use] +pub struct ExAddIconItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::NativeMenu, rid: Rid, icon: ObjectCow < crate::classes::Texture2D >, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddIconItem < 'a > { + fn new(surround_object: &'a mut re_export::NativeMenu, rid: Rid, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rid: rid, icon: icon.consume_arg(), label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, rid, icon, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::NativeMenu::add_icon_item_full(surround_object, rid, icon.cow_as_object_arg(), label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`NativeMenu::add_icon_check_item_ex`][super::NativeMenu::add_icon_check_item_ex]."] +#[must_use] +pub struct ExAddIconCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::NativeMenu, rid: Rid, icon: ObjectCow < crate::classes::Texture2D >, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddIconCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::NativeMenu, rid: Rid, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rid: rid, icon: icon.consume_arg(), label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, rid, icon, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::NativeMenu::add_icon_check_item_full(surround_object, rid, icon.cow_as_object_arg(), label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`NativeMenu::add_radio_check_item_ex`][super::NativeMenu::add_radio_check_item_ex]."] +#[must_use] +pub struct ExAddRadioCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::NativeMenu, rid: Rid, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddRadioCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::NativeMenu, rid: Rid, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rid: rid, label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, rid, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::NativeMenu::add_radio_check_item_full(surround_object, rid, label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`NativeMenu::add_icon_radio_check_item_ex`][super::NativeMenu::add_icon_radio_check_item_ex]."] +#[must_use] +pub struct ExAddIconRadioCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::NativeMenu, rid: Rid, icon: ObjectCow < crate::classes::Texture2D >, label: CowArg < 'a, GString >, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddIconRadioCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::NativeMenu, rid: Rid, icon: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rid: rid, icon: icon.consume_arg(), label: label.into_arg(), callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, rid, icon, label, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::NativeMenu::add_icon_radio_check_item_full(surround_object, rid, icon.cow_as_object_arg(), label, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`NativeMenu::add_multistate_item_ex`][super::NativeMenu::add_multistate_item_ex]."] +#[must_use] +pub struct ExAddMultistateItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::NativeMenu, rid: Rid, label: CowArg < 'a, GString >, max_states: i32, default_state: i32, callback: CowArg < 'a, Callable >, key_callback: CowArg < 'a, Callable >, tag: CowArg < 'a, Variant >, accelerator: crate::global::Key, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddMultistateItem < 'a > { + fn new(surround_object: &'a mut re_export::NativeMenu, rid: Rid, label: impl AsArg < GString > + 'a, max_states: i32, default_state: i32,) -> Self { + let callback = Callable::invalid(); + let key_callback = Callable::invalid(); + let tag = Variant::nil(); + let accelerator = crate::obj::EngineEnum::from_ord(0); + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rid: rid, label: label.into_arg(), max_states: max_states, default_state: default_state, callback: CowArg::Owned(callback), key_callback: CowArg::Owned(key_callback), tag: CowArg::Owned(tag), accelerator: accelerator, index: index, + } + } + #[inline] + pub fn callback(self, callback: &'a Callable) -> Self { + Self { + callback: CowArg::Borrowed(callback), .. self + } + } + #[inline] + pub fn key_callback(self, key_callback: &'a Callable) -> Self { + Self { + key_callback: CowArg::Borrowed(key_callback), .. self + } + } + #[inline] + pub fn tag(self, tag: &'a Variant) -> Self { + Self { + tag: CowArg::Borrowed(tag), .. self + } + } + #[inline] + pub fn accelerator(self, accelerator: crate::global::Key) -> Self { + Self { + accelerator: accelerator, .. self + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, rid, label, max_states, default_state, callback, key_callback, tag, accelerator, index, + } + = self; + re_export::NativeMenu::add_multistate_item_full(surround_object, rid, label, max_states, default_state, callback.cow_as_arg(), key_callback.cow_as_arg(), tag.cow_as_arg(), accelerator, index,) + } +} +#[doc = "Default-param extender for [`NativeMenu::add_separator_ex`][super::NativeMenu::add_separator_ex]."] +#[must_use] +pub struct ExAddSeparator < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::NativeMenu, rid: Rid, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddSeparator < 'a > { + fn new(surround_object: &'a mut re_export::NativeMenu, rid: Rid,) -> Self { + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rid: rid, index: index, + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, rid, index, + } + = self; + re_export::NativeMenu::add_separator_full(surround_object, rid, index,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Feature { + ord: i32 +} +impl Feature { + #[doc(alias = "FEATURE_GLOBAL_MENU")] + #[doc = "Godot enumerator name: `FEATURE_GLOBAL_MENU`"] + pub const GLOBAL_MENU: Feature = Feature { + ord: 0i32 + }; + #[doc(alias = "FEATURE_POPUP_MENU")] + #[doc = "Godot enumerator name: `FEATURE_POPUP_MENU`"] + pub const POPUP_MENU: Feature = Feature { + ord: 1i32 + }; + #[doc(alias = "FEATURE_OPEN_CLOSE_CALLBACK")] + #[doc = "Godot enumerator name: `FEATURE_OPEN_CLOSE_CALLBACK`"] + pub const OPEN_CLOSE_CALLBACK: Feature = Feature { + ord: 2i32 + }; + #[doc(alias = "FEATURE_HOVER_CALLBACK")] + #[doc = "Godot enumerator name: `FEATURE_HOVER_CALLBACK`"] + pub const HOVER_CALLBACK: Feature = Feature { + ord: 3i32 + }; + #[doc(alias = "FEATURE_KEY_CALLBACK")] + #[doc = "Godot enumerator name: `FEATURE_KEY_CALLBACK`"] + pub const KEY_CALLBACK: Feature = Feature { + ord: 4i32 + }; + +} +impl std::fmt::Debug for Feature { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Feature") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Feature { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GLOBAL_MENU => "GLOBAL_MENU", Self::POPUP_MENU => "POPUP_MENU", Self::OPEN_CLOSE_CALLBACK => "OPEN_CLOSE_CALLBACK", Self::HOVER_CALLBACK => "HOVER_CALLBACK", Self::KEY_CALLBACK => "KEY_CALLBACK", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GLOBAL_MENU => "FEATURE_GLOBAL_MENU", Self::POPUP_MENU => "FEATURE_POPUP_MENU", Self::OPEN_CLOSE_CALLBACK => "FEATURE_OPEN_CLOSE_CALLBACK", Self::HOVER_CALLBACK => "FEATURE_HOVER_CALLBACK", Self::KEY_CALLBACK => "FEATURE_KEY_CALLBACK", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Feature { + type Via = i32; + +} +impl crate::meta::ToGodot for Feature { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Feature { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SystemMenus { + ord: i32 +} +impl SystemMenus { + pub const INVALID_MENU_ID: SystemMenus = SystemMenus { + ord: 0i32 + }; + pub const MAIN_MENU_ID: SystemMenus = SystemMenus { + ord: 1i32 + }; + pub const APPLICATION_MENU_ID: SystemMenus = SystemMenus { + ord: 2i32 + }; + pub const WINDOW_MENU_ID: SystemMenus = SystemMenus { + ord: 3i32 + }; + pub const HELP_MENU_ID: SystemMenus = SystemMenus { + ord: 4i32 + }; + pub const DOCK_MENU_ID: SystemMenus = SystemMenus { + ord: 5i32 + }; + +} +impl std::fmt::Debug for SystemMenus { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SystemMenus") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SystemMenus { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INVALID_MENU_ID => "INVALID_MENU_ID", Self::MAIN_MENU_ID => "MAIN_MENU_ID", Self::APPLICATION_MENU_ID => "APPLICATION_MENU_ID", Self::WINDOW_MENU_ID => "WINDOW_MENU_ID", Self::HELP_MENU_ID => "HELP_MENU_ID", Self::DOCK_MENU_ID => "DOCK_MENU_ID", _ => "", + } + } + fn godot_name(&self) -> &'static str { + self.as_str() + } +} +impl crate::meta::GodotConvert for SystemMenus { + type Via = i32; + +} +impl crate::meta::ToGodot for SystemMenus { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SystemMenus { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/navigation_mesh_generator.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/navigation_mesh_generator.rs new file mode 100644 index 0000000..739e213 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/navigation_mesh_generator.rs @@ -0,0 +1,189 @@ +#![doc = "Sidecar module for class [`NavigationMeshGenerator`][crate::classes::NavigationMeshGenerator].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `NavigationMeshGenerator` enums](https://docs.godotengine.org/en/stable/classes/class_navigationmeshgenerator.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `NavigationMeshGenerator.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`INavigationMeshGenerator`][crate::classes::INavigationMeshGenerator]: virtual methods\n\n\nSee also [Godot docs for `NavigationMeshGenerator`](https://docs.godotengine.org/en/stable/classes/class_navigationmeshgenerator.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`NavigationMeshGenerator::singleton()`][NavigationMeshGenerator::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct NavigationMeshGenerator { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`NavigationMeshGenerator`][crate::classes::NavigationMeshGenerator].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `NavigationMeshGenerator` methods](https://docs.godotengine.org/en/stable/classes/class_navigationmeshgenerator.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait INavigationMeshGenerator: crate::obj::GodotClass < Base = NavigationMeshGenerator > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl NavigationMeshGenerator { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"NavigationMeshGenerator"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for NavigationMeshGenerator { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"NavigationMeshGenerator")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for NavigationMeshGenerator { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for NavigationMeshGenerator { + + } + impl std::ops::Deref for NavigationMeshGenerator { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for NavigationMeshGenerator { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`NavigationMeshGenerator`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_NavigationMeshGenerator { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::NavigationMeshGenerator > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/nine_patch_rect.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/nine_patch_rect.rs new file mode 100644 index 0000000..909908b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/nine_patch_rect.rs @@ -0,0 +1,436 @@ +#![doc = "Sidecar module for class [`NinePatchRect`][crate::classes::NinePatchRect].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `NinePatchRect` enums](https://docs.godotengine.org/en/stable/classes/class_ninepatchrect.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `NinePatchRect.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`nine_patch_rect`][crate::classes::nine_patch_rect]: sidecar module with related enum/flag types\n* [`INinePatchRect`][crate::classes::INinePatchRect]: virtual methods\n\n\nSee also [Godot docs for `NinePatchRect`](https://docs.godotengine.org/en/stable/classes/class_ninepatchrect.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`NinePatchRect::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct NinePatchRect { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`NinePatchRect`][crate::classes::NinePatchRect].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `NinePatchRect` methods](https://docs.godotengine.org/en/stable/classes/class_ninepatchrect.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait INinePatchRect: crate::obj::GodotClass < Base = NinePatchRect > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl NinePatchRect { + pub fn set_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5317usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5318usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_patch_margin(&mut self, margin: crate::global::Side, value: i32,) { + type CallSig = ((), crate::global::Side, i32); + let args = (margin, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5319usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "set_patch_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_patch_margin(&self, margin: crate::global::Side,) -> i32 { + type CallSig = (i32, crate::global::Side); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5320usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "get_patch_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_region_rect(&mut self, rect: Rect2,) { + type CallSig = ((), Rect2); + let args = (rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5321usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "set_region_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_region_rect(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5322usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "get_region_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_draw_center(&mut self, draw_center: bool,) { + type CallSig = ((), bool); + let args = (draw_center,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5323usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "set_draw_center", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_draw_center_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5324usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "is_draw_center_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_h_axis_stretch_mode(&mut self, mode: crate::classes::nine_patch_rect::AxisStretchMode,) { + type CallSig = ((), crate::classes::nine_patch_rect::AxisStretchMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5325usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "set_h_axis_stretch_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_h_axis_stretch_mode(&self,) -> crate::classes::nine_patch_rect::AxisStretchMode { + type CallSig = (crate::classes::nine_patch_rect::AxisStretchMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5326usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "get_h_axis_stretch_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_v_axis_stretch_mode(&mut self, mode: crate::classes::nine_patch_rect::AxisStretchMode,) { + type CallSig = ((), crate::classes::nine_patch_rect::AxisStretchMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5327usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "set_v_axis_stretch_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_v_axis_stretch_mode(&self,) -> crate::classes::nine_patch_rect::AxisStretchMode { + type CallSig = (crate::classes::nine_patch_rect::AxisStretchMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5328usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NinePatchRect", "get_v_axis_stretch_mode", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for NinePatchRect { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"NinePatchRect")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for NinePatchRect { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for NinePatchRect { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for NinePatchRect { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for NinePatchRect { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for NinePatchRect { + + } + impl crate::obj::cap::GodotDefault for NinePatchRect { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for NinePatchRect { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for NinePatchRect { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`NinePatchRect`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_NinePatchRect { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::NinePatchRect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AxisStretchMode { + ord: i32 +} +impl AxisStretchMode { + #[doc(alias = "AXIS_STRETCH_MODE_STRETCH")] + #[doc = "Godot enumerator name: `AXIS_STRETCH_MODE_STRETCH`"] + pub const STRETCH: AxisStretchMode = AxisStretchMode { + ord: 0i32 + }; + #[doc(alias = "AXIS_STRETCH_MODE_TILE")] + #[doc = "Godot enumerator name: `AXIS_STRETCH_MODE_TILE`"] + pub const TILE: AxisStretchMode = AxisStretchMode { + ord: 1i32 + }; + #[doc(alias = "AXIS_STRETCH_MODE_TILE_FIT")] + #[doc = "Godot enumerator name: `AXIS_STRETCH_MODE_TILE_FIT`"] + pub const TILE_FIT: AxisStretchMode = AxisStretchMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AxisStretchMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AxisStretchMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AxisStretchMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STRETCH => "STRETCH", Self::TILE => "TILE", Self::TILE_FIT => "TILE_FIT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STRETCH => "AXIS_STRETCH_MODE_STRETCH", Self::TILE => "AXIS_STRETCH_MODE_TILE", Self::TILE_FIT => "AXIS_STRETCH_MODE_TILE_FIT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AxisStretchMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AxisStretchMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AxisStretchMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node.rs new file mode 100644 index 0000000..74def80 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node.rs @@ -0,0 +1,2463 @@ +#![doc = "Sidecar module for class [`Node`][crate::classes::Node].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Node` enums](https://docs.godotengine.org/en/stable/classes/class_node.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Node.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`node`][crate::classes::node]: sidecar module with related enum/flag types\n* [`INode`][crate::classes::INode]: virtual methods\n* [`NodeNotification`][crate::classes::notify::NodeNotification]: notification type\n\n\nSee also [Godot docs for `Node`](https://docs.godotengine.org/en/stable/classes/class_node.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Node::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Node { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Node`][crate::classes::Node].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Node` methods](https://docs.godotengine.org/en/stable/classes/class_node.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait INode: crate::obj::GodotClass < Base = Node > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + #[doc = "Notification type for class [`Node`][crate::classes::Node]."] + #[doc = r""] + #[doc = r" Makes it easier to keep an overview all possible notification variants for a given class, including"] + #[doc = r" notifications defined in base classes."] + #[doc = r""] + #[doc = r" Contains the [`Unknown`][Self::Unknown] variant for forward compatibility."] + #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] + #[repr(i32)] + #[allow(non_camel_case_types)] + pub enum NodeNotification { + ENTER_TREE = 10i32, EXIT_TREE = 11i32, MOVED_IN_PARENT = 12i32, READY = 13i32, PAUSED = 14i32, UNPAUSED = 15i32, PHYSICS_PROCESS = 16i32, PROCESS = 17i32, PARENTED = 18i32, UNPARENTED = 19i32, SCENE_INSTANTIATED = 20i32, DRAG_BEGIN = 21i32, DRAG_END = 22i32, PATH_RENAMED = 23i32, CHILD_ORDER_CHANGED = 24i32, INTERNAL_PROCESS = 25i32, INTERNAL_PHYSICS_PROCESS = 26i32, POST_ENTER_TREE = 27i32, DISABLED = 28i32, ENABLED = 29i32, RESET_PHYSICS_INTERPOLATION = 2001i32, EDITOR_PRE_SAVE = 9001i32, EDITOR_POST_SAVE = 9002i32, WM_MOUSE_ENTER = 1002i32, WM_MOUSE_EXIT = 1003i32, WM_WINDOW_FOCUS_IN = 1004i32, WM_WINDOW_FOCUS_OUT = 1005i32, WM_CLOSE_REQUEST = 1006i32, WM_GO_BACK_REQUEST = 1007i32, WM_SIZE_CHANGED = 1008i32, WM_DPI_CHANGE = 1009i32, VP_MOUSE_ENTER = 1010i32, VP_MOUSE_EXIT = 1011i32, OS_MEMORY_WARNING = 2009i32, TRANSLATION_CHANGED = 2010i32, WM_ABOUT = 2011i32, CRASH = 2012i32, OS_IME_UPDATE = 2013i32, APPLICATION_RESUMED = 2014i32, APPLICATION_PAUSED = 2015i32, APPLICATION_FOCUS_IN = 2016i32, APPLICATION_FOCUS_OUT = 2017i32, TEXT_SERVER_CHANGED = 2018i32, POSTINITIALIZE = 0i32, PREDELETE = 1i32, EXTENSION_RELOADED = 2i32, #[doc = r" Since Godot represents notifications as integers, it's always possible that a notification outside the known types"] + #[doc = r" is received. For example, the user can manually issue notifications through `Object::notify()`."] + #[doc = r""] + #[doc = r" This is also necessary if you develop an extension on a Godot version and want to be forward-compatible with newer"] + #[doc = r" versions. If Godot adds new notifications, they will be unknown to your extension, but you can still handle them."] + Unknown(i32), + } + impl From < i32 > for NodeNotification { + #[doc = r" Always succeeds, mapping unknown integers to the `Unknown` variant."] + fn from(enumerator: i32) -> Self { + match enumerator { + 10i32 => Self::ENTER_TREE, 11i32 => Self::EXIT_TREE, 12i32 => Self::MOVED_IN_PARENT, 13i32 => Self::READY, 14i32 => Self::PAUSED, 15i32 => Self::UNPAUSED, 16i32 => Self::PHYSICS_PROCESS, 17i32 => Self::PROCESS, 18i32 => Self::PARENTED, 19i32 => Self::UNPARENTED, 20i32 => Self::SCENE_INSTANTIATED, 21i32 => Self::DRAG_BEGIN, 22i32 => Self::DRAG_END, 23i32 => Self::PATH_RENAMED, 24i32 => Self::CHILD_ORDER_CHANGED, 25i32 => Self::INTERNAL_PROCESS, 26i32 => Self::INTERNAL_PHYSICS_PROCESS, 27i32 => Self::POST_ENTER_TREE, 28i32 => Self::DISABLED, 29i32 => Self::ENABLED, 2001i32 => Self::RESET_PHYSICS_INTERPOLATION, 9001i32 => Self::EDITOR_PRE_SAVE, 9002i32 => Self::EDITOR_POST_SAVE, 1002i32 => Self::WM_MOUSE_ENTER, 1003i32 => Self::WM_MOUSE_EXIT, 1004i32 => Self::WM_WINDOW_FOCUS_IN, 1005i32 => Self::WM_WINDOW_FOCUS_OUT, 1006i32 => Self::WM_CLOSE_REQUEST, 1007i32 => Self::WM_GO_BACK_REQUEST, 1008i32 => Self::WM_SIZE_CHANGED, 1009i32 => Self::WM_DPI_CHANGE, 1010i32 => Self::VP_MOUSE_ENTER, 1011i32 => Self::VP_MOUSE_EXIT, 2009i32 => Self::OS_MEMORY_WARNING, 2010i32 => Self::TRANSLATION_CHANGED, 2011i32 => Self::WM_ABOUT, 2012i32 => Self::CRASH, 2013i32 => Self::OS_IME_UPDATE, 2014i32 => Self::APPLICATION_RESUMED, 2015i32 => Self::APPLICATION_PAUSED, 2016i32 => Self::APPLICATION_FOCUS_IN, 2017i32 => Self::APPLICATION_FOCUS_OUT, 2018i32 => Self::TEXT_SERVER_CHANGED, 0i32 => Self::POSTINITIALIZE, 1i32 => Self::PREDELETE, 2i32 => Self::EXTENSION_RELOADED, other_int => Self::Unknown(other_int), + } + } + } + impl From < NodeNotification > for i32 { + fn from(notification: NodeNotification) -> i32 { + match notification { + NodeNotification::ENTER_TREE => 10i32, NodeNotification::EXIT_TREE => 11i32, NodeNotification::MOVED_IN_PARENT => 12i32, NodeNotification::READY => 13i32, NodeNotification::PAUSED => 14i32, NodeNotification::UNPAUSED => 15i32, NodeNotification::PHYSICS_PROCESS => 16i32, NodeNotification::PROCESS => 17i32, NodeNotification::PARENTED => 18i32, NodeNotification::UNPARENTED => 19i32, NodeNotification::SCENE_INSTANTIATED => 20i32, NodeNotification::DRAG_BEGIN => 21i32, NodeNotification::DRAG_END => 22i32, NodeNotification::PATH_RENAMED => 23i32, NodeNotification::CHILD_ORDER_CHANGED => 24i32, NodeNotification::INTERNAL_PROCESS => 25i32, NodeNotification::INTERNAL_PHYSICS_PROCESS => 26i32, NodeNotification::POST_ENTER_TREE => 27i32, NodeNotification::DISABLED => 28i32, NodeNotification::ENABLED => 29i32, NodeNotification::RESET_PHYSICS_INTERPOLATION => 2001i32, NodeNotification::EDITOR_PRE_SAVE => 9001i32, NodeNotification::EDITOR_POST_SAVE => 9002i32, NodeNotification::WM_MOUSE_ENTER => 1002i32, NodeNotification::WM_MOUSE_EXIT => 1003i32, NodeNotification::WM_WINDOW_FOCUS_IN => 1004i32, NodeNotification::WM_WINDOW_FOCUS_OUT => 1005i32, NodeNotification::WM_CLOSE_REQUEST => 1006i32, NodeNotification::WM_GO_BACK_REQUEST => 1007i32, NodeNotification::WM_SIZE_CHANGED => 1008i32, NodeNotification::WM_DPI_CHANGE => 1009i32, NodeNotification::VP_MOUSE_ENTER => 1010i32, NodeNotification::VP_MOUSE_EXIT => 1011i32, NodeNotification::OS_MEMORY_WARNING => 2009i32, NodeNotification::TRANSLATION_CHANGED => 2010i32, NodeNotification::WM_ABOUT => 2011i32, NodeNotification::CRASH => 2012i32, NodeNotification::OS_IME_UPDATE => 2013i32, NodeNotification::APPLICATION_RESUMED => 2014i32, NodeNotification::APPLICATION_PAUSED => 2015i32, NodeNotification::APPLICATION_FOCUS_IN => 2016i32, NodeNotification::APPLICATION_FOCUS_OUT => 2017i32, NodeNotification::TEXT_SERVER_CHANGED => 2018i32, NodeNotification::POSTINITIALIZE => 0i32, NodeNotification::PREDELETE => 1i32, NodeNotification::EXTENSION_RELOADED => 2i32, NodeNotification::Unknown(int) => int, + } + } + } + impl Node { + pub fn print_orphan_nodes() { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5329usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "print_orphan_nodes", std::ptr::null_mut(), None, args,) + } + } + pub(crate) fn add_sibling_full(&mut self, sibling: ObjectArg < crate::classes::Node >, force_readable_name: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Node >, bool); + let args = (sibling, force_readable_name,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5330usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "add_sibling", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_sibling_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_sibling(&mut self, sibling: impl AsObjectArg < crate::classes::Node >,) { + self.add_sibling_ex(sibling,) . done() + } + #[inline] + pub fn add_sibling_ex < 'a > (&'a mut self, sibling: impl AsObjectArg < crate::classes::Node >,) -> ExAddSibling < 'a > { + ExAddSibling::new(self, sibling,) + } + pub fn set_name(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5331usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_name(&self,) -> StringName { + type CallSig = (StringName,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5332usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_child_full(&mut self, node: ObjectArg < crate::classes::Node >, force_readable_name: bool, internal: crate::classes::node::InternalMode,) { + type CallSig = ((), ObjectArg < crate::classes::Node >, bool, crate::classes::node::InternalMode); + let args = (node, force_readable_name, internal,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5333usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "add_child", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_child_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_child(&mut self, node: impl AsObjectArg < crate::classes::Node >,) { + self.add_child_ex(node,) . done() + } + #[inline] + pub fn add_child_ex < 'a > (&'a mut self, node: impl AsObjectArg < crate::classes::Node >,) -> ExAddChild < 'a > { + ExAddChild::new(self, node,) + } + pub fn remove_child(&mut self, node: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5334usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "remove_child", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn reparent_full(&mut self, new_parent: ObjectArg < crate::classes::Node >, keep_global_transform: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Node >, bool); + let args = (new_parent, keep_global_transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5335usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "reparent", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::reparent_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn reparent(&mut self, new_parent: impl AsObjectArg < crate::classes::Node >,) { + self.reparent_ex(new_parent,) . done() + } + #[inline] + pub fn reparent_ex < 'a > (&'a mut self, new_parent: impl AsObjectArg < crate::classes::Node >,) -> ExReparent < 'a > { + ExReparent::new(self, new_parent,) + } + pub(crate) fn get_child_count_full(&self, include_internal: bool,) -> i32 { + type CallSig = (i32, bool); + let args = (include_internal,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5336usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_child_count", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_child_count_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_child_count(&self,) -> i32 { + self.get_child_count_ex() . done() + } + #[inline] + pub fn get_child_count_ex < 'a > (&'a self,) -> ExGetChildCount < 'a > { + ExGetChildCount::new(self,) + } + pub(crate) fn get_children_full(&self, include_internal: bool,) -> Array < Gd < crate::classes::Node > > { + type CallSig = (Array < Gd < crate::classes::Node > >, bool); + let args = (include_internal,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5337usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_children", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_children_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_children(&self,) -> Array < Gd < crate::classes::Node > > { + self.get_children_ex() . done() + } + #[inline] + pub fn get_children_ex < 'a > (&'a self,) -> ExGetChildren < 'a > { + ExGetChildren::new(self,) + } + pub(crate) fn get_child_full(&self, idx: i32, include_internal: bool,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >, i32, bool); + let args = (idx, include_internal,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5338usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_child", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_child_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_child(&self, idx: i32,) -> Option < Gd < crate::classes::Node > > { + self.get_child_ex(idx,) . done() + } + #[inline] + pub fn get_child_ex < 'a > (&'a self, idx: i32,) -> ExGetChild < 'a > { + ExGetChild::new(self, idx,) + } + pub fn has_node(&self, path: impl AsArg < NodePath >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5339usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "has_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_or_null(&self, path: impl AsArg < NodePath >,) -> Option < Gd < crate::classes::Node > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Node > >, CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5340usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_node_or_null", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_parent(&self,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5341usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn find_child_full(&self, pattern: CowArg < GString >, recursive: bool, owned: bool,) -> Option < Gd < crate::classes::Node > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Node > >, CowArg < 'a0, GString >, bool, bool); + let args = (pattern, recursive, owned,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5342usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "find_child", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::find_child_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn find_child(&self, pattern: impl AsArg < GString >,) -> Option < Gd < crate::classes::Node > > { + self.find_child_ex(pattern,) . done() + } + #[inline] + pub fn find_child_ex < 'a > (&'a self, pattern: impl AsArg < GString > + 'a,) -> ExFindChild < 'a > { + ExFindChild::new(self, pattern,) + } + pub(crate) fn find_children_full(&self, pattern: CowArg < GString >, type_: CowArg < GString >, recursive: bool, owned: bool,) -> Array < Gd < crate::classes::Node > > { + type CallSig < 'a0, 'a1, > = (Array < Gd < crate::classes::Node > >, CowArg < 'a0, GString >, CowArg < 'a1, GString >, bool, bool); + let args = (pattern, type_, recursive, owned,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5343usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "find_children", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::find_children_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn find_children(&self, pattern: impl AsArg < GString >,) -> Array < Gd < crate::classes::Node > > { + self.find_children_ex(pattern,) . done() + } + #[inline] + pub fn find_children_ex < 'a > (&'a self, pattern: impl AsArg < GString > + 'a,) -> ExFindChildren < 'a > { + ExFindChildren::new(self, pattern,) + } + pub fn find_parent(&self, pattern: impl AsArg < GString >,) -> Option < Gd < crate::classes::Node > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Node > >, CowArg < 'a0, GString >); + let args = (pattern.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5344usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "find_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_node_and_resource(&self, path: impl AsArg < NodePath >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5345usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "has_node_and_resource", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_and_resource(&mut self, path: impl AsArg < NodePath >,) -> VariantArray { + type CallSig < 'a0, > = (VariantArray, CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5346usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_node_and_resource", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_inside_tree(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5347usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_inside_tree", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_part_of_edited_scene(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5348usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_part_of_edited_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_ancestor_of(&self, node: impl AsObjectArg < crate::classes::Node >,) -> bool { + type CallSig = (bool, ObjectArg < crate::classes::Node >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5349usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_ancestor_of", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_greater_than(&self, node: impl AsObjectArg < crate::classes::Node >,) -> bool { + type CallSig = (bool, ObjectArg < crate::classes::Node >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5350usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_greater_than", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5351usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_path_to_full(&self, node: ObjectArg < crate::classes::Node >, use_unique_path: bool,) -> NodePath { + type CallSig = (NodePath, ObjectArg < crate::classes::Node >, bool); + let args = (node, use_unique_path,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5352usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_path_to", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_path_to_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_path_to(&self, node: impl AsObjectArg < crate::classes::Node >,) -> NodePath { + self.get_path_to_ex(node,) . done() + } + #[inline] + pub fn get_path_to_ex < 'a > (&'a self, node: impl AsObjectArg < crate::classes::Node >,) -> ExGetPathTo < 'a > { + ExGetPathTo::new(self, node,) + } + pub(crate) fn add_to_group_full(&mut self, group: CowArg < StringName >, persistent: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, bool); + let args = (group, persistent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5353usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "add_to_group", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_to_group_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_to_group(&mut self, group: impl AsArg < StringName >,) { + self.add_to_group_ex(group,) . done() + } + #[inline] + pub fn add_to_group_ex < 'a > (&'a mut self, group: impl AsArg < StringName > + 'a,) -> ExAddToGroup < 'a > { + ExAddToGroup::new(self, group,) + } + pub fn remove_from_group(&mut self, group: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (group.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5354usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "remove_from_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_in_group(&self, group: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (group.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5355usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_in_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn move_child(&mut self, child_node: impl AsObjectArg < crate::classes::Node >, to_index: i32,) { + type CallSig = ((), ObjectArg < crate::classes::Node >, i32); + let args = (child_node.as_object_arg(), to_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5356usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "move_child", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_groups(&self,) -> Array < StringName > { + type CallSig = (Array < StringName >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5357usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_groups", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_owner(&mut self, owner: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (owner.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5358usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_owner", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_owner(&self,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5359usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_owner", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_index_full(&self, include_internal: bool,) -> i32 { + type CallSig = (i32, bool); + let args = (include_internal,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5360usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_index", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_index_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_index(&self,) -> i32 { + self.get_index_ex() . done() + } + #[inline] + pub fn get_index_ex < 'a > (&'a self,) -> ExGetIndex < 'a > { + ExGetIndex::new(self,) + } + pub fn print_tree(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5361usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "print_tree", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn print_tree_pretty(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5362usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "print_tree_pretty", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tree_string(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5363usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_tree_string", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tree_string_pretty(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5364usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_tree_string_pretty", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scene_file_path(&mut self, scene_file_path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (scene_file_path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5365usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_scene_file_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scene_file_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5366usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_scene_file_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn propagate_notification(&mut self, what: i32,) { + type CallSig = ((), i32); + let args = (what,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5367usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "propagate_notification", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn propagate_call_full(&mut self, method: CowArg < StringName >, args: RefArg < VariantArray >, parent_first: bool,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, VariantArray >, bool); + let args = (method, args, parent_first,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5368usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "propagate_call", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::propagate_call_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn propagate_call(&mut self, method: impl AsArg < StringName >,) { + self.propagate_call_ex(method,) . done() + } + #[inline] + pub fn propagate_call_ex < 'a > (&'a mut self, method: impl AsArg < StringName > + 'a,) -> ExPropagateCall < 'a > { + ExPropagateCall::new(self, method,) + } + pub fn set_physics_process(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5369usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_physics_process", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physics_process_delta_time(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5370usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_physics_process_delta_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_physics_processing(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5371usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_physics_processing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_delta_time(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5372usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_process_delta_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5373usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_process", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_priority(&mut self, priority: i32,) { + type CallSig = ((), i32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5374usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_process_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_priority(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5375usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_process_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_physics_process_priority(&mut self, priority: i32,) { + type CallSig = ((), i32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5376usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_physics_process_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physics_process_priority(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5377usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_physics_process_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_processing(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5378usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_processing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_input(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5379usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_process_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_processing_input(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5380usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_processing_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_shortcut_input(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5381usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_process_shortcut_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_processing_shortcut_input(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5382usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_processing_shortcut_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_unhandled_input(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5383usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_process_unhandled_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_processing_unhandled_input(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5384usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_processing_unhandled_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_unhandled_key_input(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5385usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_process_unhandled_key_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_processing_unhandled_key_input(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5386usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_processing_unhandled_key_input", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_mode(&mut self, mode: crate::classes::node::ProcessMode,) { + type CallSig = ((), crate::classes::node::ProcessMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5387usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_process_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_mode(&self,) -> crate::classes::node::ProcessMode { + type CallSig = (crate::classes::node::ProcessMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5388usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_process_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn can_process(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5389usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "can_process", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_thread_group(&mut self, mode: crate::classes::node::ProcessThreadGroup,) { + type CallSig = ((), crate::classes::node::ProcessThreadGroup); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5390usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_process_thread_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_thread_group(&self,) -> crate::classes::node::ProcessThreadGroup { + type CallSig = (crate::classes::node::ProcessThreadGroup,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5391usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_process_thread_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_thread_messages(&mut self, flags: crate::classes::node::ProcessThreadMessages,) { + type CallSig = ((), crate::classes::node::ProcessThreadMessages); + let args = (flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5392usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_process_thread_messages", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_thread_messages(&self,) -> crate::classes::node::ProcessThreadMessages { + type CallSig = (crate::classes::node::ProcessThreadMessages,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5393usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_process_thread_messages", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_thread_group_order(&mut self, order: i32,) { + type CallSig = ((), i32); + let args = (order,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5394usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_process_thread_group_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_thread_group_order(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5395usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_process_thread_group_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_display_folded(&mut self, fold: bool,) { + type CallSig = ((), bool); + let args = (fold,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5396usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_display_folded", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_displayed_folded(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5397usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_displayed_folded", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_process_internal(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5398usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_process_internal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_processing_internal(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5399usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_processing_internal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_physics_process_internal(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5400usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_physics_process_internal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_physics_processing_internal(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5401usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_physics_processing_internal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_physics_interpolation_mode(&mut self, mode: crate::classes::node::PhysicsInterpolationMode,) { + type CallSig = ((), crate::classes::node::PhysicsInterpolationMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5402usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_physics_interpolation_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physics_interpolation_mode(&self,) -> crate::classes::node::PhysicsInterpolationMode { + type CallSig = (crate::classes::node::PhysicsInterpolationMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5403usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_physics_interpolation_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_physics_interpolated(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5404usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_physics_interpolated", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_physics_interpolated_and_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5405usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_physics_interpolated_and_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reset_physics_interpolation(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5406usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "reset_physics_interpolation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_translate_mode(&mut self, mode: crate::classes::node::AutoTranslateMode,) { + type CallSig = ((), crate::classes::node::AutoTranslateMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5407usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_auto_translate_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_translate_mode(&self,) -> crate::classes::node::AutoTranslateMode { + type CallSig = (crate::classes::node::AutoTranslateMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5408usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_auto_translate_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_window(&self,) -> Option < Gd < crate::classes::Window > > { + type CallSig = (Option < Gd < crate::classes::Window > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5409usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_window", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_last_exclusive_window(&self,) -> Option < Gd < crate::classes::Window > > { + type CallSig = (Option < Gd < crate::classes::Window > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5410usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_last_exclusive_window", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tree(&self,) -> Option < Gd < crate::classes::SceneTree > > { + type CallSig = (Option < Gd < crate::classes::SceneTree > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5411usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_tree", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_tween(&mut self,) -> Option < Gd < crate::classes::Tween > > { + type CallSig = (Option < Gd < crate::classes::Tween > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5412usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "create_tween", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn duplicate_full(&self, flags: i32,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >, i32); + let args = (flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5413usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "duplicate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::duplicate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn duplicate(&self,) -> Option < Gd < crate::classes::Node > > { + self.duplicate_ex() . done() + } + #[inline] + pub fn duplicate_ex < 'a > (&'a self,) -> ExDuplicate < 'a > { + ExDuplicate::new(self,) + } + pub(crate) fn replace_by_full(&mut self, node: ObjectArg < crate::classes::Node >, keep_groups: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Node >, bool); + let args = (node, keep_groups,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5414usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "replace_by", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::replace_by_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn replace_by(&mut self, node: impl AsObjectArg < crate::classes::Node >,) { + self.replace_by_ex(node,) . done() + } + #[inline] + pub fn replace_by_ex < 'a > (&'a mut self, node: impl AsObjectArg < crate::classes::Node >,) -> ExReplaceBy < 'a > { + ExReplaceBy::new(self, node,) + } + pub fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool,) { + type CallSig = ((), bool); + let args = (load_placeholder,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5415usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_scene_instance_load_placeholder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scene_instance_load_placeholder(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5416usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_scene_instance_load_placeholder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_editable_instance(&mut self, node: impl AsObjectArg < crate::classes::Node >, is_editable: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Node >, bool); + let args = (node.as_object_arg(), is_editable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5417usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_editable_instance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_editable_instance(&self, node: impl AsObjectArg < crate::classes::Node >,) -> bool { + type CallSig = (bool, ObjectArg < crate::classes::Node >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5418usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_editable_instance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_viewport(&self,) -> Option < Gd < crate::classes::Viewport > > { + type CallSig = (Option < Gd < crate::classes::Viewport > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5419usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_viewport", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn queue_free(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5420usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "queue_free", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn request_ready(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5421usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "request_ready", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_node_ready(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5422usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_node_ready", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_multiplayer_authority_full(&mut self, id: i32, recursive: bool,) { + type CallSig = ((), i32, bool); + let args = (id, recursive,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5423usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_multiplayer_authority", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_multiplayer_authority_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_multiplayer_authority(&mut self, id: i32,) { + self.set_multiplayer_authority_ex(id,) . done() + } + #[inline] + pub fn set_multiplayer_authority_ex < 'a > (&'a mut self, id: i32,) -> ExSetMultiplayerAuthority < 'a > { + ExSetMultiplayerAuthority::new(self, id,) + } + pub fn get_multiplayer_authority(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5424usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_multiplayer_authority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_multiplayer_authority(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5425usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_multiplayer_authority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_multiplayer(&self,) -> Option < Gd < crate::classes::MultiplayerApi > > { + type CallSig = (Option < Gd < crate::classes::MultiplayerApi > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5426usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_multiplayer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rpc_config(&mut self, method: impl AsArg < StringName >, config: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (method.into_arg(), RefArg::new(config),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5427usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "rpc_config", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_editor_description(&mut self, editor_description: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (editor_description.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5428usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_editor_description", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_editor_description(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5429usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "get_editor_description", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_unique_name_in_owner(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5430usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_unique_name_in_owner", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_unique_name_in_owner(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5431usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "is_unique_name_in_owner", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn atr_full(&self, message: CowArg < GString >, context: CowArg < StringName >,) -> GString { + type CallSig < 'a0, 'a1, > = (GString, CowArg < 'a0, GString >, CowArg < 'a1, StringName >); + let args = (message, context,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5432usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "atr", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::atr_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn atr(&self, message: impl AsArg < GString >,) -> GString { + self.atr_ex(message,) . done() + } + #[inline] + pub fn atr_ex < 'a > (&'a self, message: impl AsArg < GString > + 'a,) -> ExAtr < 'a > { + ExAtr::new(self, message,) + } + pub(crate) fn atr_n_full(&self, message: CowArg < GString >, plural_message: CowArg < StringName >, n: i32, context: CowArg < StringName >,) -> GString { + type CallSig < 'a0, 'a1, 'a2, > = (GString, CowArg < 'a0, GString >, CowArg < 'a1, StringName >, i32, CowArg < 'a2, StringName >); + let args = (message, plural_message, n, context,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5433usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "atr_n", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::atr_n_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn atr_n(&self, message: impl AsArg < GString >, plural_message: impl AsArg < StringName >, n: i32,) -> GString { + self.atr_n_ex(message, plural_message, n,) . done() + } + #[inline] + pub fn atr_n_ex < 'a > (&'a self, message: impl AsArg < GString > + 'a, plural_message: impl AsArg < StringName > + 'a, n: i32,) -> ExAtrN < 'a > { + ExAtrN::new(self, message, plural_message, n,) + } + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn rpc(&mut self, method: impl AsArg < StringName >, varargs: &[Variant]) -> crate::global::Error { + Self::try_rpc(self, method, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_rpc(&mut self, method: impl AsArg < StringName >, varargs: &[Variant]) -> Result < crate::global::Error, crate::meta::error::CallError > { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, StringName >); + let args = (method.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5434usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "Node", "rpc", self.object_ptr, self.__checked_id(), args, varargs) + } + } + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn rpc_id(&mut self, peer_id: i64, method: impl AsArg < StringName >, varargs: &[Variant]) -> crate::global::Error { + Self::try_rpc_id(self, peer_id, method, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_rpc_id(&mut self, peer_id: i64, method: impl AsArg < StringName >, varargs: &[Variant]) -> Result < crate::global::Error, crate::meta::error::CallError > { + type CallSig < 'a0, > = (crate::global::Error, i64, CowArg < 'a0, StringName >); + let args = (peer_id, method.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5435usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "Node", "rpc_id", self.object_ptr, self.__checked_id(), args, varargs) + } + } + pub fn update_configuration_warnings(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5436usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "update_configuration_warnings", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn call_deferred_thread_group(&mut self, method: impl AsArg < StringName >, varargs: &[Variant]) -> Variant { + Self::try_call_deferred_thread_group(self, method, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_call_deferred_thread_group(&mut self, method: impl AsArg < StringName >, varargs: &[Variant]) -> Result < Variant, crate::meta::error::CallError > { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (method.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5437usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "Node", "call_deferred_thread_group", self.object_ptr, self.__checked_id(), args, varargs) + } + } + pub fn set_deferred_thread_group(&mut self, property: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (property.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5438usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_deferred_thread_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn notify_deferred_thread_group(&mut self, what: i32,) { + type CallSig = ((), i32); + let args = (what,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5439usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "notify_deferred_thread_group", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn call_thread_safe(&mut self, method: impl AsArg < StringName >, varargs: &[Variant]) -> Variant { + Self::try_call_thread_safe(self, method, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_call_thread_safe(&mut self, method: impl AsArg < StringName >, varargs: &[Variant]) -> Result < Variant, crate::meta::error::CallError > { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (method.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5440usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "Node", "call_thread_safe", self.object_ptr, self.__checked_id(), args, varargs) + } + } + pub fn set_thread_safe(&mut self, property: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (property.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5441usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "set_thread_safe", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn notify_thread_safe(&mut self, what: i32,) { + type CallSig = ((), i32); + let args = (what,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5442usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node", "notify_thread_safe", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" ⚠️ Sends a Godot notification to all classes inherited by the object."] + #[doc = r""] + #[doc = r" Triggers calls to `on_notification()`, and depending on the notification, also to Godot's lifecycle callbacks such as `ready()`."] + #[doc = r""] + #[doc = r" Starts from the highest ancestor (the `Object` class) and goes down the hierarchy."] + #[doc = r" See also [Godot docs for `Object::notification()`](https://docs.godotengine.org/en/latest/classes/class_object.html#id3)."] + #[doc = r""] + #[doc = r" # Panics"] + #[doc = r""] + #[doc = r" If you call this method on a user-defined object while holding a `GdRef` or `GdMut` guard on the instance, you will encounter"] + #[doc = r" a panic. The reason is that the receiving virtual method `on_notification()` acquires a `GdMut` lock dynamically, which must"] + #[doc = r" be exclusive."] + pub fn notify(&mut self, what: NodeNotification) { + self.notification(i32::from(what), false); + + } + #[doc = r" ⚠️ Like [`Self::notify()`], but starts at the most-derived class and goes up the hierarchy."] + #[doc = r""] + #[doc = r" See docs of that method, including the panics."] + pub fn notify_reversed(&mut self, what: NodeNotification) { + self.notification(i32::from(what), true); + + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub(crate) const NOTIFICATION_ENTER_TREE: i32 = 10i32; + pub(crate) const NOTIFICATION_EXIT_TREE: i32 = 11i32; + pub(crate) const NOTIFICATION_MOVED_IN_PARENT: i32 = 12i32; + pub(crate) const NOTIFICATION_READY: i32 = 13i32; + pub(crate) const NOTIFICATION_PAUSED: i32 = 14i32; + pub(crate) const NOTIFICATION_UNPAUSED: i32 = 15i32; + pub(crate) const NOTIFICATION_PHYSICS_PROCESS: i32 = 16i32; + pub(crate) const NOTIFICATION_PROCESS: i32 = 17i32; + pub(crate) const NOTIFICATION_PARENTED: i32 = 18i32; + pub(crate) const NOTIFICATION_UNPARENTED: i32 = 19i32; + pub(crate) const NOTIFICATION_SCENE_INSTANTIATED: i32 = 20i32; + pub(crate) const NOTIFICATION_DRAG_BEGIN: i32 = 21i32; + pub(crate) const NOTIFICATION_DRAG_END: i32 = 22i32; + pub(crate) const NOTIFICATION_PATH_RENAMED: i32 = 23i32; + pub(crate) const NOTIFICATION_CHILD_ORDER_CHANGED: i32 = 24i32; + pub(crate) const NOTIFICATION_INTERNAL_PROCESS: i32 = 25i32; + pub(crate) const NOTIFICATION_INTERNAL_PHYSICS_PROCESS: i32 = 26i32; + pub(crate) const NOTIFICATION_POST_ENTER_TREE: i32 = 27i32; + pub(crate) const NOTIFICATION_DISABLED: i32 = 28i32; + pub(crate) const NOTIFICATION_ENABLED: i32 = 29i32; + pub(crate) const NOTIFICATION_RESET_PHYSICS_INTERPOLATION: i32 = 2001i32; + pub(crate) const NOTIFICATION_EDITOR_PRE_SAVE: i32 = 9001i32; + pub(crate) const NOTIFICATION_EDITOR_POST_SAVE: i32 = 9002i32; + pub(crate) const NOTIFICATION_WM_MOUSE_ENTER: i32 = 1002i32; + pub(crate) const NOTIFICATION_WM_MOUSE_EXIT: i32 = 1003i32; + pub(crate) const NOTIFICATION_WM_WINDOW_FOCUS_IN: i32 = 1004i32; + pub(crate) const NOTIFICATION_WM_WINDOW_FOCUS_OUT: i32 = 1005i32; + pub(crate) const NOTIFICATION_WM_CLOSE_REQUEST: i32 = 1006i32; + pub(crate) const NOTIFICATION_WM_GO_BACK_REQUEST: i32 = 1007i32; + pub(crate) const NOTIFICATION_WM_SIZE_CHANGED: i32 = 1008i32; + pub(crate) const NOTIFICATION_WM_DPI_CHANGE: i32 = 1009i32; + pub(crate) const NOTIFICATION_VP_MOUSE_ENTER: i32 = 1010i32; + pub(crate) const NOTIFICATION_VP_MOUSE_EXIT: i32 = 1011i32; + pub(crate) const NOTIFICATION_OS_MEMORY_WARNING: i32 = 2009i32; + pub(crate) const NOTIFICATION_TRANSLATION_CHANGED: i32 = 2010i32; + pub(crate) const NOTIFICATION_WM_ABOUT: i32 = 2011i32; + pub(crate) const NOTIFICATION_CRASH: i32 = 2012i32; + pub(crate) const NOTIFICATION_OS_IME_UPDATE: i32 = 2013i32; + pub(crate) const NOTIFICATION_APPLICATION_RESUMED: i32 = 2014i32; + pub(crate) const NOTIFICATION_APPLICATION_PAUSED: i32 = 2015i32; + pub(crate) const NOTIFICATION_APPLICATION_FOCUS_IN: i32 = 2016i32; + pub(crate) const NOTIFICATION_APPLICATION_FOCUS_OUT: i32 = 2017i32; + pub(crate) const NOTIFICATION_TEXT_SERVER_CHANGED: i32 = 2018i32; + + } + impl crate::obj::GodotClass for Node { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Node")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Node { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Node { + + } + impl crate::obj::cap::GodotDefault for Node { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Node { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Node { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Node`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Node { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Node::add_sibling_ex`][super::Node::add_sibling_ex]."] +#[must_use] +pub struct ExAddSibling < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Node, sibling: ObjectCow < crate::classes::Node >, force_readable_name: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddSibling < 'a > { + fn new(surround_object: &'a mut re_export::Node, sibling: impl AsObjectArg < crate::classes::Node >,) -> Self { + let force_readable_name = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, sibling: sibling.consume_arg(), force_readable_name: force_readable_name, + } + } + #[inline] + pub fn force_readable_name(self, force_readable_name: bool) -> Self { + Self { + force_readable_name: force_readable_name, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, sibling, force_readable_name, + } + = self; + re_export::Node::add_sibling_full(surround_object, sibling.cow_as_object_arg(), force_readable_name,) + } +} +#[doc = "Default-param extender for [`Node::add_child_ex`][super::Node::add_child_ex]."] +#[must_use] +pub struct ExAddChild < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Node, node: ObjectCow < crate::classes::Node >, force_readable_name: bool, internal: crate::classes::node::InternalMode, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddChild < 'a > { + fn new(surround_object: &'a mut re_export::Node, node: impl AsObjectArg < crate::classes::Node >,) -> Self { + let force_readable_name = false; + let internal = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, node: node.consume_arg(), force_readable_name: force_readable_name, internal: internal, + } + } + #[inline] + pub fn force_readable_name(self, force_readable_name: bool) -> Self { + Self { + force_readable_name: force_readable_name, .. self + } + } + #[inline] + pub fn internal(self, internal: crate::classes::node::InternalMode) -> Self { + Self { + internal: internal, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, node, force_readable_name, internal, + } + = self; + re_export::Node::add_child_full(surround_object, node.cow_as_object_arg(), force_readable_name, internal,) + } +} +#[doc = "Default-param extender for [`Node::reparent_ex`][super::Node::reparent_ex]."] +#[must_use] +pub struct ExReparent < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Node, new_parent: ObjectCow < crate::classes::Node >, keep_global_transform: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExReparent < 'a > { + fn new(surround_object: &'a mut re_export::Node, new_parent: impl AsObjectArg < crate::classes::Node >,) -> Self { + let keep_global_transform = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, new_parent: new_parent.consume_arg(), keep_global_transform: keep_global_transform, + } + } + #[inline] + pub fn keep_global_transform(self, keep_global_transform: bool) -> Self { + Self { + keep_global_transform: keep_global_transform, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, new_parent, keep_global_transform, + } + = self; + re_export::Node::reparent_full(surround_object, new_parent.cow_as_object_arg(), keep_global_transform,) + } +} +#[doc = "Default-param extender for [`Node::get_child_count_ex`][super::Node::get_child_count_ex]."] +#[must_use] +pub struct ExGetChildCount < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Node, include_internal: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetChildCount < 'a > { + fn new(surround_object: &'a re_export::Node,) -> Self { + let include_internal = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, include_internal: include_internal, + } + } + #[inline] + pub fn include_internal(self, include_internal: bool) -> Self { + Self { + include_internal: include_internal, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, include_internal, + } + = self; + re_export::Node::get_child_count_full(surround_object, include_internal,) + } +} +#[doc = "Default-param extender for [`Node::get_children_ex`][super::Node::get_children_ex]."] +#[must_use] +pub struct ExGetChildren < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Node, include_internal: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetChildren < 'a > { + fn new(surround_object: &'a re_export::Node,) -> Self { + let include_internal = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, include_internal: include_internal, + } + } + #[inline] + pub fn include_internal(self, include_internal: bool) -> Self { + Self { + include_internal: include_internal, .. self + } + } + #[inline] + pub fn done(self) -> Array < Gd < crate::classes::Node > > { + let Self { + _phantom, surround_object, include_internal, + } + = self; + re_export::Node::get_children_full(surround_object, include_internal,) + } +} +#[doc = "Default-param extender for [`Node::get_child_ex`][super::Node::get_child_ex]."] +#[must_use] +pub struct ExGetChild < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Node, idx: i32, include_internal: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetChild < 'a > { + fn new(surround_object: &'a re_export::Node, idx: i32,) -> Self { + let include_internal = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, idx: idx, include_internal: include_internal, + } + } + #[inline] + pub fn include_internal(self, include_internal: bool) -> Self { + Self { + include_internal: include_internal, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Node > > { + let Self { + _phantom, surround_object, idx, include_internal, + } + = self; + re_export::Node::get_child_full(surround_object, idx, include_internal,) + } +} +#[doc = "Default-param extender for [`Node::find_child_ex`][super::Node::find_child_ex]."] +#[must_use] +pub struct ExFindChild < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Node, pattern: CowArg < 'a, GString >, recursive: bool, owned: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFindChild < 'a > { + fn new(surround_object: &'a re_export::Node, pattern: impl AsArg < GString > + 'a,) -> Self { + let recursive = true; + let owned = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, pattern: pattern.into_arg(), recursive: recursive, owned: owned, + } + } + #[inline] + pub fn recursive(self, recursive: bool) -> Self { + Self { + recursive: recursive, .. self + } + } + #[inline] + pub fn owned(self, owned: bool) -> Self { + Self { + owned: owned, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Node > > { + let Self { + _phantom, surround_object, pattern, recursive, owned, + } + = self; + re_export::Node::find_child_full(surround_object, pattern, recursive, owned,) + } +} +#[doc = "Default-param extender for [`Node::find_children_ex`][super::Node::find_children_ex]."] +#[must_use] +pub struct ExFindChildren < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Node, pattern: CowArg < 'a, GString >, type_: CowArg < 'a, GString >, recursive: bool, owned: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFindChildren < 'a > { + fn new(surround_object: &'a re_export::Node, pattern: impl AsArg < GString > + 'a,) -> Self { + let type_ = GString::from(""); + let recursive = true; + let owned = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, pattern: pattern.into_arg(), type_: CowArg::Owned(type_), recursive: recursive, owned: owned, + } + } + #[inline] + pub fn type_(self, type_: impl AsArg < GString > + 'a) -> Self { + Self { + type_: type_.into_arg(), .. self + } + } + #[inline] + pub fn recursive(self, recursive: bool) -> Self { + Self { + recursive: recursive, .. self + } + } + #[inline] + pub fn owned(self, owned: bool) -> Self { + Self { + owned: owned, .. self + } + } + #[inline] + pub fn done(self) -> Array < Gd < crate::classes::Node > > { + let Self { + _phantom, surround_object, pattern, type_, recursive, owned, + } + = self; + re_export::Node::find_children_full(surround_object, pattern, type_, recursive, owned,) + } +} +#[doc = "Default-param extender for [`Node::get_path_to_ex`][super::Node::get_path_to_ex]."] +#[must_use] +pub struct ExGetPathTo < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Node, node: ObjectCow < crate::classes::Node >, use_unique_path: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetPathTo < 'a > { + fn new(surround_object: &'a re_export::Node, node: impl AsObjectArg < crate::classes::Node >,) -> Self { + let use_unique_path = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, node: node.consume_arg(), use_unique_path: use_unique_path, + } + } + #[inline] + pub fn use_unique_path(self, use_unique_path: bool) -> Self { + Self { + use_unique_path: use_unique_path, .. self + } + } + #[inline] + pub fn done(self) -> NodePath { + let Self { + _phantom, surround_object, node, use_unique_path, + } + = self; + re_export::Node::get_path_to_full(surround_object, node.cow_as_object_arg(), use_unique_path,) + } +} +#[doc = "Default-param extender for [`Node::add_to_group_ex`][super::Node::add_to_group_ex]."] +#[must_use] +pub struct ExAddToGroup < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Node, group: CowArg < 'a, StringName >, persistent: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddToGroup < 'a > { + fn new(surround_object: &'a mut re_export::Node, group: impl AsArg < StringName > + 'a,) -> Self { + let persistent = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, group: group.into_arg(), persistent: persistent, + } + } + #[inline] + pub fn persistent(self, persistent: bool) -> Self { + Self { + persistent: persistent, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, group, persistent, + } + = self; + re_export::Node::add_to_group_full(surround_object, group, persistent,) + } +} +#[doc = "Default-param extender for [`Node::get_index_ex`][super::Node::get_index_ex]."] +#[must_use] +pub struct ExGetIndex < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Node, include_internal: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetIndex < 'a > { + fn new(surround_object: &'a re_export::Node,) -> Self { + let include_internal = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, include_internal: include_internal, + } + } + #[inline] + pub fn include_internal(self, include_internal: bool) -> Self { + Self { + include_internal: include_internal, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, include_internal, + } + = self; + re_export::Node::get_index_full(surround_object, include_internal,) + } +} +#[doc = "Default-param extender for [`Node::propagate_call_ex`][super::Node::propagate_call_ex]."] +#[must_use] +pub struct ExPropagateCall < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Node, method: CowArg < 'a, StringName >, args: CowArg < 'a, VariantArray >, parent_first: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPropagateCall < 'a > { + fn new(surround_object: &'a mut re_export::Node, method: impl AsArg < StringName > + 'a,) -> Self { + let args = Array::new(); + let parent_first = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, method: method.into_arg(), args: CowArg::Owned(args), parent_first: parent_first, + } + } + #[inline] + pub fn args(self, args: &'a VariantArray) -> Self { + Self { + args: CowArg::Borrowed(args), .. self + } + } + #[inline] + pub fn parent_first(self, parent_first: bool) -> Self { + Self { + parent_first: parent_first, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, method, args, parent_first, + } + = self; + re_export::Node::propagate_call_full(surround_object, method, args.cow_as_arg(), parent_first,) + } +} +#[doc = "Default-param extender for [`Node::duplicate_ex`][super::Node::duplicate_ex]."] +#[must_use] +pub struct ExDuplicate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Node, flags: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDuplicate < 'a > { + fn new(surround_object: &'a re_export::Node,) -> Self { + let flags = 15i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, flags: flags, + } + } + #[inline] + pub fn flags(self, flags: i32) -> Self { + Self { + flags: flags, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Node > > { + let Self { + _phantom, surround_object, flags, + } + = self; + re_export::Node::duplicate_full(surround_object, flags,) + } +} +#[doc = "Default-param extender for [`Node::replace_by_ex`][super::Node::replace_by_ex]."] +#[must_use] +pub struct ExReplaceBy < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Node, node: ObjectCow < crate::classes::Node >, keep_groups: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExReplaceBy < 'a > { + fn new(surround_object: &'a mut re_export::Node, node: impl AsObjectArg < crate::classes::Node >,) -> Self { + let keep_groups = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, node: node.consume_arg(), keep_groups: keep_groups, + } + } + #[inline] + pub fn keep_groups(self, keep_groups: bool) -> Self { + Self { + keep_groups: keep_groups, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, node, keep_groups, + } + = self; + re_export::Node::replace_by_full(surround_object, node.cow_as_object_arg(), keep_groups,) + } +} +#[doc = "Default-param extender for [`Node::set_multiplayer_authority_ex`][super::Node::set_multiplayer_authority_ex]."] +#[must_use] +pub struct ExSetMultiplayerAuthority < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Node, id: i32, recursive: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetMultiplayerAuthority < 'a > { + fn new(surround_object: &'a mut re_export::Node, id: i32,) -> Self { + let recursive = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id, recursive: recursive, + } + } + #[inline] + pub fn recursive(self, recursive: bool) -> Self { + Self { + recursive: recursive, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, id, recursive, + } + = self; + re_export::Node::set_multiplayer_authority_full(surround_object, id, recursive,) + } +} +#[doc = "Default-param extender for [`Node::atr_ex`][super::Node::atr_ex]."] +#[must_use] +pub struct ExAtr < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Node, message: CowArg < 'a, GString >, context: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAtr < 'a > { + fn new(surround_object: &'a re_export::Node, message: impl AsArg < GString > + 'a,) -> Self { + let context = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, message: message.into_arg(), context: CowArg::Owned(context), + } + } + #[inline] + pub fn context(self, context: impl AsArg < StringName > + 'a) -> Self { + Self { + context: context.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, message, context, + } + = self; + re_export::Node::atr_full(surround_object, message, context,) + } +} +#[doc = "Default-param extender for [`Node::atr_n_ex`][super::Node::atr_n_ex]."] +#[must_use] +pub struct ExAtrN < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Node, message: CowArg < 'a, GString >, plural_message: CowArg < 'a, StringName >, n: i32, context: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAtrN < 'a > { + fn new(surround_object: &'a re_export::Node, message: impl AsArg < GString > + 'a, plural_message: impl AsArg < StringName > + 'a, n: i32,) -> Self { + let context = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, message: message.into_arg(), plural_message: plural_message.into_arg(), n: n, context: CowArg::Owned(context), + } + } + #[inline] + pub fn context(self, context: impl AsArg < StringName > + 'a) -> Self { + Self { + context: context.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, message, plural_message, n, context, + } + = self; + re_export::Node::atr_n_full(surround_object, message, plural_message, n, context,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ProcessMode { + ord: i32 +} +impl ProcessMode { + #[doc(alias = "PROCESS_MODE_INHERIT")] + #[doc = "Godot enumerator name: `PROCESS_MODE_INHERIT`"] + pub const INHERIT: ProcessMode = ProcessMode { + ord: 0i32 + }; + #[doc(alias = "PROCESS_MODE_PAUSABLE")] + #[doc = "Godot enumerator name: `PROCESS_MODE_PAUSABLE`"] + pub const PAUSABLE: ProcessMode = ProcessMode { + ord: 1i32 + }; + #[doc(alias = "PROCESS_MODE_WHEN_PAUSED")] + #[doc = "Godot enumerator name: `PROCESS_MODE_WHEN_PAUSED`"] + pub const WHEN_PAUSED: ProcessMode = ProcessMode { + ord: 2i32 + }; + #[doc(alias = "PROCESS_MODE_ALWAYS")] + #[doc = "Godot enumerator name: `PROCESS_MODE_ALWAYS`"] + pub const ALWAYS: ProcessMode = ProcessMode { + ord: 3i32 + }; + #[doc(alias = "PROCESS_MODE_DISABLED")] + #[doc = "Godot enumerator name: `PROCESS_MODE_DISABLED`"] + pub const DISABLED: ProcessMode = ProcessMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for ProcessMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ProcessMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ProcessMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERIT => "INHERIT", Self::PAUSABLE => "PAUSABLE", Self::WHEN_PAUSED => "WHEN_PAUSED", Self::ALWAYS => "ALWAYS", Self::DISABLED => "DISABLED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERIT => "PROCESS_MODE_INHERIT", Self::PAUSABLE => "PROCESS_MODE_PAUSABLE", Self::WHEN_PAUSED => "PROCESS_MODE_WHEN_PAUSED", Self::ALWAYS => "PROCESS_MODE_ALWAYS", Self::DISABLED => "PROCESS_MODE_DISABLED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ProcessMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ProcessMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ProcessMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ProcessThreadGroup { + ord: i32 +} +impl ProcessThreadGroup { + #[doc(alias = "PROCESS_THREAD_GROUP_INHERIT")] + #[doc = "Godot enumerator name: `PROCESS_THREAD_GROUP_INHERIT`"] + pub const INHERIT: ProcessThreadGroup = ProcessThreadGroup { + ord: 0i32 + }; + #[doc(alias = "PROCESS_THREAD_GROUP_MAIN_THREAD")] + #[doc = "Godot enumerator name: `PROCESS_THREAD_GROUP_MAIN_THREAD`"] + pub const MAIN_THREAD: ProcessThreadGroup = ProcessThreadGroup { + ord: 1i32 + }; + #[doc(alias = "PROCESS_THREAD_GROUP_SUB_THREAD")] + #[doc = "Godot enumerator name: `PROCESS_THREAD_GROUP_SUB_THREAD`"] + pub const SUB_THREAD: ProcessThreadGroup = ProcessThreadGroup { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ProcessThreadGroup { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ProcessThreadGroup") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ProcessThreadGroup { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERIT => "INHERIT", Self::MAIN_THREAD => "MAIN_THREAD", Self::SUB_THREAD => "SUB_THREAD", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERIT => "PROCESS_THREAD_GROUP_INHERIT", Self::MAIN_THREAD => "PROCESS_THREAD_GROUP_MAIN_THREAD", Self::SUB_THREAD => "PROCESS_THREAD_GROUP_SUB_THREAD", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ProcessThreadGroup { + type Via = i32; + +} +impl crate::meta::ToGodot for ProcessThreadGroup { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ProcessThreadGroup { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct ProcessThreadMessages { + ord: u64 +} +impl ProcessThreadMessages { + #[doc(alias = "FLAG_PROCESS_THREAD_MESSAGES")] + #[doc = "Godot enumerator name: `FLAG_PROCESS_THREAD_MESSAGES`"] + pub const MESSAGES: ProcessThreadMessages = ProcessThreadMessages { + ord: 1u64 + }; + #[doc(alias = "FLAG_PROCESS_THREAD_MESSAGES_PHYSICS")] + #[doc = "Godot enumerator name: `FLAG_PROCESS_THREAD_MESSAGES_PHYSICS`"] + pub const MESSAGES_PHYSICS: ProcessThreadMessages = ProcessThreadMessages { + ord: 2u64 + }; + #[doc(alias = "FLAG_PROCESS_THREAD_MESSAGES_ALL")] + #[doc = "Godot enumerator name: `FLAG_PROCESS_THREAD_MESSAGES_ALL`"] + pub const MESSAGES_ALL: ProcessThreadMessages = ProcessThreadMessages { + ord: 3u64 + }; + +} +impl std::fmt::Debug for ProcessThreadMessages { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::MESSAGES => "MESSAGES", Self::MESSAGES_PHYSICS => "MESSAGES_PHYSICS", Self::MESSAGES_ALL => "MESSAGES_ALL", _ => { + f.debug_struct("ProcessThreadMessages") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for ProcessThreadMessages { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for ProcessThreadMessages { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for ProcessThreadMessages { + type Via = u64; + +} +impl crate::meta::ToGodot for ProcessThreadMessages { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for ProcessThreadMessages { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PhysicsInterpolationMode { + ord: i32 +} +impl PhysicsInterpolationMode { + #[doc(alias = "PHYSICS_INTERPOLATION_MODE_INHERIT")] + #[doc = "Godot enumerator name: `PHYSICS_INTERPOLATION_MODE_INHERIT`"] + pub const INHERIT: PhysicsInterpolationMode = PhysicsInterpolationMode { + ord: 0i32 + }; + #[doc(alias = "PHYSICS_INTERPOLATION_MODE_ON")] + #[doc = "Godot enumerator name: `PHYSICS_INTERPOLATION_MODE_ON`"] + pub const ON: PhysicsInterpolationMode = PhysicsInterpolationMode { + ord: 1i32 + }; + #[doc(alias = "PHYSICS_INTERPOLATION_MODE_OFF")] + #[doc = "Godot enumerator name: `PHYSICS_INTERPOLATION_MODE_OFF`"] + pub const OFF: PhysicsInterpolationMode = PhysicsInterpolationMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for PhysicsInterpolationMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PhysicsInterpolationMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PhysicsInterpolationMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERIT => "INHERIT", Self::ON => "ON", Self::OFF => "OFF", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERIT => "PHYSICS_INTERPOLATION_MODE_INHERIT", Self::ON => "PHYSICS_INTERPOLATION_MODE_ON", Self::OFF => "PHYSICS_INTERPOLATION_MODE_OFF", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PhysicsInterpolationMode { + type Via = i32; + +} +impl crate::meta::ToGodot for PhysicsInterpolationMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PhysicsInterpolationMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DuplicateFlags { + ord: i32 +} +impl DuplicateFlags { + #[doc(alias = "DUPLICATE_SIGNALS")] + #[doc = "Godot enumerator name: `DUPLICATE_SIGNALS`"] + pub const SIGNALS: DuplicateFlags = DuplicateFlags { + ord: 1i32 + }; + #[doc(alias = "DUPLICATE_GROUPS")] + #[doc = "Godot enumerator name: `DUPLICATE_GROUPS`"] + pub const GROUPS: DuplicateFlags = DuplicateFlags { + ord: 2i32 + }; + #[doc(alias = "DUPLICATE_SCRIPTS")] + #[doc = "Godot enumerator name: `DUPLICATE_SCRIPTS`"] + pub const SCRIPTS: DuplicateFlags = DuplicateFlags { + ord: 4i32 + }; + #[doc(alias = "DUPLICATE_USE_INSTANTIATION")] + #[doc = "Godot enumerator name: `DUPLICATE_USE_INSTANTIATION`"] + pub const USE_INSTANTIATION: DuplicateFlags = DuplicateFlags { + ord: 8i32 + }; + +} +impl std::fmt::Debug for DuplicateFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DuplicateFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DuplicateFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 1i32 | ord @ 2i32 | ord @ 4i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SIGNALS => "SIGNALS", Self::GROUPS => "GROUPS", Self::SCRIPTS => "SCRIPTS", Self::USE_INSTANTIATION => "USE_INSTANTIATION", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SIGNALS => "DUPLICATE_SIGNALS", Self::GROUPS => "DUPLICATE_GROUPS", Self::SCRIPTS => "DUPLICATE_SCRIPTS", Self::USE_INSTANTIATION => "DUPLICATE_USE_INSTANTIATION", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DuplicateFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for DuplicateFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DuplicateFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct InternalMode { + ord: i32 +} +impl InternalMode { + #[doc(alias = "INTERNAL_MODE_DISABLED")] + #[doc = "Godot enumerator name: `INTERNAL_MODE_DISABLED`"] + pub const DISABLED: InternalMode = InternalMode { + ord: 0i32 + }; + #[doc(alias = "INTERNAL_MODE_FRONT")] + #[doc = "Godot enumerator name: `INTERNAL_MODE_FRONT`"] + pub const FRONT: InternalMode = InternalMode { + ord: 1i32 + }; + #[doc(alias = "INTERNAL_MODE_BACK")] + #[doc = "Godot enumerator name: `INTERNAL_MODE_BACK`"] + pub const BACK: InternalMode = InternalMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for InternalMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("InternalMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for InternalMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::FRONT => "FRONT", Self::BACK => "BACK", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "INTERNAL_MODE_DISABLED", Self::FRONT => "INTERNAL_MODE_FRONT", Self::BACK => "INTERNAL_MODE_BACK", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for InternalMode { + type Via = i32; + +} +impl crate::meta::ToGodot for InternalMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for InternalMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AutoTranslateMode { + ord: i32 +} +impl AutoTranslateMode { + #[doc(alias = "AUTO_TRANSLATE_MODE_INHERIT")] + #[doc = "Godot enumerator name: `AUTO_TRANSLATE_MODE_INHERIT`"] + pub const INHERIT: AutoTranslateMode = AutoTranslateMode { + ord: 0i32 + }; + #[doc(alias = "AUTO_TRANSLATE_MODE_ALWAYS")] + #[doc = "Godot enumerator name: `AUTO_TRANSLATE_MODE_ALWAYS`"] + pub const ALWAYS: AutoTranslateMode = AutoTranslateMode { + ord: 1i32 + }; + #[doc(alias = "AUTO_TRANSLATE_MODE_DISABLED")] + #[doc = "Godot enumerator name: `AUTO_TRANSLATE_MODE_DISABLED`"] + pub const DISABLED: AutoTranslateMode = AutoTranslateMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AutoTranslateMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AutoTranslateMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AutoTranslateMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERIT => "INHERIT", Self::ALWAYS => "ALWAYS", Self::DISABLED => "DISABLED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INHERIT => "AUTO_TRANSLATE_MODE_INHERIT", Self::ALWAYS => "AUTO_TRANSLATE_MODE_ALWAYS", Self::DISABLED => "AUTO_TRANSLATE_MODE_DISABLED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AutoTranslateMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AutoTranslateMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AutoTranslateMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node_2d.rs new file mode 100644 index 0000000..84149dc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node_2d.rs @@ -0,0 +1,570 @@ +#![doc = "Sidecar module for class [`Node2D`][crate::classes::Node2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Node2D` enums](https://docs.godotengine.org/en/stable/classes/class_node2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Node2D.`\n\nInherits [`CanvasItem`][crate::classes::CanvasItem].\n\nRelated symbols:\n\n* [`node_2d`][crate::classes::node_2d]: sidecar module with related enum/flag types\n* [`INode2D`][crate::classes::INode2D]: virtual methods\n\n\nSee also [Godot docs for `Node2D`](https://docs.godotengine.org/en/stable/classes/class_node2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Node2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Node2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Node2D`][crate::classes::Node2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Node2D` methods](https://docs.godotengine.org/en/stable/classes/class_node2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait INode2D: crate::obj::GodotClass < Base = Node2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Node2D { + pub fn set_position(&mut self, position: Vector2,) { + type CallSig = ((), Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5443usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation(&mut self, radians: f32,) { + type CallSig = ((), f32); + let args = (radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5444usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation_degrees(&mut self, degrees: f32,) { + type CallSig = ((), f32); + let args = (degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5445usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_rotation_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skew(&mut self, radians: f32,) { + type CallSig = ((), f32); + let args = (radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5446usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_skew", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scale(&mut self, scale: Vector2,) { + type CallSig = ((), Vector2); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5447usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5448usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5449usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation_degrees(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5450usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_rotation_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skew(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5451usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_skew", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scale(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5452usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rotate(&mut self, radians: f32,) { + type CallSig = ((), f32); + let args = (radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5453usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "rotate", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn move_local_x_full(&mut self, delta: f32, scaled: bool,) { + type CallSig = ((), f32, bool); + let args = (delta, scaled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5454usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "move_local_x", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::move_local_x_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn move_local_x(&mut self, delta: f32,) { + self.move_local_x_ex(delta,) . done() + } + #[inline] + pub fn move_local_x_ex < 'a > (&'a mut self, delta: f32,) -> ExMoveLocalX < 'a > { + ExMoveLocalX::new(self, delta,) + } + pub(crate) fn move_local_y_full(&mut self, delta: f32, scaled: bool,) { + type CallSig = ((), f32, bool); + let args = (delta, scaled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5455usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "move_local_y", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::move_local_y_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn move_local_y(&mut self, delta: f32,) { + self.move_local_y_ex(delta,) . done() + } + #[inline] + pub fn move_local_y_ex < 'a > (&'a mut self, delta: f32,) -> ExMoveLocalY < 'a > { + ExMoveLocalY::new(self, delta,) + } + pub fn translate(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5456usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "translate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_translate(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5457usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "global_translate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn apply_scale(&mut self, ratio: Vector2,) { + type CallSig = ((), Vector2); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5458usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "apply_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_position(&mut self, position: Vector2,) { + type CallSig = ((), Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5459usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_global_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5460usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_global_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_rotation(&mut self, radians: f32,) { + type CallSig = ((), f32); + let args = (radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5461usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_global_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_rotation_degrees(&mut self, degrees: f32,) { + type CallSig = ((), f32); + let args = (degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5462usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_global_rotation_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_rotation(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5463usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_global_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_rotation_degrees(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5464usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_global_rotation_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_skew(&mut self, radians: f32,) { + type CallSig = ((), f32); + let args = (radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5465usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_global_skew", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_skew(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5466usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_global_skew", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_scale(&mut self, scale: Vector2,) { + type CallSig = ((), Vector2); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5467usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_global_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_scale(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5468usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_global_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transform(&mut self, xform: Transform2D,) { + type CallSig = ((), Transform2D); + let args = (xform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5469usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_transform(&mut self, xform: Transform2D,) { + type CallSig = ((), Transform2D); + let args = (xform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5470usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "set_global_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn look_at(&mut self, point: Vector2,) { + type CallSig = ((), Vector2); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5471usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "look_at", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angle_to(&self, point: Vector2,) -> f32 { + type CallSig = (f32, Vector2); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5472usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_angle_to", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn to_local(&self, global_point: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (global_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5473usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "to_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn to_global(&self, local_point: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (local_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5474usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "to_global", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_relative_transform_to_parent(&self, parent: impl AsObjectArg < crate::classes::Node >,) -> Transform2D { + type CallSig = (Transform2D, ObjectArg < crate::classes::Node >); + let args = (parent.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5475usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node2D", "get_relative_transform_to_parent", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Node2D { + type Base = crate::classes::CanvasItem; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Node2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Node2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Node2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Node2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Node2D { + + } + impl crate::obj::cap::GodotDefault for Node2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Node2D { + type Target = crate::classes::CanvasItem; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Node2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Node2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Node2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Node2D::move_local_x_ex`][super::Node2D::move_local_x_ex]."] +#[must_use] +pub struct ExMoveLocalX < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Node2D, delta: f32, scaled: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExMoveLocalX < 'a > { + fn new(surround_object: &'a mut re_export::Node2D, delta: f32,) -> Self { + let scaled = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, delta: delta, scaled: scaled, + } + } + #[inline] + pub fn scaled(self, scaled: bool) -> Self { + Self { + scaled: scaled, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, delta, scaled, + } + = self; + re_export::Node2D::move_local_x_full(surround_object, delta, scaled,) + } +} +#[doc = "Default-param extender for [`Node2D::move_local_y_ex`][super::Node2D::move_local_y_ex]."] +#[must_use] +pub struct ExMoveLocalY < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Node2D, delta: f32, scaled: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExMoveLocalY < 'a > { + fn new(surround_object: &'a mut re_export::Node2D, delta: f32,) -> Self { + let scaled = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, delta: delta, scaled: scaled, + } + } + #[inline] + pub fn scaled(self, scaled: bool) -> Self { + Self { + scaled: scaled, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, delta, scaled, + } + = self; + re_export::Node2D::move_local_y_full(surround_object, delta, scaled,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node_3d.rs new file mode 100644 index 0000000..daeb51d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node_3d.rs @@ -0,0 +1,1007 @@ +#![doc = "Sidecar module for class [`Node3D`][crate::classes::Node3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Node3D` enums](https://docs.godotengine.org/en/stable/classes/class_node3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Node3D.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`node_3d`][crate::classes::node_3d]: sidecar module with related enum/flag types\n* [`INode3D`][crate::classes::INode3D]: virtual methods\n* [`Node3DNotification`][crate::classes::notify::Node3DNotification]: notification type\n\n\nSee also [Godot docs for `Node3D`](https://docs.godotengine.org/en/stable/classes/class_node3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Node3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Node3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Node3D`][crate::classes::Node3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Node3D` methods](https://docs.godotengine.org/en/stable/classes/class_node3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait INode3D: crate::obj::GodotClass < Base = Node3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + #[doc = "Notification type for class [`Node3D`][crate::classes::Node3D]."] + #[doc = r""] + #[doc = r" Makes it easier to keep an overview all possible notification variants for a given class, including"] + #[doc = r" notifications defined in base classes."] + #[doc = r""] + #[doc = r" Contains the [`Unknown`][Self::Unknown] variant for forward compatibility."] + #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] + #[repr(i32)] + #[allow(non_camel_case_types)] + pub enum Node3DNotification { + TRANSFORM_CHANGED = 2000i32, ENTER_WORLD = 41i32, EXIT_WORLD = 42i32, VISIBILITY_CHANGED = 43i32, LOCAL_TRANSFORM_CHANGED = 44i32, ENTER_TREE = 10i32, EXIT_TREE = 11i32, MOVED_IN_PARENT = 12i32, READY = 13i32, PAUSED = 14i32, UNPAUSED = 15i32, PHYSICS_PROCESS = 16i32, PROCESS = 17i32, PARENTED = 18i32, UNPARENTED = 19i32, SCENE_INSTANTIATED = 20i32, DRAG_BEGIN = 21i32, DRAG_END = 22i32, PATH_RENAMED = 23i32, CHILD_ORDER_CHANGED = 24i32, INTERNAL_PROCESS = 25i32, INTERNAL_PHYSICS_PROCESS = 26i32, POST_ENTER_TREE = 27i32, DISABLED = 28i32, ENABLED = 29i32, RESET_PHYSICS_INTERPOLATION = 2001i32, EDITOR_PRE_SAVE = 9001i32, EDITOR_POST_SAVE = 9002i32, WM_MOUSE_ENTER = 1002i32, WM_MOUSE_EXIT = 1003i32, WM_WINDOW_FOCUS_IN = 1004i32, WM_WINDOW_FOCUS_OUT = 1005i32, WM_CLOSE_REQUEST = 1006i32, WM_GO_BACK_REQUEST = 1007i32, WM_SIZE_CHANGED = 1008i32, WM_DPI_CHANGE = 1009i32, VP_MOUSE_ENTER = 1010i32, VP_MOUSE_EXIT = 1011i32, OS_MEMORY_WARNING = 2009i32, TRANSLATION_CHANGED = 2010i32, WM_ABOUT = 2011i32, CRASH = 2012i32, OS_IME_UPDATE = 2013i32, APPLICATION_RESUMED = 2014i32, APPLICATION_PAUSED = 2015i32, APPLICATION_FOCUS_IN = 2016i32, APPLICATION_FOCUS_OUT = 2017i32, TEXT_SERVER_CHANGED = 2018i32, POSTINITIALIZE = 0i32, PREDELETE = 1i32, EXTENSION_RELOADED = 2i32, #[doc = r" Since Godot represents notifications as integers, it's always possible that a notification outside the known types"] + #[doc = r" is received. For example, the user can manually issue notifications through `Object::notify()`."] + #[doc = r""] + #[doc = r" This is also necessary if you develop an extension on a Godot version and want to be forward-compatible with newer"] + #[doc = r" versions. If Godot adds new notifications, they will be unknown to your extension, but you can still handle them."] + Unknown(i32), + } + impl From < i32 > for Node3DNotification { + #[doc = r" Always succeeds, mapping unknown integers to the `Unknown` variant."] + fn from(enumerator: i32) -> Self { + match enumerator { + 2000i32 => Self::TRANSFORM_CHANGED, 41i32 => Self::ENTER_WORLD, 42i32 => Self::EXIT_WORLD, 43i32 => Self::VISIBILITY_CHANGED, 44i32 => Self::LOCAL_TRANSFORM_CHANGED, 10i32 => Self::ENTER_TREE, 11i32 => Self::EXIT_TREE, 12i32 => Self::MOVED_IN_PARENT, 13i32 => Self::READY, 14i32 => Self::PAUSED, 15i32 => Self::UNPAUSED, 16i32 => Self::PHYSICS_PROCESS, 17i32 => Self::PROCESS, 18i32 => Self::PARENTED, 19i32 => Self::UNPARENTED, 20i32 => Self::SCENE_INSTANTIATED, 21i32 => Self::DRAG_BEGIN, 22i32 => Self::DRAG_END, 23i32 => Self::PATH_RENAMED, 24i32 => Self::CHILD_ORDER_CHANGED, 25i32 => Self::INTERNAL_PROCESS, 26i32 => Self::INTERNAL_PHYSICS_PROCESS, 27i32 => Self::POST_ENTER_TREE, 28i32 => Self::DISABLED, 29i32 => Self::ENABLED, 2001i32 => Self::RESET_PHYSICS_INTERPOLATION, 9001i32 => Self::EDITOR_PRE_SAVE, 9002i32 => Self::EDITOR_POST_SAVE, 1002i32 => Self::WM_MOUSE_ENTER, 1003i32 => Self::WM_MOUSE_EXIT, 1004i32 => Self::WM_WINDOW_FOCUS_IN, 1005i32 => Self::WM_WINDOW_FOCUS_OUT, 1006i32 => Self::WM_CLOSE_REQUEST, 1007i32 => Self::WM_GO_BACK_REQUEST, 1008i32 => Self::WM_SIZE_CHANGED, 1009i32 => Self::WM_DPI_CHANGE, 1010i32 => Self::VP_MOUSE_ENTER, 1011i32 => Self::VP_MOUSE_EXIT, 2009i32 => Self::OS_MEMORY_WARNING, 2010i32 => Self::TRANSLATION_CHANGED, 2011i32 => Self::WM_ABOUT, 2012i32 => Self::CRASH, 2013i32 => Self::OS_IME_UPDATE, 2014i32 => Self::APPLICATION_RESUMED, 2015i32 => Self::APPLICATION_PAUSED, 2016i32 => Self::APPLICATION_FOCUS_IN, 2017i32 => Self::APPLICATION_FOCUS_OUT, 2018i32 => Self::TEXT_SERVER_CHANGED, 0i32 => Self::POSTINITIALIZE, 1i32 => Self::PREDELETE, 2i32 => Self::EXTENSION_RELOADED, other_int => Self::Unknown(other_int), + } + } + } + impl From < Node3DNotification > for i32 { + fn from(notification: Node3DNotification) -> i32 { + match notification { + Node3DNotification::TRANSFORM_CHANGED => 2000i32, Node3DNotification::ENTER_WORLD => 41i32, Node3DNotification::EXIT_WORLD => 42i32, Node3DNotification::VISIBILITY_CHANGED => 43i32, Node3DNotification::LOCAL_TRANSFORM_CHANGED => 44i32, Node3DNotification::ENTER_TREE => 10i32, Node3DNotification::EXIT_TREE => 11i32, Node3DNotification::MOVED_IN_PARENT => 12i32, Node3DNotification::READY => 13i32, Node3DNotification::PAUSED => 14i32, Node3DNotification::UNPAUSED => 15i32, Node3DNotification::PHYSICS_PROCESS => 16i32, Node3DNotification::PROCESS => 17i32, Node3DNotification::PARENTED => 18i32, Node3DNotification::UNPARENTED => 19i32, Node3DNotification::SCENE_INSTANTIATED => 20i32, Node3DNotification::DRAG_BEGIN => 21i32, Node3DNotification::DRAG_END => 22i32, Node3DNotification::PATH_RENAMED => 23i32, Node3DNotification::CHILD_ORDER_CHANGED => 24i32, Node3DNotification::INTERNAL_PROCESS => 25i32, Node3DNotification::INTERNAL_PHYSICS_PROCESS => 26i32, Node3DNotification::POST_ENTER_TREE => 27i32, Node3DNotification::DISABLED => 28i32, Node3DNotification::ENABLED => 29i32, Node3DNotification::RESET_PHYSICS_INTERPOLATION => 2001i32, Node3DNotification::EDITOR_PRE_SAVE => 9001i32, Node3DNotification::EDITOR_POST_SAVE => 9002i32, Node3DNotification::WM_MOUSE_ENTER => 1002i32, Node3DNotification::WM_MOUSE_EXIT => 1003i32, Node3DNotification::WM_WINDOW_FOCUS_IN => 1004i32, Node3DNotification::WM_WINDOW_FOCUS_OUT => 1005i32, Node3DNotification::WM_CLOSE_REQUEST => 1006i32, Node3DNotification::WM_GO_BACK_REQUEST => 1007i32, Node3DNotification::WM_SIZE_CHANGED => 1008i32, Node3DNotification::WM_DPI_CHANGE => 1009i32, Node3DNotification::VP_MOUSE_ENTER => 1010i32, Node3DNotification::VP_MOUSE_EXIT => 1011i32, Node3DNotification::OS_MEMORY_WARNING => 2009i32, Node3DNotification::TRANSLATION_CHANGED => 2010i32, Node3DNotification::WM_ABOUT => 2011i32, Node3DNotification::CRASH => 2012i32, Node3DNotification::OS_IME_UPDATE => 2013i32, Node3DNotification::APPLICATION_RESUMED => 2014i32, Node3DNotification::APPLICATION_PAUSED => 2015i32, Node3DNotification::APPLICATION_FOCUS_IN => 2016i32, Node3DNotification::APPLICATION_FOCUS_OUT => 2017i32, Node3DNotification::TEXT_SERVER_CHANGED => 2018i32, Node3DNotification::POSTINITIALIZE => 0i32, Node3DNotification::PREDELETE => 1i32, Node3DNotification::EXTENSION_RELOADED => 2i32, Node3DNotification::Unknown(int) => int, + } + } + } + impl Node3D { + pub fn set_transform(&mut self, local: Transform3D,) { + type CallSig = ((), Transform3D); + let args = (local,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5476usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transform(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5477usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_position(&mut self, position: Vector3,) { + type CallSig = ((), Vector3); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5478usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5479usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation(&mut self, euler_radians: Vector3,) { + type CallSig = ((), Vector3); + let args = (euler_radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5480usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5481usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation_degrees(&mut self, euler_degrees: Vector3,) { + type CallSig = ((), Vector3); + let args = (euler_degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5482usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_rotation_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation_degrees(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5483usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_rotation_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation_order(&mut self, order: crate::global::EulerOrder,) { + type CallSig = ((), crate::global::EulerOrder); + let args = (order,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5484usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_rotation_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation_order(&self,) -> crate::global::EulerOrder { + type CallSig = (crate::global::EulerOrder,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5485usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_rotation_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation_edit_mode(&mut self, edit_mode: crate::classes::node_3d::RotationEditMode,) { + type CallSig = ((), crate::classes::node_3d::RotationEditMode); + let args = (edit_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5486usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_rotation_edit_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation_edit_mode(&self,) -> crate::classes::node_3d::RotationEditMode { + type CallSig = (crate::classes::node_3d::RotationEditMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5487usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_rotation_edit_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scale(&mut self, scale: Vector3,) { + type CallSig = ((), Vector3); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5488usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scale(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5489usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_quaternion(&mut self, quaternion: Quaternion,) { + type CallSig = ((), Quaternion); + let args = (quaternion,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5490usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_quaternion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_quaternion(&self,) -> Quaternion { + type CallSig = (Quaternion,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5491usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_quaternion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_basis(&mut self, basis: Basis,) { + type CallSig = ((), Basis); + let args = (basis,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5492usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_basis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_basis(&self,) -> Basis { + type CallSig = (Basis,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5493usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_basis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_transform(&mut self, global: Transform3D,) { + type CallSig = ((), Transform3D); + let args = (global,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5494usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_global_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_transform(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5495usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_global_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_position(&mut self, position: Vector3,) { + type CallSig = ((), Vector3); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5496usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_global_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_position(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5497usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_global_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_basis(&mut self, basis: Basis,) { + type CallSig = ((), Basis); + let args = (basis,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5498usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_global_basis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_basis(&self,) -> Basis { + type CallSig = (Basis,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5499usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_global_basis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_rotation(&mut self, euler_radians: Vector3,) { + type CallSig = ((), Vector3); + let args = (euler_radians,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5500usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_global_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_rotation(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5501usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_global_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_global_rotation_degrees(&mut self, euler_degrees: Vector3,) { + type CallSig = ((), Vector3); + let args = (euler_degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5502usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_global_rotation_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_rotation_degrees(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5503usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_global_rotation_degrees", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_parent_node_3d(&self,) -> Option < Gd < crate::classes::Node3D > > { + type CallSig = (Option < Gd < crate::classes::Node3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5504usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_parent_node_3d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ignore_transform_notification(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5505usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_ignore_transform_notification", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_as_top_level(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5506usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_as_top_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_set_as_top_level(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5507usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "is_set_as_top_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disable_scale(&mut self, disable: bool,) { + type CallSig = ((), bool); + let args = (disable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5508usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_disable_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_scale_disabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5509usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "is_scale_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_world_3d(&self,) -> Option < Gd < crate::classes::World3D > > { + type CallSig = (Option < Gd < crate::classes::World3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5510usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_world_3d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_update_transform(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5511usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "force_update_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visibility_parent(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5512usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_visibility_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visibility_parent(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5513usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_visibility_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn update_gizmos(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5514usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "update_gizmos", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_gizmo(&mut self, gizmo: impl AsObjectArg < crate::classes::Node3DGizmo >,) { + type CallSig = ((), ObjectArg < crate::classes::Node3DGizmo >); + let args = (gizmo.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5515usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "add_gizmo", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gizmos(&self,) -> Array < Gd < crate::classes::Node3DGizmo > > { + type CallSig = (Array < Gd < crate::classes::Node3DGizmo > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5516usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "get_gizmos", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_gizmos(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5517usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "clear_gizmos", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_subgizmo_selection(&mut self, gizmo: impl AsObjectArg < crate::classes::Node3DGizmo >, id: i32, transform: Transform3D,) { + type CallSig = ((), ObjectArg < crate::classes::Node3DGizmo >, i32, Transform3D); + let args = (gizmo.as_object_arg(), id, transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5518usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_subgizmo_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_subgizmo_selection(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5519usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "clear_subgizmo_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visible(&mut self, visible: bool,) { + type CallSig = ((), bool); + let args = (visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5520usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_visible(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5521usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "is_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_visible_in_tree(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5522usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "is_visible_in_tree", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn show(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5523usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "show", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn hide(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5524usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "hide", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_notify_local_transform(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5525usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_notify_local_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_local_transform_notification_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5526usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "is_local_transform_notification_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_notify_transform(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5527usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_notify_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_transform_notification_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5528usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "is_transform_notification_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rotate(&mut self, axis: Vector3, angle: f32,) { + type CallSig = ((), Vector3, f32); + let args = (axis, angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5529usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "rotate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_rotate(&mut self, axis: Vector3, angle: f32,) { + type CallSig = ((), Vector3, f32); + let args = (axis, angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5530usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "global_rotate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_scale(&mut self, scale: Vector3,) { + type CallSig = ((), Vector3); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5531usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "global_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_translate(&mut self, offset: Vector3,) { + type CallSig = ((), Vector3); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5532usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "global_translate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rotate_object_local(&mut self, axis: Vector3, angle: f32,) { + type CallSig = ((), Vector3, f32); + let args = (axis, angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5533usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "rotate_object_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scale_object_local(&mut self, scale: Vector3,) { + type CallSig = ((), Vector3); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5534usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "scale_object_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn translate_object_local(&mut self, offset: Vector3,) { + type CallSig = ((), Vector3); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5535usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "translate_object_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rotate_x(&mut self, angle: f32,) { + type CallSig = ((), f32); + let args = (angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5536usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "rotate_x", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rotate_y(&mut self, angle: f32,) { + type CallSig = ((), f32); + let args = (angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5537usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "rotate_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rotate_z(&mut self, angle: f32,) { + type CallSig = ((), f32); + let args = (angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5538usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "rotate_z", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn translate(&mut self, offset: Vector3,) { + type CallSig = ((), Vector3); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5539usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "translate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn orthonormalize(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5540usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "orthonormalize", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_identity(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5541usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "set_identity", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn look_at_full(&mut self, target: Vector3, up: Vector3, use_model_front: bool,) { + type CallSig = ((), Vector3, Vector3, bool); + let args = (target, up, use_model_front,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5542usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "look_at", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::look_at_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn look_at(&mut self, target: Vector3,) { + self.look_at_ex(target,) . done() + } + #[inline] + pub fn look_at_ex < 'a > (&'a mut self, target: Vector3,) -> ExLookAt < 'a > { + ExLookAt::new(self, target,) + } + pub(crate) fn look_at_from_position_full(&mut self, position: Vector3, target: Vector3, up: Vector3, use_model_front: bool,) { + type CallSig = ((), Vector3, Vector3, Vector3, bool); + let args = (position, target, up, use_model_front,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5543usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "look_at_from_position", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::look_at_from_position_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn look_at_from_position(&mut self, position: Vector3, target: Vector3,) { + self.look_at_from_position_ex(position, target,) . done() + } + #[inline] + pub fn look_at_from_position_ex < 'a > (&'a mut self, position: Vector3, target: Vector3,) -> ExLookAtFromPosition < 'a > { + ExLookAtFromPosition::new(self, position, target,) + } + pub fn to_local(&self, global_point: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (global_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5544usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "to_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn to_global(&self, local_point: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (local_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5545usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Node3D", "to_global", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" ⚠️ Sends a Godot notification to all classes inherited by the object."] + #[doc = r""] + #[doc = r" Triggers calls to `on_notification()`, and depending on the notification, also to Godot's lifecycle callbacks such as `ready()`."] + #[doc = r""] + #[doc = r" Starts from the highest ancestor (the `Object` class) and goes down the hierarchy."] + #[doc = r" See also [Godot docs for `Object::notification()`](https://docs.godotengine.org/en/latest/classes/class_object.html#id3)."] + #[doc = r""] + #[doc = r" # Panics"] + #[doc = r""] + #[doc = r" If you call this method on a user-defined object while holding a `GdRef` or `GdMut` guard on the instance, you will encounter"] + #[doc = r" a panic. The reason is that the receiving virtual method `on_notification()` acquires a `GdMut` lock dynamically, which must"] + #[doc = r" be exclusive."] + pub fn notify(&mut self, what: Node3DNotification) { + self.notification(i32::from(what), false); + + } + #[doc = r" ⚠️ Like [`Self::notify()`], but starts at the most-derived class and goes up the hierarchy."] + #[doc = r""] + #[doc = r" See docs of that method, including the panics."] + pub fn notify_reversed(&mut self, what: Node3DNotification) { + self.notification(i32::from(what), true); + + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub(crate) const NOTIFICATION_TRANSFORM_CHANGED: i32 = 2000i32; + pub(crate) const NOTIFICATION_ENTER_WORLD: i32 = 41i32; + pub(crate) const NOTIFICATION_EXIT_WORLD: i32 = 42i32; + pub(crate) const NOTIFICATION_VISIBILITY_CHANGED: i32 = 43i32; + pub(crate) const NOTIFICATION_LOCAL_TRANSFORM_CHANGED: i32 = 44i32; + + } + impl crate::obj::GodotClass for Node3D { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Node3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Node3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Node3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Node3D { + + } + impl crate::obj::cap::GodotDefault for Node3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Node3D { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Node3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Node3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Node3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Node3D::look_at_ex`][super::Node3D::look_at_ex]."] +#[must_use] +pub struct ExLookAt < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Node3D, target: Vector3, up: Vector3, use_model_front: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExLookAt < 'a > { + fn new(surround_object: &'a mut re_export::Node3D, target: Vector3,) -> Self { + let up = Vector3::new(0 as _, 1 as _, 0 as _); + let use_model_front = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, target: target, up: up, use_model_front: use_model_front, + } + } + #[inline] + pub fn up(self, up: Vector3) -> Self { + Self { + up: up, .. self + } + } + #[inline] + pub fn use_model_front(self, use_model_front: bool) -> Self { + Self { + use_model_front: use_model_front, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, target, up, use_model_front, + } + = self; + re_export::Node3D::look_at_full(surround_object, target, up, use_model_front,) + } +} +#[doc = "Default-param extender for [`Node3D::look_at_from_position_ex`][super::Node3D::look_at_from_position_ex]."] +#[must_use] +pub struct ExLookAtFromPosition < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Node3D, position: Vector3, target: Vector3, up: Vector3, use_model_front: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExLookAtFromPosition < 'a > { + fn new(surround_object: &'a mut re_export::Node3D, position: Vector3, target: Vector3,) -> Self { + let up = Vector3::new(0 as _, 1 as _, 0 as _); + let use_model_front = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, position: position, target: target, up: up, use_model_front: use_model_front, + } + } + #[inline] + pub fn up(self, up: Vector3) -> Self { + Self { + up: up, .. self + } + } + #[inline] + pub fn use_model_front(self, use_model_front: bool) -> Self { + Self { + use_model_front: use_model_front, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, position, target, up, use_model_front, + } + = self; + re_export::Node3D::look_at_from_position_full(surround_object, position, target, up, use_model_front,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct RotationEditMode { + ord: i32 +} +impl RotationEditMode { + #[doc(alias = "ROTATION_EDIT_MODE_EULER")] + #[doc = "Godot enumerator name: `ROTATION_EDIT_MODE_EULER`"] + pub const EULER: RotationEditMode = RotationEditMode { + ord: 0i32 + }; + #[doc(alias = "ROTATION_EDIT_MODE_QUATERNION")] + #[doc = "Godot enumerator name: `ROTATION_EDIT_MODE_QUATERNION`"] + pub const QUATERNION: RotationEditMode = RotationEditMode { + ord: 1i32 + }; + #[doc(alias = "ROTATION_EDIT_MODE_BASIS")] + #[doc = "Godot enumerator name: `ROTATION_EDIT_MODE_BASIS`"] + pub const BASIS: RotationEditMode = RotationEditMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for RotationEditMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("RotationEditMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for RotationEditMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EULER => "EULER", Self::QUATERNION => "QUATERNION", Self::BASIS => "BASIS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EULER => "ROTATION_EDIT_MODE_EULER", Self::QUATERNION => "ROTATION_EDIT_MODE_QUATERNION", Self::BASIS => "ROTATION_EDIT_MODE_BASIS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for RotationEditMode { + type Via = i32; + +} +impl crate::meta::ToGodot for RotationEditMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for RotationEditMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node_3d_gizmo.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node_3d_gizmo.rs new file mode 100644 index 0000000..ff02d29 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/node_3d_gizmo.rs @@ -0,0 +1,188 @@ +#![doc = "Sidecar module for class [`Node3DGizmo`][crate::classes::Node3DGizmo].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Node3DGizmo` enums](https://docs.godotengine.org/en/stable/classes/class_node3dgizmo.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Node3DGizmo.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`INode3DGizmo`][crate::classes::INode3DGizmo]: virtual methods\n\n\nSee also [Godot docs for `Node3DGizmo`](https://docs.godotengine.org/en/stable/classes/class_node3dgizmo.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct Node3DGizmo { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Node3DGizmo`][crate::classes::Node3DGizmo].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Node3DGizmo` methods](https://docs.godotengine.org/en/stable/classes/class_node3dgizmo.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait INode3DGizmo: crate::obj::GodotClass < Base = Node3DGizmo > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Node3DGizmo { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Node3DGizmo { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Node3DGizmo")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Node3DGizmo { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Node3DGizmo { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Node3DGizmo { + + } + impl std::ops::Deref for Node3DGizmo { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Node3DGizmo { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Node3DGizmo`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Node3DGizmo { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3DGizmo > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/noise.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/noise.rs new file mode 100644 index 0000000..8ce5d5a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/noise.rs @@ -0,0 +1,473 @@ +#![doc = "Sidecar module for class [`Noise`][crate::classes::Noise].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Noise` enums](https://docs.godotengine.org/en/stable/classes/class_noise.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Noise.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`noise`][crate::classes::noise]: sidecar module with related enum/flag types\n* [`INoise`][crate::classes::INoise]: virtual methods\n\n\nSee also [Godot docs for `Noise`](https://docs.godotengine.org/en/stable/classes/class_noise.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct Noise { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Noise`][crate::classes::Noise].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Noise` methods](https://docs.godotengine.org/en/stable/classes/class_noise.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait INoise: crate::obj::GodotClass < Base = Noise > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Noise { + pub fn get_noise_1d(&self, x: f32,) -> f32 { + type CallSig = (f32, f32); + let args = (x,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5546usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Noise", "get_noise_1d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_noise_2d(&self, x: f32, y: f32,) -> f32 { + type CallSig = (f32, f32, f32); + let args = (x, y,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5547usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Noise", "get_noise_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_noise_2dv(&self, v: Vector2,) -> f32 { + type CallSig = (f32, Vector2); + let args = (v,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5548usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Noise", "get_noise_2dv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_noise_3d(&self, x: f32, y: f32, z: f32,) -> f32 { + type CallSig = (f32, f32, f32, f32); + let args = (x, y, z,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5549usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Noise", "get_noise_3d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_noise_3dv(&self, v: Vector3,) -> f32 { + type CallSig = (f32, Vector3); + let args = (v,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5550usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Noise", "get_noise_3dv", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_image_full(&self, width: i32, height: i32, invert: bool, in_3d_space: bool, normalize: bool,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >, i32, i32, bool, bool, bool); + let args = (width, height, invert, in_3d_space, normalize,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5551usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Noise", "get_image", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_image_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_image(&self, width: i32, height: i32,) -> Option < Gd < crate::classes::Image > > { + self.get_image_ex(width, height,) . done() + } + #[inline] + pub fn get_image_ex < 'a > (&'a self, width: i32, height: i32,) -> ExGetImage < 'a > { + ExGetImage::new(self, width, height,) + } + pub(crate) fn get_seamless_image_full(&self, width: i32, height: i32, invert: bool, in_3d_space: bool, skirt: f32, normalize: bool,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >, i32, i32, bool, bool, f32, bool); + let args = (width, height, invert, in_3d_space, skirt, normalize,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5552usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Noise", "get_seamless_image", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_seamless_image_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_seamless_image(&self, width: i32, height: i32,) -> Option < Gd < crate::classes::Image > > { + self.get_seamless_image_ex(width, height,) . done() + } + #[inline] + pub fn get_seamless_image_ex < 'a > (&'a self, width: i32, height: i32,) -> ExGetSeamlessImage < 'a > { + ExGetSeamlessImage::new(self, width, height,) + } + pub(crate) fn get_image_3d_full(&self, width: i32, height: i32, depth: i32, invert: bool, normalize: bool,) -> Array < Gd < crate::classes::Image > > { + type CallSig = (Array < Gd < crate::classes::Image > >, i32, i32, i32, bool, bool); + let args = (width, height, depth, invert, normalize,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5553usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Noise", "get_image_3d", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_image_3d_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_image_3d(&self, width: i32, height: i32, depth: i32,) -> Array < Gd < crate::classes::Image > > { + self.get_image_3d_ex(width, height, depth,) . done() + } + #[inline] + pub fn get_image_3d_ex < 'a > (&'a self, width: i32, height: i32, depth: i32,) -> ExGetImage3d < 'a > { + ExGetImage3d::new(self, width, height, depth,) + } + pub(crate) fn get_seamless_image_3d_full(&self, width: i32, height: i32, depth: i32, invert: bool, skirt: f32, normalize: bool,) -> Array < Gd < crate::classes::Image > > { + type CallSig = (Array < Gd < crate::classes::Image > >, i32, i32, i32, bool, f32, bool); + let args = (width, height, depth, invert, skirt, normalize,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5554usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Noise", "get_seamless_image_3d", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_seamless_image_3d_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_seamless_image_3d(&self, width: i32, height: i32, depth: i32,) -> Array < Gd < crate::classes::Image > > { + self.get_seamless_image_3d_ex(width, height, depth,) . done() + } + #[inline] + pub fn get_seamless_image_3d_ex < 'a > (&'a self, width: i32, height: i32, depth: i32,) -> ExGetSeamlessImage3d < 'a > { + ExGetSeamlessImage3d::new(self, width, height, depth,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Noise { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Noise")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Noise { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Noise { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Noise { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Noise { + + } + impl std::ops::Deref for Noise { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Noise { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Noise`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Noise { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Noise > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Noise::get_image_ex`][super::Noise::get_image_ex]."] +#[must_use] +pub struct ExGetImage < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Noise, width: i32, height: i32, invert: bool, in_3d_space: bool, normalize: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetImage < 'a > { + fn new(surround_object: &'a re_export::Noise, width: i32, height: i32,) -> Self { + let invert = false; + let in_3d_space = false; + let normalize = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, width: width, height: height, invert: invert, in_3d_space: in_3d_space, normalize: normalize, + } + } + #[inline] + pub fn invert(self, invert: bool) -> Self { + Self { + invert: invert, .. self + } + } + #[inline] + pub fn in_3d_space(self, in_3d_space: bool) -> Self { + Self { + in_3d_space: in_3d_space, .. self + } + } + #[inline] + pub fn normalize(self, normalize: bool) -> Self { + Self { + normalize: normalize, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Image > > { + let Self { + _phantom, surround_object, width, height, invert, in_3d_space, normalize, + } + = self; + re_export::Noise::get_image_full(surround_object, width, height, invert, in_3d_space, normalize,) + } +} +#[doc = "Default-param extender for [`Noise::get_seamless_image_ex`][super::Noise::get_seamless_image_ex]."] +#[must_use] +pub struct ExGetSeamlessImage < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Noise, width: i32, height: i32, invert: bool, in_3d_space: bool, skirt: f32, normalize: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetSeamlessImage < 'a > { + fn new(surround_object: &'a re_export::Noise, width: i32, height: i32,) -> Self { + let invert = false; + let in_3d_space = false; + let skirt = 0.1f32; + let normalize = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, width: width, height: height, invert: invert, in_3d_space: in_3d_space, skirt: skirt, normalize: normalize, + } + } + #[inline] + pub fn invert(self, invert: bool) -> Self { + Self { + invert: invert, .. self + } + } + #[inline] + pub fn in_3d_space(self, in_3d_space: bool) -> Self { + Self { + in_3d_space: in_3d_space, .. self + } + } + #[inline] + pub fn skirt(self, skirt: f32) -> Self { + Self { + skirt: skirt, .. self + } + } + #[inline] + pub fn normalize(self, normalize: bool) -> Self { + Self { + normalize: normalize, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Image > > { + let Self { + _phantom, surround_object, width, height, invert, in_3d_space, skirt, normalize, + } + = self; + re_export::Noise::get_seamless_image_full(surround_object, width, height, invert, in_3d_space, skirt, normalize,) + } +} +#[doc = "Default-param extender for [`Noise::get_image_3d_ex`][super::Noise::get_image_3d_ex]."] +#[must_use] +pub struct ExGetImage3d < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Noise, width: i32, height: i32, depth: i32, invert: bool, normalize: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetImage3d < 'a > { + fn new(surround_object: &'a re_export::Noise, width: i32, height: i32, depth: i32,) -> Self { + let invert = false; + let normalize = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, width: width, height: height, depth: depth, invert: invert, normalize: normalize, + } + } + #[inline] + pub fn invert(self, invert: bool) -> Self { + Self { + invert: invert, .. self + } + } + #[inline] + pub fn normalize(self, normalize: bool) -> Self { + Self { + normalize: normalize, .. self + } + } + #[inline] + pub fn done(self) -> Array < Gd < crate::classes::Image > > { + let Self { + _phantom, surround_object, width, height, depth, invert, normalize, + } + = self; + re_export::Noise::get_image_3d_full(surround_object, width, height, depth, invert, normalize,) + } +} +#[doc = "Default-param extender for [`Noise::get_seamless_image_3d_ex`][super::Noise::get_seamless_image_3d_ex]."] +#[must_use] +pub struct ExGetSeamlessImage3d < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Noise, width: i32, height: i32, depth: i32, invert: bool, skirt: f32, normalize: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetSeamlessImage3d < 'a > { + fn new(surround_object: &'a re_export::Noise, width: i32, height: i32, depth: i32,) -> Self { + let invert = false; + let skirt = 0.1f32; + let normalize = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, width: width, height: height, depth: depth, invert: invert, skirt: skirt, normalize: normalize, + } + } + #[inline] + pub fn invert(self, invert: bool) -> Self { + Self { + invert: invert, .. self + } + } + #[inline] + pub fn skirt(self, skirt: f32) -> Self { + Self { + skirt: skirt, .. self + } + } + #[inline] + pub fn normalize(self, normalize: bool) -> Self { + Self { + normalize: normalize, .. self + } + } + #[inline] + pub fn done(self) -> Array < Gd < crate::classes::Image > > { + let Self { + _phantom, surround_object, width, height, depth, invert, skirt, normalize, + } + = self; + re_export::Noise::get_seamless_image_3d_full(surround_object, width, height, depth, invert, skirt, normalize,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/noise_texture_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/noise_texture_2d.rs new file mode 100644 index 0000000..a2fa411 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/noise_texture_2d.rs @@ -0,0 +1,407 @@ +#![doc = "Sidecar module for class [`NoiseTexture2D`][crate::classes::NoiseTexture2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `NoiseTexture2D` enums](https://docs.godotengine.org/en/stable/classes/class_noisetexture2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `NoiseTexture2D.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`INoiseTexture2D`][crate::classes::INoiseTexture2D]: virtual methods\n\n\nSee also [Godot docs for `NoiseTexture2D`](https://docs.godotengine.org/en/stable/classes/class_noisetexture2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`NoiseTexture2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct NoiseTexture2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`NoiseTexture2D`][crate::classes::NoiseTexture2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `NoiseTexture2D` methods](https://docs.godotengine.org/en/stable/classes/class_noisetexture2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait INoiseTexture2D: crate::obj::GodotClass < Base = NoiseTexture2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl NoiseTexture2D { + pub fn set_width(&mut self, width: i32,) { + type CallSig = ((), i32); + let args = (width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5555usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: i32,) { + type CallSig = ((), i32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5556usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_invert(&mut self, invert: bool,) { + type CallSig = ((), bool); + let args = (invert,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5557usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_invert", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_invert(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5558usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "get_invert", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_in_3d_space(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5559usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_in_3d_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_in_3d_space(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5560usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "is_in_3d_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_generate_mipmaps(&mut self, invert: bool,) { + type CallSig = ((), bool); + let args = (invert,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5561usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_generate_mipmaps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_generating_mipmaps(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5562usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "is_generating_mipmaps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_seamless(&mut self, seamless: bool,) { + type CallSig = ((), bool); + let args = (seamless,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5563usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_seamless", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_seamless(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5564usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "get_seamless", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_seamless_blend_skirt(&mut self, seamless_blend_skirt: f32,) { + type CallSig = ((), f32); + let args = (seamless_blend_skirt,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5565usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_seamless_blend_skirt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_seamless_blend_skirt(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5566usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "get_seamless_blend_skirt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_as_normal_map(&mut self, as_normal_map: bool,) { + type CallSig = ((), bool); + let args = (as_normal_map,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5567usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_as_normal_map", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_normal_map(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5568usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "is_normal_map", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bump_strength(&mut self, bump_strength: f32,) { + type CallSig = ((), f32); + let args = (bump_strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5569usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_bump_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bump_strength(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5570usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "get_bump_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_normalize(&mut self, normalize: bool,) { + type CallSig = ((), bool); + let args = (normalize,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5571usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_normalize", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_normalized(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5572usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "is_normalized", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color_ramp(&mut self, gradient: impl AsObjectArg < crate::classes::Gradient >,) { + type CallSig = ((), ObjectArg < crate::classes::Gradient >); + let args = (gradient.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5573usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_color_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_ramp(&self,) -> Option < Gd < crate::classes::Gradient > > { + type CallSig = (Option < Gd < crate::classes::Gradient > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5574usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "get_color_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_noise(&mut self, noise: impl AsObjectArg < crate::classes::Noise >,) { + type CallSig = ((), ObjectArg < crate::classes::Noise >); + let args = (noise.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5575usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "set_noise", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_noise(&mut self,) -> Option < Gd < crate::classes::Noise > > { + type CallSig = (Option < Gd < crate::classes::Noise > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5576usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture2D", "get_noise", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for NoiseTexture2D { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"NoiseTexture2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for NoiseTexture2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for NoiseTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for NoiseTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for NoiseTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for NoiseTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for NoiseTexture2D { + + } + impl crate::obj::cap::GodotDefault for NoiseTexture2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for NoiseTexture2D { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for NoiseTexture2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`NoiseTexture2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_NoiseTexture2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::NoiseTexture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/noise_texture_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/noise_texture_3d.rs new file mode 100644 index 0000000..eba49af --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/noise_texture_3d.rs @@ -0,0 +1,340 @@ +#![doc = "Sidecar module for class [`NoiseTexture3D`][crate::classes::NoiseTexture3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `NoiseTexture3D` enums](https://docs.godotengine.org/en/stable/classes/class_noisetexture3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `NoiseTexture3D.`\n\nInherits [`Texture3D`][crate::classes::Texture3D].\n\nRelated symbols:\n\n* [`INoiseTexture3D`][crate::classes::INoiseTexture3D]: virtual methods\n\n\nSee also [Godot docs for `NoiseTexture3D`](https://docs.godotengine.org/en/stable/classes/class_noisetexture3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`NoiseTexture3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct NoiseTexture3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`NoiseTexture3D`][crate::classes::NoiseTexture3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `NoiseTexture3D` methods](https://docs.godotengine.org/en/stable/classes/class_noisetexture3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait INoiseTexture3D: crate::obj::GodotClass < Base = NoiseTexture3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_depth(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_data(&self,) -> Array < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl NoiseTexture3D { + pub fn set_width(&mut self, width: i32,) { + type CallSig = ((), i32); + let args = (width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5577usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "set_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, height: i32,) { + type CallSig = ((), i32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5578usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth(&mut self, depth: i32,) { + type CallSig = ((), i32); + let args = (depth,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5579usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "set_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_invert(&mut self, invert: bool,) { + type CallSig = ((), bool); + let args = (invert,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5580usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "set_invert", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_invert(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5581usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "get_invert", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_seamless(&mut self, seamless: bool,) { + type CallSig = ((), bool); + let args = (seamless,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5582usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "set_seamless", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_seamless(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5583usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "get_seamless", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_seamless_blend_skirt(&mut self, seamless_blend_skirt: f32,) { + type CallSig = ((), f32); + let args = (seamless_blend_skirt,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5584usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "set_seamless_blend_skirt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_seamless_blend_skirt(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5585usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "get_seamless_blend_skirt", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_normalize(&mut self, normalize: bool,) { + type CallSig = ((), bool); + let args = (normalize,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5586usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "set_normalize", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_normalized(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5587usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "is_normalized", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color_ramp(&mut self, gradient: impl AsObjectArg < crate::classes::Gradient >,) { + type CallSig = ((), ObjectArg < crate::classes::Gradient >); + let args = (gradient.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5588usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "set_color_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_ramp(&self,) -> Option < Gd < crate::classes::Gradient > > { + type CallSig = (Option < Gd < crate::classes::Gradient > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5589usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "get_color_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_noise(&mut self, noise: impl AsObjectArg < crate::classes::Noise >,) { + type CallSig = ((), ObjectArg < crate::classes::Noise >); + let args = (noise.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5590usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "set_noise", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_noise(&mut self,) -> Option < Gd < crate::classes::Noise > > { + type CallSig = (Option < Gd < crate::classes::Noise > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5591usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "NoiseTexture3D", "get_noise", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for NoiseTexture3D { + type Base = crate::classes::Texture3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"NoiseTexture3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for NoiseTexture3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture3D > for NoiseTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for NoiseTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for NoiseTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for NoiseTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for NoiseTexture3D { + + } + impl crate::obj::cap::GodotDefault for NoiseTexture3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for NoiseTexture3D { + type Target = crate::classes::Texture3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for NoiseTexture3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`NoiseTexture3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_NoiseTexture3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::NoiseTexture3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/object.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/object.rs new file mode 100644 index 0000000..5e554ed --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/object.rs @@ -0,0 +1,877 @@ +#![doc = "Sidecar module for class [`Object`][crate::classes::Object].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Object` enums](https://docs.godotengine.org/en/stable/classes/class_object.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Object.`\n\nThis is the base class for all other classes at the root of the hierarchy. Every instance of `Object` can be stored in a [`Gd`][crate::obj::Gd] smart pointer.\n\nRelated symbols:\n\n* [`object`][crate::classes::object]: sidecar module with related enum/flag types\n* [`IObject`][crate::classes::IObject]: virtual methods\n* [`ObjectNotification`][crate::classes::notify::ObjectNotification]: notification type\n\n\nSee also [Godot docs for `Object`](https://docs.godotengine.org/en/stable/classes/class_object.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Object::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Object { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Object`][crate::classes::Object].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Object` methods](https://docs.godotengine.org/en/stable/classes/class_object.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IObject: crate::obj::GodotClass < Base = Object > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + #[doc = "Notification type for class [`Object`][crate::classes::Object]."] + #[doc = r""] + #[doc = r" Makes it easier to keep an overview all possible notification variants for a given class, including"] + #[doc = r" notifications defined in base classes."] + #[doc = r""] + #[doc = r" Contains the [`Unknown`][Self::Unknown] variant for forward compatibility."] + #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] + #[repr(i32)] + #[allow(non_camel_case_types)] + pub enum ObjectNotification { + POSTINITIALIZE = 0i32, PREDELETE = 1i32, EXTENSION_RELOADED = 2i32, #[doc = r" Since Godot represents notifications as integers, it's always possible that a notification outside the known types"] + #[doc = r" is received. For example, the user can manually issue notifications through `Object::notify()`."] + #[doc = r""] + #[doc = r" This is also necessary if you develop an extension on a Godot version and want to be forward-compatible with newer"] + #[doc = r" versions. If Godot adds new notifications, they will be unknown to your extension, but you can still handle them."] + Unknown(i32), + } + impl From < i32 > for ObjectNotification { + #[doc = r" Always succeeds, mapping unknown integers to the `Unknown` variant."] + fn from(enumerator: i32) -> Self { + match enumerator { + 0i32 => Self::POSTINITIALIZE, 1i32 => Self::PREDELETE, 2i32 => Self::EXTENSION_RELOADED, other_int => Self::Unknown(other_int), + } + } + } + impl From < ObjectNotification > for i32 { + fn from(notification: ObjectNotification) -> i32 { + match notification { + ObjectNotification::POSTINITIALIZE => 0i32, ObjectNotification::PREDELETE => 1i32, ObjectNotification::EXTENSION_RELOADED => 2i32, ObjectNotification::Unknown(int) => int, + } + } + } + impl Object { + pub fn get_class(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(54usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get_class", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_class(&self, class: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (class.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(55usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "is_class", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set(&mut self, property: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (property.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(56usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "set", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get(&self, property: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (property.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(57usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_indexed(&mut self, property_path: impl AsArg < NodePath >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, NodePath >, RefArg < 'a1, Variant >); + let args = (property_path.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(58usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "set_indexed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_indexed(&self, property_path: impl AsArg < NodePath >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, NodePath >); + let args = (property_path.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(59usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get_indexed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_property_list(&self,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(60usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get_property_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_method_list(&self,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(61usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get_method_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn property_can_revert(&self, property: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (property.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(62usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "property_can_revert", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn property_get_revert(&self, property: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (property.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(63usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "property_get_revert", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn notification(&mut self, what: i32, reversed: bool,) { + type CallSig = ((), i32, bool); + let args = (what, reversed,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(64usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "notification", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn to_string(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(65usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "to_string", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_script(&mut self, script: &Variant,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >); + let args = (RefArg::new(script),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(66usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "set_script", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_script(&self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(67usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get_script", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_meta(&mut self, name: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (name.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(68usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "set_meta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_meta(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(69usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "remove_meta", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_meta_full(&self, name: CowArg < StringName >, default: RefArg < Variant >,) -> Variant { + type CallSig < 'a0, 'a1, > = (Variant, CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (name, default,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(70usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get_meta", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_meta_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_meta(&self, name: impl AsArg < StringName >,) -> Variant { + self.get_meta_ex(name,) . done() + } + #[inline] + pub fn get_meta_ex < 'a > (&'a self, name: impl AsArg < StringName > + 'a,) -> ExGetMeta < 'a > { + ExGetMeta::new(self, name,) + } + pub fn has_meta(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(71usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "has_meta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_meta_list(&self,) -> Array < StringName > { + type CallSig = (Array < StringName >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(72usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get_meta_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_user_signal_full(&mut self, signal: CowArg < GString >, arguments: RefArg < VariantArray >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, VariantArray >); + let args = (signal, arguments,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(73usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "add_user_signal", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_user_signal_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_user_signal(&mut self, signal: impl AsArg < GString >,) { + self.add_user_signal_ex(signal,) . done() + } + #[inline] + pub fn add_user_signal_ex < 'a > (&'a mut self, signal: impl AsArg < GString > + 'a,) -> ExAddUserSignal < 'a > { + ExAddUserSignal::new(self, signal,) + } + pub fn has_user_signal(&self, signal: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (signal.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(74usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "has_user_signal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_user_signal(&mut self, signal: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (signal.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(75usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "remove_user_signal", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn emit_signal(&mut self, signal: impl AsArg < StringName >, varargs: &[Variant]) -> crate::global::Error { + Self::try_emit_signal(self, signal, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_emit_signal(&mut self, signal: impl AsArg < StringName >, varargs: &[Variant]) -> Result < crate::global::Error, crate::meta::error::CallError > { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, StringName >); + let args = (signal.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(76usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "Object", "emit_signal", self.object_ptr, self.__checked_id(), args, varargs) + } + } + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn call(&mut self, method: impl AsArg < StringName >, varargs: &[Variant]) -> Variant { + Self::try_call(self, method, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_call(&mut self, method: impl AsArg < StringName >, varargs: &[Variant]) -> Result < Variant, crate::meta::error::CallError > { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (method.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(77usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "Object", "call", self.object_ptr, self.__checked_id(), args, varargs) + } + } + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn call_deferred(&mut self, method: impl AsArg < StringName >, varargs: &[Variant]) -> Variant { + Self::try_call_deferred(self, method, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_call_deferred(&mut self, method: impl AsArg < StringName >, varargs: &[Variant]) -> Result < Variant, crate::meta::error::CallError > { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (method.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(78usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "Object", "call_deferred", self.object_ptr, self.__checked_id(), args, varargs) + } + } + pub fn set_deferred(&mut self, property: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (property.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(79usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "set_deferred", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn callv(&mut self, method: impl AsArg < StringName >, arg_array: &VariantArray,) -> Variant { + type CallSig < 'a0, 'a1, > = (Variant, CowArg < 'a0, StringName >, RefArg < 'a1, VariantArray >); + let args = (method.into_arg(), RefArg::new(arg_array),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(80usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "callv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_method(&self, method: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (method.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(81usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "has_method", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_method_argument_count(&self, method: impl AsArg < StringName >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, StringName >); + let args = (method.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(82usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get_method_argument_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_signal(&self, signal: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (signal.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(83usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "has_signal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_signal_list(&self,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(84usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get_signal_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_signal_connection_list(&self, signal: impl AsArg < StringName >,) -> Array < Dictionary > { + type CallSig < 'a0, > = (Array < Dictionary >, CowArg < 'a0, StringName >); + let args = (signal.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(85usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get_signal_connection_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_incoming_connections(&self,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(86usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "get_incoming_connections", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn connect_full(&mut self, signal: CowArg < StringName >, callable: RefArg < Callable >, flags: u32,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, StringName >, RefArg < 'a1, Callable >, u32); + let args = (signal, callable, flags,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(87usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "connect", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::connect_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn connect(&mut self, signal: impl AsArg < StringName >, callable: &Callable,) -> crate::global::Error { + self.connect_ex(signal, callable,) . done() + } + #[inline] + pub fn connect_ex < 'a > (&'a mut self, signal: impl AsArg < StringName > + 'a, callable: &'a Callable,) -> ExConnect < 'a > { + ExConnect::new(self, signal, callable,) + } + pub fn disconnect(&mut self, signal: impl AsArg < StringName >, callable: &Callable,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Callable >); + let args = (signal.into_arg(), RefArg::new(callable),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(88usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "disconnect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_connected(&self, signal: impl AsArg < StringName >, callable: &Callable,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, RefArg < 'a1, Callable >); + let args = (signal.into_arg(), RefArg::new(callable),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(89usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "is_connected", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_block_signals(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(90usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "set_block_signals", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_blocking_signals(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(91usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "is_blocking_signals", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn notify_property_list_changed(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(92usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "notify_property_list_changed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_message_translation(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(93usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "set_message_translation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn can_translate_messages(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(94usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "can_translate_messages", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn tr_full(&self, message: CowArg < StringName >, context: CowArg < StringName >,) -> GString { + type CallSig < 'a0, 'a1, > = (GString, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (message, context,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(95usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "tr", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::tr_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn tr(&self, message: impl AsArg < StringName >,) -> GString { + self.tr_ex(message,) . done() + } + #[inline] + pub fn tr_ex < 'a > (&'a self, message: impl AsArg < StringName > + 'a,) -> ExTr < 'a > { + ExTr::new(self, message,) + } + pub(crate) fn tr_n_full(&self, message: CowArg < StringName >, plural_message: CowArg < StringName >, n: i32, context: CowArg < StringName >,) -> GString { + type CallSig < 'a0, 'a1, 'a2, > = (GString, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, i32, CowArg < 'a2, StringName >); + let args = (message, plural_message, n, context,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(96usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "tr_n", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::tr_n_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn tr_n(&self, message: impl AsArg < StringName >, plural_message: impl AsArg < StringName >, n: i32,) -> GString { + self.tr_n_ex(message, plural_message, n,) . done() + } + #[inline] + pub fn tr_n_ex < 'a > (&'a self, message: impl AsArg < StringName > + 'a, plural_message: impl AsArg < StringName > + 'a, n: i32,) -> ExTrN < 'a > { + ExTrN::new(self, message, plural_message, n,) + } + pub fn is_queued_for_deletion(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(97usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "is_queued_for_deletion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn cancel_free(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(98usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Object", "cancel_free", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" ⚠️ Sends a Godot notification to all classes inherited by the object."] + #[doc = r""] + #[doc = r" Triggers calls to `on_notification()`, and depending on the notification, also to Godot's lifecycle callbacks such as `ready()`."] + #[doc = r""] + #[doc = r" Starts from the highest ancestor (the `Object` class) and goes down the hierarchy."] + #[doc = r" See also [Godot docs for `Object::notification()`](https://docs.godotengine.org/en/latest/classes/class_object.html#id3)."] + #[doc = r""] + #[doc = r" # Panics"] + #[doc = r""] + #[doc = r" If you call this method on a user-defined object while holding a `GdRef` or `GdMut` guard on the instance, you will encounter"] + #[doc = r" a panic. The reason is that the receiving virtual method `on_notification()` acquires a `GdMut` lock dynamically, which must"] + #[doc = r" be exclusive."] + pub fn notify(&mut self, what: ObjectNotification) { + self.notification(i32::from(what), false); + + } + #[doc = r" ⚠️ Like [`Self::notify()`], but starts at the most-derived class and goes up the hierarchy."] + #[doc = r""] + #[doc = r" See docs of that method, including the panics."] + pub fn notify_reversed(&mut self, what: ObjectNotification) { + self.notification(i32::from(what), true); + + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub(crate) const NOTIFICATION_POSTINITIALIZE: i32 = 0i32; + pub(crate) const NOTIFICATION_PREDELETE: i32 = 1i32; + pub(crate) const NOTIFICATION_EXTENSION_RELOADED: i32 = 2i32; + + } + impl crate::obj::GodotClass for Object { + type Base = crate::obj::NoBase; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Object")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for Object { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemDynamic; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + impl crate::obj::cap::GodotDefault for Object { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Object`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Object { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Object::get_meta_ex`][super::Object::get_meta_ex]."] +#[must_use] +pub struct ExGetMeta < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Object, name: CowArg < 'a, StringName >, default: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetMeta < 'a > { + fn new(surround_object: &'a re_export::Object, name: impl AsArg < StringName > + 'a,) -> Self { + let default = Variant::nil(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), default: CowArg::Owned(default), + } + } + #[inline] + pub fn default(self, default: &'a Variant) -> Self { + Self { + default: CowArg::Borrowed(default), .. self + } + } + #[inline] + pub fn done(self) -> Variant { + let Self { + _phantom, surround_object, name, default, + } + = self; + re_export::Object::get_meta_full(surround_object, name, default.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`Object::add_user_signal_ex`][super::Object::add_user_signal_ex]."] +#[must_use] +pub struct ExAddUserSignal < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Object, signal: CowArg < 'a, GString >, arguments: CowArg < 'a, VariantArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddUserSignal < 'a > { + fn new(surround_object: &'a mut re_export::Object, signal: impl AsArg < GString > + 'a,) -> Self { + let arguments = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, signal: signal.into_arg(), arguments: CowArg::Owned(arguments), + } + } + #[inline] + pub fn arguments(self, arguments: &'a VariantArray) -> Self { + Self { + arguments: CowArg::Borrowed(arguments), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, signal, arguments, + } + = self; + re_export::Object::add_user_signal_full(surround_object, signal, arguments.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`Object::connect_ex`][super::Object::connect_ex]."] +#[must_use] +pub struct ExConnect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Object, signal: CowArg < 'a, StringName >, callable: CowArg < 'a, Callable >, flags: u32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExConnect < 'a > { + fn new(surround_object: &'a mut re_export::Object, signal: impl AsArg < StringName > + 'a, callable: &'a Callable,) -> Self { + let flags = 0u32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, signal: signal.into_arg(), callable: CowArg::Borrowed(callable), flags: flags, + } + } + #[inline] + pub fn flags(self, flags: u32) -> Self { + Self { + flags: flags, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, signal, callable, flags, + } + = self; + re_export::Object::connect_full(surround_object, signal, callable.cow_as_arg(), flags,) + } +} +#[doc = "Default-param extender for [`Object::tr_ex`][super::Object::tr_ex]."] +#[must_use] +pub struct ExTr < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Object, message: CowArg < 'a, StringName >, context: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTr < 'a > { + fn new(surround_object: &'a re_export::Object, message: impl AsArg < StringName > + 'a,) -> Self { + let context = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, message: message.into_arg(), context: CowArg::Owned(context), + } + } + #[inline] + pub fn context(self, context: impl AsArg < StringName > + 'a) -> Self { + Self { + context: context.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, message, context, + } + = self; + re_export::Object::tr_full(surround_object, message, context,) + } +} +#[doc = "Default-param extender for [`Object::tr_n_ex`][super::Object::tr_n_ex]."] +#[must_use] +pub struct ExTrN < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Object, message: CowArg < 'a, StringName >, plural_message: CowArg < 'a, StringName >, n: i32, context: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTrN < 'a > { + fn new(surround_object: &'a re_export::Object, message: impl AsArg < StringName > + 'a, plural_message: impl AsArg < StringName > + 'a, n: i32,) -> Self { + let context = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, message: message.into_arg(), plural_message: plural_message.into_arg(), n: n, context: CowArg::Owned(context), + } + } + #[inline] + pub fn context(self, context: impl AsArg < StringName > + 'a) -> Self { + Self { + context: context.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, message, plural_message, n, context, + } + = self; + re_export::Object::tr_n_full(surround_object, message, plural_message, n, context,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ConnectFlags { + ord: i32 +} +impl ConnectFlags { + #[doc(alias = "CONNECT_DEFERRED")] + #[doc = "Godot enumerator name: `CONNECT_DEFERRED`"] + pub const DEFERRED: ConnectFlags = ConnectFlags { + ord: 1i32 + }; + #[doc(alias = "CONNECT_PERSIST")] + #[doc = "Godot enumerator name: `CONNECT_PERSIST`"] + pub const PERSIST: ConnectFlags = ConnectFlags { + ord: 2i32 + }; + #[doc(alias = "CONNECT_ONE_SHOT")] + #[doc = "Godot enumerator name: `CONNECT_ONE_SHOT`"] + pub const ONE_SHOT: ConnectFlags = ConnectFlags { + ord: 4i32 + }; + #[doc(alias = "CONNECT_REFERENCE_COUNTED")] + #[doc = "Godot enumerator name: `CONNECT_REFERENCE_COUNTED`"] + pub const REFERENCE_COUNTED: ConnectFlags = ConnectFlags { + ord: 8i32 + }; + +} +impl std::fmt::Debug for ConnectFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ConnectFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ConnectFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 1i32 | ord @ 2i32 | ord @ 4i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFERRED => "DEFERRED", Self::PERSIST => "PERSIST", Self::ONE_SHOT => "ONE_SHOT", Self::REFERENCE_COUNTED => "REFERENCE_COUNTED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFERRED => "CONNECT_DEFERRED", Self::PERSIST => "CONNECT_PERSIST", Self::ONE_SHOT => "CONNECT_ONE_SHOT", Self::REFERENCE_COUNTED => "CONNECT_REFERENCE_COUNTED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ConnectFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for ConnectFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ConnectFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/occluder_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/occluder_3d.rs new file mode 100644 index 0000000..cf34d48 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/occluder_3d.rs @@ -0,0 +1,213 @@ +#![doc = "Sidecar module for class [`Occluder3D`][crate::classes::Occluder3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Occluder3D` enums](https://docs.godotengine.org/en/stable/classes/class_occluder3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Occluder3D.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IOccluder3D`][crate::classes::IOccluder3D]: virtual methods\n\n\nSee also [Godot docs for `Occluder3D`](https://docs.godotengine.org/en/stable/classes/class_occluder3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct Occluder3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Occluder3D`][crate::classes::Occluder3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Occluder3D` methods](https://docs.godotengine.org/en/stable/classes/class_occluder3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOccluder3D: crate::obj::GodotClass < Base = Occluder3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Occluder3D { + pub fn get_vertices(&self,) -> PackedVector3Array { + type CallSig = (PackedVector3Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5666usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Occluder3D", "get_vertices", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_indices(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5667usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Occluder3D", "get_indices", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Occluder3D { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Occluder3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Occluder3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for Occluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Occluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Occluder3D { + + } + impl std::ops::Deref for Occluder3D { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Occluder3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Occluder3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Occluder3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Occluder3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/occluder_instance_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/occluder_instance_3d.rs new file mode 100644 index 0000000..dbe68d5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/occluder_instance_3d.rs @@ -0,0 +1,302 @@ +#![doc = "Sidecar module for class [`OccluderInstance3D`][crate::classes::OccluderInstance3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OccluderInstance3D` enums](https://docs.godotengine.org/en/stable/classes/class_occluderinstance3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OccluderInstance3D.`\n\nInherits [`VisualInstance3D`][crate::classes::VisualInstance3D].\n\nRelated symbols:\n\n* [`IOccluderInstance3D`][crate::classes::IOccluderInstance3D]: virtual methods\n\n\nSee also [Godot docs for `OccluderInstance3D`](https://docs.godotengine.org/en/stable/classes/class_occluderinstance3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`OccluderInstance3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct OccluderInstance3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OccluderInstance3D`][crate::classes::OccluderInstance3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OccluderInstance3D` methods](https://docs.godotengine.org/en/stable/classes/class_occluderinstance3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOccluderInstance3D: crate::obj::GodotClass < Base = OccluderInstance3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl OccluderInstance3D { + pub fn set_bake_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5668usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderInstance3D", "set_bake_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5669usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderInstance3D", "get_bake_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bake_mask_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5670usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderInstance3D", "set_bake_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_mask_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5671usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderInstance3D", "get_bake_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bake_simplification_distance(&mut self, simplification_distance: f32,) { + type CallSig = ((), f32); + let args = (simplification_distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5672usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderInstance3D", "set_bake_simplification_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bake_simplification_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5673usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderInstance3D", "get_bake_simplification_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_occluder(&mut self, occluder: impl AsObjectArg < crate::classes::Occluder3D >,) { + type CallSig = ((), ObjectArg < crate::classes::Occluder3D >); + let args = (occluder.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5674usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderInstance3D", "set_occluder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_occluder(&self,) -> Option < Gd < crate::classes::Occluder3D > > { + type CallSig = (Option < Gd < crate::classes::Occluder3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5675usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderInstance3D", "get_occluder", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OccluderInstance3D { + type Base = crate::classes::VisualInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OccluderInstance3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OccluderInstance3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for OccluderInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for OccluderInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for OccluderInstance3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OccluderInstance3D { + + } + impl crate::obj::cap::GodotDefault for OccluderInstance3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OccluderInstance3D { + type Target = crate::classes::VisualInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OccluderInstance3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OccluderInstance3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OccluderInstance3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OccluderInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/occluder_polygon_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/occluder_polygon_2d.rs new file mode 100644 index 0000000..e184fbe --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/occluder_polygon_2d.rs @@ -0,0 +1,325 @@ +#![doc = "Sidecar module for class [`OccluderPolygon2D`][crate::classes::OccluderPolygon2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OccluderPolygon2D` enums](https://docs.godotengine.org/en/stable/classes/class_occluderpolygon2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OccluderPolygon2D.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`occluder_polygon_2d`][crate::classes::occluder_polygon_2d]: sidecar module with related enum/flag types\n* [`IOccluderPolygon2D`][crate::classes::IOccluderPolygon2D]: virtual methods\n\n\nSee also [Godot docs for `OccluderPolygon2D`](https://docs.godotengine.org/en/stable/classes/class_occluderpolygon2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OccluderPolygon2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OccluderPolygon2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OccluderPolygon2D`][crate::classes::OccluderPolygon2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OccluderPolygon2D` methods](https://docs.godotengine.org/en/stable/classes/class_occluderpolygon2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOccluderPolygon2D: crate::obj::GodotClass < Base = OccluderPolygon2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl OccluderPolygon2D { + pub fn set_closed(&mut self, closed: bool,) { + type CallSig = ((), bool); + let args = (closed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5676usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderPolygon2D", "set_closed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_closed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5677usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderPolygon2D", "is_closed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cull_mode(&mut self, cull_mode: crate::classes::occluder_polygon_2d::CullMode,) { + type CallSig = ((), crate::classes::occluder_polygon_2d::CullMode); + let args = (cull_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5678usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderPolygon2D", "set_cull_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cull_mode(&self,) -> crate::classes::occluder_polygon_2d::CullMode { + type CallSig = (crate::classes::occluder_polygon_2d::CullMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5679usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderPolygon2D", "get_cull_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_polygon(&mut self, polygon: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5680usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderPolygon2D", "set_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_polygon(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5681usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OccluderPolygon2D", "get_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OccluderPolygon2D { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OccluderPolygon2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OccluderPolygon2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for OccluderPolygon2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OccluderPolygon2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OccluderPolygon2D { + + } + impl crate::obj::cap::GodotDefault for OccluderPolygon2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OccluderPolygon2D { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OccluderPolygon2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OccluderPolygon2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OccluderPolygon2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OccluderPolygon2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CullMode { + ord: i32 +} +impl CullMode { + #[doc(alias = "CULL_DISABLED")] + #[doc = "Godot enumerator name: `CULL_DISABLED`"] + pub const DISABLED: CullMode = CullMode { + ord: 0i32 + }; + #[doc(alias = "CULL_CLOCKWISE")] + #[doc = "Godot enumerator name: `CULL_CLOCKWISE`"] + pub const CLOCKWISE: CullMode = CullMode { + ord: 1i32 + }; + #[doc(alias = "CULL_COUNTER_CLOCKWISE")] + #[doc = "Godot enumerator name: `CULL_COUNTER_CLOCKWISE`"] + pub const COUNTER_CLOCKWISE: CullMode = CullMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for CullMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CullMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CullMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::CLOCKWISE => "CLOCKWISE", Self::COUNTER_CLOCKWISE => "COUNTER_CLOCKWISE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "CULL_DISABLED", Self::CLOCKWISE => "CULL_CLOCKWISE", Self::COUNTER_CLOCKWISE => "CULL_COUNTER_CLOCKWISE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CullMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CullMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CullMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/offline_multiplayer_peer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/offline_multiplayer_peer.rs new file mode 100644 index 0000000..afd7d2d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/offline_multiplayer_peer.rs @@ -0,0 +1,205 @@ +#![doc = "Sidecar module for class [`OfflineMultiplayerPeer`][crate::classes::OfflineMultiplayerPeer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OfflineMultiplayerPeer` enums](https://docs.godotengine.org/en/stable/classes/class_offlinemultiplayerpeer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OfflineMultiplayerPeer.`\n\nInherits [`MultiplayerPeer`][crate::classes::MultiplayerPeer].\n\nRelated symbols:\n\n* [`IOfflineMultiplayerPeer`][crate::classes::IOfflineMultiplayerPeer]: virtual methods\n\n\nSee also [Godot docs for `OfflineMultiplayerPeer`](https://docs.godotengine.org/en/stable/classes/class_offlinemultiplayerpeer.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OfflineMultiplayerPeer::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OfflineMultiplayerPeer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OfflineMultiplayerPeer`][crate::classes::OfflineMultiplayerPeer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OfflineMultiplayerPeer` methods](https://docs.godotengine.org/en/stable/classes/class_offlinemultiplayerpeer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOfflineMultiplayerPeer: crate::obj::GodotClass < Base = OfflineMultiplayerPeer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl OfflineMultiplayerPeer { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OfflineMultiplayerPeer { + type Base = crate::classes::MultiplayerPeer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OfflineMultiplayerPeer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OfflineMultiplayerPeer { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::MultiplayerPeer > for OfflineMultiplayerPeer { + + } + unsafe impl crate::obj::Inherits < crate::classes::PacketPeer > for OfflineMultiplayerPeer { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OfflineMultiplayerPeer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OfflineMultiplayerPeer { + + } + impl crate::obj::cap::GodotDefault for OfflineMultiplayerPeer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OfflineMultiplayerPeer { + type Target = crate::classes::MultiplayerPeer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OfflineMultiplayerPeer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OfflineMultiplayerPeer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OfflineMultiplayerPeer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OfflineMultiplayerPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiplayerPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ogg_packet_sequence.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ogg_packet_sequence.rs new file mode 100644 index 0000000..2b73a47 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ogg_packet_sequence.rs @@ -0,0 +1,258 @@ +#![doc = "Sidecar module for class [`OggPacketSequence`][crate::classes::OggPacketSequence].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OggPacketSequence` enums](https://docs.godotengine.org/en/stable/classes/class_oggpacketsequence.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OggPacketSequence.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IOggPacketSequence`][crate::classes::IOggPacketSequence]: virtual methods\n\n\nSee also [Godot docs for `OggPacketSequence`](https://docs.godotengine.org/en/stable/classes/class_oggpacketsequence.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OggPacketSequence::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OggPacketSequence { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OggPacketSequence`][crate::classes::OggPacketSequence].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OggPacketSequence` methods](https://docs.godotengine.org/en/stable/classes/class_oggpacketsequence.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOggPacketSequence: crate::obj::GodotClass < Base = OggPacketSequence > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl OggPacketSequence { + pub fn set_packet_data(&mut self, packet_data: &Array < VariantArray >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < VariantArray > >); + let args = (RefArg::new(packet_data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5682usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OggPacketSequence", "set_packet_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_packet_data(&self,) -> Array < VariantArray > { + type CallSig = (Array < VariantArray >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5683usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OggPacketSequence", "get_packet_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_packet_granule_positions(&mut self, granule_positions: &PackedInt64Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt64Array >); + let args = (RefArg::new(granule_positions),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5684usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OggPacketSequence", "set_packet_granule_positions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_packet_granule_positions(&self,) -> PackedInt64Array { + type CallSig = (PackedInt64Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5685usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OggPacketSequence", "get_packet_granule_positions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sampling_rate(&mut self, sampling_rate: f32,) { + type CallSig = ((), f32); + let args = (sampling_rate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5686usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OggPacketSequence", "set_sampling_rate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sampling_rate(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5687usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OggPacketSequence", "get_sampling_rate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5688usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OggPacketSequence", "get_length", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OggPacketSequence { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OggPacketSequence")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OggPacketSequence { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for OggPacketSequence { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OggPacketSequence { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OggPacketSequence { + + } + impl crate::obj::cap::GodotDefault for OggPacketSequence { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OggPacketSequence { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OggPacketSequence { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OggPacketSequence`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OggPacketSequence { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OggPacketSequence > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ogg_packet_sequence_playback.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ogg_packet_sequence_playback.rs new file mode 100644 index 0000000..db24458 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ogg_packet_sequence_playback.rs @@ -0,0 +1,193 @@ +#![doc = "Sidecar module for class [`OggPacketSequencePlayback`][crate::classes::OggPacketSequencePlayback].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OggPacketSequencePlayback` enums](https://docs.godotengine.org/en/stable/classes/class_oggpacketsequenceplayback.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OggPacketSequencePlayback.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IOggPacketSequencePlayback`][crate::classes::IOggPacketSequencePlayback]: virtual methods\n\n\nSee also [Godot docs for `OggPacketSequencePlayback`](https://docs.godotengine.org/en/stable/classes/class_oggpacketsequenceplayback.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OggPacketSequencePlayback::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OggPacketSequencePlayback { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OggPacketSequencePlayback`][crate::classes::OggPacketSequencePlayback].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OggPacketSequencePlayback` methods](https://docs.godotengine.org/en/stable/classes/class_oggpacketsequenceplayback.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOggPacketSequencePlayback: crate::obj::GodotClass < Base = OggPacketSequencePlayback > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl OggPacketSequencePlayback { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OggPacketSequencePlayback { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OggPacketSequencePlayback")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OggPacketSequencePlayback { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OggPacketSequencePlayback { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OggPacketSequencePlayback { + + } + impl crate::obj::cap::GodotDefault for OggPacketSequencePlayback { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OggPacketSequencePlayback { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OggPacketSequencePlayback { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OggPacketSequencePlayback`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OggPacketSequencePlayback { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OggPacketSequencePlayback > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/omni_light_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/omni_light_3d.rs new file mode 100644 index 0000000..4aec059 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/omni_light_3d.rs @@ -0,0 +1,330 @@ +#![doc = "Sidecar module for class [`OmniLight3D`][crate::classes::OmniLight3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OmniLight3D` enums](https://docs.godotengine.org/en/stable/classes/class_omnilight3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OmniLight3D.`\n\nInherits [`Light3D`][crate::classes::Light3D].\n\nRelated symbols:\n\n* [`omni_light_3d`][crate::classes::omni_light_3d]: sidecar module with related enum/flag types\n* [`IOmniLight3D`][crate::classes::IOmniLight3D]: virtual methods\n\n\nSee also [Godot docs for `OmniLight3D`](https://docs.godotengine.org/en/stable/classes/class_omnilight3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`OmniLight3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct OmniLight3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OmniLight3D`][crate::classes::OmniLight3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OmniLight3D` methods](https://docs.godotengine.org/en/stable/classes/class_omnilight3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOmniLight3D: crate::obj::GodotClass < Base = OmniLight3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl OmniLight3D { + pub fn set_shadow_mode(&mut self, mode: crate::classes::omni_light_3d::ShadowMode,) { + type CallSig = ((), crate::classes::omni_light_3d::ShadowMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5689usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OmniLight3D", "set_shadow_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shadow_mode(&self,) -> crate::classes::omni_light_3d::ShadowMode { + type CallSig = (crate::classes::omni_light_3d::ShadowMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5690usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OmniLight3D", "get_shadow_mode", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OmniLight3D { + type Base = crate::classes::Light3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OmniLight3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OmniLight3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Light3D > for OmniLight3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for OmniLight3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for OmniLight3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for OmniLight3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OmniLight3D { + + } + impl crate::obj::cap::GodotDefault for OmniLight3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OmniLight3D { + type Target = crate::classes::Light3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OmniLight3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OmniLight3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OmniLight3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OmniLight3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Light3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShadowMode { + ord: i32 +} +impl ShadowMode { + #[doc(alias = "SHADOW_DUAL_PARABOLOID")] + #[doc = "Godot enumerator name: `SHADOW_DUAL_PARABOLOID`"] + pub const DUAL_PARABOLOID: ShadowMode = ShadowMode { + ord: 0i32 + }; + #[doc(alias = "SHADOW_CUBE")] + #[doc = "Godot enumerator name: `SHADOW_CUBE`"] + pub const CUBE: ShadowMode = ShadowMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for ShadowMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShadowMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShadowMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DUAL_PARABOLOID => "DUAL_PARABOLOID", Self::CUBE => "CUBE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DUAL_PARABOLOID => "SHADOW_DUAL_PARABOLOID", Self::CUBE => "SHADOW_CUBE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ShadowMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ShadowMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShadowMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_action.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_action.rs new file mode 100644 index 0000000..f3025aa --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_action.rs @@ -0,0 +1,330 @@ +#![doc = "Sidecar module for class [`OpenXrAction`][crate::classes::OpenXrAction].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRAction` enums](https://docs.godotengine.org/en/stable/classes/class_openxraction.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRAction.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`open_xr_action`][crate::classes::open_xr_action]: sidecar module with related enum/flag types\n* [`IOpenXrAction`][crate::classes::IOpenXrAction]: virtual methods\n\n\nSee also [Godot docs for `OpenXRAction`](https://docs.godotengine.org/en/stable/classes/class_openxraction.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OpenXrAction::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrAction { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrAction`][crate::classes::OpenXrAction].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRAction` methods](https://docs.godotengine.org/en/stable/classes/class_openxraction.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrAction: crate::obj::GodotClass < Base = OpenXrAction > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl OpenXrAction { + pub fn set_localized_name(&mut self, localized_name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (localized_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5711usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrAction", "set_localized_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_localized_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5712usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrAction", "get_localized_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_action_type(&mut self, action_type: crate::classes::open_xr_action::ActionType,) { + type CallSig = ((), crate::classes::open_xr_action::ActionType); + let args = (action_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5713usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrAction", "set_action_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_action_type(&self,) -> crate::classes::open_xr_action::ActionType { + type CallSig = (crate::classes::open_xr_action::ActionType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5714usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrAction", "get_action_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_toplevel_paths(&mut self, toplevel_paths: &PackedStringArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(toplevel_paths),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5715usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrAction", "set_toplevel_paths", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_toplevel_paths(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5716usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrAction", "get_toplevel_paths", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrAction { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRAction")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrAction { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for OpenXrAction { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OpenXrAction { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrAction { + + } + impl crate::obj::cap::GodotDefault for OpenXrAction { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrAction { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrAction { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrAction`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrAction { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrAction > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ActionType { + ord: i32 +} +impl ActionType { + #[doc(alias = "OPENXR_ACTION_BOOL")] + #[doc = "Godot enumerator name: `OPENXR_ACTION_BOOL`"] + pub const BOOL: ActionType = ActionType { + ord: 0i32 + }; + #[doc(alias = "OPENXR_ACTION_FLOAT")] + #[doc = "Godot enumerator name: `OPENXR_ACTION_FLOAT`"] + pub const FLOAT: ActionType = ActionType { + ord: 1i32 + }; + #[doc(alias = "OPENXR_ACTION_VECTOR2")] + #[doc = "Godot enumerator name: `OPENXR_ACTION_VECTOR2`"] + pub const VECTOR2: ActionType = ActionType { + ord: 2i32 + }; + #[doc(alias = "OPENXR_ACTION_POSE")] + #[doc = "Godot enumerator name: `OPENXR_ACTION_POSE`"] + pub const POSE: ActionType = ActionType { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ActionType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ActionType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ActionType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOOL => "BOOL", Self::FLOAT => "FLOAT", Self::VECTOR2 => "VECTOR2", Self::POSE => "POSE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOOL => "OPENXR_ACTION_BOOL", Self::FLOAT => "OPENXR_ACTION_FLOAT", Self::VECTOR2 => "OPENXR_ACTION_VECTOR2", Self::POSE => "OPENXR_ACTION_POSE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ActionType { + type Via = i32; + +} +impl crate::meta::ToGodot for ActionType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ActionType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_action_map.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_action_map.rs new file mode 100644 index 0000000..0d4fe57 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_action_map.rs @@ -0,0 +1,322 @@ +#![doc = "Sidecar module for class [`OpenXrActionMap`][crate::classes::OpenXrActionMap].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRActionMap` enums](https://docs.godotengine.org/en/stable/classes/class_openxractionmap.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRActionMap.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IOpenXrActionMap`][crate::classes::IOpenXrActionMap]: virtual methods\n\n\nSee also [Godot docs for `OpenXRActionMap`](https://docs.godotengine.org/en/stable/classes/class_openxractionmap.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OpenXrActionMap::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrActionMap { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrActionMap`][crate::classes::OpenXrActionMap].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRActionMap` methods](https://docs.godotengine.org/en/stable/classes/class_openxractionmap.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrActionMap: crate::obj::GodotClass < Base = OpenXrActionMap > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl OpenXrActionMap { + pub fn set_action_sets(&mut self, action_sets: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(action_sets),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5717usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "set_action_sets", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_action_sets(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5718usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "get_action_sets", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_action_set_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5719usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "get_action_set_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_action_set(&self, name: impl AsArg < GString >,) -> Option < Gd < crate::classes::OpenXrActionSet > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::OpenXrActionSet > >, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5720usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "find_action_set", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_action_set(&self, idx: i32,) -> Option < Gd < crate::classes::OpenXrActionSet > > { + type CallSig = (Option < Gd < crate::classes::OpenXrActionSet > >, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5721usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "get_action_set", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_action_set(&mut self, action_set: impl AsObjectArg < crate::classes::OpenXrActionSet >,) { + type CallSig = ((), ObjectArg < crate::classes::OpenXrActionSet >); + let args = (action_set.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5722usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "add_action_set", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_action_set(&mut self, action_set: impl AsObjectArg < crate::classes::OpenXrActionSet >,) { + type CallSig = ((), ObjectArg < crate::classes::OpenXrActionSet >); + let args = (action_set.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5723usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "remove_action_set", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_interaction_profiles(&mut self, interaction_profiles: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(interaction_profiles),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5724usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "set_interaction_profiles", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_interaction_profiles(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5725usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "get_interaction_profiles", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_interaction_profile_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5726usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "get_interaction_profile_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_interaction_profile(&self, name: impl AsArg < GString >,) -> Option < Gd < crate::classes::OpenXrInteractionProfile > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::OpenXrInteractionProfile > >, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5727usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "find_interaction_profile", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_interaction_profile(&self, idx: i32,) -> Option < Gd < crate::classes::OpenXrInteractionProfile > > { + type CallSig = (Option < Gd < crate::classes::OpenXrInteractionProfile > >, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5728usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "get_interaction_profile", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_interaction_profile(&mut self, interaction_profile: impl AsObjectArg < crate::classes::OpenXrInteractionProfile >,) { + type CallSig = ((), ObjectArg < crate::classes::OpenXrInteractionProfile >); + let args = (interaction_profile.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5729usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "add_interaction_profile", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_interaction_profile(&mut self, interaction_profile: impl AsObjectArg < crate::classes::OpenXrInteractionProfile >,) { + type CallSig = ((), ObjectArg < crate::classes::OpenXrInteractionProfile >); + let args = (interaction_profile.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5730usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "remove_interaction_profile", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_default_action_sets(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5731usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionMap", "create_default_action_sets", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrActionMap { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRActionMap")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrActionMap { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for OpenXrActionMap { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OpenXrActionMap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrActionMap { + + } + impl crate::obj::cap::GodotDefault for OpenXrActionMap { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrActionMap { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrActionMap { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrActionMap`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrActionMap { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrActionMap > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_action_set.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_action_set.rs new file mode 100644 index 0000000..08287ab --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_action_set.rs @@ -0,0 +1,274 @@ +#![doc = "Sidecar module for class [`OpenXrActionSet`][crate::classes::OpenXrActionSet].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRActionSet` enums](https://docs.godotengine.org/en/stable/classes/class_openxractionset.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRActionSet.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IOpenXrActionSet`][crate::classes::IOpenXrActionSet]: virtual methods\n\n\nSee also [Godot docs for `OpenXRActionSet`](https://docs.godotengine.org/en/stable/classes/class_openxractionset.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OpenXrActionSet::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrActionSet { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrActionSet`][crate::classes::OpenXrActionSet].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRActionSet` methods](https://docs.godotengine.org/en/stable/classes/class_openxractionset.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrActionSet: crate::obj::GodotClass < Base = OpenXrActionSet > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl OpenXrActionSet { + pub fn set_localized_name(&mut self, localized_name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (localized_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5732usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionSet", "set_localized_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_localized_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5733usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionSet", "get_localized_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_priority(&mut self, priority: i32,) { + type CallSig = ((), i32); + let args = (priority,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5734usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionSet", "set_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_priority(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5735usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionSet", "get_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_action_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5736usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionSet", "get_action_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_actions(&mut self, actions: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(actions),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5737usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionSet", "set_actions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_actions(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5738usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionSet", "get_actions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_action(&mut self, action: impl AsObjectArg < crate::classes::OpenXrAction >,) { + type CallSig = ((), ObjectArg < crate::classes::OpenXrAction >); + let args = (action.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5739usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionSet", "add_action", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_action(&mut self, action: impl AsObjectArg < crate::classes::OpenXrAction >,) { + type CallSig = ((), ObjectArg < crate::classes::OpenXrAction >); + let args = (action.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5740usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrActionSet", "remove_action", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrActionSet { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRActionSet")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrActionSet { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for OpenXrActionSet { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OpenXrActionSet { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrActionSet { + + } + impl crate::obj::cap::GodotDefault for OpenXrActionSet { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrActionSet { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrActionSet { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrActionSet`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrActionSet { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrActionSet > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_api_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_api_extension.rs new file mode 100644 index 0000000..5291f52 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_api_extension.rs @@ -0,0 +1,433 @@ +#![doc = "Sidecar module for class [`OpenXrApiExtension`][crate::classes::OpenXrApiExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRAPIExtension` enums](https://docs.godotengine.org/en/stable/classes/class_openxrapiextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRAPIExtension.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`open_xr_api_extension`][crate::classes::open_xr_api_extension]: sidecar module with related enum/flag types\n* [`IOpenXrApiExtension`][crate::classes::IOpenXrApiExtension]: virtual methods\n\n\nSee also [Godot docs for `OpenXRAPIExtension`](https://docs.godotengine.org/en/stable/classes/class_openxrapiextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OpenXrApiExtension::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrApiExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrApiExtension`][crate::classes::OpenXrApiExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRAPIExtension` methods](https://docs.godotengine.org/en/stable/classes/class_openxrapiextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrApiExtension: crate::obj::GodotClass < Base = OpenXrApiExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl OpenXrApiExtension { + pub fn get_instance(&mut self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5691usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "get_instance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_system_id(&mut self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5692usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "get_system_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_session(&mut self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5693usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "get_session", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + pub unsafe fn transform_from_pose(&mut self, pose: * const c_void,) -> Transform3D { + type CallSig = (Transform3D, * const c_void); + let args = (pose,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5694usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "transform_from_pose", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn xr_result(&mut self, result: u64, format: impl AsArg < GString >, args: &VariantArray,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, u64, CowArg < 'a0, GString >, RefArg < 'a1, VariantArray >); + let args = (result, format.into_arg(), RefArg::new(args),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5695usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "xr_result", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn openxr_is_enabled(check_run_in_editor: bool,) -> bool { + type CallSig = (bool, bool); + let args = (check_run_in_editor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5696usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "openxr_is_enabled", std::ptr::null_mut(), None, args,) + } + } + pub fn get_instance_proc_addr(&mut self, name: impl AsArg < GString >,) -> u64 { + type CallSig < 'a0, > = (u64, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5697usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "get_instance_proc_addr", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_error_string(&mut self, result: u64,) -> GString { + type CallSig = (GString, u64); + let args = (result,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5698usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "get_error_string", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_swapchain_format_name(&mut self, swapchain_format: i64,) -> GString { + type CallSig = (GString, i64); + let args = (swapchain_format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5699usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "get_swapchain_format_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_initialized(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5700usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "is_initialized", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_running(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5701usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "is_running", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_play_space(&mut self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5702usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "get_play_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_predicted_display_time(&mut self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5703usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "get_predicted_display_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_next_frame_time(&mut self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5704usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "get_next_frame_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn can_render(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5705usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "can_render", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hand_tracker(&mut self, hand_index: i32,) -> u64 { + type CallSig = (u64, i32); + let args = (hand_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5706usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "get_hand_tracker", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn register_composition_layer_provider(&mut self, extension: impl AsObjectArg < crate::classes::OpenXrExtensionWrapperExtension >,) { + type CallSig = ((), ObjectArg < crate::classes::OpenXrExtensionWrapperExtension >); + let args = (extension.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5707usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "register_composition_layer_provider", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unregister_composition_layer_provider(&mut self, extension: impl AsObjectArg < crate::classes::OpenXrExtensionWrapperExtension >,) { + type CallSig = ((), ObjectArg < crate::classes::OpenXrExtensionWrapperExtension >); + let args = (extension.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5708usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "unregister_composition_layer_provider", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emulate_environment_blend_mode_alpha_blend(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5709usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "set_emulate_environment_blend_mode_alpha_blend", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_environment_blend_mode_alpha_supported(&mut self,) -> crate::classes::open_xr_api_extension::OpenXrAlphaBlendModeSupport { + type CallSig = (crate::classes::open_xr_api_extension::OpenXrAlphaBlendModeSupport,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5710usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrApiExtension", "is_environment_blend_mode_alpha_supported", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrApiExtension { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRAPIExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrApiExtension { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OpenXrApiExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrApiExtension { + + } + impl crate::obj::cap::GodotDefault for OpenXrApiExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrApiExtension { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrApiExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrApiExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrApiExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrApiExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `OpenXRAlphaBlendModeSupport`."] +pub struct OpenXrAlphaBlendModeSupport { + ord: i32 +} +impl OpenXrAlphaBlendModeSupport { + #[doc(alias = "OPENXR_ALPHA_BLEND_MODE_SUPPORT_NONE")] + #[doc = "Godot enumerator name: `OPENXR_ALPHA_BLEND_MODE_SUPPORT_NONE`"] + pub const NONE: OpenXrAlphaBlendModeSupport = OpenXrAlphaBlendModeSupport { + ord: 0i32 + }; + #[doc(alias = "OPENXR_ALPHA_BLEND_MODE_SUPPORT_REAL")] + #[doc = "Godot enumerator name: `OPENXR_ALPHA_BLEND_MODE_SUPPORT_REAL`"] + pub const REAL: OpenXrAlphaBlendModeSupport = OpenXrAlphaBlendModeSupport { + ord: 1i32 + }; + #[doc(alias = "OPENXR_ALPHA_BLEND_MODE_SUPPORT_EMULATING")] + #[doc = "Godot enumerator name: `OPENXR_ALPHA_BLEND_MODE_SUPPORT_EMULATING`"] + pub const EMULATING: OpenXrAlphaBlendModeSupport = OpenXrAlphaBlendModeSupport { + ord: 2i32 + }; + +} +impl std::fmt::Debug for OpenXrAlphaBlendModeSupport { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("OpenXrAlphaBlendModeSupport") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for OpenXrAlphaBlendModeSupport { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::REAL => "REAL", Self::EMULATING => "EMULATING", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "OPENXR_ALPHA_BLEND_MODE_SUPPORT_NONE", Self::REAL => "OPENXR_ALPHA_BLEND_MODE_SUPPORT_REAL", Self::EMULATING => "OPENXR_ALPHA_BLEND_MODE_SUPPORT_EMULATING", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for OpenXrAlphaBlendModeSupport { + type Via = i32; + +} +impl crate::meta::ToGodot for OpenXrAlphaBlendModeSupport { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for OpenXrAlphaBlendModeSupport { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer.rs new file mode 100644 index 0000000..395f430 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer.rs @@ -0,0 +1,304 @@ +#![doc = "Sidecar module for class [`OpenXrCompositionLayer`][crate::classes::OpenXrCompositionLayer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRCompositionLayer` enums](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRCompositionLayer.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`IOpenXrCompositionLayer`][crate::classes::IOpenXrCompositionLayer]: virtual methods\n\n\nSee also [Godot docs for `OpenXRCompositionLayer`](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayer.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrCompositionLayer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrCompositionLayer`][crate::classes::OpenXrCompositionLayer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRCompositionLayer` methods](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrCompositionLayer: crate::obj::GodotClass < Base = OpenXrCompositionLayer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl OpenXrCompositionLayer { + pub fn set_layer_viewport(&mut self, viewport: impl AsObjectArg < crate::classes::SubViewport >,) { + type CallSig = ((), ObjectArg < crate::classes::SubViewport >); + let args = (viewport.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5741usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayer", "set_layer_viewport", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_layer_viewport(&self,) -> Option < Gd < crate::classes::SubViewport > > { + type CallSig = (Option < Gd < crate::classes::SubViewport > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5742usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayer", "get_layer_viewport", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_hole_punch(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5743usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayer", "set_enable_hole_punch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_hole_punch(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5744usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayer", "get_enable_hole_punch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sort_order(&mut self, order: i32,) { + type CallSig = ((), i32); + let args = (order,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5745usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayer", "set_sort_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sort_order(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5746usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayer", "get_sort_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_blend(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5747usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayer", "set_alpha_blend", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_blend(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5748usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayer", "get_alpha_blend", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_natively_supported(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5749usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayer", "is_natively_supported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn intersects_ray(&self, origin: Vector3, direction: Vector3,) -> Vector2 { + type CallSig = (Vector2, Vector3, Vector3); + let args = (origin, direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5750usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayer", "intersects_ray", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrCompositionLayer { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRCompositionLayer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrCompositionLayer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for OpenXrCompositionLayer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for OpenXrCompositionLayer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrCompositionLayer { + + } + impl std::ops::Deref for OpenXrCompositionLayer { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrCompositionLayer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrCompositionLayer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrCompositionLayer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrCompositionLayer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer_cylinder.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer_cylinder.rs new file mode 100644 index 0000000..37d33fc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer_cylinder.rs @@ -0,0 +1,299 @@ +#![doc = "Sidecar module for class [`OpenXrCompositionLayerCylinder`][crate::classes::OpenXrCompositionLayerCylinder].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRCompositionLayerCylinder` enums](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayercylinder.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRCompositionLayerCylinder.`\n\nInherits [`OpenXrCompositionLayer`][crate::classes::OpenXrCompositionLayer].\n\nRelated symbols:\n\n* [`IOpenXrCompositionLayerCylinder`][crate::classes::IOpenXrCompositionLayerCylinder]: virtual methods\n\n\nSee also [Godot docs for `OpenXRCompositionLayerCylinder`](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayercylinder.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`OpenXrCompositionLayerCylinder::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrCompositionLayerCylinder { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrCompositionLayerCylinder`][crate::classes::OpenXrCompositionLayerCylinder].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRCompositionLayerCylinder` methods](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayercylinder.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrCompositionLayerCylinder: crate::obj::GodotClass < Base = OpenXrCompositionLayerCylinder > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl OpenXrCompositionLayerCylinder { + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5751usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerCylinder", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5752usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerCylinder", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_aspect_ratio(&mut self, aspect_ratio: f32,) { + type CallSig = ((), f32); + let args = (aspect_ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5753usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerCylinder", "set_aspect_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_aspect_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5754usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerCylinder", "get_aspect_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_central_angle(&mut self, angle: f32,) { + type CallSig = ((), f32); + let args = (angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5755usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerCylinder", "set_central_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_central_angle(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5756usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerCylinder", "get_central_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fallback_segments(&mut self, segments: u32,) { + type CallSig = ((), u32); + let args = (segments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5757usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerCylinder", "set_fallback_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fallback_segments(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5758usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerCylinder", "get_fallback_segments", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrCompositionLayerCylinder { + type Base = crate::classes::OpenXrCompositionLayer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRCompositionLayerCylinder")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrCompositionLayerCylinder { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::OpenXrCompositionLayer > for OpenXrCompositionLayerCylinder { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for OpenXrCompositionLayerCylinder { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for OpenXrCompositionLayerCylinder { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrCompositionLayerCylinder { + + } + impl crate::obj::cap::GodotDefault for OpenXrCompositionLayerCylinder { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrCompositionLayerCylinder { + type Target = crate::classes::OpenXrCompositionLayer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrCompositionLayerCylinder { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrCompositionLayerCylinder`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrCompositionLayerCylinder { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrCompositionLayerCylinder > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrCompositionLayer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer_equirect.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer_equirect.rs new file mode 100644 index 0000000..999fe80 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer_equirect.rs @@ -0,0 +1,315 @@ +#![doc = "Sidecar module for class [`OpenXrCompositionLayerEquirect`][crate::classes::OpenXrCompositionLayerEquirect].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRCompositionLayerEquirect` enums](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayerequirect.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRCompositionLayerEquirect.`\n\nInherits [`OpenXrCompositionLayer`][crate::classes::OpenXrCompositionLayer].\n\nRelated symbols:\n\n* [`IOpenXrCompositionLayerEquirect`][crate::classes::IOpenXrCompositionLayerEquirect]: virtual methods\n\n\nSee also [Godot docs for `OpenXRCompositionLayerEquirect`](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayerequirect.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`OpenXrCompositionLayerEquirect::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrCompositionLayerEquirect { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrCompositionLayerEquirect`][crate::classes::OpenXrCompositionLayerEquirect].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRCompositionLayerEquirect` methods](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayerequirect.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrCompositionLayerEquirect: crate::obj::GodotClass < Base = OpenXrCompositionLayerEquirect > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl OpenXrCompositionLayerEquirect { + pub fn set_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5759usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerEquirect", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5760usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerEquirect", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_central_horizontal_angle(&mut self, angle: f32,) { + type CallSig = ((), f32); + let args = (angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5761usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerEquirect", "set_central_horizontal_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_central_horizontal_angle(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5762usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerEquirect", "get_central_horizontal_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_upper_vertical_angle(&mut self, angle: f32,) { + type CallSig = ((), f32); + let args = (angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5763usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerEquirect", "set_upper_vertical_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_upper_vertical_angle(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5764usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerEquirect", "get_upper_vertical_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lower_vertical_angle(&mut self, angle: f32,) { + type CallSig = ((), f32); + let args = (angle,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5765usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerEquirect", "set_lower_vertical_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lower_vertical_angle(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5766usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerEquirect", "get_lower_vertical_angle", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fallback_segments(&mut self, segments: u32,) { + type CallSig = ((), u32); + let args = (segments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5767usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerEquirect", "set_fallback_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fallback_segments(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5768usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerEquirect", "get_fallback_segments", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrCompositionLayerEquirect { + type Base = crate::classes::OpenXrCompositionLayer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRCompositionLayerEquirect")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrCompositionLayerEquirect { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::OpenXrCompositionLayer > for OpenXrCompositionLayerEquirect { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for OpenXrCompositionLayerEquirect { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for OpenXrCompositionLayerEquirect { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrCompositionLayerEquirect { + + } + impl crate::obj::cap::GodotDefault for OpenXrCompositionLayerEquirect { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrCompositionLayerEquirect { + type Target = crate::classes::OpenXrCompositionLayer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrCompositionLayerEquirect { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrCompositionLayerEquirect`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrCompositionLayerEquirect { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrCompositionLayerEquirect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrCompositionLayer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer_quad.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer_quad.rs new file mode 100644 index 0000000..1465394 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_composition_layer_quad.rs @@ -0,0 +1,251 @@ +#![doc = "Sidecar module for class [`OpenXrCompositionLayerQuad`][crate::classes::OpenXrCompositionLayerQuad].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRCompositionLayerQuad` enums](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayerquad.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRCompositionLayerQuad.`\n\nInherits [`OpenXrCompositionLayer`][crate::classes::OpenXrCompositionLayer].\n\nRelated symbols:\n\n* [`IOpenXrCompositionLayerQuad`][crate::classes::IOpenXrCompositionLayerQuad]: virtual methods\n\n\nSee also [Godot docs for `OpenXRCompositionLayerQuad`](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayerquad.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`OpenXrCompositionLayerQuad::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrCompositionLayerQuad { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrCompositionLayerQuad`][crate::classes::OpenXrCompositionLayerQuad].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRCompositionLayerQuad` methods](https://docs.godotengine.org/en/stable/classes/class_openxrcompositionlayerquad.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrCompositionLayerQuad: crate::obj::GodotClass < Base = OpenXrCompositionLayerQuad > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl OpenXrCompositionLayerQuad { + pub fn set_quad_size(&mut self, size: Vector2,) { + type CallSig = ((), Vector2); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5769usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerQuad", "set_quad_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_quad_size(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5770usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrCompositionLayerQuad", "get_quad_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrCompositionLayerQuad { + type Base = crate::classes::OpenXrCompositionLayer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRCompositionLayerQuad")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrCompositionLayerQuad { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::OpenXrCompositionLayer > for OpenXrCompositionLayerQuad { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for OpenXrCompositionLayerQuad { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for OpenXrCompositionLayerQuad { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrCompositionLayerQuad { + + } + impl crate::obj::cap::GodotDefault for OpenXrCompositionLayerQuad { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrCompositionLayerQuad { + type Target = crate::classes::OpenXrCompositionLayer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrCompositionLayerQuad { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrCompositionLayerQuad`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrCompositionLayerQuad { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrCompositionLayerQuad > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrCompositionLayer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_extension_wrapper_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_extension_wrapper_extension.rs new file mode 100644 index 0000000..3820cde --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_extension_wrapper_extension.rs @@ -0,0 +1,331 @@ +#![doc = "Sidecar module for class [`OpenXrExtensionWrapperExtension`][crate::classes::OpenXrExtensionWrapperExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRExtensionWrapperExtension` enums](https://docs.godotengine.org/en/stable/classes/class_openxrextensionwrapperextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRExtensionWrapperExtension.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IOpenXrExtensionWrapperExtension`][crate::classes::IOpenXrExtensionWrapperExtension]: virtual methods\n\n\nSee also [Godot docs for `OpenXRExtensionWrapperExtension`](https://docs.godotengine.org/en/stable/classes/class_openxrextensionwrapperextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`OpenXrExtensionWrapperExtension::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrExtensionWrapperExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrExtensionWrapperExtension`][crate::classes::OpenXrExtensionWrapperExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRExtensionWrapperExtension` methods](https://docs.godotengine.org/en/stable/classes/class_openxrextensionwrapperextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrExtensionWrapperExtension: crate::obj::GodotClass < Base = OpenXrExtensionWrapperExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_requested_extensions(&mut self,) -> Dictionary { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn set_system_properties_and_get_next_pointer(&mut self, next_pointer: * mut c_void,) -> u64 { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn set_instance_create_info_and_get_next_pointer(&mut self, next_pointer: * mut c_void,) -> u64 { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn set_session_create_and_get_next_pointer(&mut self, next_pointer: * mut c_void,) -> u64 { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn set_swapchain_create_info_and_get_next_pointer(&mut self, next_pointer: * mut c_void,) -> u64 { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn set_hand_joint_locations_and_get_next_pointer(&mut self, hand_index: i32, next_pointer: * mut c_void,) -> u64 { + unimplemented !() + } + fn get_composition_layer_count(&mut self,) -> i32 { + unimplemented !() + } + fn get_composition_layer(&mut self, index: i32,) -> u64 { + unimplemented !() + } + fn get_composition_layer_order(&mut self, index: i32,) -> i32 { + unimplemented !() + } + fn get_suggested_tracker_names(&mut self,) -> PackedStringArray { + unimplemented !() + } + fn on_register_metadata(&mut self,) { + unimplemented !() + } + fn on_before_instance_created(&mut self,) { + unimplemented !() + } + fn on_instance_created(&mut self, instance: u64,) { + unimplemented !() + } + fn on_instance_destroyed(&mut self,) { + unimplemented !() + } + fn on_session_created(&mut self, session: u64,) { + unimplemented !() + } + fn on_process(&mut self,) { + unimplemented !() + } + fn on_pre_render(&mut self,) { + unimplemented !() + } + fn on_main_swapchains_created(&mut self,) { + unimplemented !() + } + fn on_session_destroyed(&mut self,) { + unimplemented !() + } + fn on_state_idle(&mut self,) { + unimplemented !() + } + fn on_state_ready(&mut self,) { + unimplemented !() + } + fn on_state_synchronized(&mut self,) { + unimplemented !() + } + fn on_state_visible(&mut self,) { + unimplemented !() + } + fn on_state_focused(&mut self,) { + unimplemented !() + } + fn on_state_stopping(&mut self,) { + unimplemented !() + } + fn on_state_loss_pending(&mut self,) { + unimplemented !() + } + fn on_state_exiting(&mut self,) { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn on_event_polled(&mut self, event: * const c_void,) -> bool { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn set_viewport_composition_layer_and_get_next_pointer(&mut self, layer: * const c_void, property_values: Dictionary, next_pointer: * mut c_void,) -> u64 { + unimplemented !() + } + fn get_viewport_composition_layer_extension_properties(&mut self,) -> Array < Dictionary > { + unimplemented !() + } + fn get_viewport_composition_layer_extension_property_defaults(&mut self,) -> Dictionary { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn on_viewport_composition_layer_destroyed(&mut self, layer: * const c_void,) { + unimplemented !() + } + } + impl OpenXrExtensionWrapperExtension { + pub fn get_openxr_api(&mut self,) -> Option < Gd < crate::classes::OpenXrApiExtension > > { + type CallSig = (Option < Gd < crate::classes::OpenXrApiExtension > >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(99usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrExtensionWrapperExtension", "get_openxr_api", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn register_extension_wrapper(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(100usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrExtensionWrapperExtension", "register_extension_wrapper", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrExtensionWrapperExtension { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRExtensionWrapperExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for OpenXrExtensionWrapperExtension { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrExtensionWrapperExtension { + + } + impl crate::obj::cap::GodotDefault for OpenXrExtensionWrapperExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrExtensionWrapperExtension { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrExtensionWrapperExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrExtensionWrapperExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrExtensionWrapperExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrExtensionWrapperExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_hand.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_hand.rs new file mode 100644 index 0000000..2901d68 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_hand.rs @@ -0,0 +1,609 @@ +#![doc = "Sidecar module for class [`OpenXrHand`][crate::classes::OpenXrHand].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRHand` enums](https://docs.godotengine.org/en/stable/classes/class_openxrhand.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRHand.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`open_xr_hand`][crate::classes::open_xr_hand]: sidecar module with related enum/flag types\n* [`IOpenXrHand`][crate::classes::IOpenXrHand]: virtual methods\n\n\nSee also [Godot docs for `OpenXRHand`](https://docs.godotengine.org/en/stable/classes/class_openxrhand.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`OpenXrHand::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrHand { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrHand`][crate::classes::OpenXrHand].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRHand` methods](https://docs.godotengine.org/en/stable/classes/class_openxrhand.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrHand: crate::obj::GodotClass < Base = OpenXrHand > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl OpenXrHand { + pub fn set_hand(&mut self, hand: crate::classes::open_xr_hand::Hands,) { + type CallSig = ((), crate::classes::open_xr_hand::Hands); + let args = (hand,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5771usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrHand", "set_hand", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hand(&self,) -> crate::classes::open_xr_hand::Hands { + type CallSig = (crate::classes::open_xr_hand::Hands,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5772usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrHand", "get_hand", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_motion_range(&mut self, motion_range: crate::classes::open_xr_hand::MotionRange,) { + type CallSig = ((), crate::classes::open_xr_hand::MotionRange); + let args = (motion_range,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5773usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrHand", "set_motion_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_motion_range(&self,) -> crate::classes::open_xr_hand::MotionRange { + type CallSig = (crate::classes::open_xr_hand::MotionRange,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5774usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrHand", "get_motion_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skeleton_rig(&mut self, skeleton_rig: crate::classes::open_xr_hand::SkeletonRig,) { + type CallSig = ((), crate::classes::open_xr_hand::SkeletonRig); + let args = (skeleton_rig,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5775usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrHand", "set_skeleton_rig", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skeleton_rig(&self,) -> crate::classes::open_xr_hand::SkeletonRig { + type CallSig = (crate::classes::open_xr_hand::SkeletonRig,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5776usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrHand", "get_skeleton_rig", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bone_update(&mut self, bone_update: crate::classes::open_xr_hand::BoneUpdate,) { + type CallSig = ((), crate::classes::open_xr_hand::BoneUpdate); + let args = (bone_update,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5777usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrHand", "set_bone_update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone_update(&self,) -> crate::classes::open_xr_hand::BoneUpdate { + type CallSig = (crate::classes::open_xr_hand::BoneUpdate,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5778usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrHand", "get_bone_update", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrHand { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRHand")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrHand { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for OpenXrHand { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for OpenXrHand { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrHand { + + } + impl crate::obj::cap::GodotDefault for OpenXrHand { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrHand { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrHand { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrHand`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrHand { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrHand > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Hands { + ord: i32 +} +impl Hands { + #[doc(alias = "HAND_LEFT")] + #[doc = "Godot enumerator name: `HAND_LEFT`"] + pub const LEFT: Hands = Hands { + ord: 0i32 + }; + #[doc(alias = "HAND_RIGHT")] + #[doc = "Godot enumerator name: `HAND_RIGHT`"] + pub const RIGHT: Hands = Hands { + ord: 1i32 + }; + #[doc(alias = "HAND_MAX")] + #[doc = "Godot enumerator name: `HAND_MAX`"] + pub const MAX: Hands = Hands { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Hands { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Hands") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Hands { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT => "LEFT", Self::RIGHT => "RIGHT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT => "HAND_LEFT", Self::RIGHT => "HAND_RIGHT", Self::MAX => "HAND_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Hands { + const ENUMERATOR_COUNT: usize = 2usize; + +} +impl crate::meta::GodotConvert for Hands { + type Via = i32; + +} +impl crate::meta::ToGodot for Hands { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Hands { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MotionRange { + ord: i32 +} +impl MotionRange { + #[doc(alias = "MOTION_RANGE_UNOBSTRUCTED")] + #[doc = "Godot enumerator name: `MOTION_RANGE_UNOBSTRUCTED`"] + pub const UNOBSTRUCTED: MotionRange = MotionRange { + ord: 0i32 + }; + #[doc(alias = "MOTION_RANGE_CONFORM_TO_CONTROLLER")] + #[doc = "Godot enumerator name: `MOTION_RANGE_CONFORM_TO_CONTROLLER`"] + pub const CONFORM_TO_CONTROLLER: MotionRange = MotionRange { + ord: 1i32 + }; + #[doc(alias = "MOTION_RANGE_MAX")] + #[doc = "Godot enumerator name: `MOTION_RANGE_MAX`"] + pub const MAX: MotionRange = MotionRange { + ord: 2i32 + }; + +} +impl std::fmt::Debug for MotionRange { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MotionRange") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MotionRange { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNOBSTRUCTED => "UNOBSTRUCTED", Self::CONFORM_TO_CONTROLLER => "CONFORM_TO_CONTROLLER", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNOBSTRUCTED => "MOTION_RANGE_UNOBSTRUCTED", Self::CONFORM_TO_CONTROLLER => "MOTION_RANGE_CONFORM_TO_CONTROLLER", Self::MAX => "MOTION_RANGE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for MotionRange { + const ENUMERATOR_COUNT: usize = 2usize; + +} +impl crate::meta::GodotConvert for MotionRange { + type Via = i32; + +} +impl crate::meta::ToGodot for MotionRange { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MotionRange { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SkeletonRig { + ord: i32 +} +impl SkeletonRig { + #[doc(alias = "SKELETON_RIG_OPENXR")] + #[doc = "Godot enumerator name: `SKELETON_RIG_OPENXR`"] + pub const OPENXR: SkeletonRig = SkeletonRig { + ord: 0i32 + }; + #[doc(alias = "SKELETON_RIG_HUMANOID")] + #[doc = "Godot enumerator name: `SKELETON_RIG_HUMANOID`"] + pub const HUMANOID: SkeletonRig = SkeletonRig { + ord: 1i32 + }; + #[doc(alias = "SKELETON_RIG_MAX")] + #[doc = "Godot enumerator name: `SKELETON_RIG_MAX`"] + pub const MAX: SkeletonRig = SkeletonRig { + ord: 2i32 + }; + +} +impl std::fmt::Debug for SkeletonRig { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SkeletonRig") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SkeletonRig { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OPENXR => "OPENXR", Self::HUMANOID => "HUMANOID", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OPENXR => "SKELETON_RIG_OPENXR", Self::HUMANOID => "SKELETON_RIG_HUMANOID", Self::MAX => "SKELETON_RIG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for SkeletonRig { + const ENUMERATOR_COUNT: usize = 2usize; + +} +impl crate::meta::GodotConvert for SkeletonRig { + type Via = i32; + +} +impl crate::meta::ToGodot for SkeletonRig { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SkeletonRig { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BoneUpdate { + ord: i32 +} +impl BoneUpdate { + #[doc(alias = "BONE_UPDATE_FULL")] + #[doc = "Godot enumerator name: `BONE_UPDATE_FULL`"] + pub const FULL: BoneUpdate = BoneUpdate { + ord: 0i32 + }; + #[doc(alias = "BONE_UPDATE_ROTATION_ONLY")] + #[doc = "Godot enumerator name: `BONE_UPDATE_ROTATION_ONLY`"] + pub const ROTATION_ONLY: BoneUpdate = BoneUpdate { + ord: 1i32 + }; + #[doc(alias = "BONE_UPDATE_MAX")] + #[doc = "Godot enumerator name: `BONE_UPDATE_MAX`"] + pub const MAX: BoneUpdate = BoneUpdate { + ord: 2i32 + }; + +} +impl std::fmt::Debug for BoneUpdate { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BoneUpdate") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BoneUpdate { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FULL => "FULL", Self::ROTATION_ONLY => "ROTATION_ONLY", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FULL => "BONE_UPDATE_FULL", Self::ROTATION_ONLY => "BONE_UPDATE_ROTATION_ONLY", Self::MAX => "BONE_UPDATE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for BoneUpdate { + const ENUMERATOR_COUNT: usize = 2usize; + +} +impl crate::meta::GodotConvert for BoneUpdate { + type Via = i32; + +} +impl crate::meta::ToGodot for BoneUpdate { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BoneUpdate { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_interaction_profile.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_interaction_profile.rs new file mode 100644 index 0000000..6cb661c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_interaction_profile.rs @@ -0,0 +1,250 @@ +#![doc = "Sidecar module for class [`OpenXrInteractionProfile`][crate::classes::OpenXrInteractionProfile].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRInteractionProfile` enums](https://docs.godotengine.org/en/stable/classes/class_openxrinteractionprofile.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRInteractionProfile.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IOpenXrInteractionProfile`][crate::classes::IOpenXrInteractionProfile]: virtual methods\n\n\nSee also [Godot docs for `OpenXRInteractionProfile`](https://docs.godotengine.org/en/stable/classes/class_openxrinteractionprofile.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OpenXrInteractionProfile::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrInteractionProfile { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrInteractionProfile`][crate::classes::OpenXrInteractionProfile].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRInteractionProfile` methods](https://docs.godotengine.org/en/stable/classes/class_openxrinteractionprofile.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrInteractionProfile: crate::obj::GodotClass < Base = OpenXrInteractionProfile > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl OpenXrInteractionProfile { + pub fn set_interaction_profile_path(&mut self, interaction_profile_path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (interaction_profile_path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5787usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInteractionProfile", "set_interaction_profile_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_interaction_profile_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5788usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInteractionProfile", "get_interaction_profile_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_binding_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5789usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInteractionProfile", "get_binding_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_binding(&self, index: i32,) -> Option < Gd < crate::classes::OpenXrIpBinding > > { + type CallSig = (Option < Gd < crate::classes::OpenXrIpBinding > >, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5790usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInteractionProfile", "get_binding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bindings(&mut self, bindings: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(bindings),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5791usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInteractionProfile", "set_bindings", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bindings(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5792usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInteractionProfile", "get_bindings", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrInteractionProfile { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRInteractionProfile")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrInteractionProfile { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for OpenXrInteractionProfile { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OpenXrInteractionProfile { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrInteractionProfile { + + } + impl crate::obj::cap::GodotDefault for OpenXrInteractionProfile { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrInteractionProfile { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrInteractionProfile { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrInteractionProfile`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrInteractionProfile { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrInteractionProfile > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_interaction_profile_metadata.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_interaction_profile_metadata.rs new file mode 100644 index 0000000..a9bdcdc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_interaction_profile_metadata.rs @@ -0,0 +1,219 @@ +#![doc = "Sidecar module for class [`OpenXrInteractionProfileMetadata`][crate::classes::OpenXrInteractionProfileMetadata].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRInteractionProfileMetadata` enums](https://docs.godotengine.org/en/stable/classes/class_openxrinteractionprofilemetadata.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRInteractionProfileMetadata.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IOpenXrInteractionProfileMetadata`][crate::classes::IOpenXrInteractionProfileMetadata]: virtual methods\n\n\nSee also [Godot docs for `OpenXRInteractionProfileMetadata`](https://docs.godotengine.org/en/stable/classes/class_openxrinteractionprofilemetadata.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`OpenXrInteractionProfileMetadata::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrInteractionProfileMetadata { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrInteractionProfileMetadata`][crate::classes::OpenXrInteractionProfileMetadata].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRInteractionProfileMetadata` methods](https://docs.godotengine.org/en/stable/classes/class_openxrinteractionprofilemetadata.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrInteractionProfileMetadata: crate::obj::GodotClass < Base = OpenXrInteractionProfileMetadata > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl OpenXrInteractionProfileMetadata { + pub fn register_profile_rename(&mut self, old_name: impl AsArg < GString >, new_name: impl AsArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (old_name.into_arg(), new_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5793usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInteractionProfileMetadata", "register_profile_rename", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn register_top_level_path(&mut self, display_name: impl AsArg < GString >, openxr_path: impl AsArg < GString >, openxr_extension_name: impl AsArg < GString >,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, CowArg < 'a2, GString >); + let args = (display_name.into_arg(), openxr_path.into_arg(), openxr_extension_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5794usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInteractionProfileMetadata", "register_top_level_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn register_interaction_profile(&mut self, display_name: impl AsArg < GString >, openxr_path: impl AsArg < GString >, openxr_extension_name: impl AsArg < GString >,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, CowArg < 'a2, GString >); + let args = (display_name.into_arg(), openxr_path.into_arg(), openxr_extension_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5795usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInteractionProfileMetadata", "register_interaction_profile", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn register_io_path(&mut self, interaction_profile: impl AsArg < GString >, display_name: impl AsArg < GString >, toplevel_path: impl AsArg < GString >, openxr_path: impl AsArg < GString >, openxr_extension_name: impl AsArg < GString >, action_type: crate::classes::open_xr_action::ActionType,) { + type CallSig < 'a0, 'a1, 'a2, 'a3, 'a4, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, CowArg < 'a2, GString >, CowArg < 'a3, GString >, CowArg < 'a4, GString >, crate::classes::open_xr_action::ActionType); + let args = (interaction_profile.into_arg(), display_name.into_arg(), toplevel_path.into_arg(), openxr_path.into_arg(), openxr_extension_name.into_arg(), action_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5796usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInteractionProfileMetadata", "register_io_path", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrInteractionProfileMetadata { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRInteractionProfileMetadata")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrInteractionProfileMetadata { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrInteractionProfileMetadata { + + } + impl crate::obj::cap::GodotDefault for OpenXrInteractionProfileMetadata { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrInteractionProfileMetadata { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrInteractionProfileMetadata { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrInteractionProfileMetadata`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrInteractionProfileMetadata { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrInteractionProfileMetadata > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_interface.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_interface.rs new file mode 100644 index 0000000..da43df9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_interface.rs @@ -0,0 +1,962 @@ +#![doc = "Sidecar module for class [`OpenXrInterface`][crate::classes::OpenXrInterface].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRInterface` enums](https://docs.godotengine.org/en/stable/classes/class_openxrinterface.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRInterface.`\n\nInherits [`XrInterface`][crate::classes::XrInterface].\n\nRelated symbols:\n\n* [`open_xr_interface`][crate::classes::open_xr_interface]: sidecar module with related enum/flag types\n* [`IOpenXrInterface`][crate::classes::IOpenXrInterface]: virtual methods\n\n\nSee also [Godot docs for `OpenXRInterface`](https://docs.godotengine.org/en/stable/classes/class_openxrinterface.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OpenXrInterface::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrInterface { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrInterface`][crate::classes::OpenXrInterface].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRInterface` methods](https://docs.godotengine.org/en/stable/classes/class_openxrinterface.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrInterface: crate::obj::GodotClass < Base = OpenXrInterface > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl OpenXrInterface { + pub fn get_display_refresh_rate(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5797usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_display_refresh_rate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_display_refresh_rate(&mut self, refresh_rate: f32,) { + type CallSig = ((), f32); + let args = (refresh_rate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5798usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "set_display_refresh_rate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_render_target_size_multiplier(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5799usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_render_target_size_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_render_target_size_multiplier(&mut self, multiplier: f64,) { + type CallSig = ((), f64); + let args = (multiplier,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5800usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "set_render_target_size_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_foveation_supported(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5801usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "is_foveation_supported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_foveation_level(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5802usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_foveation_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_foveation_level(&mut self, foveation_level: i32,) { + type CallSig = ((), i32); + let args = (foveation_level,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5803usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "set_foveation_level", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_foveation_dynamic(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5804usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_foveation_dynamic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_foveation_dynamic(&mut self, foveation_dynamic: bool,) { + type CallSig = ((), bool); + let args = (foveation_dynamic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5805usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "set_foveation_dynamic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_action_set_active(&self, name: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5806usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "is_action_set_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_action_set_active(&mut self, name: impl AsArg < GString >, active: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, bool); + let args = (name.into_arg(), active,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5807usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "set_action_set_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_action_sets(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5808usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_action_sets", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_available_display_refresh_rates(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5809usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_available_display_refresh_rates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_motion_range(&mut self, hand: crate::classes::open_xr_interface::Hand, motion_range: crate::classes::open_xr_interface::HandMotionRange,) { + type CallSig = ((), crate::classes::open_xr_interface::Hand, crate::classes::open_xr_interface::HandMotionRange); + let args = (hand, motion_range,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5810usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "set_motion_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_motion_range(&self, hand: crate::classes::open_xr_interface::Hand,) -> crate::classes::open_xr_interface::HandMotionRange { + type CallSig = (crate::classes::open_xr_interface::HandMotionRange, crate::classes::open_xr_interface::Hand); + let args = (hand,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5811usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_motion_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hand_tracking_source(&self, hand: crate::classes::open_xr_interface::Hand,) -> crate::classes::open_xr_interface::HandTrackedSource { + type CallSig = (crate::classes::open_xr_interface::HandTrackedSource, crate::classes::open_xr_interface::Hand); + let args = (hand,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5812usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_hand_tracking_source", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hand_joint_flags(&self, hand: crate::classes::open_xr_interface::Hand, joint: crate::classes::open_xr_interface::HandJoints,) -> crate::classes::open_xr_interface::HandJointFlags { + type CallSig = (crate::classes::open_xr_interface::HandJointFlags, crate::classes::open_xr_interface::Hand, crate::classes::open_xr_interface::HandJoints); + let args = (hand, joint,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5813usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_hand_joint_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hand_joint_rotation(&self, hand: crate::classes::open_xr_interface::Hand, joint: crate::classes::open_xr_interface::HandJoints,) -> Quaternion { + type CallSig = (Quaternion, crate::classes::open_xr_interface::Hand, crate::classes::open_xr_interface::HandJoints); + let args = (hand, joint,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5814usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_hand_joint_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hand_joint_position(&self, hand: crate::classes::open_xr_interface::Hand, joint: crate::classes::open_xr_interface::HandJoints,) -> Vector3 { + type CallSig = (Vector3, crate::classes::open_xr_interface::Hand, crate::classes::open_xr_interface::HandJoints); + let args = (hand, joint,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5815usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_hand_joint_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hand_joint_radius(&self, hand: crate::classes::open_xr_interface::Hand, joint: crate::classes::open_xr_interface::HandJoints,) -> f32 { + type CallSig = (f32, crate::classes::open_xr_interface::Hand, crate::classes::open_xr_interface::HandJoints); + let args = (hand, joint,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5816usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_hand_joint_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hand_joint_linear_velocity(&self, hand: crate::classes::open_xr_interface::Hand, joint: crate::classes::open_xr_interface::HandJoints,) -> Vector3 { + type CallSig = (Vector3, crate::classes::open_xr_interface::Hand, crate::classes::open_xr_interface::HandJoints); + let args = (hand, joint,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5817usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_hand_joint_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_hand_joint_angular_velocity(&self, hand: crate::classes::open_xr_interface::Hand, joint: crate::classes::open_xr_interface::HandJoints,) -> Vector3 { + type CallSig = (Vector3, crate::classes::open_xr_interface::Hand, crate::classes::open_xr_interface::HandJoints); + let args = (hand, joint,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5818usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_hand_joint_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hand_tracking_supported(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5819usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "is_hand_tracking_supported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hand_interaction_supported(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5820usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "is_hand_interaction_supported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_eye_gaze_interaction_supported(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5821usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "is_eye_gaze_interaction_supported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vrs_min_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5822usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_vrs_min_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vrs_min_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5823usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "set_vrs_min_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vrs_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5824usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "get_vrs_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vrs_strength(&mut self, strength: f32,) { + type CallSig = ((), f32); + let args = (strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5825usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrInterface", "set_vrs_strength", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrInterface { + type Base = crate::classes::XrInterface; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRInterface")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrInterface { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::XrInterface > for OpenXrInterface { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OpenXrInterface { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrInterface { + + } + impl crate::obj::cap::GodotDefault for OpenXrInterface { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrInterface { + type Target = crate::classes::XrInterface; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrInterface { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrInterface`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrInterface { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrInterface > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::XrInterface > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Hand { + ord: i32 +} +impl Hand { + #[doc(alias = "HAND_LEFT")] + #[doc = "Godot enumerator name: `HAND_LEFT`"] + pub const LEFT: Hand = Hand { + ord: 0i32 + }; + #[doc(alias = "HAND_RIGHT")] + #[doc = "Godot enumerator name: `HAND_RIGHT`"] + pub const RIGHT: Hand = Hand { + ord: 1i32 + }; + #[doc(alias = "HAND_MAX")] + #[doc = "Godot enumerator name: `HAND_MAX`"] + pub const MAX: Hand = Hand { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Hand { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Hand") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Hand { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT => "LEFT", Self::RIGHT => "RIGHT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT => "HAND_LEFT", Self::RIGHT => "HAND_RIGHT", Self::MAX => "HAND_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Hand { + const ENUMERATOR_COUNT: usize = 2usize; + +} +impl crate::meta::GodotConvert for Hand { + type Via = i32; + +} +impl crate::meta::ToGodot for Hand { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Hand { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct HandMotionRange { + ord: i32 +} +impl HandMotionRange { + #[doc(alias = "HAND_MOTION_RANGE_UNOBSTRUCTED")] + #[doc = "Godot enumerator name: `HAND_MOTION_RANGE_UNOBSTRUCTED`"] + pub const UNOBSTRUCTED: HandMotionRange = HandMotionRange { + ord: 0i32 + }; + #[doc(alias = "HAND_MOTION_RANGE_CONFORM_TO_CONTROLLER")] + #[doc = "Godot enumerator name: `HAND_MOTION_RANGE_CONFORM_TO_CONTROLLER`"] + pub const CONFORM_TO_CONTROLLER: HandMotionRange = HandMotionRange { + ord: 1i32 + }; + #[doc(alias = "HAND_MOTION_RANGE_MAX")] + #[doc = "Godot enumerator name: `HAND_MOTION_RANGE_MAX`"] + pub const MAX: HandMotionRange = HandMotionRange { + ord: 2i32 + }; + +} +impl std::fmt::Debug for HandMotionRange { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("HandMotionRange") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for HandMotionRange { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNOBSTRUCTED => "UNOBSTRUCTED", Self::CONFORM_TO_CONTROLLER => "CONFORM_TO_CONTROLLER", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNOBSTRUCTED => "HAND_MOTION_RANGE_UNOBSTRUCTED", Self::CONFORM_TO_CONTROLLER => "HAND_MOTION_RANGE_CONFORM_TO_CONTROLLER", Self::MAX => "HAND_MOTION_RANGE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for HandMotionRange { + const ENUMERATOR_COUNT: usize = 2usize; + +} +impl crate::meta::GodotConvert for HandMotionRange { + type Via = i32; + +} +impl crate::meta::ToGodot for HandMotionRange { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for HandMotionRange { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct HandTrackedSource { + ord: i32 +} +impl HandTrackedSource { + #[doc(alias = "HAND_TRACKED_SOURCE_UNKNOWN")] + #[doc = "Godot enumerator name: `HAND_TRACKED_SOURCE_UNKNOWN`"] + pub const UNKNOWN: HandTrackedSource = HandTrackedSource { + ord: 0i32 + }; + #[doc(alias = "HAND_TRACKED_SOURCE_UNOBSTRUCTED")] + #[doc = "Godot enumerator name: `HAND_TRACKED_SOURCE_UNOBSTRUCTED`"] + pub const UNOBSTRUCTED: HandTrackedSource = HandTrackedSource { + ord: 1i32 + }; + #[doc(alias = "HAND_TRACKED_SOURCE_CONTROLLER")] + #[doc = "Godot enumerator name: `HAND_TRACKED_SOURCE_CONTROLLER`"] + pub const CONTROLLER: HandTrackedSource = HandTrackedSource { + ord: 2i32 + }; + #[doc(alias = "HAND_TRACKED_SOURCE_MAX")] + #[doc = "Godot enumerator name: `HAND_TRACKED_SOURCE_MAX`"] + pub const MAX: HandTrackedSource = HandTrackedSource { + ord: 3i32 + }; + +} +impl std::fmt::Debug for HandTrackedSource { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("HandTrackedSource") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for HandTrackedSource { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNKNOWN => "UNKNOWN", Self::UNOBSTRUCTED => "UNOBSTRUCTED", Self::CONTROLLER => "CONTROLLER", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UNKNOWN => "HAND_TRACKED_SOURCE_UNKNOWN", Self::UNOBSTRUCTED => "HAND_TRACKED_SOURCE_UNOBSTRUCTED", Self::CONTROLLER => "HAND_TRACKED_SOURCE_CONTROLLER", Self::MAX => "HAND_TRACKED_SOURCE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for HandTrackedSource { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for HandTrackedSource { + type Via = i32; + +} +impl crate::meta::ToGodot for HandTrackedSource { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for HandTrackedSource { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct HandJoints { + ord: i32 +} +impl HandJoints { + #[doc(alias = "HAND_JOINT_PALM")] + #[doc = "Godot enumerator name: `HAND_JOINT_PALM`"] + pub const PALM: HandJoints = HandJoints { + ord: 0i32 + }; + #[doc(alias = "HAND_JOINT_WRIST")] + #[doc = "Godot enumerator name: `HAND_JOINT_WRIST`"] + pub const WRIST: HandJoints = HandJoints { + ord: 1i32 + }; + #[doc(alias = "HAND_JOINT_THUMB_METACARPAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_THUMB_METACARPAL`"] + pub const THUMB_METACARPAL: HandJoints = HandJoints { + ord: 2i32 + }; + #[doc(alias = "HAND_JOINT_THUMB_PROXIMAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_THUMB_PROXIMAL`"] + pub const THUMB_PROXIMAL: HandJoints = HandJoints { + ord: 3i32 + }; + #[doc(alias = "HAND_JOINT_THUMB_DISTAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_THUMB_DISTAL`"] + pub const THUMB_DISTAL: HandJoints = HandJoints { + ord: 4i32 + }; + #[doc(alias = "HAND_JOINT_THUMB_TIP")] + #[doc = "Godot enumerator name: `HAND_JOINT_THUMB_TIP`"] + pub const THUMB_TIP: HandJoints = HandJoints { + ord: 5i32 + }; + #[doc(alias = "HAND_JOINT_INDEX_METACARPAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_INDEX_METACARPAL`"] + pub const INDEX_METACARPAL: HandJoints = HandJoints { + ord: 6i32 + }; + #[doc(alias = "HAND_JOINT_INDEX_PROXIMAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_INDEX_PROXIMAL`"] + pub const INDEX_PROXIMAL: HandJoints = HandJoints { + ord: 7i32 + }; + #[doc(alias = "HAND_JOINT_INDEX_INTERMEDIATE")] + #[doc = "Godot enumerator name: `HAND_JOINT_INDEX_INTERMEDIATE`"] + pub const INDEX_INTERMEDIATE: HandJoints = HandJoints { + ord: 8i32 + }; + #[doc(alias = "HAND_JOINT_INDEX_DISTAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_INDEX_DISTAL`"] + pub const INDEX_DISTAL: HandJoints = HandJoints { + ord: 9i32 + }; + #[doc(alias = "HAND_JOINT_INDEX_TIP")] + #[doc = "Godot enumerator name: `HAND_JOINT_INDEX_TIP`"] + pub const INDEX_TIP: HandJoints = HandJoints { + ord: 10i32 + }; + #[doc(alias = "HAND_JOINT_MIDDLE_METACARPAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_MIDDLE_METACARPAL`"] + pub const MIDDLE_METACARPAL: HandJoints = HandJoints { + ord: 11i32 + }; + #[doc(alias = "HAND_JOINT_MIDDLE_PROXIMAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_MIDDLE_PROXIMAL`"] + pub const MIDDLE_PROXIMAL: HandJoints = HandJoints { + ord: 12i32 + }; + #[doc(alias = "HAND_JOINT_MIDDLE_INTERMEDIATE")] + #[doc = "Godot enumerator name: `HAND_JOINT_MIDDLE_INTERMEDIATE`"] + pub const MIDDLE_INTERMEDIATE: HandJoints = HandJoints { + ord: 13i32 + }; + #[doc(alias = "HAND_JOINT_MIDDLE_DISTAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_MIDDLE_DISTAL`"] + pub const MIDDLE_DISTAL: HandJoints = HandJoints { + ord: 14i32 + }; + #[doc(alias = "HAND_JOINT_MIDDLE_TIP")] + #[doc = "Godot enumerator name: `HAND_JOINT_MIDDLE_TIP`"] + pub const MIDDLE_TIP: HandJoints = HandJoints { + ord: 15i32 + }; + #[doc(alias = "HAND_JOINT_RING_METACARPAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_RING_METACARPAL`"] + pub const RING_METACARPAL: HandJoints = HandJoints { + ord: 16i32 + }; + #[doc(alias = "HAND_JOINT_RING_PROXIMAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_RING_PROXIMAL`"] + pub const RING_PROXIMAL: HandJoints = HandJoints { + ord: 17i32 + }; + #[doc(alias = "HAND_JOINT_RING_INTERMEDIATE")] + #[doc = "Godot enumerator name: `HAND_JOINT_RING_INTERMEDIATE`"] + pub const RING_INTERMEDIATE: HandJoints = HandJoints { + ord: 18i32 + }; + #[doc(alias = "HAND_JOINT_RING_DISTAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_RING_DISTAL`"] + pub const RING_DISTAL: HandJoints = HandJoints { + ord: 19i32 + }; + #[doc(alias = "HAND_JOINT_RING_TIP")] + #[doc = "Godot enumerator name: `HAND_JOINT_RING_TIP`"] + pub const RING_TIP: HandJoints = HandJoints { + ord: 20i32 + }; + #[doc(alias = "HAND_JOINT_LITTLE_METACARPAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_LITTLE_METACARPAL`"] + pub const LITTLE_METACARPAL: HandJoints = HandJoints { + ord: 21i32 + }; + #[doc(alias = "HAND_JOINT_LITTLE_PROXIMAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_LITTLE_PROXIMAL`"] + pub const LITTLE_PROXIMAL: HandJoints = HandJoints { + ord: 22i32 + }; + #[doc(alias = "HAND_JOINT_LITTLE_INTERMEDIATE")] + #[doc = "Godot enumerator name: `HAND_JOINT_LITTLE_INTERMEDIATE`"] + pub const LITTLE_INTERMEDIATE: HandJoints = HandJoints { + ord: 23i32 + }; + #[doc(alias = "HAND_JOINT_LITTLE_DISTAL")] + #[doc = "Godot enumerator name: `HAND_JOINT_LITTLE_DISTAL`"] + pub const LITTLE_DISTAL: HandJoints = HandJoints { + ord: 24i32 + }; + #[doc(alias = "HAND_JOINT_LITTLE_TIP")] + #[doc = "Godot enumerator name: `HAND_JOINT_LITTLE_TIP`"] + pub const LITTLE_TIP: HandJoints = HandJoints { + ord: 25i32 + }; + #[doc(alias = "HAND_JOINT_MAX")] + #[doc = "Godot enumerator name: `HAND_JOINT_MAX`"] + pub const MAX: HandJoints = HandJoints { + ord: 26i32 + }; + +} +impl std::fmt::Debug for HandJoints { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("HandJoints") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for HandJoints { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 | ord @ 26i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PALM => "PALM", Self::WRIST => "WRIST", Self::THUMB_METACARPAL => "THUMB_METACARPAL", Self::THUMB_PROXIMAL => "THUMB_PROXIMAL", Self::THUMB_DISTAL => "THUMB_DISTAL", Self::THUMB_TIP => "THUMB_TIP", Self::INDEX_METACARPAL => "INDEX_METACARPAL", Self::INDEX_PROXIMAL => "INDEX_PROXIMAL", Self::INDEX_INTERMEDIATE => "INDEX_INTERMEDIATE", Self::INDEX_DISTAL => "INDEX_DISTAL", Self::INDEX_TIP => "INDEX_TIP", Self::MIDDLE_METACARPAL => "MIDDLE_METACARPAL", Self::MIDDLE_PROXIMAL => "MIDDLE_PROXIMAL", Self::MIDDLE_INTERMEDIATE => "MIDDLE_INTERMEDIATE", Self::MIDDLE_DISTAL => "MIDDLE_DISTAL", Self::MIDDLE_TIP => "MIDDLE_TIP", Self::RING_METACARPAL => "RING_METACARPAL", Self::RING_PROXIMAL => "RING_PROXIMAL", Self::RING_INTERMEDIATE => "RING_INTERMEDIATE", Self::RING_DISTAL => "RING_DISTAL", Self::RING_TIP => "RING_TIP", Self::LITTLE_METACARPAL => "LITTLE_METACARPAL", Self::LITTLE_PROXIMAL => "LITTLE_PROXIMAL", Self::LITTLE_INTERMEDIATE => "LITTLE_INTERMEDIATE", Self::LITTLE_DISTAL => "LITTLE_DISTAL", Self::LITTLE_TIP => "LITTLE_TIP", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PALM => "HAND_JOINT_PALM", Self::WRIST => "HAND_JOINT_WRIST", Self::THUMB_METACARPAL => "HAND_JOINT_THUMB_METACARPAL", Self::THUMB_PROXIMAL => "HAND_JOINT_THUMB_PROXIMAL", Self::THUMB_DISTAL => "HAND_JOINT_THUMB_DISTAL", Self::THUMB_TIP => "HAND_JOINT_THUMB_TIP", Self::INDEX_METACARPAL => "HAND_JOINT_INDEX_METACARPAL", Self::INDEX_PROXIMAL => "HAND_JOINT_INDEX_PROXIMAL", Self::INDEX_INTERMEDIATE => "HAND_JOINT_INDEX_INTERMEDIATE", Self::INDEX_DISTAL => "HAND_JOINT_INDEX_DISTAL", Self::INDEX_TIP => "HAND_JOINT_INDEX_TIP", Self::MIDDLE_METACARPAL => "HAND_JOINT_MIDDLE_METACARPAL", Self::MIDDLE_PROXIMAL => "HAND_JOINT_MIDDLE_PROXIMAL", Self::MIDDLE_INTERMEDIATE => "HAND_JOINT_MIDDLE_INTERMEDIATE", Self::MIDDLE_DISTAL => "HAND_JOINT_MIDDLE_DISTAL", Self::MIDDLE_TIP => "HAND_JOINT_MIDDLE_TIP", Self::RING_METACARPAL => "HAND_JOINT_RING_METACARPAL", Self::RING_PROXIMAL => "HAND_JOINT_RING_PROXIMAL", Self::RING_INTERMEDIATE => "HAND_JOINT_RING_INTERMEDIATE", Self::RING_DISTAL => "HAND_JOINT_RING_DISTAL", Self::RING_TIP => "HAND_JOINT_RING_TIP", Self::LITTLE_METACARPAL => "HAND_JOINT_LITTLE_METACARPAL", Self::LITTLE_PROXIMAL => "HAND_JOINT_LITTLE_PROXIMAL", Self::LITTLE_INTERMEDIATE => "HAND_JOINT_LITTLE_INTERMEDIATE", Self::LITTLE_DISTAL => "HAND_JOINT_LITTLE_DISTAL", Self::LITTLE_TIP => "HAND_JOINT_LITTLE_TIP", Self::MAX => "HAND_JOINT_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for HandJoints { + const ENUMERATOR_COUNT: usize = 26usize; + +} +impl crate::meta::GodotConvert for HandJoints { + type Via = i32; + +} +impl crate::meta::ToGodot for HandJoints { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for HandJoints { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct HandJointFlags { + ord: u64 +} +impl HandJointFlags { + #[doc(alias = "HAND_JOINT_NONE")] + #[doc = "Godot enumerator name: `HAND_JOINT_NONE`"] + pub const NONE: HandJointFlags = HandJointFlags { + ord: 0u64 + }; + #[doc(alias = "HAND_JOINT_ORIENTATION_VALID")] + #[doc = "Godot enumerator name: `HAND_JOINT_ORIENTATION_VALID`"] + pub const ORIENTATION_VALID: HandJointFlags = HandJointFlags { + ord: 1u64 + }; + #[doc(alias = "HAND_JOINT_ORIENTATION_TRACKED")] + #[doc = "Godot enumerator name: `HAND_JOINT_ORIENTATION_TRACKED`"] + pub const ORIENTATION_TRACKED: HandJointFlags = HandJointFlags { + ord: 2u64 + }; + #[doc(alias = "HAND_JOINT_POSITION_VALID")] + #[doc = "Godot enumerator name: `HAND_JOINT_POSITION_VALID`"] + pub const POSITION_VALID: HandJointFlags = HandJointFlags { + ord: 4u64 + }; + #[doc(alias = "HAND_JOINT_POSITION_TRACKED")] + #[doc = "Godot enumerator name: `HAND_JOINT_POSITION_TRACKED`"] + pub const POSITION_TRACKED: HandJointFlags = HandJointFlags { + ord: 8u64 + }; + #[doc(alias = "HAND_JOINT_LINEAR_VELOCITY_VALID")] + #[doc = "Godot enumerator name: `HAND_JOINT_LINEAR_VELOCITY_VALID`"] + pub const LINEAR_VELOCITY_VALID: HandJointFlags = HandJointFlags { + ord: 16u64 + }; + #[doc(alias = "HAND_JOINT_ANGULAR_VELOCITY_VALID")] + #[doc = "Godot enumerator name: `HAND_JOINT_ANGULAR_VELOCITY_VALID`"] + pub const ANGULAR_VELOCITY_VALID: HandJointFlags = HandJointFlags { + ord: 32u64 + }; + +} +impl std::fmt::Debug for HandJointFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::NONE => "NONE", Self::ORIENTATION_VALID => "ORIENTATION_VALID", Self::ORIENTATION_TRACKED => "ORIENTATION_TRACKED", Self::POSITION_VALID => "POSITION_VALID", Self::POSITION_TRACKED => "POSITION_TRACKED", Self::LINEAR_VELOCITY_VALID => "LINEAR_VELOCITY_VALID", Self::ANGULAR_VELOCITY_VALID => "ANGULAR_VELOCITY_VALID", _ => { + f.debug_struct("HandJointFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for HandJointFlags { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for HandJointFlags { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for HandJointFlags { + type Via = u64; + +} +impl crate::meta::ToGodot for HandJointFlags { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for HandJointFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_ip_binding.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_ip_binding.rs new file mode 100644 index 0000000..2f7b489 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/open_xr_ip_binding.rs @@ -0,0 +1,266 @@ +#![doc = "Sidecar module for class [`OpenXrIpBinding`][crate::classes::OpenXrIpBinding].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OpenXRIPBinding` enums](https://docs.godotengine.org/en/stable/classes/class_openxripbinding.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OpenXRIPBinding.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IOpenXrIpBinding`][crate::classes::IOpenXrIpBinding]: virtual methods\n\n\nSee also [Godot docs for `OpenXRIPBinding`](https://docs.godotengine.org/en/stable/classes/class_openxripbinding.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OpenXrIpBinding::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OpenXrIpBinding { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OpenXrIpBinding`][crate::classes::OpenXrIpBinding].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OpenXRIPBinding` methods](https://docs.godotengine.org/en/stable/classes/class_openxripbinding.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOpenXrIpBinding: crate::obj::GodotClass < Base = OpenXrIpBinding > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl OpenXrIpBinding { + pub fn set_action(&mut self, action: impl AsObjectArg < crate::classes::OpenXrAction >,) { + type CallSig = ((), ObjectArg < crate::classes::OpenXrAction >); + let args = (action.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5779usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrIpBinding", "set_action", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_action(&self,) -> Option < Gd < crate::classes::OpenXrAction > > { + type CallSig = (Option < Gd < crate::classes::OpenXrAction > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5780usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrIpBinding", "get_action", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5781usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrIpBinding", "get_path_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_paths(&mut self, paths: &PackedStringArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(paths),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5782usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrIpBinding", "set_paths", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_paths(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5783usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrIpBinding", "get_paths", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_path(&self, path: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5784usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrIpBinding", "has_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_path(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5785usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrIpBinding", "add_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_path(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5786usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OpenXrIpBinding", "remove_path", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OpenXrIpBinding { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OpenXRIPBinding")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OpenXrIpBinding { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for OpenXrIpBinding { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OpenXrIpBinding { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OpenXrIpBinding { + + } + impl crate::obj::cap::GodotDefault for OpenXrIpBinding { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OpenXrIpBinding { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OpenXrIpBinding { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OpenXrIpBinding`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OpenXrIpBinding { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OpenXrIpBinding > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/optimized_translation.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/optimized_translation.rs new file mode 100644 index 0000000..5ed9482 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/optimized_translation.rs @@ -0,0 +1,222 @@ +#![doc = "Sidecar module for class [`OptimizedTranslation`][crate::classes::OptimizedTranslation].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OptimizedTranslation` enums](https://docs.godotengine.org/en/stable/classes/class_optimizedtranslation.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OptimizedTranslation.`\n\nInherits [`Translation`][crate::classes::Translation].\n\nRelated symbols:\n\n* [`IOptimizedTranslation`][crate::classes::IOptimizedTranslation]: virtual methods\n\n\nSee also [Godot docs for `OptimizedTranslation`](https://docs.godotengine.org/en/stable/classes/class_optimizedtranslation.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OptimizedTranslation::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OptimizedTranslation { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OptimizedTranslation`][crate::classes::OptimizedTranslation].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OptimizedTranslation` methods](https://docs.godotengine.org/en/stable/classes/class_optimizedtranslation.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOptimizedTranslation: crate::obj::GodotClass < Base = OptimizedTranslation > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_plural_message(&self, src_message: StringName, src_plural_message: StringName, n: i32, context: StringName,) -> StringName { + unimplemented !() + } + fn get_message(&self, src_message: StringName, context: StringName,) -> StringName { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl OptimizedTranslation { + pub fn generate(&mut self, from: impl AsObjectArg < crate::classes::Translation >,) { + type CallSig = ((), ObjectArg < crate::classes::Translation >); + let args = (from.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5826usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptimizedTranslation", "generate", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OptimizedTranslation { + type Base = crate::classes::Translation; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OptimizedTranslation")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OptimizedTranslation { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Translation > for OptimizedTranslation { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for OptimizedTranslation { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OptimizedTranslation { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OptimizedTranslation { + + } + impl crate::obj::cap::GodotDefault for OptimizedTranslation { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OptimizedTranslation { + type Target = crate::classes::Translation; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OptimizedTranslation { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OptimizedTranslation`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OptimizedTranslation { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OptimizedTranslation > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Translation > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/option_button.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/option_button.rs new file mode 100644 index 0000000..825c225 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/option_button.rs @@ -0,0 +1,703 @@ +#![doc = "Sidecar module for class [`OptionButton`][crate::classes::OptionButton].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OptionButton` enums](https://docs.godotengine.org/en/stable/classes/class_optionbutton.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OptionButton.`\n\nInherits [`Button`][crate::classes::Button].\n\nRelated symbols:\n\n* [`option_button`][crate::classes::option_button]: sidecar module with related enum/flag types\n* [`IOptionButton`][crate::classes::IOptionButton]: virtual methods\n\n\nSee also [Godot docs for `OptionButton`](https://docs.godotengine.org/en/stable/classes/class_optionbutton.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`OptionButton::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct OptionButton { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OptionButton`][crate::classes::OptionButton].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OptionButton` methods](https://docs.godotengine.org/en/stable/classes/class_optionbutton.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOptionButton: crate::obj::GodotClass < Base = OptionButton > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn pressed(&mut self,) { + unimplemented !() + } + fn toggled(&mut self, toggled_on: bool,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl OptionButton { + pub(crate) fn add_item_full(&mut self, label: CowArg < GString >, id: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32); + let args = (label, id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5827usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "add_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_item(&mut self, label: impl AsArg < GString >,) { + self.add_item_ex(label,) . done() + } + #[inline] + pub fn add_item_ex < 'a > (&'a mut self, label: impl AsArg < GString > + 'a,) -> ExAddItem < 'a > { + ExAddItem::new(self, label,) + } + pub(crate) fn add_icon_item_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, label: CowArg < GString >, id: i32,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Texture2D >, CowArg < 'a0, GString >, i32); + let args = (texture, label, id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5828usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "add_icon_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_icon_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_icon_item(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString >,) { + self.add_icon_item_ex(texture, label,) . done() + } + #[inline] + pub fn add_icon_item_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> ExAddIconItem < 'a > { + ExAddIconItem::new(self, texture, label,) + } + pub fn set_item_text(&mut self, idx: i32, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (idx, text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5829usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "set_item_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_icon(&mut self, idx: i32, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Texture2D >); + let args = (idx, texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5830usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "set_item_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_disabled(&mut self, idx: i32, disabled: bool,) { + type CallSig = ((), i32, bool); + let args = (idx, disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5831usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "set_item_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_id(&mut self, idx: i32, id: i32,) { + type CallSig = ((), i32, i32); + let args = (idx, id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5832usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "set_item_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_metadata(&mut self, idx: i32, metadata: &Variant,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, Variant >); + let args = (idx, RefArg::new(metadata),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5833usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "set_item_metadata", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_tooltip(&mut self, idx: i32, tooltip: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (idx, tooltip.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5834usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "set_item_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_text(&self, idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5835usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_item_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_icon(&self, idx: i32,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5836usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_item_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_id(&self, idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5837usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_item_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_index(&self, id: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5838usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_item_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_metadata(&self, idx: i32,) -> Variant { + type CallSig = (Variant, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5839usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_item_metadata", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_tooltip(&self, idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5840usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_item_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_disabled(&self, idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5841usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "is_item_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_separator(&self, idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5842usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "is_item_separator", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_separator_full(&mut self, text: CowArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5843usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "add_separator", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_separator_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_separator(&mut self,) { + self.add_separator_ex() . done() + } + #[inline] + pub fn add_separator_ex < 'a > (&'a mut self,) -> ExAddSeparator < 'a > { + ExAddSeparator::new(self,) + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5844usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn select(&mut self, idx: i32,) { + type CallSig = ((), i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5845usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "select", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selected(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5846usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_selected", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selected_id(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5847usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_selected_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selected_metadata(&self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5848usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_selected_metadata", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_item(&mut self, idx: i32,) { + type CallSig = ((), i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5849usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "remove_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_popup(&self,) -> Option < Gd < crate::classes::PopupMenu > > { + type CallSig = (Option < Gd < crate::classes::PopupMenu > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5850usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_popup", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn show_popup(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5851usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "show_popup", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5852usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "set_item_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5853usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_item_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_selectable_items(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5854usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "has_selectable_items", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_selectable_item_full(&self, from_last: bool,) -> i32 { + type CallSig = (i32, bool); + let args = (from_last,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5855usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_selectable_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_selectable_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_selectable_item(&self,) -> i32 { + self.get_selectable_item_ex() . done() + } + #[inline] + pub fn get_selectable_item_ex < 'a > (&'a self,) -> ExGetSelectableItem < 'a > { + ExGetSelectableItem::new(self,) + } + pub fn set_fit_to_longest_item(&mut self, fit: bool,) { + type CallSig = ((), bool); + let args = (fit,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5856usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "set_fit_to_longest_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_fit_to_longest_item(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5857usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "is_fit_to_longest_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_reselect(&mut self, allow: bool,) { + type CallSig = ((), bool); + let args = (allow,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5858usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "set_allow_reselect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_allow_reselect(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5859usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "get_allow_reselect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_disable_shortcuts(&mut self, disabled: bool,) { + type CallSig = ((), bool); + let args = (disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5860usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "OptionButton", "set_disable_shortcuts", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OptionButton { + type Base = crate::classes::Button; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OptionButton")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OptionButton { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Button > for OptionButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::BaseButton > for OptionButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for OptionButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for OptionButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for OptionButton { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OptionButton { + + } + impl crate::obj::cap::GodotDefault for OptionButton { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OptionButton { + type Target = crate::classes::Button; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OptionButton { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OptionButton`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OptionButton { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OptionButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Button > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BaseButton > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`OptionButton::add_item_ex`][super::OptionButton::add_item_ex]."] +#[must_use] +pub struct ExAddItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::OptionButton, label: CowArg < 'a, GString >, id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddItem < 'a > { + fn new(surround_object: &'a mut re_export::OptionButton, label: impl AsArg < GString > + 'a,) -> Self { + let id = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, label: label.into_arg(), id: id, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, label, id, + } + = self; + re_export::OptionButton::add_item_full(surround_object, label, id,) + } +} +#[doc = "Default-param extender for [`OptionButton::add_icon_item_ex`][super::OptionButton::add_icon_item_ex]."] +#[must_use] +pub struct ExAddIconItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::OptionButton, texture: ObjectCow < crate::classes::Texture2D >, label: CowArg < 'a, GString >, id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddIconItem < 'a > { + fn new(surround_object: &'a mut re_export::OptionButton, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> Self { + let id = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), label: label.into_arg(), id: id, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, label, id, + } + = self; + re_export::OptionButton::add_icon_item_full(surround_object, texture.cow_as_object_arg(), label, id,) + } +} +#[doc = "Default-param extender for [`OptionButton::add_separator_ex`][super::OptionButton::add_separator_ex]."] +#[must_use] +pub struct ExAddSeparator < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::OptionButton, text: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddSeparator < 'a > { + fn new(surround_object: &'a mut re_export::OptionButton,) -> Self { + let text = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, text: CowArg::Owned(text), + } + } + #[inline] + pub fn text(self, text: impl AsArg < GString > + 'a) -> Self { + Self { + text: text.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, text, + } + = self; + re_export::OptionButton::add_separator_full(surround_object, text,) + } +} +#[doc = "Default-param extender for [`OptionButton::get_selectable_item_ex`][super::OptionButton::get_selectable_item_ex]."] +#[must_use] +pub struct ExGetSelectableItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::OptionButton, from_last: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetSelectableItem < 'a > { + fn new(surround_object: &'a re_export::OptionButton,) -> Self { + let from_last = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from_last: from_last, + } + } + #[inline] + pub fn from_last(self, from_last: bool) -> Self { + Self { + from_last: from_last, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, from_last, + } + = self; + re_export::OptionButton::get_selectable_item_full(surround_object, from_last,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/orm_material_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/orm_material_3d.rs new file mode 100644 index 0000000..87b35ad --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/orm_material_3d.rs @@ -0,0 +1,222 @@ +#![doc = "Sidecar module for class [`OrmMaterial3D`][crate::classes::OrmMaterial3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ORMMaterial3D` enums](https://docs.godotengine.org/en/stable/classes/class_ormmaterial3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ORMMaterial3D.`\n\nInherits [`BaseMaterial3D`][crate::classes::BaseMaterial3D].\n\nRelated symbols:\n\n* [`IOrmMaterial3D`][crate::classes::IOrmMaterial3D]: virtual methods\n\n\nSee also [Godot docs for `ORMMaterial3D`](https://docs.godotengine.org/en/stable/classes/class_ormmaterial3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`OrmMaterial3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct OrmMaterial3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`OrmMaterial3D`][crate::classes::OrmMaterial3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ORMMaterial3D` methods](https://docs.godotengine.org/en/stable/classes/class_ormmaterial3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOrmMaterial3D: crate::obj::GodotClass < Base = OrmMaterial3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_shader_rid(&self,) -> Rid; + fn get_shader_mode(&self,) -> crate::classes::shader::Mode; + fn can_do_next_pass(&self,) -> bool { + unimplemented !() + } + fn can_use_render_priority(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl OrmMaterial3D { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for OrmMaterial3D { + type Base = crate::classes::BaseMaterial3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ORMMaterial3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for OrmMaterial3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::BaseMaterial3D > for OrmMaterial3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Material > for OrmMaterial3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for OrmMaterial3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for OrmMaterial3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for OrmMaterial3D { + + } + impl crate::obj::cap::GodotDefault for OrmMaterial3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for OrmMaterial3D { + type Target = crate::classes::BaseMaterial3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for OrmMaterial3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`OrmMaterial3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_OrmMaterial3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::OrmMaterial3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::BaseMaterial3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Material > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/os.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/os.rs new file mode 100644 index 0000000..515cbb3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/os.rs @@ -0,0 +1,1308 @@ +#![doc = "Sidecar module for class [`Os`][crate::classes::Os].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `OS` enums](https://docs.godotengine.org/en/stable/classes/class_os.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `OS.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`os`][crate::classes::os]: sidecar module with related enum/flag types\n* [`IOs`][crate::classes::IOs]: virtual methods\n\n\nSee also [Godot docs for `OS`](https://docs.godotengine.org/en/stable/classes/class_os.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`Os::singleton()`][Os::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct Os { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Os`][crate::classes::Os].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `OS` methods](https://docs.godotengine.org/en/stable/classes/class_os.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IOs: crate::obj::GodotClass < Base = Os > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Os { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"OS"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn get_entropy(&mut self, size: i32,) -> PackedByteArray { + type CallSig = (PackedByteArray, i32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5592usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_entropy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_system_ca_certificates(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5593usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_system_ca_certificates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_connected_midi_inputs(&mut self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5594usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_connected_midi_inputs", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn open_midi_inputs(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5595usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "open_midi_inputs", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn close_midi_inputs(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5596usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "close_midi_inputs", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn alert_full(&mut self, text: CowArg < GString >, title: CowArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (text, title,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5597usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "alert", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::alert_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn alert(&mut self, text: impl AsArg < GString >,) { + self.alert_ex(text,) . done() + } + #[inline] + pub fn alert_ex < 'a > (&'a mut self, text: impl AsArg < GString > + 'a,) -> ExAlert < 'a > { + ExAlert::new(self, text,) + } + pub fn crash(&mut self, message: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (message.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5598usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "crash", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_low_processor_usage_mode(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5599usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "set_low_processor_usage_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_in_low_processor_usage_mode(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5600usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "is_in_low_processor_usage_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_low_processor_usage_mode_sleep_usec(&mut self, usec: i32,) { + type CallSig = ((), i32); + let args = (usec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5601usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "set_low_processor_usage_mode_sleep_usec", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_low_processor_usage_mode_sleep_usec(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5602usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_low_processor_usage_mode_sleep_usec", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_delta_smoothing(&mut self, delta_smoothing_enabled: bool,) { + type CallSig = ((), bool); + let args = (delta_smoothing_enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5603usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "set_delta_smoothing", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_delta_smoothing_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5604usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "is_delta_smoothing_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_processor_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5605usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_processor_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_processor_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5606usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_processor_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_system_fonts(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5607usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_system_fonts", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_system_font_path_full(&self, font_name: CowArg < GString >, weight: i32, stretch: i32, italic: bool,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >, i32, i32, bool); + let args = (font_name, weight, stretch, italic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5608usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_system_font_path", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_system_font_path_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_system_font_path(&self, font_name: impl AsArg < GString >,) -> GString { + self.get_system_font_path_ex(font_name,) . done() + } + #[inline] + pub fn get_system_font_path_ex < 'a > (&'a self, font_name: impl AsArg < GString > + 'a,) -> ExGetSystemFontPath < 'a > { + ExGetSystemFontPath::new(self, font_name,) + } + pub(crate) fn get_system_font_path_for_text_full(&self, font_name: CowArg < GString >, text: CowArg < GString >, locale: CowArg < GString >, script: CowArg < GString >, weight: i32, stretch: i32, italic: bool,) -> PackedStringArray { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = (PackedStringArray, CowArg < 'a0, GString >, CowArg < 'a1, GString >, CowArg < 'a2, GString >, CowArg < 'a3, GString >, i32, i32, bool); + let args = (font_name, text, locale, script, weight, stretch, italic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5609usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_system_font_path_for_text", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_system_font_path_for_text_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_system_font_path_for_text(&self, font_name: impl AsArg < GString >, text: impl AsArg < GString >,) -> PackedStringArray { + self.get_system_font_path_for_text_ex(font_name, text,) . done() + } + #[inline] + pub fn get_system_font_path_for_text_ex < 'a > (&'a self, font_name: impl AsArg < GString > + 'a, text: impl AsArg < GString > + 'a,) -> ExGetSystemFontPathForText < 'a > { + ExGetSystemFontPathForText::new(self, font_name, text,) + } + pub fn get_executable_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5610usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_executable_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn read_string_from_stdin(&mut self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5611usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "read_string_from_stdin", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn execute_full(&mut self, path: CowArg < GString >, arguments: RefArg < PackedStringArray >, output: RefArg < VariantArray >, read_stderr: bool, open_console: bool,) -> i32 { + type CallSig < 'a0, 'a1, 'a2, > = (i32, CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >, RefArg < 'a2, VariantArray >, bool, bool); + let args = (path, arguments, output, read_stderr, open_console,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5612usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "execute", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::execute_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn execute(&mut self, path: impl AsArg < GString >, arguments: &PackedStringArray,) -> i32 { + self.execute_ex(path, arguments,) . done() + } + #[inline] + pub fn execute_ex < 'a > (&'a mut self, path: impl AsArg < GString > + 'a, arguments: &'a PackedStringArray,) -> ExExecute < 'a > { + ExExecute::new(self, path, arguments,) + } + pub fn execute_with_pipe(&mut self, path: impl AsArg < GString >, arguments: &PackedStringArray,) -> Dictionary { + type CallSig < 'a0, 'a1, > = (Dictionary, CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >); + let args = (path.into_arg(), RefArg::new(arguments),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5613usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "execute_with_pipe", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn create_process_full(&mut self, path: CowArg < GString >, arguments: RefArg < PackedStringArray >, open_console: bool,) -> i32 { + type CallSig < 'a0, 'a1, > = (i32, CowArg < 'a0, GString >, RefArg < 'a1, PackedStringArray >, bool); + let args = (path, arguments, open_console,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5614usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "create_process", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_process_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_process(&mut self, path: impl AsArg < GString >, arguments: &PackedStringArray,) -> i32 { + self.create_process_ex(path, arguments,) . done() + } + #[inline] + pub fn create_process_ex < 'a > (&'a mut self, path: impl AsArg < GString > + 'a, arguments: &'a PackedStringArray,) -> ExCreateProcess < 'a > { + ExCreateProcess::new(self, path, arguments,) + } + pub fn create_instance(&mut self, arguments: &PackedStringArray,) -> i32 { + type CallSig < 'a0, > = (i32, RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(arguments),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5615usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "create_instance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn kill(&mut self, pid: i32,) -> crate::global::Error { + type CallSig = (crate::global::Error, i32); + let args = (pid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5616usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "kill", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shell_open(&mut self, uri: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (uri.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5617usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "shell_open", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn shell_show_in_file_manager_full(&mut self, file_or_dir_path: CowArg < GString >, open_folder: bool,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, bool); + let args = (file_or_dir_path, open_folder,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5618usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "shell_show_in_file_manager", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::shell_show_in_file_manager_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn shell_show_in_file_manager(&mut self, file_or_dir_path: impl AsArg < GString >,) -> crate::global::Error { + self.shell_show_in_file_manager_ex(file_or_dir_path,) . done() + } + #[inline] + pub fn shell_show_in_file_manager_ex < 'a > (&'a mut self, file_or_dir_path: impl AsArg < GString > + 'a,) -> ExShellShowInFileManager < 'a > { + ExShellShowInFileManager::new(self, file_or_dir_path,) + } + pub fn is_process_running(&self, pid: i32,) -> bool { + type CallSig = (bool, i32); + let args = (pid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5619usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "is_process_running", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_exit_code(&self, pid: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (pid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5620usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_process_exit_code", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_id(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5621usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_process_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_environment(&self, variable: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (variable.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5622usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "has_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_environment(&self, variable: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (variable.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5623usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_environment(&self, variable: impl AsArg < GString >, value: impl AsArg < GString >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (variable.into_arg(), value.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5624usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "set_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unset_environment(&self, variable: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (variable.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5625usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "unset_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5626usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_distribution_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5627usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_distribution_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_version(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5628usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_version", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cmdline_args(&mut self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5629usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_cmdline_args", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cmdline_user_args(&mut self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5630usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_cmdline_user_args", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_video_adapter_driver_info(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5631usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_video_adapter_driver_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_restart_on_exit_full(&mut self, restart: bool, arguments: RefArg < PackedStringArray >,) { + type CallSig < 'a0, > = ((), bool, RefArg < 'a0, PackedStringArray >); + let args = (restart, arguments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5632usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "set_restart_on_exit", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_restart_on_exit_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_restart_on_exit(&mut self, restart: bool,) { + self.set_restart_on_exit_ex(restart,) . done() + } + #[inline] + pub fn set_restart_on_exit_ex < 'a > (&'a mut self, restart: bool,) -> ExSetRestartOnExit < 'a > { + ExSetRestartOnExit::new(self, restart,) + } + pub fn is_restart_on_exit_set(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5633usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "is_restart_on_exit_set", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_restart_on_exit_arguments(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5634usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_restart_on_exit_arguments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn delay_usec(&self, usec: i32,) { + type CallSig = ((), i32); + let args = (usec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5635usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "delay_usec", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn delay_msec(&self, msec: i32,) { + type CallSig = ((), i32); + let args = (msec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5636usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "delay_msec", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_locale(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5637usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_locale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_locale_language(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5638usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_locale_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_model_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5639usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_model_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_userfs_persistent(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5640usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "is_userfs_persistent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_stdout_verbose(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5641usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "is_stdout_verbose", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_debug_build(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5642usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "is_debug_build", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_static_memory_usage(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5643usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_static_memory_usage", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_static_memory_peak_usage(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5644usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_static_memory_peak_usage", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_memory_info(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5645usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_memory_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn move_to_trash(&self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5646usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "move_to_trash", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_user_data_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5647usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_user_data_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_system_dir_full(&self, dir: crate::classes::os::SystemDir, shared_storage: bool,) -> GString { + type CallSig = (GString, crate::classes::os::SystemDir, bool); + let args = (dir, shared_storage,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5648usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_system_dir", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_system_dir_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_system_dir(&self, dir: crate::classes::os::SystemDir,) -> GString { + self.get_system_dir_ex(dir,) . done() + } + #[inline] + pub fn get_system_dir_ex < 'a > (&'a self, dir: crate::classes::os::SystemDir,) -> ExGetSystemDir < 'a > { + ExGetSystemDir::new(self, dir,) + } + pub fn get_config_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5649usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_config_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_data_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5650usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_data_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cache_dir(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5651usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_cache_dir", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_unique_id(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5652usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_unique_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_keycode_string(&self, code: crate::global::Key,) -> GString { + type CallSig = (GString, crate::global::Key); + let args = (code,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5653usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_keycode_string", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_keycode_unicode(&self, code: i64,) -> bool { + type CallSig = (bool, i64); + let args = (code,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5654usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "is_keycode_unicode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_keycode_from_string(&self, string: impl AsArg < GString >,) -> crate::global::Key { + type CallSig < 'a0, > = (crate::global::Key, CowArg < 'a0, GString >); + let args = (string.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5655usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "find_keycode_from_string", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_file_access_save_and_swap(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5656usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "set_use_file_access_save_and_swap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_thread_name(&mut self, name: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5657usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "set_thread_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_thread_caller_id(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5658usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_thread_caller_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_main_thread_id(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5659usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_main_thread_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_feature(&self, tag_name: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (tag_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5660usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "has_feature", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_sandboxed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5661usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "is_sandboxed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn request_permission(&mut self, name: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5662usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "request_permission", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn request_permissions(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5663usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "request_permissions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_granted_permissions(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5664usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "get_granted_permissions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn revoke_granted_permissions(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5665usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Os", "revoke_granted_permissions", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Os { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"OS")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Os { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Os { + + } + impl std::ops::Deref for Os { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Os { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Os`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Os { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Os > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Os::alert_ex`][super::Os::alert_ex]."] +#[must_use] +pub struct ExAlert < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Os, text: CowArg < 'a, GString >, title: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAlert < 'a > { + fn new(surround_object: &'a mut re_export::Os, text: impl AsArg < GString > + 'a,) -> Self { + let title = GString::from("Alert!"); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, text: text.into_arg(), title: CowArg::Owned(title), + } + } + #[inline] + pub fn title(self, title: impl AsArg < GString > + 'a) -> Self { + Self { + title: title.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, text, title, + } + = self; + re_export::Os::alert_full(surround_object, text, title,) + } +} +#[doc = "Default-param extender for [`Os::get_system_font_path_ex`][super::Os::get_system_font_path_ex]."] +#[must_use] +pub struct ExGetSystemFontPath < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Os, font_name: CowArg < 'a, GString >, weight: i32, stretch: i32, italic: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetSystemFontPath < 'a > { + fn new(surround_object: &'a re_export::Os, font_name: impl AsArg < GString > + 'a,) -> Self { + let weight = 400i32; + let stretch = 100i32; + let italic = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font_name: font_name.into_arg(), weight: weight, stretch: stretch, italic: italic, + } + } + #[inline] + pub fn weight(self, weight: i32) -> Self { + Self { + weight: weight, .. self + } + } + #[inline] + pub fn stretch(self, stretch: i32) -> Self { + Self { + stretch: stretch, .. self + } + } + #[inline] + pub fn italic(self, italic: bool) -> Self { + Self { + italic: italic, .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, font_name, weight, stretch, italic, + } + = self; + re_export::Os::get_system_font_path_full(surround_object, font_name, weight, stretch, italic,) + } +} +#[doc = "Default-param extender for [`Os::get_system_font_path_for_text_ex`][super::Os::get_system_font_path_for_text_ex]."] +#[must_use] +pub struct ExGetSystemFontPathForText < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Os, font_name: CowArg < 'a, GString >, text: CowArg < 'a, GString >, locale: CowArg < 'a, GString >, script: CowArg < 'a, GString >, weight: i32, stretch: i32, italic: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetSystemFontPathForText < 'a > { + fn new(surround_object: &'a re_export::Os, font_name: impl AsArg < GString > + 'a, text: impl AsArg < GString > + 'a,) -> Self { + let locale = GString::from(""); + let script = GString::from(""); + let weight = 400i32; + let stretch = 100i32; + let italic = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font_name: font_name.into_arg(), text: text.into_arg(), locale: CowArg::Owned(locale), script: CowArg::Owned(script), weight: weight, stretch: stretch, italic: italic, + } + } + #[inline] + pub fn locale(self, locale: impl AsArg < GString > + 'a) -> Self { + Self { + locale: locale.into_arg(), .. self + } + } + #[inline] + pub fn script(self, script: impl AsArg < GString > + 'a) -> Self { + Self { + script: script.into_arg(), .. self + } + } + #[inline] + pub fn weight(self, weight: i32) -> Self { + Self { + weight: weight, .. self + } + } + #[inline] + pub fn stretch(self, stretch: i32) -> Self { + Self { + stretch: stretch, .. self + } + } + #[inline] + pub fn italic(self, italic: bool) -> Self { + Self { + italic: italic, .. self + } + } + #[inline] + pub fn done(self) -> PackedStringArray { + let Self { + _phantom, surround_object, font_name, text, locale, script, weight, stretch, italic, + } + = self; + re_export::Os::get_system_font_path_for_text_full(surround_object, font_name, text, locale, script, weight, stretch, italic,) + } +} +#[doc = "Default-param extender for [`Os::execute_ex`][super::Os::execute_ex]."] +#[must_use] +pub struct ExExecute < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Os, path: CowArg < 'a, GString >, arguments: CowArg < 'a, PackedStringArray >, output: CowArg < 'a, VariantArray >, read_stderr: bool, open_console: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExExecute < 'a > { + fn new(surround_object: &'a mut re_export::Os, path: impl AsArg < GString > + 'a, arguments: &'a PackedStringArray,) -> Self { + let output = Array::new(); + let read_stderr = false; + let open_console = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), arguments: CowArg::Borrowed(arguments), output: CowArg::Owned(output), read_stderr: read_stderr, open_console: open_console, + } + } + #[inline] + pub fn output(self, output: &'a VariantArray) -> Self { + Self { + output: CowArg::Borrowed(output), .. self + } + } + #[inline] + pub fn read_stderr(self, read_stderr: bool) -> Self { + Self { + read_stderr: read_stderr, .. self + } + } + #[inline] + pub fn open_console(self, open_console: bool) -> Self { + Self { + open_console: open_console, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, path, arguments, output, read_stderr, open_console, + } + = self; + re_export::Os::execute_full(surround_object, path, arguments.cow_as_arg(), output.cow_as_arg(), read_stderr, open_console,) + } +} +#[doc = "Default-param extender for [`Os::create_process_ex`][super::Os::create_process_ex]."] +#[must_use] +pub struct ExCreateProcess < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Os, path: CowArg < 'a, GString >, arguments: CowArg < 'a, PackedStringArray >, open_console: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateProcess < 'a > { + fn new(surround_object: &'a mut re_export::Os, path: impl AsArg < GString > + 'a, arguments: &'a PackedStringArray,) -> Self { + let open_console = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), arguments: CowArg::Borrowed(arguments), open_console: open_console, + } + } + #[inline] + pub fn open_console(self, open_console: bool) -> Self { + Self { + open_console: open_console, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, path, arguments, open_console, + } + = self; + re_export::Os::create_process_full(surround_object, path, arguments.cow_as_arg(), open_console,) + } +} +#[doc = "Default-param extender for [`Os::shell_show_in_file_manager_ex`][super::Os::shell_show_in_file_manager_ex]."] +#[must_use] +pub struct ExShellShowInFileManager < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Os, file_or_dir_path: CowArg < 'a, GString >, open_folder: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExShellShowInFileManager < 'a > { + fn new(surround_object: &'a mut re_export::Os, file_or_dir_path: impl AsArg < GString > + 'a,) -> Self { + let open_folder = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, file_or_dir_path: file_or_dir_path.into_arg(), open_folder: open_folder, + } + } + #[inline] + pub fn open_folder(self, open_folder: bool) -> Self { + Self { + open_folder: open_folder, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, file_or_dir_path, open_folder, + } + = self; + re_export::Os::shell_show_in_file_manager_full(surround_object, file_or_dir_path, open_folder,) + } +} +#[doc = "Default-param extender for [`Os::set_restart_on_exit_ex`][super::Os::set_restart_on_exit_ex]."] +#[must_use] +pub struct ExSetRestartOnExit < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Os, restart: bool, arguments: CowArg < 'a, PackedStringArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetRestartOnExit < 'a > { + fn new(surround_object: &'a mut re_export::Os, restart: bool,) -> Self { + let arguments = PackedStringArray::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, restart: restart, arguments: CowArg::Owned(arguments), + } + } + #[inline] + pub fn arguments(self, arguments: &'a PackedStringArray) -> Self { + Self { + arguments: CowArg::Borrowed(arguments), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, restart, arguments, + } + = self; + re_export::Os::set_restart_on_exit_full(surround_object, restart, arguments.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`Os::get_system_dir_ex`][super::Os::get_system_dir_ex]."] +#[must_use] +pub struct ExGetSystemDir < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Os, dir: crate::classes::os::SystemDir, shared_storage: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetSystemDir < 'a > { + fn new(surround_object: &'a re_export::Os, dir: crate::classes::os::SystemDir,) -> Self { + let shared_storage = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, dir: dir, shared_storage: shared_storage, + } + } + #[inline] + pub fn shared_storage(self, shared_storage: bool) -> Self { + Self { + shared_storage: shared_storage, .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, dir, shared_storage, + } + = self; + re_export::Os::get_system_dir_full(surround_object, dir, shared_storage,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct RenderingDriver { + ord: i32 +} +impl RenderingDriver { + #[doc(alias = "RENDERING_DRIVER_VULKAN")] + #[doc = "Godot enumerator name: `RENDERING_DRIVER_VULKAN`"] + pub const VULKAN: RenderingDriver = RenderingDriver { + ord: 0i32 + }; + #[doc(alias = "RENDERING_DRIVER_OPENGL3")] + #[doc = "Godot enumerator name: `RENDERING_DRIVER_OPENGL3`"] + pub const OPENGL3: RenderingDriver = RenderingDriver { + ord: 1i32 + }; + #[doc(alias = "RENDERING_DRIVER_D3D12")] + #[doc = "Godot enumerator name: `RENDERING_DRIVER_D3D12`"] + pub const D3D12: RenderingDriver = RenderingDriver { + ord: 2i32 + }; + +} +impl std::fmt::Debug for RenderingDriver { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("RenderingDriver") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for RenderingDriver { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VULKAN => "VULKAN", Self::OPENGL3 => "OPENGL3", Self::D3D12 => "D3D12", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VULKAN => "RENDERING_DRIVER_VULKAN", Self::OPENGL3 => "RENDERING_DRIVER_OPENGL3", Self::D3D12 => "RENDERING_DRIVER_D3D12", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for RenderingDriver { + type Via = i32; + +} +impl crate::meta::ToGodot for RenderingDriver { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for RenderingDriver { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SystemDir { + ord: i32 +} +impl SystemDir { + #[doc(alias = "SYSTEM_DIR_DESKTOP")] + #[doc = "Godot enumerator name: `SYSTEM_DIR_DESKTOP`"] + pub const DESKTOP: SystemDir = SystemDir { + ord: 0i32 + }; + #[doc(alias = "SYSTEM_DIR_DCIM")] + #[doc = "Godot enumerator name: `SYSTEM_DIR_DCIM`"] + pub const DCIM: SystemDir = SystemDir { + ord: 1i32 + }; + #[doc(alias = "SYSTEM_DIR_DOCUMENTS")] + #[doc = "Godot enumerator name: `SYSTEM_DIR_DOCUMENTS`"] + pub const DOCUMENTS: SystemDir = SystemDir { + ord: 2i32 + }; + #[doc(alias = "SYSTEM_DIR_DOWNLOADS")] + #[doc = "Godot enumerator name: `SYSTEM_DIR_DOWNLOADS`"] + pub const DOWNLOADS: SystemDir = SystemDir { + ord: 3i32 + }; + #[doc(alias = "SYSTEM_DIR_MOVIES")] + #[doc = "Godot enumerator name: `SYSTEM_DIR_MOVIES`"] + pub const MOVIES: SystemDir = SystemDir { + ord: 4i32 + }; + #[doc(alias = "SYSTEM_DIR_MUSIC")] + #[doc = "Godot enumerator name: `SYSTEM_DIR_MUSIC`"] + pub const MUSIC: SystemDir = SystemDir { + ord: 5i32 + }; + #[doc(alias = "SYSTEM_DIR_PICTURES")] + #[doc = "Godot enumerator name: `SYSTEM_DIR_PICTURES`"] + pub const PICTURES: SystemDir = SystemDir { + ord: 6i32 + }; + #[doc(alias = "SYSTEM_DIR_RINGTONES")] + #[doc = "Godot enumerator name: `SYSTEM_DIR_RINGTONES`"] + pub const RINGTONES: SystemDir = SystemDir { + ord: 7i32 + }; + +} +impl std::fmt::Debug for SystemDir { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SystemDir") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SystemDir { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DESKTOP => "DESKTOP", Self::DCIM => "DCIM", Self::DOCUMENTS => "DOCUMENTS", Self::DOWNLOADS => "DOWNLOADS", Self::MOVIES => "MOVIES", Self::MUSIC => "MUSIC", Self::PICTURES => "PICTURES", Self::RINGTONES => "RINGTONES", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DESKTOP => "SYSTEM_DIR_DESKTOP", Self::DCIM => "SYSTEM_DIR_DCIM", Self::DOCUMENTS => "SYSTEM_DIR_DOCUMENTS", Self::DOWNLOADS => "SYSTEM_DIR_DOWNLOADS", Self::MOVIES => "SYSTEM_DIR_MOVIES", Self::MUSIC => "SYSTEM_DIR_MUSIC", Self::PICTURES => "SYSTEM_DIR_PICTURES", Self::RINGTONES => "SYSTEM_DIR_RINGTONES", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SystemDir { + type Via = i32; + +} +impl crate::meta::ToGodot for SystemDir { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SystemDir { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packed_data_container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packed_data_container.rs new file mode 100644 index 0000000..2d8bc94 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packed_data_container.rs @@ -0,0 +1,218 @@ +#![doc = "Sidecar module for class [`PackedDataContainer`][crate::classes::PackedDataContainer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PackedDataContainer` enums](https://docs.godotengine.org/en/stable/classes/class_packeddatacontainer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PackedDataContainer.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IPackedDataContainer`][crate::classes::IPackedDataContainer]: virtual methods\n\n\nSee also [Godot docs for `PackedDataContainer`](https://docs.godotengine.org/en/stable/classes/class_packeddatacontainer.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PackedDataContainer::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PackedDataContainer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PackedDataContainer`][crate::classes::PackedDataContainer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PackedDataContainer` methods](https://docs.godotengine.org/en/stable/classes/class_packeddatacontainer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPackedDataContainer: crate::obj::GodotClass < Base = PackedDataContainer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PackedDataContainer { + pub fn pack(&mut self, value: &Variant,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, Variant >); + let args = (RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5864usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PackedDataContainer", "pack", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5865usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PackedDataContainer", "size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PackedDataContainer { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PackedDataContainer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PackedDataContainer { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PackedDataContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PackedDataContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PackedDataContainer { + + } + impl crate::obj::cap::GodotDefault for PackedDataContainer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PackedDataContainer { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PackedDataContainer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PackedDataContainer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PackedDataContainer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PackedDataContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packed_data_container_ref.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packed_data_container_ref.rs new file mode 100644 index 0000000..4f1b000 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packed_data_container_ref.rs @@ -0,0 +1,196 @@ +#![doc = "Sidecar module for class [`PackedDataContainerRef`][crate::classes::PackedDataContainerRef].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PackedDataContainerRef` enums](https://docs.godotengine.org/en/stable/classes/class_packeddatacontainerref.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PackedDataContainerRef.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IPackedDataContainerRef`][crate::classes::IPackedDataContainerRef]: virtual methods\n\n\nSee also [Godot docs for `PackedDataContainerRef`](https://docs.godotengine.org/en/stable/classes/class_packeddatacontainerref.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct PackedDataContainerRef { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PackedDataContainerRef`][crate::classes::PackedDataContainerRef].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PackedDataContainerRef` methods](https://docs.godotengine.org/en/stable/classes/class_packeddatacontainerref.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPackedDataContainerRef: crate::obj::GodotClass < Base = PackedDataContainerRef > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PackedDataContainerRef { + pub fn size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5866usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PackedDataContainerRef", "size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PackedDataContainerRef { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PackedDataContainerRef")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PackedDataContainerRef { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PackedDataContainerRef { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PackedDataContainerRef { + + } + impl std::ops::Deref for PackedDataContainerRef { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PackedDataContainerRef { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PackedDataContainerRef`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PackedDataContainerRef { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PackedDataContainerRef > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packed_scene.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packed_scene.rs new file mode 100644 index 0000000..d8360a9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packed_scene.rs @@ -0,0 +1,351 @@ +#![doc = "Sidecar module for class [`PackedScene`][crate::classes::PackedScene].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PackedScene` enums](https://docs.godotengine.org/en/stable/classes/class_packedscene.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PackedScene.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`packed_scene`][crate::classes::packed_scene]: sidecar module with related enum/flag types\n* [`IPackedScene`][crate::classes::IPackedScene]: virtual methods\n\n\nSee also [Godot docs for `PackedScene`](https://docs.godotengine.org/en/stable/classes/class_packedscene.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PackedScene::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PackedScene { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PackedScene`][crate::classes::PackedScene].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PackedScene` methods](https://docs.godotengine.org/en/stable/classes/class_packedscene.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPackedScene: crate::obj::GodotClass < Base = PackedScene > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PackedScene { + pub fn pack(&mut self, path: impl AsObjectArg < crate::classes::Node >,) -> crate::global::Error { + type CallSig = (crate::global::Error, ObjectArg < crate::classes::Node >); + let args = (path.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5867usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PackedScene", "pack", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn instantiate_full(&self, edit_state: crate::classes::packed_scene::GenEditState,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >, crate::classes::packed_scene::GenEditState); + let args = (edit_state,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5868usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PackedScene", "instantiate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::instantiate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn instantiate(&self,) -> Option < Gd < crate::classes::Node > > { + self.instantiate_ex() . done() + } + #[inline] + pub fn instantiate_ex < 'a > (&'a self,) -> ExInstantiate < 'a > { + ExInstantiate::new(self,) + } + pub fn can_instantiate(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5869usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PackedScene", "can_instantiate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_state(&self,) -> Option < Gd < crate::classes::SceneState > > { + type CallSig = (Option < Gd < crate::classes::SceneState > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5870usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PackedScene", "get_state", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PackedScene { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PackedScene")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PackedScene { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PackedScene { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PackedScene { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PackedScene { + + } + impl crate::obj::cap::GodotDefault for PackedScene { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PackedScene { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PackedScene { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PackedScene`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PackedScene { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PackedScene > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PackedScene::instantiate_ex`][super::PackedScene::instantiate_ex]."] +#[must_use] +pub struct ExInstantiate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::PackedScene, edit_state: crate::classes::packed_scene::GenEditState, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExInstantiate < 'a > { + fn new(surround_object: &'a re_export::PackedScene,) -> Self { + let edit_state = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, edit_state: edit_state, + } + } + #[inline] + pub fn edit_state(self, edit_state: crate::classes::packed_scene::GenEditState) -> Self { + Self { + edit_state: edit_state, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Node > > { + let Self { + _phantom, surround_object, edit_state, + } + = self; + re_export::PackedScene::instantiate_full(surround_object, edit_state,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct GenEditState { + ord: i32 +} +impl GenEditState { + #[doc(alias = "GEN_EDIT_STATE_DISABLED")] + #[doc = "Godot enumerator name: `GEN_EDIT_STATE_DISABLED`"] + pub const DISABLED: GenEditState = GenEditState { + ord: 0i32 + }; + #[doc(alias = "GEN_EDIT_STATE_INSTANCE")] + #[doc = "Godot enumerator name: `GEN_EDIT_STATE_INSTANCE`"] + pub const INSTANCE: GenEditState = GenEditState { + ord: 1i32 + }; + #[doc(alias = "GEN_EDIT_STATE_MAIN")] + #[doc = "Godot enumerator name: `GEN_EDIT_STATE_MAIN`"] + pub const MAIN: GenEditState = GenEditState { + ord: 2i32 + }; + #[doc(alias = "GEN_EDIT_STATE_MAIN_INHERITED")] + #[doc = "Godot enumerator name: `GEN_EDIT_STATE_MAIN_INHERITED`"] + pub const MAIN_INHERITED: GenEditState = GenEditState { + ord: 3i32 + }; + +} +impl std::fmt::Debug for GenEditState { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("GenEditState") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for GenEditState { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::INSTANCE => "INSTANCE", Self::MAIN => "MAIN", Self::MAIN_INHERITED => "MAIN_INHERITED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "GEN_EDIT_STATE_DISABLED", Self::INSTANCE => "GEN_EDIT_STATE_INSTANCE", Self::MAIN => "GEN_EDIT_STATE_MAIN", Self::MAIN_INHERITED => "GEN_EDIT_STATE_MAIN_INHERITED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for GenEditState { + type Via = i32; + +} +impl crate::meta::ToGodot for GenEditState { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for GenEditState { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer.rs new file mode 100644 index 0000000..0e05964 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer.rs @@ -0,0 +1,326 @@ +#![doc = "Sidecar module for class [`PacketPeer`][crate::classes::PacketPeer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PacketPeer` enums](https://docs.godotengine.org/en/stable/classes/class_packetpeer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PacketPeer.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`packet_peer`][crate::classes::packet_peer]: sidecar module with related enum/flag types\n* [`IPacketPeer`][crate::classes::IPacketPeer]: virtual methods\n\n\nSee also [Godot docs for `PacketPeer`](https://docs.godotengine.org/en/stable/classes/class_packetpeer.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct PacketPeer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PacketPeer`][crate::classes::PacketPeer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PacketPeer` methods](https://docs.godotengine.org/en/stable/classes/class_packetpeer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPacketPeer: crate::obj::GodotClass < Base = PacketPeer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PacketPeer { + pub(crate) fn get_var_full(&mut self, allow_objects: bool,) -> Variant { + type CallSig = (Variant, bool); + let args = (allow_objects,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5871usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeer", "get_var", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_var_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_var(&mut self,) -> Variant { + self.get_var_ex() . done() + } + #[inline] + pub fn get_var_ex < 'a > (&'a mut self,) -> ExGetVar < 'a > { + ExGetVar::new(self,) + } + pub(crate) fn put_var_full(&mut self, var: RefArg < Variant >, full_objects: bool,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, Variant >, bool); + let args = (var, full_objects,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5872usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeer", "put_var", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::put_var_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn put_var(&mut self, var: &Variant,) -> crate::global::Error { + self.put_var_ex(var,) . done() + } + #[inline] + pub fn put_var_ex < 'a > (&'a mut self, var: &'a Variant,) -> ExPutVar < 'a > { + ExPutVar::new(self, var,) + } + pub fn get_packet(&mut self,) -> PackedByteArray { + type CallSig = (PackedByteArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5873usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeer", "get_packet", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn put_packet(&mut self, buffer: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5874usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeer", "put_packet", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_packet_error(&self,) -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5875usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeer", "get_packet_error", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_available_packet_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5876usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeer", "get_available_packet_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_encode_buffer_max_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5877usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeer", "get_encode_buffer_max_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_encode_buffer_max_size(&mut self, max_size: i32,) { + type CallSig = ((), i32); + let args = (max_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5878usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeer", "set_encode_buffer_max_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PacketPeer { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PacketPeer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PacketPeer { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PacketPeer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PacketPeer { + + } + impl std::ops::Deref for PacketPeer { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PacketPeer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PacketPeer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PacketPeer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PacketPeer::get_var_ex`][super::PacketPeer::get_var_ex]."] +#[must_use] +pub struct ExGetVar < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PacketPeer, allow_objects: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetVar < 'a > { + fn new(surround_object: &'a mut re_export::PacketPeer,) -> Self { + let allow_objects = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, allow_objects: allow_objects, + } + } + #[inline] + pub fn allow_objects(self, allow_objects: bool) -> Self { + Self { + allow_objects: allow_objects, .. self + } + } + #[inline] + pub fn done(self) -> Variant { + let Self { + _phantom, surround_object, allow_objects, + } + = self; + re_export::PacketPeer::get_var_full(surround_object, allow_objects,) + } +} +#[doc = "Default-param extender for [`PacketPeer::put_var_ex`][super::PacketPeer::put_var_ex]."] +#[must_use] +pub struct ExPutVar < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PacketPeer, var: CowArg < 'a, Variant >, full_objects: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPutVar < 'a > { + fn new(surround_object: &'a mut re_export::PacketPeer, var: &'a Variant,) -> Self { + let full_objects = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, var: CowArg::Borrowed(var), full_objects: full_objects, + } + } + #[inline] + pub fn full_objects(self, full_objects: bool) -> Self { + Self { + full_objects: full_objects, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, var, full_objects, + } + = self; + re_export::PacketPeer::put_var_full(surround_object, var.cow_as_arg(), full_objects,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_dtls.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_dtls.rs new file mode 100644 index 0000000..8d7664a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_dtls.rs @@ -0,0 +1,353 @@ +#![doc = "Sidecar module for class [`PacketPeerDtls`][crate::classes::PacketPeerDtls].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PacketPeerDTLS` enums](https://docs.godotengine.org/en/stable/classes/class_packetpeerdtls.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PacketPeerDTLS.`\n\nInherits [`PacketPeer`][crate::classes::PacketPeer].\n\nRelated symbols:\n\n* [`packet_peer_dtls`][crate::classes::packet_peer_dtls]: sidecar module with related enum/flag types\n* [`IPacketPeerDtls`][crate::classes::IPacketPeerDtls]: virtual methods\n\n\nSee also [Godot docs for `PacketPeerDTLS`](https://docs.godotengine.org/en/stable/classes/class_packetpeerdtls.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PacketPeerDtls::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PacketPeerDtls { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PacketPeerDtls`][crate::classes::PacketPeerDtls].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PacketPeerDTLS` methods](https://docs.godotengine.org/en/stable/classes/class_packetpeerdtls.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPacketPeerDtls: crate::obj::GodotClass < Base = PacketPeerDtls > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PacketPeerDtls { + pub fn poll(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5879usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerDtls", "poll", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn connect_to_peer_full(&mut self, packet_peer: ObjectArg < crate::classes::PacketPeerUdp >, hostname: CowArg < GString >, client_options: ObjectArg < crate::classes::TlsOptions >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, ObjectArg < crate::classes::PacketPeerUdp >, CowArg < 'a0, GString >, ObjectArg < crate::classes::TlsOptions >); + let args = (packet_peer, hostname, client_options,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5880usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerDtls", "connect_to_peer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::connect_to_peer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn connect_to_peer(&mut self, packet_peer: impl AsObjectArg < crate::classes::PacketPeerUdp >, hostname: impl AsArg < GString >,) -> crate::global::Error { + self.connect_to_peer_ex(packet_peer, hostname,) . done() + } + #[inline] + pub fn connect_to_peer_ex < 'a > (&'a mut self, packet_peer: impl AsObjectArg < crate::classes::PacketPeerUdp >, hostname: impl AsArg < GString > + 'a,) -> ExConnectToPeer < 'a > { + ExConnectToPeer::new(self, packet_peer, hostname,) + } + pub fn get_status(&self,) -> crate::classes::packet_peer_dtls::Status { + type CallSig = (crate::classes::packet_peer_dtls::Status,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5881usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerDtls", "get_status", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn disconnect_from_peer(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5882usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerDtls", "disconnect_from_peer", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PacketPeerDtls { + type Base = crate::classes::PacketPeer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PacketPeerDTLS")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PacketPeerDtls { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PacketPeer > for PacketPeerDtls { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PacketPeerDtls { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PacketPeerDtls { + + } + impl crate::obj::cap::GodotDefault for PacketPeerDtls { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PacketPeerDtls { + type Target = crate::classes::PacketPeer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PacketPeerDtls { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PacketPeerDtls`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PacketPeerDtls { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeerDtls > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PacketPeerDtls::connect_to_peer_ex`][super::PacketPeerDtls::connect_to_peer_ex]."] +#[must_use] +pub struct ExConnectToPeer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PacketPeerDtls, packet_peer: ObjectCow < crate::classes::PacketPeerUdp >, hostname: CowArg < 'a, GString >, client_options: ObjectCow < crate::classes::TlsOptions >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExConnectToPeer < 'a > { + fn new(surround_object: &'a mut re_export::PacketPeerDtls, packet_peer: impl AsObjectArg < crate::classes::PacketPeerUdp >, hostname: impl AsArg < GString > + 'a,) -> Self { + let client_options = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, packet_peer: packet_peer.consume_arg(), hostname: hostname.into_arg(), client_options: client_options.consume_arg(), + } + } + #[inline] + pub fn client_options(self, client_options: impl AsObjectArg < crate::classes::TlsOptions >) -> Self { + Self { + client_options: client_options.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, packet_peer, hostname, client_options, + } + = self; + re_export::PacketPeerDtls::connect_to_peer_full(surround_object, packet_peer.cow_as_object_arg(), hostname, client_options.cow_as_object_arg(),) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Status { + ord: i32 +} +impl Status { + #[doc(alias = "STATUS_DISCONNECTED")] + #[doc = "Godot enumerator name: `STATUS_DISCONNECTED`"] + pub const DISCONNECTED: Status = Status { + ord: 0i32 + }; + #[doc(alias = "STATUS_HANDSHAKING")] + #[doc = "Godot enumerator name: `STATUS_HANDSHAKING`"] + pub const HANDSHAKING: Status = Status { + ord: 1i32 + }; + #[doc(alias = "STATUS_CONNECTED")] + #[doc = "Godot enumerator name: `STATUS_CONNECTED`"] + pub const CONNECTED: Status = Status { + ord: 2i32 + }; + #[doc(alias = "STATUS_ERROR")] + #[doc = "Godot enumerator name: `STATUS_ERROR`"] + pub const ERROR: Status = Status { + ord: 3i32 + }; + #[doc(alias = "STATUS_ERROR_HOSTNAME_MISMATCH")] + #[doc = "Godot enumerator name: `STATUS_ERROR_HOSTNAME_MISMATCH`"] + pub const ERROR_HOSTNAME_MISMATCH: Status = Status { + ord: 4i32 + }; + +} +impl std::fmt::Debug for Status { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Status") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Status { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISCONNECTED => "DISCONNECTED", Self::HANDSHAKING => "HANDSHAKING", Self::CONNECTED => "CONNECTED", Self::ERROR => "ERROR", Self::ERROR_HOSTNAME_MISMATCH => "ERROR_HOSTNAME_MISMATCH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISCONNECTED => "STATUS_DISCONNECTED", Self::HANDSHAKING => "STATUS_HANDSHAKING", Self::CONNECTED => "STATUS_CONNECTED", Self::ERROR => "STATUS_ERROR", Self::ERROR_HOSTNAME_MISMATCH => "STATUS_ERROR_HOSTNAME_MISMATCH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Status { + type Via = i32; + +} +impl crate::meta::ToGodot for Status { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Status { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_extension.rs new file mode 100644 index 0000000..3b1f0e2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_extension.rs @@ -0,0 +1,216 @@ +#![doc = "Sidecar module for class [`PacketPeerExtension`][crate::classes::PacketPeerExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PacketPeerExtension` enums](https://docs.godotengine.org/en/stable/classes/class_packetpeerextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PacketPeerExtension.`\n\nInherits [`PacketPeer`][crate::classes::PacketPeer].\n\nRelated symbols:\n\n* [`IPacketPeerExtension`][crate::classes::IPacketPeerExtension]: virtual methods\n\n\nSee also [Godot docs for `PacketPeerExtension`](https://docs.godotengine.org/en/stable/classes/class_packetpeerextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PacketPeerExtension::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PacketPeerExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PacketPeerExtension`][crate::classes::PacketPeerExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PacketPeerExtension` methods](https://docs.godotengine.org/en/stable/classes/class_packetpeerextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPacketPeerExtension: crate::obj::GodotClass < Base = PacketPeerExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn get_packet(&mut self, r_buffer: * mut * const u8, r_buffer_size: * mut i32,) -> crate::global::Error { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn put_packet(&mut self, p_buffer: * const u8, p_buffer_size: i32,) -> crate::global::Error { + unimplemented !() + } + fn get_available_packet_count(&self,) -> i32; + fn get_max_packet_size(&self,) -> i32; + + } + impl PacketPeerExtension { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PacketPeerExtension { + type Base = crate::classes::PacketPeer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PacketPeerExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PacketPeerExtension { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PacketPeer > for PacketPeerExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PacketPeerExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PacketPeerExtension { + + } + impl crate::obj::cap::GodotDefault for PacketPeerExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PacketPeerExtension { + type Target = crate::classes::PacketPeer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PacketPeerExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PacketPeerExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PacketPeerExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeerExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_stream.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_stream.rs new file mode 100644 index 0000000..074c163 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_stream.rs @@ -0,0 +1,247 @@ +#![doc = "Sidecar module for class [`PacketPeerStream`][crate::classes::PacketPeerStream].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PacketPeerStream` enums](https://docs.godotengine.org/en/stable/classes/class_packetpeerstream.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PacketPeerStream.`\n\nInherits [`PacketPeer`][crate::classes::PacketPeer].\n\nRelated symbols:\n\n* [`IPacketPeerStream`][crate::classes::IPacketPeerStream]: virtual methods\n\n\nSee also [Godot docs for `PacketPeerStream`](https://docs.godotengine.org/en/stable/classes/class_packetpeerstream.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PacketPeerStream::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PacketPeerStream { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PacketPeerStream`][crate::classes::PacketPeerStream].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PacketPeerStream` methods](https://docs.godotengine.org/en/stable/classes/class_packetpeerstream.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPacketPeerStream: crate::obj::GodotClass < Base = PacketPeerStream > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PacketPeerStream { + pub fn set_stream_peer(&mut self, peer: impl AsObjectArg < crate::classes::StreamPeer >,) { + type CallSig = ((), ObjectArg < crate::classes::StreamPeer >); + let args = (peer.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5883usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerStream", "set_stream_peer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stream_peer(&self,) -> Option < Gd < crate::classes::StreamPeer > > { + type CallSig = (Option < Gd < crate::classes::StreamPeer > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5884usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerStream", "get_stream_peer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_input_buffer_max_size(&mut self, max_size_bytes: i32,) { + type CallSig = ((), i32); + let args = (max_size_bytes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5885usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerStream", "set_input_buffer_max_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_output_buffer_max_size(&mut self, max_size_bytes: i32,) { + type CallSig = ((), i32); + let args = (max_size_bytes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5886usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerStream", "set_output_buffer_max_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_input_buffer_max_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5887usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerStream", "get_input_buffer_max_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_output_buffer_max_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5888usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerStream", "get_output_buffer_max_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PacketPeerStream { + type Base = crate::classes::PacketPeer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PacketPeerStream")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PacketPeerStream { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PacketPeer > for PacketPeerStream { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PacketPeerStream { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PacketPeerStream { + + } + impl crate::obj::cap::GodotDefault for PacketPeerStream { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PacketPeerStream { + type Target = crate::classes::PacketPeer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PacketPeerStream { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PacketPeerStream`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PacketPeerStream { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeerStream > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_udp.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_udp.rs new file mode 100644 index 0000000..368a776 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/packet_peer_udp.rs @@ -0,0 +1,347 @@ +#![doc = "Sidecar module for class [`PacketPeerUdp`][crate::classes::PacketPeerUdp].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PacketPeerUDP` enums](https://docs.godotengine.org/en/stable/classes/class_packetpeerudp.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PacketPeerUDP.`\n\nInherits [`PacketPeer`][crate::classes::PacketPeer].\n\nRelated symbols:\n\n* [`packet_peer_udp`][crate::classes::packet_peer_udp]: sidecar module with related enum/flag types\n* [`IPacketPeerUdp`][crate::classes::IPacketPeerUdp]: virtual methods\n\n\nSee also [Godot docs for `PacketPeerUDP`](https://docs.godotengine.org/en/stable/classes/class_packetpeerudp.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PacketPeerUdp::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PacketPeerUdp { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PacketPeerUdp`][crate::classes::PacketPeerUdp].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PacketPeerUDP` methods](https://docs.godotengine.org/en/stable/classes/class_packetpeerudp.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPacketPeerUdp: crate::obj::GodotClass < Base = PacketPeerUdp > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PacketPeerUdp { + pub(crate) fn bind_full(&mut self, port: i32, bind_address: CowArg < GString >, recv_buf_size: i32,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, i32, CowArg < 'a0, GString >, i32); + let args = (port, bind_address, recv_buf_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5889usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "bind", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::bind_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn bind(&mut self, port: i32,) -> crate::global::Error { + self.bind_ex(port,) . done() + } + #[inline] + pub fn bind_ex < 'a > (&'a mut self, port: i32,) -> ExBind < 'a > { + ExBind::new(self, port,) + } + pub fn close(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5890usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "close", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn wait(&mut self,) -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5891usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "wait", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_bound(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5892usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "is_bound", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn connect_to_host(&mut self, host: impl AsArg < GString >, port: i32,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, i32); + let args = (host.into_arg(), port,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5893usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "connect_to_host", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_socket_connected(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5894usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "is_socket_connected", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_packet_ip(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5895usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "get_packet_ip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_packet_port(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5896usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "get_packet_port", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_local_port(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5897usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "get_local_port", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dest_address(&mut self, host: impl AsArg < GString >, port: i32,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >, i32); + let args = (host.into_arg(), port,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5898usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "set_dest_address", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_broadcast_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5899usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "set_broadcast_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn join_multicast_group(&mut self, multicast_address: impl AsArg < GString >, interface_name: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (multicast_address.into_arg(), interface_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5900usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "join_multicast_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn leave_multicast_group(&mut self, multicast_address: impl AsArg < GString >, interface_name: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (multicast_address.into_arg(), interface_name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5901usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PacketPeerUdp", "leave_multicast_group", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PacketPeerUdp { + type Base = crate::classes::PacketPeer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PacketPeerUDP")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PacketPeerUdp { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PacketPeer > for PacketPeerUdp { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PacketPeerUdp { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PacketPeerUdp { + + } + impl crate::obj::cap::GodotDefault for PacketPeerUdp { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PacketPeerUdp { + type Target = crate::classes::PacketPeer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PacketPeerUdp { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PacketPeerUdp`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PacketPeerUdp { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeerUdp > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PacketPeer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PacketPeerUdp::bind_ex`][super::PacketPeerUdp::bind_ex]."] +#[must_use] +pub struct ExBind < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PacketPeerUdp, port: i32, bind_address: CowArg < 'a, GString >, recv_buf_size: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBind < 'a > { + fn new(surround_object: &'a mut re_export::PacketPeerUdp, port: i32,) -> Self { + let bind_address = GString::from("*"); + let recv_buf_size = 65536i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, port: port, bind_address: CowArg::Owned(bind_address), recv_buf_size: recv_buf_size, + } + } + #[inline] + pub fn bind_address(self, bind_address: impl AsArg < GString > + 'a) -> Self { + Self { + bind_address: bind_address.into_arg(), .. self + } + } + #[inline] + pub fn recv_buf_size(self, recv_buf_size: i32) -> Self { + Self { + recv_buf_size: recv_buf_size, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, port, bind_address, recv_buf_size, + } + = self; + re_export::PacketPeerUdp::bind_full(surround_object, port, bind_address, recv_buf_size,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/panel.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/panel.rs new file mode 100644 index 0000000..3e791d2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/panel.rs @@ -0,0 +1,265 @@ +#![doc = "Sidecar module for class [`Panel`][crate::classes::Panel].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Panel` enums](https://docs.godotengine.org/en/stable/classes/class_panel.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Panel.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`IPanel`][crate::classes::IPanel]: virtual methods\n\n\nSee also [Godot docs for `Panel`](https://docs.godotengine.org/en/stable/classes/class_panel.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Panel::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Panel { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Panel`][crate::classes::Panel].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Panel` methods](https://docs.godotengine.org/en/stable/classes/class_panel.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPanel: crate::obj::GodotClass < Base = Panel > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Panel { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Panel { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Panel")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Panel { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for Panel { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Panel { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Panel { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Panel { + + } + impl crate::obj::cap::GodotDefault for Panel { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Panel { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Panel { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Panel`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Panel { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Panel > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/panel_container.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/panel_container.rs new file mode 100644 index 0000000..95ad0af --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/panel_container.rs @@ -0,0 +1,277 @@ +#![doc = "Sidecar module for class [`PanelContainer`][crate::classes::PanelContainer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PanelContainer` enums](https://docs.godotengine.org/en/stable/classes/class_panelcontainer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PanelContainer.`\n\nInherits [`Container`][crate::classes::Container].\n\nRelated symbols:\n\n* [`IPanelContainer`][crate::classes::IPanelContainer]: virtual methods\n\n\nSee also [Godot docs for `PanelContainer`](https://docs.godotengine.org/en/stable/classes/class_panelcontainer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PanelContainer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PanelContainer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PanelContainer`][crate::classes::PanelContainer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PanelContainer` methods](https://docs.godotengine.org/en/stable/classes/class_panelcontainer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPanelContainer: crate::obj::GodotClass < Base = PanelContainer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ContainerNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_allowed_size_flags_horizontal(&self,) -> PackedInt32Array { + unimplemented !() + } + fn get_allowed_size_flags_vertical(&self,) -> PackedInt32Array { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PanelContainer { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PanelContainer { + type Base = crate::classes::Container; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PanelContainer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PanelContainer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Container > for PanelContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for PanelContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for PanelContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PanelContainer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PanelContainer { + + } + impl crate::obj::cap::GodotDefault for PanelContainer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PanelContainer { + type Target = crate::classes::Container; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PanelContainer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PanelContainer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PanelContainer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PanelContainer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Container > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/panorama_sky_material.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/panorama_sky_material.rs new file mode 100644 index 0000000..70a09ff --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/panorama_sky_material.rs @@ -0,0 +1,264 @@ +#![doc = "Sidecar module for class [`PanoramaSkyMaterial`][crate::classes::PanoramaSkyMaterial].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PanoramaSkyMaterial` enums](https://docs.godotengine.org/en/stable/classes/class_panoramaskymaterial.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PanoramaSkyMaterial.`\n\nInherits [`Material`][crate::classes::Material].\n\nRelated symbols:\n\n* [`IPanoramaSkyMaterial`][crate::classes::IPanoramaSkyMaterial]: virtual methods\n\n\nSee also [Godot docs for `PanoramaSkyMaterial`](https://docs.godotengine.org/en/stable/classes/class_panoramaskymaterial.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PanoramaSkyMaterial::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PanoramaSkyMaterial { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PanoramaSkyMaterial`][crate::classes::PanoramaSkyMaterial].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PanoramaSkyMaterial` methods](https://docs.godotengine.org/en/stable/classes/class_panoramaskymaterial.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPanoramaSkyMaterial: crate::obj::GodotClass < Base = PanoramaSkyMaterial > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_shader_rid(&self,) -> Rid; + fn get_shader_mode(&self,) -> crate::classes::shader::Mode; + fn can_do_next_pass(&self,) -> bool { + unimplemented !() + } + fn can_use_render_priority(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PanoramaSkyMaterial { + pub fn set_panorama(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5902usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PanoramaSkyMaterial", "set_panorama", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_panorama(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5903usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PanoramaSkyMaterial", "get_panorama", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_filtering_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5904usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PanoramaSkyMaterial", "set_filtering_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_filtering_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5905usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PanoramaSkyMaterial", "is_filtering_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_energy_multiplier(&mut self, multiplier: f32,) { + type CallSig = ((), f32); + let args = (multiplier,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5906usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PanoramaSkyMaterial", "set_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_energy_multiplier(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5907usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PanoramaSkyMaterial", "get_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PanoramaSkyMaterial { + type Base = crate::classes::Material; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PanoramaSkyMaterial")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PanoramaSkyMaterial { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Material > for PanoramaSkyMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PanoramaSkyMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PanoramaSkyMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PanoramaSkyMaterial { + + } + impl crate::obj::cap::GodotDefault for PanoramaSkyMaterial { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PanoramaSkyMaterial { + type Target = crate::classes::Material; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PanoramaSkyMaterial { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PanoramaSkyMaterial`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PanoramaSkyMaterial { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PanoramaSkyMaterial > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Material > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/parallax_background.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/parallax_background.rs new file mode 100644 index 0000000..0ccfb8d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/parallax_background.rs @@ -0,0 +1,325 @@ +#![doc = "Sidecar module for class [`ParallaxBackground`][crate::classes::ParallaxBackground].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ParallaxBackground` enums](https://docs.godotengine.org/en/stable/classes/class_parallaxbackground.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ParallaxBackground.`\n\nInherits [`CanvasLayer`][crate::classes::CanvasLayer].\n\nRelated symbols:\n\n* [`IParallaxBackground`][crate::classes::IParallaxBackground]: virtual methods\n\n\nSee also [Godot docs for `ParallaxBackground`](https://docs.godotengine.org/en/stable/classes/class_parallaxbackground.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ParallaxBackground::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ParallaxBackground { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ParallaxBackground`][crate::classes::ParallaxBackground].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ParallaxBackground` methods](https://docs.godotengine.org/en/stable/classes/class_parallaxbackground.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IParallaxBackground: crate::obj::GodotClass < Base = ParallaxBackground > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ParallaxBackground { + pub fn set_scroll_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5908usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "set_scroll_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scroll_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5909usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "get_scroll_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scroll_base_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5910usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "set_scroll_base_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scroll_base_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5911usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "get_scroll_base_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scroll_base_scale(&mut self, scale: Vector2,) { + type CallSig = ((), Vector2); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5912usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "set_scroll_base_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scroll_base_scale(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5913usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "get_scroll_base_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_limit_begin(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5914usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "set_limit_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_limit_begin(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5915usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "get_limit_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_limit_end(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5916usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "set_limit_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_limit_end(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5917usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "get_limit_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ignore_camera_zoom(&mut self, ignore: bool,) { + type CallSig = ((), bool); + let args = (ignore,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5918usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "set_ignore_camera_zoom", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_ignore_camera_zoom(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5919usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxBackground", "is_ignore_camera_zoom", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ParallaxBackground { + type Base = crate::classes::CanvasLayer; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ParallaxBackground")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ParallaxBackground { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasLayer > for ParallaxBackground { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ParallaxBackground { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ParallaxBackground { + + } + impl crate::obj::cap::GodotDefault for ParallaxBackground { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ParallaxBackground { + type Target = crate::classes::CanvasLayer; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ParallaxBackground { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ParallaxBackground`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ParallaxBackground { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ParallaxBackground > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasLayer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/parallax_layer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/parallax_layer.rs new file mode 100644 index 0000000..fe92a7e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/parallax_layer.rs @@ -0,0 +1,286 @@ +#![doc = "Sidecar module for class [`ParallaxLayer`][crate::classes::ParallaxLayer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ParallaxLayer` enums](https://docs.godotengine.org/en/stable/classes/class_parallaxlayer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ParallaxLayer.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IParallaxLayer`][crate::classes::IParallaxLayer]: virtual methods\n\n\nSee also [Godot docs for `ParallaxLayer`](https://docs.godotengine.org/en/stable/classes/class_parallaxlayer.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ParallaxLayer::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ParallaxLayer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ParallaxLayer`][crate::classes::ParallaxLayer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ParallaxLayer` methods](https://docs.godotengine.org/en/stable/classes/class_parallaxlayer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IParallaxLayer: crate::obj::GodotClass < Base = ParallaxLayer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ParallaxLayer { + pub fn set_motion_scale(&mut self, scale: Vector2,) { + type CallSig = ((), Vector2); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5920usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxLayer", "set_motion_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_motion_scale(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5921usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxLayer", "get_motion_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_motion_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5922usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxLayer", "set_motion_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_motion_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5923usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxLayer", "get_motion_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mirroring(&mut self, mirror: Vector2,) { + type CallSig = ((), Vector2); + let args = (mirror,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5924usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxLayer", "set_mirroring", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mirroring(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5925usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParallaxLayer", "get_mirroring", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ParallaxLayer { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ParallaxLayer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ParallaxLayer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for ParallaxLayer { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for ParallaxLayer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ParallaxLayer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ParallaxLayer { + + } + impl crate::obj::cap::GodotDefault for ParallaxLayer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ParallaxLayer { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ParallaxLayer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ParallaxLayer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ParallaxLayer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ParallaxLayer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/particle_process_material.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/particle_process_material.rs new file mode 100644 index 0000000..f629e0c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/particle_process_material.rs @@ -0,0 +1,1477 @@ +#![doc = "Sidecar module for class [`ParticleProcessMaterial`][crate::classes::ParticleProcessMaterial].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ParticleProcessMaterial` enums](https://docs.godotengine.org/en/stable/classes/class_particleprocessmaterial.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ParticleProcessMaterial.`\n\nInherits [`Material`][crate::classes::Material].\n\nRelated symbols:\n\n* [`particle_process_material`][crate::classes::particle_process_material]: sidecar module with related enum/flag types\n* [`IParticleProcessMaterial`][crate::classes::IParticleProcessMaterial]: virtual methods\n\n\nSee also [Godot docs for `ParticleProcessMaterial`](https://docs.godotengine.org/en/stable/classes/class_particleprocessmaterial.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ParticleProcessMaterial::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ParticleProcessMaterial { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ParticleProcessMaterial`][crate::classes::ParticleProcessMaterial].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ParticleProcessMaterial` methods](https://docs.godotengine.org/en/stable/classes/class_particleprocessmaterial.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IParticleProcessMaterial: crate::obj::GodotClass < Base = ParticleProcessMaterial > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_shader_rid(&self,) -> Rid; + fn get_shader_mode(&self,) -> crate::classes::shader::Mode; + fn can_do_next_pass(&self,) -> bool { + unimplemented !() + } + fn can_use_render_priority(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ParticleProcessMaterial { + pub fn set_direction(&mut self, degrees: Vector3,) { + type CallSig = ((), Vector3); + let args = (degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5926usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_direction(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5927usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_inherit_velocity_ratio(&mut self, ratio: f64,) { + type CallSig = ((), f64); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5928usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_inherit_velocity_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inherit_velocity_ratio(&mut self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5929usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_inherit_velocity_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_spread(&mut self, degrees: f32,) { + type CallSig = ((), f32); + let args = (degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5930usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_spread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_spread(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5931usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_spread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flatness(&mut self, amount: f32,) { + type CallSig = ((), f32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5932usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_flatness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_flatness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5933usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_flatness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param(&mut self, param: crate::classes::particle_process_material::Parameter, value: Vector2,) { + type CallSig = ((), crate::classes::particle_process_material::Parameter, Vector2); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5934usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param(&self, param: crate::classes::particle_process_material::Parameter,) -> Vector2 { + type CallSig = (Vector2, crate::classes::particle_process_material::Parameter); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5935usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param_min(&mut self, param: crate::classes::particle_process_material::Parameter, value: f32,) { + type CallSig = ((), crate::classes::particle_process_material::Parameter, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5936usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_param_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_min(&self, param: crate::classes::particle_process_material::Parameter,) -> f32 { + type CallSig = (f32, crate::classes::particle_process_material::Parameter); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5937usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_param_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param_max(&mut self, param: crate::classes::particle_process_material::Parameter, value: f32,) { + type CallSig = ((), crate::classes::particle_process_material::Parameter, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5938usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_param_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_max(&self, param: crate::classes::particle_process_material::Parameter,) -> f32 { + type CallSig = (f32, crate::classes::particle_process_material::Parameter); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5939usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_param_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_param_texture(&mut self, param: crate::classes::particle_process_material::Parameter, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), crate::classes::particle_process_material::Parameter, ObjectArg < crate::classes::Texture2D >); + let args = (param, texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5940usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_param_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param_texture(&self, param: crate::classes::particle_process_material::Parameter,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >, crate::classes::particle_process_material::Parameter); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5941usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_param_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5942usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5943usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color_ramp(&mut self, ramp: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (ramp.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5944usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_color_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_ramp(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5945usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_color_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_curve(&mut self, curve: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5946usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_alpha_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_curve(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5947usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_alpha_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_curve(&mut self, curve: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5948usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_curve(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5949usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color_initial_ramp(&mut self, ramp: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (ramp.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5950usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_color_initial_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_initial_ramp(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5951usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_color_initial_ramp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_velocity_limit_curve(&mut self, curve: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5952usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_velocity_limit_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_velocity_limit_curve(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5953usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_velocity_limit_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_particle_flag(&mut self, particle_flag: crate::classes::particle_process_material::ParticleFlags, enable: bool,) { + type CallSig = ((), crate::classes::particle_process_material::ParticleFlags, bool); + let args = (particle_flag, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5954usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_particle_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_particle_flag(&self, particle_flag: crate::classes::particle_process_material::ParticleFlags,) -> bool { + type CallSig = (bool, crate::classes::particle_process_material::ParticleFlags); + let args = (particle_flag,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5955usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_particle_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_velocity_pivot(&mut self, pivot: Vector3,) { + type CallSig = ((), Vector3); + let args = (pivot,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5956usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_velocity_pivot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_velocity_pivot(&mut self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5957usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_velocity_pivot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_shape(&mut self, shape: crate::classes::particle_process_material::EmissionShape,) { + type CallSig = ((), crate::classes::particle_process_material::EmissionShape); + let args = (shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5958usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_shape(&self,) -> crate::classes::particle_process_material::EmissionShape { + type CallSig = (crate::classes::particle_process_material::EmissionShape,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5959usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_sphere_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5960usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_sphere_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_sphere_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5961usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_sphere_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_box_extents(&mut self, extents: Vector3,) { + type CallSig = ((), Vector3); + let args = (extents,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5962usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_box_extents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_box_extents(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5963usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_box_extents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_point_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5964usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_point_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_point_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5965usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_point_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_normal_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5966usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_normal_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_normal_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5967usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_normal_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_color_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5968usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_color_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_color_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5969usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_color_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_point_count(&mut self, point_count: i32,) { + type CallSig = ((), i32); + let args = (point_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5970usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_point_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5971usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_point_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_ring_axis(&mut self, axis: Vector3,) { + type CallSig = ((), Vector3); + let args = (axis,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5972usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_ring_axis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_ring_axis(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5973usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_ring_axis", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_ring_height(&mut self, height: f32,) { + type CallSig = ((), f32); + let args = (height,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5974usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_ring_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_ring_height(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5975usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_ring_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_ring_radius(&mut self, radius: f32,) { + type CallSig = ((), f32); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5976usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_ring_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_ring_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5977usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_ring_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_ring_inner_radius(&mut self, inner_radius: f32,) { + type CallSig = ((), f32); + let args = (inner_radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5978usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_ring_inner_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_ring_inner_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5979usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_ring_inner_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_shape_offset(&mut self, emission_shape_offset: Vector3,) { + type CallSig = ((), Vector3); + let args = (emission_shape_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5980usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_shape_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_shape_offset(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5981usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_shape_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_emission_shape_scale(&mut self, emission_shape_scale: Vector3,) { + type CallSig = ((), Vector3); + let args = (emission_shape_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5982usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_emission_shape_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_emission_shape_scale(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5983usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_emission_shape_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_turbulence_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5984usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_turbulence_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_turbulence_enabled(&mut self, turbulence_enabled: bool,) { + type CallSig = ((), bool); + let args = (turbulence_enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5985usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_turbulence_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_turbulence_noise_strength(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5986usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_turbulence_noise_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_turbulence_noise_strength(&mut self, turbulence_noise_strength: f32,) { + type CallSig = ((), f32); + let args = (turbulence_noise_strength,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5987usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_turbulence_noise_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_turbulence_noise_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5988usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_turbulence_noise_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_turbulence_noise_scale(&mut self, turbulence_noise_scale: f32,) { + type CallSig = ((), f32); + let args = (turbulence_noise_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5989usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_turbulence_noise_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_turbulence_noise_speed_random(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5990usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_turbulence_noise_speed_random", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_turbulence_noise_speed_random(&mut self, turbulence_noise_speed_random: f32,) { + type CallSig = ((), f32); + let args = (turbulence_noise_speed_random,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5991usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_turbulence_noise_speed_random", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_turbulence_noise_speed(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5992usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_turbulence_noise_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_turbulence_noise_speed(&mut self, turbulence_noise_speed: Vector3,) { + type CallSig = ((), Vector3); + let args = (turbulence_noise_speed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5993usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_turbulence_noise_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5994usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity(&mut self, accel_vec: Vector3,) { + type CallSig = ((), Vector3); + let args = (accel_vec,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5995usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lifetime_randomness(&mut self, randomness: f64,) { + type CallSig = ((), f64); + let args = (randomness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5996usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_lifetime_randomness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lifetime_randomness(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5997usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_lifetime_randomness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sub_emitter_mode(&self,) -> crate::classes::particle_process_material::SubEmitterMode { + type CallSig = (crate::classes::particle_process_material::SubEmitterMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5998usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_sub_emitter_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sub_emitter_mode(&mut self, mode: crate::classes::particle_process_material::SubEmitterMode,) { + type CallSig = ((), crate::classes::particle_process_material::SubEmitterMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5999usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_sub_emitter_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sub_emitter_frequency(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6000usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_sub_emitter_frequency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sub_emitter_frequency(&mut self, hz: f64,) { + type CallSig = ((), f64); + let args = (hz,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6001usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_sub_emitter_frequency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sub_emitter_amount_at_end(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6002usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_sub_emitter_amount_at_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sub_emitter_amount_at_end(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6003usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_sub_emitter_amount_at_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sub_emitter_amount_at_collision(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6004usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_sub_emitter_amount_at_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sub_emitter_amount_at_collision(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6005usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_sub_emitter_amount_at_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sub_emitter_keep_velocity(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6006usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_sub_emitter_keep_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sub_emitter_keep_velocity(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6007usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_sub_emitter_keep_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_attractor_interaction_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6008usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_attractor_interaction_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_attractor_interaction_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6009usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "is_attractor_interaction_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mode(&mut self, mode: crate::classes::particle_process_material::CollisionMode,) { + type CallSig = ((), crate::classes::particle_process_material::CollisionMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6010usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_collision_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mode(&self,) -> crate::classes::particle_process_material::CollisionMode { + type CallSig = (crate::classes::particle_process_material::CollisionMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6011usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_collision_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_use_scale(&mut self, radius: bool,) { + type CallSig = ((), bool); + let args = (radius,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6012usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_collision_use_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collision_using_scale(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6013usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "is_collision_using_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_friction(&mut self, friction: f32,) { + type CallSig = ((), f32); + let args = (friction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6014usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_collision_friction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_friction(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6015usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_collision_friction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_bounce(&mut self, bounce: f32,) { + type CallSig = ((), f32); + let args = (bounce,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6016usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "set_collision_bounce", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_bounce(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6017usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ParticleProcessMaterial", "get_collision_bounce", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ParticleProcessMaterial { + type Base = crate::classes::Material; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ParticleProcessMaterial")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ParticleProcessMaterial { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Material > for ParticleProcessMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ParticleProcessMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ParticleProcessMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ParticleProcessMaterial { + + } + impl crate::obj::cap::GodotDefault for ParticleProcessMaterial { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ParticleProcessMaterial { + type Target = crate::classes::Material; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ParticleProcessMaterial { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ParticleProcessMaterial`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ParticleProcessMaterial { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ParticleProcessMaterial > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Material > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Parameter { + ord: i32 +} +impl Parameter { + #[doc(alias = "PARAM_INITIAL_LINEAR_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_INITIAL_LINEAR_VELOCITY`"] + pub const INITIAL_LINEAR_VELOCITY: Parameter = Parameter { + ord: 0i32 + }; + #[doc(alias = "PARAM_ANGULAR_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_ANGULAR_VELOCITY`"] + pub const ANGULAR_VELOCITY: Parameter = Parameter { + ord: 1i32 + }; + #[doc(alias = "PARAM_ORBIT_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_ORBIT_VELOCITY`"] + pub const ORBIT_VELOCITY: Parameter = Parameter { + ord: 2i32 + }; + #[doc(alias = "PARAM_LINEAR_ACCEL")] + #[doc = "Godot enumerator name: `PARAM_LINEAR_ACCEL`"] + pub const LINEAR_ACCEL: Parameter = Parameter { + ord: 3i32 + }; + #[doc(alias = "PARAM_RADIAL_ACCEL")] + #[doc = "Godot enumerator name: `PARAM_RADIAL_ACCEL`"] + pub const RADIAL_ACCEL: Parameter = Parameter { + ord: 4i32 + }; + #[doc(alias = "PARAM_TANGENTIAL_ACCEL")] + #[doc = "Godot enumerator name: `PARAM_TANGENTIAL_ACCEL`"] + pub const TANGENTIAL_ACCEL: Parameter = Parameter { + ord: 5i32 + }; + #[doc(alias = "PARAM_DAMPING")] + #[doc = "Godot enumerator name: `PARAM_DAMPING`"] + pub const DAMPING: Parameter = Parameter { + ord: 6i32 + }; + #[doc(alias = "PARAM_ANGLE")] + #[doc = "Godot enumerator name: `PARAM_ANGLE`"] + pub const ANGLE: Parameter = Parameter { + ord: 7i32 + }; + #[doc(alias = "PARAM_SCALE")] + #[doc = "Godot enumerator name: `PARAM_SCALE`"] + pub const SCALE: Parameter = Parameter { + ord: 8i32 + }; + #[doc(alias = "PARAM_HUE_VARIATION")] + #[doc = "Godot enumerator name: `PARAM_HUE_VARIATION`"] + pub const HUE_VARIATION: Parameter = Parameter { + ord: 9i32 + }; + #[doc(alias = "PARAM_ANIM_SPEED")] + #[doc = "Godot enumerator name: `PARAM_ANIM_SPEED`"] + pub const ANIM_SPEED: Parameter = Parameter { + ord: 10i32 + }; + #[doc(alias = "PARAM_ANIM_OFFSET")] + #[doc = "Godot enumerator name: `PARAM_ANIM_OFFSET`"] + pub const ANIM_OFFSET: Parameter = Parameter { + ord: 11i32 + }; + #[doc(alias = "PARAM_RADIAL_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_RADIAL_VELOCITY`"] + pub const RADIAL_VELOCITY: Parameter = Parameter { + ord: 15i32 + }; + #[doc(alias = "PARAM_DIRECTIONAL_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_DIRECTIONAL_VELOCITY`"] + pub const DIRECTIONAL_VELOCITY: Parameter = Parameter { + ord: 16i32 + }; + #[doc(alias = "PARAM_SCALE_OVER_VELOCITY")] + #[doc = "Godot enumerator name: `PARAM_SCALE_OVER_VELOCITY`"] + pub const SCALE_OVER_VELOCITY: Parameter = Parameter { + ord: 17i32 + }; + #[doc(alias = "PARAM_MAX")] + #[doc = "Godot enumerator name: `PARAM_MAX`"] + pub const MAX: Parameter = Parameter { + ord: 18i32 + }; + #[doc(alias = "PARAM_TURB_VEL_INFLUENCE")] + #[doc = "Godot enumerator name: `PARAM_TURB_VEL_INFLUENCE`"] + pub const TURB_VEL_INFLUENCE: Parameter = Parameter { + ord: 13i32 + }; + #[doc(alias = "PARAM_TURB_INIT_DISPLACEMENT")] + #[doc = "Godot enumerator name: `PARAM_TURB_INIT_DISPLACEMENT`"] + pub const TURB_INIT_DISPLACEMENT: Parameter = Parameter { + ord: 14i32 + }; + #[doc(alias = "PARAM_TURB_INFLUENCE_OVER_LIFE")] + #[doc = "Godot enumerator name: `PARAM_TURB_INFLUENCE_OVER_LIFE`"] + pub const TURB_INFLUENCE_OVER_LIFE: Parameter = Parameter { + ord: 12i32 + }; + +} +impl std::fmt::Debug for Parameter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Parameter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Parameter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INITIAL_LINEAR_VELOCITY => "INITIAL_LINEAR_VELOCITY", Self::ANGULAR_VELOCITY => "ANGULAR_VELOCITY", Self::ORBIT_VELOCITY => "ORBIT_VELOCITY", Self::LINEAR_ACCEL => "LINEAR_ACCEL", Self::RADIAL_ACCEL => "RADIAL_ACCEL", Self::TANGENTIAL_ACCEL => "TANGENTIAL_ACCEL", Self::DAMPING => "DAMPING", Self::ANGLE => "ANGLE", Self::SCALE => "SCALE", Self::HUE_VARIATION => "HUE_VARIATION", Self::ANIM_SPEED => "ANIM_SPEED", Self::ANIM_OFFSET => "ANIM_OFFSET", Self::RADIAL_VELOCITY => "RADIAL_VELOCITY", Self::DIRECTIONAL_VELOCITY => "DIRECTIONAL_VELOCITY", Self::SCALE_OVER_VELOCITY => "SCALE_OVER_VELOCITY", Self::MAX => "MAX", Self::TURB_VEL_INFLUENCE => "TURB_VEL_INFLUENCE", Self::TURB_INIT_DISPLACEMENT => "TURB_INIT_DISPLACEMENT", Self::TURB_INFLUENCE_OVER_LIFE => "TURB_INFLUENCE_OVER_LIFE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INITIAL_LINEAR_VELOCITY => "PARAM_INITIAL_LINEAR_VELOCITY", Self::ANGULAR_VELOCITY => "PARAM_ANGULAR_VELOCITY", Self::ORBIT_VELOCITY => "PARAM_ORBIT_VELOCITY", Self::LINEAR_ACCEL => "PARAM_LINEAR_ACCEL", Self::RADIAL_ACCEL => "PARAM_RADIAL_ACCEL", Self::TANGENTIAL_ACCEL => "PARAM_TANGENTIAL_ACCEL", Self::DAMPING => "PARAM_DAMPING", Self::ANGLE => "PARAM_ANGLE", Self::SCALE => "PARAM_SCALE", Self::HUE_VARIATION => "PARAM_HUE_VARIATION", Self::ANIM_SPEED => "PARAM_ANIM_SPEED", Self::ANIM_OFFSET => "PARAM_ANIM_OFFSET", Self::RADIAL_VELOCITY => "PARAM_RADIAL_VELOCITY", Self::DIRECTIONAL_VELOCITY => "PARAM_DIRECTIONAL_VELOCITY", Self::SCALE_OVER_VELOCITY => "PARAM_SCALE_OVER_VELOCITY", Self::MAX => "PARAM_MAX", Self::TURB_VEL_INFLUENCE => "PARAM_TURB_VEL_INFLUENCE", Self::TURB_INIT_DISPLACEMENT => "PARAM_TURB_INIT_DISPLACEMENT", Self::TURB_INFLUENCE_OVER_LIFE => "PARAM_TURB_INFLUENCE_OVER_LIFE", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Parameter { + const ENUMERATOR_COUNT: usize = 18usize; + +} +impl crate::meta::GodotConvert for Parameter { + type Via = i32; + +} +impl crate::meta::ToGodot for Parameter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Parameter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ParticleFlags { + ord: i32 +} +impl ParticleFlags { + #[doc(alias = "PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY`"] + pub const ALIGN_Y_TO_VELOCITY: ParticleFlags = ParticleFlags { + ord: 0i32 + }; + #[doc(alias = "PARTICLE_FLAG_ROTATE_Y")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_ROTATE_Y`"] + pub const ROTATE_Y: ParticleFlags = ParticleFlags { + ord: 1i32 + }; + #[doc(alias = "PARTICLE_FLAG_DISABLE_Z")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_DISABLE_Z`"] + pub const DISABLE_Z: ParticleFlags = ParticleFlags { + ord: 2i32 + }; + #[doc(alias = "PARTICLE_FLAG_DAMPING_AS_FRICTION")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_DAMPING_AS_FRICTION`"] + pub const DAMPING_AS_FRICTION: ParticleFlags = ParticleFlags { + ord: 3i32 + }; + #[doc(alias = "PARTICLE_FLAG_MAX")] + #[doc = "Godot enumerator name: `PARTICLE_FLAG_MAX`"] + pub const MAX: ParticleFlags = ParticleFlags { + ord: 4i32 + }; + +} +impl std::fmt::Debug for ParticleFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ParticleFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ParticleFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALIGN_Y_TO_VELOCITY => "ALIGN_Y_TO_VELOCITY", Self::ROTATE_Y => "ROTATE_Y", Self::DISABLE_Z => "DISABLE_Z", Self::DAMPING_AS_FRICTION => "DAMPING_AS_FRICTION", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALIGN_Y_TO_VELOCITY => "PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY", Self::ROTATE_Y => "PARTICLE_FLAG_ROTATE_Y", Self::DISABLE_Z => "PARTICLE_FLAG_DISABLE_Z", Self::DAMPING_AS_FRICTION => "PARTICLE_FLAG_DAMPING_AS_FRICTION", Self::MAX => "PARTICLE_FLAG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ParticleFlags { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for ParticleFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for ParticleFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ParticleFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EmissionShape { + ord: i32 +} +impl EmissionShape { + #[doc(alias = "EMISSION_SHAPE_POINT")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_POINT`"] + pub const POINT: EmissionShape = EmissionShape { + ord: 0i32 + }; + #[doc(alias = "EMISSION_SHAPE_SPHERE")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_SPHERE`"] + pub const SPHERE: EmissionShape = EmissionShape { + ord: 1i32 + }; + #[doc(alias = "EMISSION_SHAPE_SPHERE_SURFACE")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_SPHERE_SURFACE`"] + pub const SPHERE_SURFACE: EmissionShape = EmissionShape { + ord: 2i32 + }; + #[doc(alias = "EMISSION_SHAPE_BOX")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_BOX`"] + pub const BOX: EmissionShape = EmissionShape { + ord: 3i32 + }; + #[doc(alias = "EMISSION_SHAPE_POINTS")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_POINTS`"] + pub const POINTS: EmissionShape = EmissionShape { + ord: 4i32 + }; + #[doc(alias = "EMISSION_SHAPE_DIRECTED_POINTS")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_DIRECTED_POINTS`"] + pub const DIRECTED_POINTS: EmissionShape = EmissionShape { + ord: 5i32 + }; + #[doc(alias = "EMISSION_SHAPE_RING")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_RING`"] + pub const RING: EmissionShape = EmissionShape { + ord: 6i32 + }; + #[doc(alias = "EMISSION_SHAPE_MAX")] + #[doc = "Godot enumerator name: `EMISSION_SHAPE_MAX`"] + pub const MAX: EmissionShape = EmissionShape { + ord: 7i32 + }; + +} +impl std::fmt::Debug for EmissionShape { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EmissionShape") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EmissionShape { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINT => "POINT", Self::SPHERE => "SPHERE", Self::SPHERE_SURFACE => "SPHERE_SURFACE", Self::BOX => "BOX", Self::POINTS => "POINTS", Self::DIRECTED_POINTS => "DIRECTED_POINTS", Self::RING => "RING", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINT => "EMISSION_SHAPE_POINT", Self::SPHERE => "EMISSION_SHAPE_SPHERE", Self::SPHERE_SURFACE => "EMISSION_SHAPE_SPHERE_SURFACE", Self::BOX => "EMISSION_SHAPE_BOX", Self::POINTS => "EMISSION_SHAPE_POINTS", Self::DIRECTED_POINTS => "EMISSION_SHAPE_DIRECTED_POINTS", Self::RING => "EMISSION_SHAPE_RING", Self::MAX => "EMISSION_SHAPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for EmissionShape { + const ENUMERATOR_COUNT: usize = 7usize; + +} +impl crate::meta::GodotConvert for EmissionShape { + type Via = i32; + +} +impl crate::meta::ToGodot for EmissionShape { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EmissionShape { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SubEmitterMode { + ord: i32 +} +impl SubEmitterMode { + #[doc(alias = "SUB_EMITTER_DISABLED")] + #[doc = "Godot enumerator name: `SUB_EMITTER_DISABLED`"] + pub const DISABLED: SubEmitterMode = SubEmitterMode { + ord: 0i32 + }; + #[doc(alias = "SUB_EMITTER_CONSTANT")] + #[doc = "Godot enumerator name: `SUB_EMITTER_CONSTANT`"] + pub const CONSTANT: SubEmitterMode = SubEmitterMode { + ord: 1i32 + }; + #[doc(alias = "SUB_EMITTER_AT_END")] + #[doc = "Godot enumerator name: `SUB_EMITTER_AT_END`"] + pub const AT_END: SubEmitterMode = SubEmitterMode { + ord: 2i32 + }; + #[doc(alias = "SUB_EMITTER_AT_COLLISION")] + #[doc = "Godot enumerator name: `SUB_EMITTER_AT_COLLISION`"] + pub const AT_COLLISION: SubEmitterMode = SubEmitterMode { + ord: 3i32 + }; + #[doc(alias = "SUB_EMITTER_MAX")] + #[doc = "Godot enumerator name: `SUB_EMITTER_MAX`"] + pub const MAX: SubEmitterMode = SubEmitterMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for SubEmitterMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SubEmitterMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SubEmitterMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::CONSTANT => "CONSTANT", Self::AT_END => "AT_END", Self::AT_COLLISION => "AT_COLLISION", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "SUB_EMITTER_DISABLED", Self::CONSTANT => "SUB_EMITTER_CONSTANT", Self::AT_END => "SUB_EMITTER_AT_END", Self::AT_COLLISION => "SUB_EMITTER_AT_COLLISION", Self::MAX => "SUB_EMITTER_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for SubEmitterMode { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for SubEmitterMode { + type Via = i32; + +} +impl crate::meta::ToGodot for SubEmitterMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SubEmitterMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CollisionMode { + ord: i32 +} +impl CollisionMode { + #[doc(alias = "COLLISION_DISABLED")] + #[doc = "Godot enumerator name: `COLLISION_DISABLED`"] + pub const DISABLED: CollisionMode = CollisionMode { + ord: 0i32 + }; + #[doc(alias = "COLLISION_RIGID")] + #[doc = "Godot enumerator name: `COLLISION_RIGID`"] + pub const RIGID: CollisionMode = CollisionMode { + ord: 1i32 + }; + #[doc(alias = "COLLISION_HIDE_ON_CONTACT")] + #[doc = "Godot enumerator name: `COLLISION_HIDE_ON_CONTACT`"] + pub const HIDE_ON_CONTACT: CollisionMode = CollisionMode { + ord: 2i32 + }; + #[doc(alias = "COLLISION_MAX")] + #[doc = "Godot enumerator name: `COLLISION_MAX`"] + pub const MAX: CollisionMode = CollisionMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for CollisionMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CollisionMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CollisionMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::RIGID => "RIGID", Self::HIDE_ON_CONTACT => "HIDE_ON_CONTACT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "COLLISION_DISABLED", Self::RIGID => "COLLISION_RIGID", Self::HIDE_ON_CONTACT => "COLLISION_HIDE_ON_CONTACT", Self::MAX => "COLLISION_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for CollisionMode { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for CollisionMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CollisionMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CollisionMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_2d.rs new file mode 100644 index 0000000..8ae3d2f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_2d.rs @@ -0,0 +1,254 @@ +#![doc = "Sidecar module for class [`Path2D`][crate::classes::Path2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Path2D` enums](https://docs.godotengine.org/en/stable/classes/class_path2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Path2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IPath2D`][crate::classes::IPath2D]: virtual methods\n\n\nSee also [Godot docs for `Path2D`](https://docs.godotengine.org/en/stable/classes/class_path2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Path2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Path2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Path2D`][crate::classes::Path2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Path2D` methods](https://docs.godotengine.org/en/stable/classes/class_path2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPath2D: crate::obj::GodotClass < Base = Path2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Path2D { + pub fn set_curve(&mut self, curve: impl AsObjectArg < crate::classes::Curve2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve2D >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6018usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Path2D", "set_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_curve(&self,) -> Option < Gd < crate::classes::Curve2D > > { + type CallSig = (Option < Gd < crate::classes::Curve2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6019usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Path2D", "get_curve", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Path2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Path2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Path2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for Path2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Path2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Path2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Path2D { + + } + impl crate::obj::cap::GodotDefault for Path2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Path2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Path2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Path2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Path2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Path2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_3d.rs new file mode 100644 index 0000000..3b81f8c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_3d.rs @@ -0,0 +1,245 @@ +#![doc = "Sidecar module for class [`Path3D`][crate::classes::Path3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Path3D` enums](https://docs.godotengine.org/en/stable/classes/class_path3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Path3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`IPath3D`][crate::classes::IPath3D]: virtual methods\n\n\nSee also [Godot docs for `Path3D`](https://docs.godotengine.org/en/stable/classes/class_path3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Path3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Path3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Path3D`][crate::classes::Path3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Path3D` methods](https://docs.godotengine.org/en/stable/classes/class_path3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPath3D: crate::obj::GodotClass < Base = Path3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Path3D { + pub fn set_curve(&mut self, curve: impl AsObjectArg < crate::classes::Curve3D >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve3D >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6020usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Path3D", "set_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_curve(&self,) -> Option < Gd < crate::classes::Curve3D > > { + type CallSig = (Option < Gd < crate::classes::Curve3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6021usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Path3D", "get_curve", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Path3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Path3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Path3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for Path3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Path3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Path3D { + + } + impl crate::obj::cap::GodotDefault for Path3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Path3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Path3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Path3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Path3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Path3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_follow_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_follow_2d.rs new file mode 100644 index 0000000..c90643a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_follow_2d.rs @@ -0,0 +1,350 @@ +#![doc = "Sidecar module for class [`PathFollow2D`][crate::classes::PathFollow2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PathFollow2D` enums](https://docs.godotengine.org/en/stable/classes/class_pathfollow2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PathFollow2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IPathFollow2D`][crate::classes::IPathFollow2D]: virtual methods\n\n\nSee also [Godot docs for `PathFollow2D`](https://docs.godotengine.org/en/stable/classes/class_pathfollow2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PathFollow2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PathFollow2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PathFollow2D`][crate::classes::PathFollow2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PathFollow2D` methods](https://docs.godotengine.org/en/stable/classes/class_pathfollow2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPathFollow2D: crate::obj::GodotClass < Base = PathFollow2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PathFollow2D { + pub fn set_progress(&mut self, progress: f32,) { + type CallSig = ((), f32); + let args = (progress,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6022usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "set_progress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_progress(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6023usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "get_progress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_h_offset(&mut self, h_offset: f32,) { + type CallSig = ((), f32); + let args = (h_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6024usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "set_h_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_h_offset(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6025usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "get_h_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_v_offset(&mut self, v_offset: f32,) { + type CallSig = ((), f32); + let args = (v_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6026usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "set_v_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_v_offset(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6027usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "get_v_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_progress_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6028usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "set_progress_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_progress_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6029usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "get_progress_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotates(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6030usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "set_rotates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_rotating(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6031usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "is_rotating", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cubic_interpolation(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6032usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "set_cubic_interpolation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cubic_interpolation(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6033usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "get_cubic_interpolation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop(&mut self, loop_: bool,) { + type CallSig = ((), bool); + let args = (loop_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6034usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "set_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_loop(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6035usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow2D", "has_loop", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PathFollow2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PathFollow2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PathFollow2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for PathFollow2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for PathFollow2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PathFollow2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PathFollow2D { + + } + impl crate::obj::cap::GodotDefault for PathFollow2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PathFollow2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PathFollow2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PathFollow2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PathFollow2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PathFollow2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_follow_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_follow_3d.rs new file mode 100644 index 0000000..2c3a633 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/path_follow_3d.rs @@ -0,0 +1,466 @@ +#![doc = "Sidecar module for class [`PathFollow3D`][crate::classes::PathFollow3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PathFollow3D` enums](https://docs.godotengine.org/en/stable/classes/class_pathfollow3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PathFollow3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`path_follow_3d`][crate::classes::path_follow_3d]: sidecar module with related enum/flag types\n* [`IPathFollow3D`][crate::classes::IPathFollow3D]: virtual methods\n\n\nSee also [Godot docs for `PathFollow3D`](https://docs.godotengine.org/en/stable/classes/class_pathfollow3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PathFollow3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PathFollow3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PathFollow3D`][crate::classes::PathFollow3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PathFollow3D` methods](https://docs.godotengine.org/en/stable/classes/class_pathfollow3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPathFollow3D: crate::obj::GodotClass < Base = PathFollow3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PathFollow3D { + pub fn set_progress(&mut self, progress: f32,) { + type CallSig = ((), f32); + let args = (progress,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6036usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "set_progress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_progress(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6037usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "get_progress", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_h_offset(&mut self, h_offset: f32,) { + type CallSig = ((), f32); + let args = (h_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6038usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "set_h_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_h_offset(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6039usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "get_h_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_v_offset(&mut self, v_offset: f32,) { + type CallSig = ((), f32); + let args = (v_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6040usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "set_v_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_v_offset(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6041usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "get_v_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_progress_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6042usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "set_progress_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_progress_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6043usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "get_progress_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rotation_mode(&mut self, rotation_mode: crate::classes::path_follow_3d::RotationMode,) { + type CallSig = ((), crate::classes::path_follow_3d::RotationMode); + let args = (rotation_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6044usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "set_rotation_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rotation_mode(&self,) -> crate::classes::path_follow_3d::RotationMode { + type CallSig = (crate::classes::path_follow_3d::RotationMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6045usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "get_rotation_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cubic_interpolation(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6046usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "set_cubic_interpolation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cubic_interpolation(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6047usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "get_cubic_interpolation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_model_front(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6048usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "set_use_model_front", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_model_front(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6049usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "is_using_model_front", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_loop(&mut self, loop_: bool,) { + type CallSig = ((), bool); + let args = (loop_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6050usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "set_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_loop(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6051usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "has_loop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tilt_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6052usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "set_tilt_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_tilt_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6053usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "is_tilt_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn correct_posture(transform: Transform3D, rotation_mode: crate::classes::path_follow_3d::RotationMode,) -> Transform3D { + type CallSig = (Transform3D, Transform3D, crate::classes::path_follow_3d::RotationMode); + let args = (transform, rotation_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6054usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PathFollow3D", "correct_posture", std::ptr::null_mut(), None, args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PathFollow3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PathFollow3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PathFollow3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for PathFollow3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PathFollow3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PathFollow3D { + + } + impl crate::obj::cap::GodotDefault for PathFollow3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PathFollow3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PathFollow3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PathFollow3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PathFollow3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PathFollow3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct RotationMode { + ord: i32 +} +impl RotationMode { + #[doc(alias = "ROTATION_NONE")] + #[doc = "Godot enumerator name: `ROTATION_NONE`"] + pub const NONE: RotationMode = RotationMode { + ord: 0i32 + }; + #[doc(alias = "ROTATION_Y")] + #[doc = "Godot enumerator name: `ROTATION_Y`"] + pub const Y: RotationMode = RotationMode { + ord: 1i32 + }; + #[doc(alias = "ROTATION_XY")] + #[doc = "Godot enumerator name: `ROTATION_XY`"] + pub const XY: RotationMode = RotationMode { + ord: 2i32 + }; + #[doc(alias = "ROTATION_XYZ")] + #[doc = "Godot enumerator name: `ROTATION_XYZ`"] + pub const XYZ: RotationMode = RotationMode { + ord: 3i32 + }; + #[doc(alias = "ROTATION_ORIENTED")] + #[doc = "Godot enumerator name: `ROTATION_ORIENTED`"] + pub const ORIENTED: RotationMode = RotationMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for RotationMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("RotationMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for RotationMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::Y => "Y", Self::XY => "XY", Self::XYZ => "XYZ", Self::ORIENTED => "ORIENTED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "ROTATION_NONE", Self::Y => "ROTATION_Y", Self::XY => "ROTATION_XY", Self::XYZ => "ROTATION_XYZ", Self::ORIENTED => "ROTATION_ORIENTED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for RotationMode { + type Via = i32; + +} +impl crate::meta::ToGodot for RotationMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for RotationMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/pck_packer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/pck_packer.rs new file mode 100644 index 0000000..5cdad78 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/pck_packer.rs @@ -0,0 +1,342 @@ +#![doc = "Sidecar module for class [`PckPacker`][crate::classes::PckPacker].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PCKPacker` enums](https://docs.godotengine.org/en/stable/classes/class_pckpacker.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PCKPacker.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`pck_packer`][crate::classes::pck_packer]: sidecar module with related enum/flag types\n* [`IPckPacker`][crate::classes::IPckPacker]: virtual methods\n\n\nSee also [Godot docs for `PCKPacker`](https://docs.godotengine.org/en/stable/classes/class_pckpacker.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PckPacker::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PckPacker { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PckPacker`][crate::classes::PckPacker].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PCKPacker` methods](https://docs.godotengine.org/en/stable/classes/class_pckpacker.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPckPacker: crate::obj::GodotClass < Base = PckPacker > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PckPacker { + pub(crate) fn pck_start_full(&mut self, pck_name: CowArg < GString >, alignment: i32, key: CowArg < GString >, encrypt_directory: bool,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, i32, CowArg < 'a1, GString >, bool); + let args = (pck_name, alignment, key, encrypt_directory,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5861usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PckPacker", "pck_start", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::pck_start_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn pck_start(&mut self, pck_name: impl AsArg < GString >,) -> crate::global::Error { + self.pck_start_ex(pck_name,) . done() + } + #[inline] + pub fn pck_start_ex < 'a > (&'a mut self, pck_name: impl AsArg < GString > + 'a,) -> ExPckStart < 'a > { + ExPckStart::new(self, pck_name,) + } + pub(crate) fn add_file_full(&mut self, pck_path: CowArg < GString >, source_path: CowArg < GString >, encrypt: bool,) -> crate::global::Error { + type CallSig < 'a0, 'a1, > = (crate::global::Error, CowArg < 'a0, GString >, CowArg < 'a1, GString >, bool); + let args = (pck_path, source_path, encrypt,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5862usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PckPacker", "add_file", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_file_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_file(&mut self, pck_path: impl AsArg < GString >, source_path: impl AsArg < GString >,) -> crate::global::Error { + self.add_file_ex(pck_path, source_path,) . done() + } + #[inline] + pub fn add_file_ex < 'a > (&'a mut self, pck_path: impl AsArg < GString > + 'a, source_path: impl AsArg < GString > + 'a,) -> ExAddFile < 'a > { + ExAddFile::new(self, pck_path, source_path,) + } + pub(crate) fn flush_full(&mut self, verbose: bool,) -> crate::global::Error { + type CallSig = (crate::global::Error, bool); + let args = (verbose,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(5863usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PckPacker", "flush", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::flush_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn flush(&mut self,) -> crate::global::Error { + self.flush_ex() . done() + } + #[inline] + pub fn flush_ex < 'a > (&'a mut self,) -> ExFlush < 'a > { + ExFlush::new(self,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PckPacker { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PCKPacker")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PckPacker { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PckPacker { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PckPacker { + + } + impl crate::obj::cap::GodotDefault for PckPacker { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PckPacker { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PckPacker { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PckPacker`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PckPacker { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PckPacker > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PckPacker::pck_start_ex`][super::PckPacker::pck_start_ex]."] +#[must_use] +pub struct ExPckStart < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PckPacker, pck_name: CowArg < 'a, GString >, alignment: i32, key: CowArg < 'a, GString >, encrypt_directory: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPckStart < 'a > { + fn new(surround_object: &'a mut re_export::PckPacker, pck_name: impl AsArg < GString > + 'a,) -> Self { + let alignment = 32i32; + let key = GString::from("0000000000000000000000000000000000000000000000000000000000000000"); + let encrypt_directory = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, pck_name: pck_name.into_arg(), alignment: alignment, key: CowArg::Owned(key), encrypt_directory: encrypt_directory, + } + } + #[inline] + pub fn alignment(self, alignment: i32) -> Self { + Self { + alignment: alignment, .. self + } + } + #[inline] + pub fn key(self, key: impl AsArg < GString > + 'a) -> Self { + Self { + key: key.into_arg(), .. self + } + } + #[inline] + pub fn encrypt_directory(self, encrypt_directory: bool) -> Self { + Self { + encrypt_directory: encrypt_directory, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, pck_name, alignment, key, encrypt_directory, + } + = self; + re_export::PckPacker::pck_start_full(surround_object, pck_name, alignment, key, encrypt_directory,) + } +} +#[doc = "Default-param extender for [`PckPacker::add_file_ex`][super::PckPacker::add_file_ex]."] +#[must_use] +pub struct ExAddFile < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PckPacker, pck_path: CowArg < 'a, GString >, source_path: CowArg < 'a, GString >, encrypt: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddFile < 'a > { + fn new(surround_object: &'a mut re_export::PckPacker, pck_path: impl AsArg < GString > + 'a, source_path: impl AsArg < GString > + 'a,) -> Self { + let encrypt = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, pck_path: pck_path.into_arg(), source_path: source_path.into_arg(), encrypt: encrypt, + } + } + #[inline] + pub fn encrypt(self, encrypt: bool) -> Self { + Self { + encrypt: encrypt, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, pck_path, source_path, encrypt, + } + = self; + re_export::PckPacker::add_file_full(surround_object, pck_path, source_path, encrypt,) + } +} +#[doc = "Default-param extender for [`PckPacker::flush_ex`][super::PckPacker::flush_ex]."] +#[must_use] +pub struct ExFlush < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PckPacker, verbose: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFlush < 'a > { + fn new(surround_object: &'a mut re_export::PckPacker,) -> Self { + let verbose = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, verbose: verbose, + } + } + #[inline] + pub fn verbose(self, verbose: bool) -> Self { + Self { + verbose: verbose, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, verbose, + } + = self; + re_export::PckPacker::flush_full(surround_object, verbose,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/performance.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/performance.rs new file mode 100644 index 0000000..26f9972 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/performance.rs @@ -0,0 +1,450 @@ +#![doc = "Sidecar module for class [`Performance`][crate::classes::Performance].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Performance` enums](https://docs.godotengine.org/en/stable/classes/class_performance.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Performance.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`performance`][crate::classes::performance]: sidecar module with related enum/flag types\n* [`IPerformance`][crate::classes::IPerformance]: virtual methods\n\n\nSee also [Godot docs for `Performance`](https://docs.godotengine.org/en/stable/classes/class_performance.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`Performance::singleton()`][Performance::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct Performance { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Performance`][crate::classes::Performance].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Performance` methods](https://docs.godotengine.org/en/stable/classes/class_performance.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPerformance: crate::obj::GodotClass < Base = Performance > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl Performance { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"Performance"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn get_monitor(&self, monitor: crate::classes::performance::Monitor,) -> f64 { + type CallSig = (f64, crate::classes::performance::Monitor); + let args = (monitor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6055usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Performance", "get_monitor", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_custom_monitor_full(&mut self, id: CowArg < StringName >, callable: RefArg < Callable >, arguments: RefArg < VariantArray >,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Callable >, RefArg < 'a2, VariantArray >); + let args = (id, callable, arguments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6056usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Performance", "add_custom_monitor", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_custom_monitor_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_custom_monitor(&mut self, id: impl AsArg < StringName >, callable: &Callable,) { + self.add_custom_monitor_ex(id, callable,) . done() + } + #[inline] + pub fn add_custom_monitor_ex < 'a > (&'a mut self, id: impl AsArg < StringName > + 'a, callable: &'a Callable,) -> ExAddCustomMonitor < 'a > { + ExAddCustomMonitor::new(self, id, callable,) + } + pub fn remove_custom_monitor(&mut self, id: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (id.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6057usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Performance", "remove_custom_monitor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_custom_monitor(&mut self, id: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (id.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6058usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Performance", "has_custom_monitor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_custom_monitor(&mut self, id: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (id.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6059usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Performance", "get_custom_monitor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_monitor_modification_time(&mut self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6060usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Performance", "get_monitor_modification_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_custom_monitor_names(&mut self,) -> Array < StringName > { + type CallSig = (Array < StringName >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6061usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Performance", "get_custom_monitor_names", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Performance { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Performance")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Performance { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Performance { + + } + impl std::ops::Deref for Performance { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Performance { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Performance`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Performance { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Performance > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Performance::add_custom_monitor_ex`][super::Performance::add_custom_monitor_ex]."] +#[must_use] +pub struct ExAddCustomMonitor < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::Performance, id: CowArg < 'a, StringName >, callable: CowArg < 'a, Callable >, arguments: CowArg < 'a, VariantArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddCustomMonitor < 'a > { + fn new(surround_object: &'a mut re_export::Performance, id: impl AsArg < StringName > + 'a, callable: &'a Callable,) -> Self { + let arguments = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, id: id.into_arg(), callable: CowArg::Borrowed(callable), arguments: CowArg::Owned(arguments), + } + } + #[inline] + pub fn arguments(self, arguments: &'a VariantArray) -> Self { + Self { + arguments: CowArg::Borrowed(arguments), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, id, callable, arguments, + } + = self; + re_export::Performance::add_custom_monitor_full(surround_object, id, callable.cow_as_arg(), arguments.cow_as_arg(),) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Monitor { + ord: i32 +} +impl Monitor { + pub const TIME_FPS: Monitor = Monitor { + ord: 0i32 + }; + pub const TIME_PROCESS: Monitor = Monitor { + ord: 1i32 + }; + pub const TIME_PHYSICS_PROCESS: Monitor = Monitor { + ord: 2i32 + }; + pub const TIME_NAVIGATION_PROCESS: Monitor = Monitor { + ord: 3i32 + }; + pub const MEMORY_STATIC: Monitor = Monitor { + ord: 4i32 + }; + pub const MEMORY_STATIC_MAX: Monitor = Monitor { + ord: 5i32 + }; + pub const MEMORY_MESSAGE_BUFFER_MAX: Monitor = Monitor { + ord: 6i32 + }; + pub const OBJECT_COUNT: Monitor = Monitor { + ord: 7i32 + }; + pub const OBJECT_RESOURCE_COUNT: Monitor = Monitor { + ord: 8i32 + }; + pub const OBJECT_NODE_COUNT: Monitor = Monitor { + ord: 9i32 + }; + pub const OBJECT_ORPHAN_NODE_COUNT: Monitor = Monitor { + ord: 10i32 + }; + pub const RENDER_TOTAL_OBJECTS_IN_FRAME: Monitor = Monitor { + ord: 11i32 + }; + pub const RENDER_TOTAL_PRIMITIVES_IN_FRAME: Monitor = Monitor { + ord: 12i32 + }; + pub const RENDER_TOTAL_DRAW_CALLS_IN_FRAME: Monitor = Monitor { + ord: 13i32 + }; + pub const RENDER_VIDEO_MEM_USED: Monitor = Monitor { + ord: 14i32 + }; + pub const RENDER_TEXTURE_MEM_USED: Monitor = Monitor { + ord: 15i32 + }; + pub const RENDER_BUFFER_MEM_USED: Monitor = Monitor { + ord: 16i32 + }; + pub const PHYSICS_2D_ACTIVE_OBJECTS: Monitor = Monitor { + ord: 17i32 + }; + pub const PHYSICS_2D_COLLISION_PAIRS: Monitor = Monitor { + ord: 18i32 + }; + pub const PHYSICS_2D_ISLAND_COUNT: Monitor = Monitor { + ord: 19i32 + }; + pub const PHYSICS_3D_ACTIVE_OBJECTS: Monitor = Monitor { + ord: 20i32 + }; + pub const PHYSICS_3D_COLLISION_PAIRS: Monitor = Monitor { + ord: 21i32 + }; + pub const PHYSICS_3D_ISLAND_COUNT: Monitor = Monitor { + ord: 22i32 + }; + pub const AUDIO_OUTPUT_LATENCY: Monitor = Monitor { + ord: 23i32 + }; + pub const NAVIGATION_ACTIVE_MAPS: Monitor = Monitor { + ord: 24i32 + }; + pub const NAVIGATION_REGION_COUNT: Monitor = Monitor { + ord: 25i32 + }; + pub const NAVIGATION_AGENT_COUNT: Monitor = Monitor { + ord: 26i32 + }; + pub const NAVIGATION_LINK_COUNT: Monitor = Monitor { + ord: 27i32 + }; + pub const NAVIGATION_POLYGON_COUNT: Monitor = Monitor { + ord: 28i32 + }; + pub const NAVIGATION_EDGE_COUNT: Monitor = Monitor { + ord: 29i32 + }; + pub const NAVIGATION_EDGE_MERGE_COUNT: Monitor = Monitor { + ord: 30i32 + }; + pub const NAVIGATION_EDGE_CONNECTION_COUNT: Monitor = Monitor { + ord: 31i32 + }; + pub const NAVIGATION_EDGE_FREE_COUNT: Monitor = Monitor { + ord: 32i32 + }; + #[doc(alias = "MONITOR_MAX")] + #[doc = "Godot enumerator name: `MONITOR_MAX`"] + pub const MAX: Monitor = Monitor { + ord: 33i32 + }; + +} +impl std::fmt::Debug for Monitor { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Monitor") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Monitor { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 | ord @ 26i32 | ord @ 27i32 | ord @ 28i32 | ord @ 29i32 | ord @ 30i32 | ord @ 31i32 | ord @ 32i32 | ord @ 33i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TIME_FPS => "TIME_FPS", Self::TIME_PROCESS => "TIME_PROCESS", Self::TIME_PHYSICS_PROCESS => "TIME_PHYSICS_PROCESS", Self::TIME_NAVIGATION_PROCESS => "TIME_NAVIGATION_PROCESS", Self::MEMORY_STATIC => "MEMORY_STATIC", Self::MEMORY_STATIC_MAX => "MEMORY_STATIC_MAX", Self::MEMORY_MESSAGE_BUFFER_MAX => "MEMORY_MESSAGE_BUFFER_MAX", Self::OBJECT_COUNT => "OBJECT_COUNT", Self::OBJECT_RESOURCE_COUNT => "OBJECT_RESOURCE_COUNT", Self::OBJECT_NODE_COUNT => "OBJECT_NODE_COUNT", Self::OBJECT_ORPHAN_NODE_COUNT => "OBJECT_ORPHAN_NODE_COUNT", Self::RENDER_TOTAL_OBJECTS_IN_FRAME => "RENDER_TOTAL_OBJECTS_IN_FRAME", Self::RENDER_TOTAL_PRIMITIVES_IN_FRAME => "RENDER_TOTAL_PRIMITIVES_IN_FRAME", Self::RENDER_TOTAL_DRAW_CALLS_IN_FRAME => "RENDER_TOTAL_DRAW_CALLS_IN_FRAME", Self::RENDER_VIDEO_MEM_USED => "RENDER_VIDEO_MEM_USED", Self::RENDER_TEXTURE_MEM_USED => "RENDER_TEXTURE_MEM_USED", Self::RENDER_BUFFER_MEM_USED => "RENDER_BUFFER_MEM_USED", Self::PHYSICS_2D_ACTIVE_OBJECTS => "PHYSICS_2D_ACTIVE_OBJECTS", Self::PHYSICS_2D_COLLISION_PAIRS => "PHYSICS_2D_COLLISION_PAIRS", Self::PHYSICS_2D_ISLAND_COUNT => "PHYSICS_2D_ISLAND_COUNT", Self::PHYSICS_3D_ACTIVE_OBJECTS => "PHYSICS_3D_ACTIVE_OBJECTS", Self::PHYSICS_3D_COLLISION_PAIRS => "PHYSICS_3D_COLLISION_PAIRS", Self::PHYSICS_3D_ISLAND_COUNT => "PHYSICS_3D_ISLAND_COUNT", Self::AUDIO_OUTPUT_LATENCY => "AUDIO_OUTPUT_LATENCY", Self::NAVIGATION_ACTIVE_MAPS => "NAVIGATION_ACTIVE_MAPS", Self::NAVIGATION_REGION_COUNT => "NAVIGATION_REGION_COUNT", Self::NAVIGATION_AGENT_COUNT => "NAVIGATION_AGENT_COUNT", Self::NAVIGATION_LINK_COUNT => "NAVIGATION_LINK_COUNT", Self::NAVIGATION_POLYGON_COUNT => "NAVIGATION_POLYGON_COUNT", Self::NAVIGATION_EDGE_COUNT => "NAVIGATION_EDGE_COUNT", Self::NAVIGATION_EDGE_MERGE_COUNT => "NAVIGATION_EDGE_MERGE_COUNT", Self::NAVIGATION_EDGE_CONNECTION_COUNT => "NAVIGATION_EDGE_CONNECTION_COUNT", Self::NAVIGATION_EDGE_FREE_COUNT => "NAVIGATION_EDGE_FREE_COUNT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MAX => "MONITOR_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for Monitor { + const ENUMERATOR_COUNT: usize = 33usize; + +} +impl crate::meta::GodotConvert for Monitor { + type Via = i32; + +} +impl crate::meta::ToGodot for Monitor { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Monitor { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_bone_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_bone_2d.rs new file mode 100644 index 0000000..2a56887 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_bone_2d.rs @@ -0,0 +1,370 @@ +#![doc = "Sidecar module for class [`PhysicalBone2D`][crate::classes::PhysicalBone2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicalBone2D` enums](https://docs.godotengine.org/en/stable/classes/class_physicalbone2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicalBone2D.`\n\nInherits [`RigidBody2D`][crate::classes::RigidBody2D].\n\nRelated symbols:\n\n* [`IPhysicalBone2D`][crate::classes::IPhysicalBone2D]: virtual methods\n\n\nSee also [Godot docs for `PhysicalBone2D`](https://docs.godotengine.org/en/stable/classes/class_physicalbone2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PhysicalBone2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicalBone2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicalBone2D`][crate::classes::PhysicalBone2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicalBone2D` methods](https://docs.godotengine.org/en/stable/classes/class_physicalbone2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicalBone2D: crate::obj::GodotClass < Base = PhysicalBone2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn integrate_forces(&mut self, state: Option < Gd < crate::classes::PhysicsDirectBodyState2D > >,) { + unimplemented !() + } + fn input_event(&mut self, viewport: Gd < crate::classes::Viewport >, event: Gd < crate::classes::InputEvent >, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn mouse_shape_enter(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn mouse_shape_exit(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PhysicalBone2D { + pub fn get_joint(&self,) -> Option < Gd < crate::classes::Joint2D > > { + type CallSig = (Option < Gd < crate::classes::Joint2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6062usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "get_joint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auto_configure_joint(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6063usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "get_auto_configure_joint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_configure_joint(&mut self, auto_configure_joint: bool,) { + type CallSig = ((), bool); + let args = (auto_configure_joint,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6064usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "set_auto_configure_joint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_simulate_physics(&mut self, simulate_physics: bool,) { + type CallSig = ((), bool); + let args = (simulate_physics,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6065usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "set_simulate_physics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_simulate_physics(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6066usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "get_simulate_physics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_simulating_physics(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6067usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "is_simulating_physics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bone2d_nodepath(&mut self, nodepath: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (nodepath.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6068usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "set_bone2d_nodepath", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone2d_nodepath(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6069usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "get_bone2d_nodepath", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bone2d_index(&mut self, bone_index: i32,) { + type CallSig = ((), i32); + let args = (bone_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6070usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "set_bone2d_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone2d_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6071usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "get_bone2d_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_follow_bone_when_simulating(&mut self, follow_bone: bool,) { + type CallSig = ((), bool); + let args = (follow_bone,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6072usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "set_follow_bone_when_simulating", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_follow_bone_when_simulating(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6073usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone2D", "get_follow_bone_when_simulating", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicalBone2D { + type Base = crate::classes::RigidBody2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicalBone2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicalBone2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::RigidBody2D > for PhysicalBone2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsBody2D > for PhysicalBone2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject2D > for PhysicalBone2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for PhysicalBone2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for PhysicalBone2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PhysicalBone2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicalBone2D { + + } + impl crate::obj::cap::GodotDefault for PhysicalBone2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicalBone2D { + type Target = crate::classes::RigidBody2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicalBone2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicalBone2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicalBone2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicalBone2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RigidBody2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsBody2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_bone_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_bone_3d.rs new file mode 100644 index 0000000..1fd2188 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_bone_3d.rs @@ -0,0 +1,746 @@ +#![doc = "Sidecar module for class [`PhysicalBone3D`][crate::classes::PhysicalBone3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicalBone3D` enums](https://docs.godotengine.org/en/stable/classes/class_physicalbone3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicalBone3D.`\n\nInherits [`PhysicsBody3D`][crate::classes::PhysicsBody3D].\n\nRelated symbols:\n\n* [`physical_bone_3d`][crate::classes::physical_bone_3d]: sidecar module with related enum/flag types\n* [`IPhysicalBone3D`][crate::classes::IPhysicalBone3D]: virtual methods\n\n\nSee also [Godot docs for `PhysicalBone3D`](https://docs.godotengine.org/en/stable/classes/class_physicalbone3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PhysicalBone3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicalBone3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicalBone3D`][crate::classes::PhysicalBone3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicalBone3D` methods](https://docs.godotengine.org/en/stable/classes/class_physicalbone3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicalBone3D: crate::obj::GodotClass < Base = PhysicalBone3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn integrate_forces(&mut self, state: Option < Gd < crate::classes::PhysicsDirectBodyState3D > >,) { + unimplemented !() + } + fn input_event(&mut self, camera: Option < Gd < crate::classes::Camera3D > >, event: Option < Gd < crate::classes::InputEvent > >, event_position: Vector3, normal: Vector3, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PhysicalBone3D { + pub fn apply_central_impulse(&mut self, impulse: Vector3,) { + type CallSig = ((), Vector3); + let args = (impulse,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6074usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "apply_central_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn apply_impulse_full(&mut self, impulse: Vector3, position: Vector3,) { + type CallSig = ((), Vector3, Vector3); + let args = (impulse, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6075usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "apply_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_impulse_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_impulse(&mut self, impulse: Vector3,) { + self.apply_impulse_ex(impulse,) . done() + } + #[inline] + pub fn apply_impulse_ex < 'a > (&'a mut self, impulse: Vector3,) -> ExApplyImpulse < 'a > { + ExApplyImpulse::new(self, impulse,) + } + pub fn set_joint_type(&mut self, joint_type: crate::classes::physical_bone_3d::JointType,) { + type CallSig = ((), crate::classes::physical_bone_3d::JointType); + let args = (joint_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6076usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_joint_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joint_type(&self,) -> crate::classes::physical_bone_3d::JointType { + type CallSig = (crate::classes::physical_bone_3d::JointType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6077usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_joint_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_joint_offset(&mut self, offset: Transform3D,) { + type CallSig = ((), Transform3D); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6078usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_joint_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joint_offset(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6079usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_joint_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_joint_rotation(&mut self, euler: Vector3,) { + type CallSig = ((), Vector3); + let args = (euler,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6080usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_joint_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_joint_rotation(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6081usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_joint_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_body_offset(&mut self, offset: Transform3D,) { + type CallSig = ((), Transform3D); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6082usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_body_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_body_offset(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6083usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_body_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_simulate_physics(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6084usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_simulate_physics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_simulating_physics(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6085usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "is_simulating_physics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone_id(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6086usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_bone_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mass(&mut self, mass: f32,) { + type CallSig = ((), f32); + let args = (mass,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6087usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mass(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6088usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_friction(&mut self, friction: f32,) { + type CallSig = ((), f32); + let args = (friction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6089usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_friction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_friction(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6090usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_friction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bounce(&mut self, bounce: f32,) { + type CallSig = ((), f32); + let args = (bounce,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6091usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_bounce", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bounce(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6092usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_bounce", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity_scale(&mut self, gravity_scale: f32,) { + type CallSig = ((), f32); + let args = (gravity_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6093usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_gravity_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6094usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_gravity_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_damp_mode(&mut self, linear_damp_mode: crate::classes::physical_bone_3d::DampMode,) { + type CallSig = ((), crate::classes::physical_bone_3d::DampMode); + let args = (linear_damp_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6095usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_linear_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_damp_mode(&self,) -> crate::classes::physical_bone_3d::DampMode { + type CallSig = (crate::classes::physical_bone_3d::DampMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6096usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_linear_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_damp_mode(&mut self, angular_damp_mode: crate::classes::physical_bone_3d::DampMode,) { + type CallSig = ((), crate::classes::physical_bone_3d::DampMode); + let args = (angular_damp_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6097usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_angular_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_damp_mode(&self,) -> crate::classes::physical_bone_3d::DampMode { + type CallSig = (crate::classes::physical_bone_3d::DampMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6098usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_angular_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_damp(&mut self, linear_damp: f32,) { + type CallSig = ((), f32); + let args = (linear_damp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6099usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6100usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_damp(&mut self, angular_damp: f32,) { + type CallSig = ((), f32); + let args = (angular_damp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6101usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6102usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_velocity(&mut self, linear_velocity: Vector3,) { + type CallSig = ((), Vector3); + let args = (linear_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6103usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6104usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_velocity(&mut self, angular_velocity: Vector3,) { + type CallSig = ((), Vector3); + let args = (angular_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6105usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6106usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "get_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_custom_integrator(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6107usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_use_custom_integrator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_custom_integrator(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6108usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "is_using_custom_integrator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_can_sleep(&mut self, able_to_sleep: bool,) { + type CallSig = ((), bool); + let args = (able_to_sleep,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6109usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "set_can_sleep", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_able_to_sleep(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6110usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBone3D", "is_able_to_sleep", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicalBone3D { + type Base = crate::classes::PhysicsBody3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicalBone3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicalBone3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsBody3D > for PhysicalBone3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject3D > for PhysicalBone3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for PhysicalBone3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PhysicalBone3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicalBone3D { + + } + impl crate::obj::cap::GodotDefault for PhysicalBone3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicalBone3D { + type Target = crate::classes::PhysicsBody3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicalBone3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicalBone3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicalBone3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicalBone3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsBody3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicalBone3D::apply_impulse_ex`][super::PhysicalBone3D::apply_impulse_ex]."] +#[must_use] +pub struct ExApplyImpulse < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicalBone3D, impulse: Vector3, position: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyImpulse < 'a > { + fn new(surround_object: &'a mut re_export::PhysicalBone3D, impulse: Vector3,) -> Self { + let position = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, impulse: impulse, position: position, + } + } + #[inline] + pub fn position(self, position: Vector3) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, impulse, position, + } + = self; + re_export::PhysicalBone3D::apply_impulse_full(surround_object, impulse, position,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DampMode { + ord: i32 +} +impl DampMode { + #[doc(alias = "DAMP_MODE_COMBINE")] + #[doc = "Godot enumerator name: `DAMP_MODE_COMBINE`"] + pub const COMBINE: DampMode = DampMode { + ord: 0i32 + }; + #[doc(alias = "DAMP_MODE_REPLACE")] + #[doc = "Godot enumerator name: `DAMP_MODE_REPLACE`"] + pub const REPLACE: DampMode = DampMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for DampMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DampMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DampMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMBINE => "COMBINE", Self::REPLACE => "REPLACE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMBINE => "DAMP_MODE_COMBINE", Self::REPLACE => "DAMP_MODE_REPLACE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DampMode { + type Via = i32; + +} +impl crate::meta::ToGodot for DampMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DampMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct JointType { + ord: i32 +} +impl JointType { + #[doc(alias = "JOINT_TYPE_NONE")] + #[doc = "Godot enumerator name: `JOINT_TYPE_NONE`"] + pub const NONE: JointType = JointType { + ord: 0i32 + }; + #[doc(alias = "JOINT_TYPE_PIN")] + #[doc = "Godot enumerator name: `JOINT_TYPE_PIN`"] + pub const PIN: JointType = JointType { + ord: 1i32 + }; + #[doc(alias = "JOINT_TYPE_CONE")] + #[doc = "Godot enumerator name: `JOINT_TYPE_CONE`"] + pub const CONE: JointType = JointType { + ord: 2i32 + }; + #[doc(alias = "JOINT_TYPE_HINGE")] + #[doc = "Godot enumerator name: `JOINT_TYPE_HINGE`"] + pub const HINGE: JointType = JointType { + ord: 3i32 + }; + #[doc(alias = "JOINT_TYPE_SLIDER")] + #[doc = "Godot enumerator name: `JOINT_TYPE_SLIDER`"] + pub const SLIDER: JointType = JointType { + ord: 4i32 + }; + #[doc(alias = "JOINT_TYPE_6DOF")] + #[doc = "Godot enumerator name: `JOINT_TYPE_6DOF`"] + pub const TYPE_6DOF: JointType = JointType { + ord: 5i32 + }; + +} +impl std::fmt::Debug for JointType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("JointType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for JointType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::PIN => "PIN", Self::CONE => "CONE", Self::HINGE => "HINGE", Self::SLIDER => "SLIDER", Self::TYPE_6DOF => "TYPE_6DOF", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "JOINT_TYPE_NONE", Self::PIN => "JOINT_TYPE_PIN", Self::CONE => "JOINT_TYPE_CONE", Self::HINGE => "JOINT_TYPE_HINGE", Self::SLIDER => "JOINT_TYPE_SLIDER", Self::TYPE_6DOF => "JOINT_TYPE_6DOF", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for JointType { + type Via = i32; + +} +impl crate::meta::ToGodot for JointType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for JointType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_bone_simulator_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_bone_simulator_3d.rs new file mode 100644 index 0000000..ff64d54 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_bone_simulator_3d.rs @@ -0,0 +1,315 @@ +#![doc = "Sidecar module for class [`PhysicalBoneSimulator3D`][crate::classes::PhysicalBoneSimulator3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicalBoneSimulator3D` enums](https://docs.godotengine.org/en/stable/classes/class_physicalbonesimulator3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicalBoneSimulator3D.`\n\nInherits [`SkeletonModifier3D`][crate::classes::SkeletonModifier3D].\n\nRelated symbols:\n\n* [`physical_bone_simulator_3d`][crate::classes::physical_bone_simulator_3d]: sidecar module with related enum/flag types\n* [`IPhysicalBoneSimulator3D`][crate::classes::IPhysicalBoneSimulator3D]: virtual methods\n\n\nSee also [Godot docs for `PhysicalBoneSimulator3D`](https://docs.godotengine.org/en/stable/classes/class_physicalbonesimulator3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PhysicalBoneSimulator3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicalBoneSimulator3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicalBoneSimulator3D`][crate::classes::PhysicalBoneSimulator3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicalBoneSimulator3D` methods](https://docs.godotengine.org/en/stable/classes/class_physicalbonesimulator3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicalBoneSimulator3D: crate::obj::GodotClass < Base = PhysicalBoneSimulator3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process_modification(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PhysicalBoneSimulator3D { + pub fn is_simulating_physics(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6111usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBoneSimulator3D", "is_simulating_physics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn physical_bones_stop_simulation(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6112usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBoneSimulator3D", "physical_bones_stop_simulation", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn physical_bones_start_simulation_full(&mut self, bones: RefArg < Array < StringName > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < StringName > >); + let args = (bones,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6113usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBoneSimulator3D", "physical_bones_start_simulation", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::physical_bones_start_simulation_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn physical_bones_start_simulation(&mut self,) { + self.physical_bones_start_simulation_ex() . done() + } + #[inline] + pub fn physical_bones_start_simulation_ex < 'a > (&'a mut self,) -> ExPhysicalBonesStartSimulation < 'a > { + ExPhysicalBonesStartSimulation::new(self,) + } + pub fn physical_bones_add_collision_exception(&mut self, exception: Rid,) { + type CallSig = ((), Rid); + let args = (exception,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6114usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBoneSimulator3D", "physical_bones_add_collision_exception", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn physical_bones_remove_collision_exception(&mut self, exception: Rid,) { + type CallSig = ((), Rid); + let args = (exception,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6115usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalBoneSimulator3D", "physical_bones_remove_collision_exception", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicalBoneSimulator3D { + type Base = crate::classes::SkeletonModifier3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicalBoneSimulator3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicalBoneSimulator3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::SkeletonModifier3D > for PhysicalBoneSimulator3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for PhysicalBoneSimulator3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PhysicalBoneSimulator3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicalBoneSimulator3D { + + } + impl crate::obj::cap::GodotDefault for PhysicalBoneSimulator3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicalBoneSimulator3D { + type Target = crate::classes::SkeletonModifier3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicalBoneSimulator3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicalBoneSimulator3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicalBoneSimulator3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicalBoneSimulator3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::SkeletonModifier3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicalBoneSimulator3D::physical_bones_start_simulation_ex`][super::PhysicalBoneSimulator3D::physical_bones_start_simulation_ex]."] +#[must_use] +pub struct ExPhysicalBonesStartSimulation < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicalBoneSimulator3D, bones: CowArg < 'a, Array < StringName > >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPhysicalBonesStartSimulation < 'a > { + fn new(surround_object: &'a mut re_export::PhysicalBoneSimulator3D,) -> Self { + let bones = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, bones: CowArg::Owned(bones), + } + } + #[inline] + pub fn bones(self, bones: &'a Array < StringName >) -> Self { + Self { + bones: CowArg::Borrowed(bones), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, bones, + } + = self; + re_export::PhysicalBoneSimulator3D::physical_bones_start_simulation_full(surround_object, bones.cow_as_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_sky_material.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_sky_material.rs new file mode 100644 index 0000000..38cd09f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physical_sky_material.rs @@ -0,0 +1,392 @@ +#![doc = "Sidecar module for class [`PhysicalSkyMaterial`][crate::classes::PhysicalSkyMaterial].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicalSkyMaterial` enums](https://docs.godotengine.org/en/stable/classes/class_physicalskymaterial.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicalSkyMaterial.`\n\nInherits [`Material`][crate::classes::Material].\n\nRelated symbols:\n\n* [`IPhysicalSkyMaterial`][crate::classes::IPhysicalSkyMaterial]: virtual methods\n\n\nSee also [Godot docs for `PhysicalSkyMaterial`](https://docs.godotengine.org/en/stable/classes/class_physicalskymaterial.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicalSkyMaterial::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicalSkyMaterial { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicalSkyMaterial`][crate::classes::PhysicalSkyMaterial].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicalSkyMaterial` methods](https://docs.godotengine.org/en/stable/classes/class_physicalskymaterial.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicalSkyMaterial: crate::obj::GodotClass < Base = PhysicalSkyMaterial > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_shader_rid(&self,) -> Rid; + fn get_shader_mode(&self,) -> crate::classes::shader::Mode; + fn can_do_next_pass(&self,) -> bool { + unimplemented !() + } + fn can_use_render_priority(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PhysicalSkyMaterial { + pub fn set_rayleigh_coefficient(&mut self, rayleigh: f32,) { + type CallSig = ((), f32); + let args = (rayleigh,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6116usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "set_rayleigh_coefficient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rayleigh_coefficient(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6117usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "get_rayleigh_coefficient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rayleigh_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6118usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "set_rayleigh_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rayleigh_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6119usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "get_rayleigh_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mie_coefficient(&mut self, mie: f32,) { + type CallSig = ((), f32); + let args = (mie,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6120usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "set_mie_coefficient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mie_coefficient(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6121usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "get_mie_coefficient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mie_eccentricity(&mut self, eccentricity: f32,) { + type CallSig = ((), f32); + let args = (eccentricity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6122usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "set_mie_eccentricity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mie_eccentricity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6123usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "get_mie_eccentricity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mie_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6124usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "set_mie_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mie_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6125usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "get_mie_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_turbidity(&mut self, turbidity: f32,) { + type CallSig = ((), f32); + let args = (turbidity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6126usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "set_turbidity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_turbidity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6127usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "get_turbidity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sun_disk_scale(&mut self, scale: f32,) { + type CallSig = ((), f32); + let args = (scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6128usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "set_sun_disk_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sun_disk_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6129usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "get_sun_disk_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ground_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6130usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "set_ground_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ground_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6131usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "get_ground_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_energy_multiplier(&mut self, multiplier: f32,) { + type CallSig = ((), f32); + let args = (multiplier,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6132usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "set_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_energy_multiplier(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6133usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "get_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_debanding(&mut self, use_debanding: bool,) { + type CallSig = ((), bool); + let args = (use_debanding,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6134usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "set_use_debanding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_debanding(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6135usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "get_use_debanding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_night_sky(&mut self, night_sky: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (night_sky.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6136usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "set_night_sky", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_night_sky(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6137usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicalSkyMaterial", "get_night_sky", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicalSkyMaterial { + type Base = crate::classes::Material; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicalSkyMaterial")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicalSkyMaterial { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Material > for PhysicalSkyMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PhysicalSkyMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicalSkyMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicalSkyMaterial { + + } + impl crate::obj::cap::GodotDefault for PhysicalSkyMaterial { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicalSkyMaterial { + type Target = crate::classes::Material; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicalSkyMaterial { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicalSkyMaterial`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicalSkyMaterial { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicalSkyMaterial > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Material > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_body_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_body_2d.rs new file mode 100644 index 0000000..1244c1a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_body_2d.rs @@ -0,0 +1,404 @@ +#![doc = "Sidecar module for class [`PhysicsBody2D`][crate::classes::PhysicsBody2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsBody2D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsbody2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsBody2D.`\n\nInherits [`CollisionObject2D`][crate::classes::CollisionObject2D].\n\nRelated symbols:\n\n* [`physics_body_2d`][crate::classes::physics_body_2d]: sidecar module with related enum/flag types\n* [`IPhysicsBody2D`][crate::classes::IPhysicsBody2D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsBody2D`](https://docs.godotengine.org/en/stable/classes/class_physicsbody2d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsBody2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsBody2D`][crate::classes::PhysicsBody2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsBody2D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsbody2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsBody2D: crate::obj::GodotClass < Base = PhysicsBody2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn input_event(&mut self, viewport: Gd < crate::classes::Viewport >, event: Gd < crate::classes::InputEvent >, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn mouse_shape_enter(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn mouse_shape_exit(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PhysicsBody2D { + pub(crate) fn move_and_collide_full(&mut self, motion: Vector2, test_only: bool, safe_margin: f32, recovery_as_collision: bool,) -> Option < Gd < crate::classes::KinematicCollision2D > > { + type CallSig = (Option < Gd < crate::classes::KinematicCollision2D > >, Vector2, bool, f32, bool); + let args = (motion, test_only, safe_margin, recovery_as_collision,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6138usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody2D", "move_and_collide", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::move_and_collide_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn move_and_collide(&mut self, motion: Vector2,) -> Option < Gd < crate::classes::KinematicCollision2D > > { + self.move_and_collide_ex(motion,) . done() + } + #[inline] + pub fn move_and_collide_ex < 'a > (&'a mut self, motion: Vector2,) -> ExMoveAndCollide < 'a > { + ExMoveAndCollide::new(self, motion,) + } + pub(crate) fn test_move_full(&mut self, from: Transform2D, motion: Vector2, collision: ObjectArg < crate::classes::KinematicCollision2D >, safe_margin: f32, recovery_as_collision: bool,) -> bool { + type CallSig = (bool, Transform2D, Vector2, ObjectArg < crate::classes::KinematicCollision2D >, f32, bool); + let args = (from, motion, collision, safe_margin, recovery_as_collision,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6139usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody2D", "test_move", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::test_move_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn test_move(&mut self, from: Transform2D, motion: Vector2,) -> bool { + self.test_move_ex(from, motion,) . done() + } + #[inline] + pub fn test_move_ex < 'a > (&'a mut self, from: Transform2D, motion: Vector2,) -> ExTestMove < 'a > { + ExTestMove::new(self, from, motion,) + } + pub fn get_gravity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6140usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody2D", "get_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_exceptions(&mut self,) -> Array < Gd < crate::classes::PhysicsBody2D > > { + type CallSig = (Array < Gd < crate::classes::PhysicsBody2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6141usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody2D", "get_collision_exceptions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_collision_exception_with(&mut self, body: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (body.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6142usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody2D", "add_collision_exception_with", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_collision_exception_with(&mut self, body: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (body.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6143usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody2D", "remove_collision_exception_with", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsBody2D { + type Base = crate::classes::CollisionObject2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsBody2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsBody2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject2D > for PhysicsBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for PhysicsBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for PhysicsBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PhysicsBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsBody2D { + + } + impl std::ops::Deref for PhysicsBody2D { + type Target = crate::classes::CollisionObject2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsBody2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsBody2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsBody2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsBody2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicsBody2D::move_and_collide_ex`][super::PhysicsBody2D::move_and_collide_ex]."] +#[must_use] +pub struct ExMoveAndCollide < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsBody2D, motion: Vector2, test_only: bool, safe_margin: f32, recovery_as_collision: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExMoveAndCollide < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsBody2D, motion: Vector2,) -> Self { + let test_only = false; + let safe_margin = 0.08f32; + let recovery_as_collision = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, motion: motion, test_only: test_only, safe_margin: safe_margin, recovery_as_collision: recovery_as_collision, + } + } + #[inline] + pub fn test_only(self, test_only: bool) -> Self { + Self { + test_only: test_only, .. self + } + } + #[inline] + pub fn safe_margin(self, safe_margin: f32) -> Self { + Self { + safe_margin: safe_margin, .. self + } + } + #[inline] + pub fn recovery_as_collision(self, recovery_as_collision: bool) -> Self { + Self { + recovery_as_collision: recovery_as_collision, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::KinematicCollision2D > > { + let Self { + _phantom, surround_object, motion, test_only, safe_margin, recovery_as_collision, + } + = self; + re_export::PhysicsBody2D::move_and_collide_full(surround_object, motion, test_only, safe_margin, recovery_as_collision,) + } +} +#[doc = "Default-param extender for [`PhysicsBody2D::test_move_ex`][super::PhysicsBody2D::test_move_ex]."] +#[must_use] +pub struct ExTestMove < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsBody2D, from: Transform2D, motion: Vector2, collision: ObjectCow < crate::classes::KinematicCollision2D >, safe_margin: f32, recovery_as_collision: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTestMove < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsBody2D, from: Transform2D, motion: Vector2,) -> Self { + let collision = Gd::null_arg(); + let safe_margin = 0.08f32; + let recovery_as_collision = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from: from, motion: motion, collision: collision.consume_arg(), safe_margin: safe_margin, recovery_as_collision: recovery_as_collision, + } + } + #[inline] + pub fn collision(self, collision: impl AsObjectArg < crate::classes::KinematicCollision2D >) -> Self { + Self { + collision: collision.consume_arg(), .. self + } + } + #[inline] + pub fn safe_margin(self, safe_margin: f32) -> Self { + Self { + safe_margin: safe_margin, .. self + } + } + #[inline] + pub fn recovery_as_collision(self, recovery_as_collision: bool) -> Self { + Self { + recovery_as_collision: recovery_as_collision, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, from, motion, collision, safe_margin, recovery_as_collision, + } + = self; + re_export::PhysicsBody2D::test_move_full(surround_object, from, motion, collision.cow_as_object_arg(), safe_margin, recovery_as_collision,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_body_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_body_3d.rs new file mode 100644 index 0000000..b29ce3d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_body_3d.rs @@ -0,0 +1,419 @@ +#![doc = "Sidecar module for class [`PhysicsBody3D`][crate::classes::PhysicsBody3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsBody3D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsbody3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsBody3D.`\n\nInherits [`CollisionObject3D`][crate::classes::CollisionObject3D].\n\nRelated symbols:\n\n* [`physics_body_3d`][crate::classes::physics_body_3d]: sidecar module with related enum/flag types\n* [`IPhysicsBody3D`][crate::classes::IPhysicsBody3D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsBody3D`](https://docs.godotengine.org/en/stable/classes/class_physicsbody3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsBody3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsBody3D`][crate::classes::PhysicsBody3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsBody3D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsbody3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsBody3D: crate::obj::GodotClass < Base = PhysicsBody3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn input_event(&mut self, camera: Option < Gd < crate::classes::Camera3D > >, event: Option < Gd < crate::classes::InputEvent > >, event_position: Vector3, normal: Vector3, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PhysicsBody3D { + pub(crate) fn move_and_collide_full(&mut self, motion: Vector3, test_only: bool, safe_margin: f32, recovery_as_collision: bool, max_collisions: i32,) -> Option < Gd < crate::classes::KinematicCollision3D > > { + type CallSig = (Option < Gd < crate::classes::KinematicCollision3D > >, Vector3, bool, f32, bool, i32); + let args = (motion, test_only, safe_margin, recovery_as_collision, max_collisions,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6144usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody3D", "move_and_collide", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::move_and_collide_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn move_and_collide(&mut self, motion: Vector3,) -> Option < Gd < crate::classes::KinematicCollision3D > > { + self.move_and_collide_ex(motion,) . done() + } + #[inline] + pub fn move_and_collide_ex < 'a > (&'a mut self, motion: Vector3,) -> ExMoveAndCollide < 'a > { + ExMoveAndCollide::new(self, motion,) + } + pub(crate) fn test_move_full(&mut self, from: Transform3D, motion: Vector3, collision: ObjectArg < crate::classes::KinematicCollision3D >, safe_margin: f32, recovery_as_collision: bool, max_collisions: i32,) -> bool { + type CallSig = (bool, Transform3D, Vector3, ObjectArg < crate::classes::KinematicCollision3D >, f32, bool, i32); + let args = (from, motion, collision, safe_margin, recovery_as_collision, max_collisions,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6145usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody3D", "test_move", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::test_move_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn test_move(&mut self, from: Transform3D, motion: Vector3,) -> bool { + self.test_move_ex(from, motion,) . done() + } + #[inline] + pub fn test_move_ex < 'a > (&'a mut self, from: Transform3D, motion: Vector3,) -> ExTestMove < 'a > { + ExTestMove::new(self, from, motion,) + } + pub fn get_gravity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6146usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody3D", "get_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_axis_lock(&mut self, axis: crate::classes::physics_server_3d::BodyAxis, lock: bool,) { + type CallSig = ((), crate::classes::physics_server_3d::BodyAxis, bool); + let args = (axis, lock,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6147usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody3D", "set_axis_lock", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_axis_lock(&self, axis: crate::classes::physics_server_3d::BodyAxis,) -> bool { + type CallSig = (bool, crate::classes::physics_server_3d::BodyAxis); + let args = (axis,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6148usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody3D", "get_axis_lock", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_exceptions(&mut self,) -> Array < Gd < crate::classes::PhysicsBody3D > > { + type CallSig = (Array < Gd < crate::classes::PhysicsBody3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6149usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody3D", "get_collision_exceptions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_collision_exception_with(&mut self, body: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (body.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6150usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody3D", "add_collision_exception_with", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_collision_exception_with(&mut self, body: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (body.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6151usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsBody3D", "remove_collision_exception_with", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsBody3D { + type Base = crate::classes::CollisionObject3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsBody3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsBody3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject3D > for PhysicsBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for PhysicsBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PhysicsBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsBody3D { + + } + impl std::ops::Deref for PhysicsBody3D { + type Target = crate::classes::CollisionObject3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsBody3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsBody3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsBody3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsBody3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicsBody3D::move_and_collide_ex`][super::PhysicsBody3D::move_and_collide_ex]."] +#[must_use] +pub struct ExMoveAndCollide < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsBody3D, motion: Vector3, test_only: bool, safe_margin: f32, recovery_as_collision: bool, max_collisions: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExMoveAndCollide < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsBody3D, motion: Vector3,) -> Self { + let test_only = false; + let safe_margin = 0.001f32; + let recovery_as_collision = false; + let max_collisions = 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, motion: motion, test_only: test_only, safe_margin: safe_margin, recovery_as_collision: recovery_as_collision, max_collisions: max_collisions, + } + } + #[inline] + pub fn test_only(self, test_only: bool) -> Self { + Self { + test_only: test_only, .. self + } + } + #[inline] + pub fn safe_margin(self, safe_margin: f32) -> Self { + Self { + safe_margin: safe_margin, .. self + } + } + #[inline] + pub fn recovery_as_collision(self, recovery_as_collision: bool) -> Self { + Self { + recovery_as_collision: recovery_as_collision, .. self + } + } + #[inline] + pub fn max_collisions(self, max_collisions: i32) -> Self { + Self { + max_collisions: max_collisions, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::KinematicCollision3D > > { + let Self { + _phantom, surround_object, motion, test_only, safe_margin, recovery_as_collision, max_collisions, + } + = self; + re_export::PhysicsBody3D::move_and_collide_full(surround_object, motion, test_only, safe_margin, recovery_as_collision, max_collisions,) + } +} +#[doc = "Default-param extender for [`PhysicsBody3D::test_move_ex`][super::PhysicsBody3D::test_move_ex]."] +#[must_use] +pub struct ExTestMove < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsBody3D, from: Transform3D, motion: Vector3, collision: ObjectCow < crate::classes::KinematicCollision3D >, safe_margin: f32, recovery_as_collision: bool, max_collisions: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTestMove < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsBody3D, from: Transform3D, motion: Vector3,) -> Self { + let collision = Gd::null_arg(); + let safe_margin = 0.001f32; + let recovery_as_collision = false; + let max_collisions = 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from: from, motion: motion, collision: collision.consume_arg(), safe_margin: safe_margin, recovery_as_collision: recovery_as_collision, max_collisions: max_collisions, + } + } + #[inline] + pub fn collision(self, collision: impl AsObjectArg < crate::classes::KinematicCollision3D >) -> Self { + Self { + collision: collision.consume_arg(), .. self + } + } + #[inline] + pub fn safe_margin(self, safe_margin: f32) -> Self { + Self { + safe_margin: safe_margin, .. self + } + } + #[inline] + pub fn recovery_as_collision(self, recovery_as_collision: bool) -> Self { + Self { + recovery_as_collision: recovery_as_collision, .. self + } + } + #[inline] + pub fn max_collisions(self, max_collisions: i32) -> Self { + Self { + max_collisions: max_collisions, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, from, motion, collision, safe_margin, recovery_as_collision, max_collisions, + } + = self; + re_export::PhysicsBody3D::test_move_full(surround_object, from, motion, collision.cow_as_object_arg(), safe_margin, recovery_as_collision, max_collisions,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_2d.rs new file mode 100644 index 0000000..c330a21 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_2d.rs @@ -0,0 +1,719 @@ +#![doc = "Sidecar module for class [`PhysicsDirectBodyState2D`][crate::classes::PhysicsDirectBodyState2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsDirectBodyState2D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsDirectBodyState2D.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`physics_direct_body_state_2d`][crate::classes::physics_direct_body_state_2d]: sidecar module with related enum/flag types\n* [`IPhysicsDirectBodyState2D`][crate::classes::IPhysicsDirectBodyState2D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsDirectBodyState2D`](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate2d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsDirectBodyState2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsDirectBodyState2D`][crate::classes::PhysicsDirectBodyState2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsDirectBodyState2D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsDirectBodyState2D: crate::obj::GodotClass < Base = PhysicsDirectBodyState2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsDirectBodyState2D { + pub fn get_total_gravity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(101usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_total_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_total_linear_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(102usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_total_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_total_angular_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(103usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_total_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_of_mass(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(104usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_center_of_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_of_mass_local(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(105usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_center_of_mass_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inverse_mass(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(106usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_inverse_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inverse_inertia(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(107usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_inverse_inertia", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_velocity(&mut self, velocity: Vector2,) { + type CallSig = ((), Vector2); + let args = (velocity,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(108usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "set_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_velocity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(109usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_velocity(&mut self, velocity: f32,) { + type CallSig = ((), f32); + let args = (velocity,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(110usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "set_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_velocity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(111usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transform(&mut self, transform: Transform2D,) { + type CallSig = ((), Transform2D); + let args = (transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(112usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transform(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(113usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_velocity_at_local_position(&self, local_position: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (local_position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(114usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_velocity_at_local_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn apply_central_impulse(&mut self, impulse: Vector2,) { + type CallSig = ((), Vector2); + let args = (impulse,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(115usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "apply_central_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn apply_torque_impulse(&mut self, impulse: f32,) { + type CallSig = ((), f32); + let args = (impulse,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(116usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "apply_torque_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn apply_impulse_full(&mut self, impulse: Vector2, position: Vector2,) { + type CallSig = ((), Vector2, Vector2); + let args = (impulse, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(117usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "apply_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_impulse_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_impulse(&mut self, impulse: Vector2,) { + self.apply_impulse_ex(impulse,) . done() + } + #[inline] + pub fn apply_impulse_ex < 'a > (&'a mut self, impulse: Vector2,) -> ExApplyImpulse < 'a > { + ExApplyImpulse::new(self, impulse,) + } + pub(crate) fn apply_central_force_full(&mut self, force: Vector2,) { + type CallSig = ((), Vector2); + let args = (force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(118usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "apply_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_central_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_central_force(&mut self,) { + self.apply_central_force_ex() . done() + } + #[inline] + pub fn apply_central_force_ex < 'a > (&'a mut self,) -> ExApplyCentralForce < 'a > { + ExApplyCentralForce::new(self,) + } + pub(crate) fn apply_force_full(&mut self, force: Vector2, position: Vector2,) { + type CallSig = ((), Vector2, Vector2); + let args = (force, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(119usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "apply_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_force(&mut self, force: Vector2,) { + self.apply_force_ex(force,) . done() + } + #[inline] + pub fn apply_force_ex < 'a > (&'a mut self, force: Vector2,) -> ExApplyForce < 'a > { + ExApplyForce::new(self, force,) + } + pub fn apply_torque(&mut self, torque: f32,) { + type CallSig = ((), f32); + let args = (torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(120usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "apply_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_constant_central_force_full(&mut self, force: Vector2,) { + type CallSig = ((), Vector2); + let args = (force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(121usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "add_constant_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_constant_central_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_constant_central_force(&mut self,) { + self.add_constant_central_force_ex() . done() + } + #[inline] + pub fn add_constant_central_force_ex < 'a > (&'a mut self,) -> ExAddConstantCentralForce < 'a > { + ExAddConstantCentralForce::new(self,) + } + pub(crate) fn add_constant_force_full(&mut self, force: Vector2, position: Vector2,) { + type CallSig = ((), Vector2, Vector2); + let args = (force, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(122usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "add_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_constant_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_constant_force(&mut self, force: Vector2,) { + self.add_constant_force_ex(force,) . done() + } + #[inline] + pub fn add_constant_force_ex < 'a > (&'a mut self, force: Vector2,) -> ExAddConstantForce < 'a > { + ExAddConstantForce::new(self, force,) + } + pub fn add_constant_torque(&mut self, torque: f32,) { + type CallSig = ((), f32); + let args = (torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(123usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "add_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_constant_force(&mut self, force: Vector2,) { + type CallSig = ((), Vector2); + let args = (force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(124usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "set_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_constant_force(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(125usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_constant_torque(&mut self, torque: f32,) { + type CallSig = ((), f32); + let args = (torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(126usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "set_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_constant_torque(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(127usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sleep_state(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(128usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "set_sleep_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_sleeping(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(129usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "is_sleeping", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(130usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_local_position(&self, contact_idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(131usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_local_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_local_normal(&self, contact_idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(132usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_local_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_local_shape(&self, contact_idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(133usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_local_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_local_velocity_at_position(&self, contact_idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(134usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_local_velocity_at_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider(&self, contact_idx: i32,) -> Rid { + type CallSig = (Rid, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(135usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_collider", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider_position(&self, contact_idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(136usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_collider_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider_id(&self, contact_idx: i32,) -> u64 { + type CallSig = (u64, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(137usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_collider_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider_object(&self, contact_idx: i32,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(138usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_collider_object", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider_shape(&self, contact_idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(139usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_collider_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider_velocity_at_position(&self, contact_idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(140usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_collider_velocity_at_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_impulse(&self, contact_idx: i32,) -> Vector2 { + type CallSig = (Vector2, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(141usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_contact_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_step(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(142usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_step", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn integrate_forces(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(143usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "integrate_forces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_space_state(&mut self,) -> Option < Gd < crate::classes::PhysicsDirectSpaceState2D > > { + type CallSig = (Option < Gd < crate::classes::PhysicsDirectSpaceState2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(144usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState2D", "get_space_state", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsDirectBodyState2D { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsDirectBodyState2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsDirectBodyState2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsDirectBodyState2D { + + } + impl std::ops::Deref for PhysicsDirectBodyState2D { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsDirectBodyState2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsDirectBodyState2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsDirectBodyState2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectBodyState2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicsDirectBodyState2D::apply_impulse_ex`][super::PhysicsDirectBodyState2D::apply_impulse_ex]."] +#[must_use] +pub struct ExApplyImpulse < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectBodyState2D, impulse: Vector2, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyImpulse < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectBodyState2D, impulse: Vector2,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, impulse: impulse, position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, impulse, position, + } + = self; + re_export::PhysicsDirectBodyState2D::apply_impulse_full(surround_object, impulse, position,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectBodyState2D::apply_central_force_ex`][super::PhysicsDirectBodyState2D::apply_central_force_ex]."] +#[must_use] +pub struct ExApplyCentralForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectBodyState2D, force: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyCentralForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectBodyState2D,) -> Self { + let force = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, + } + } + #[inline] + pub fn force(self, force: Vector2) -> Self { + Self { + force: force, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, + } + = self; + re_export::PhysicsDirectBodyState2D::apply_central_force_full(surround_object, force,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectBodyState2D::apply_force_ex`][super::PhysicsDirectBodyState2D::apply_force_ex]."] +#[must_use] +pub struct ExApplyForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectBodyState2D, force: Vector2, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectBodyState2D, force: Vector2,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, position, + } + = self; + re_export::PhysicsDirectBodyState2D::apply_force_full(surround_object, force, position,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectBodyState2D::add_constant_central_force_ex`][super::PhysicsDirectBodyState2D::add_constant_central_force_ex]."] +#[must_use] +pub struct ExAddConstantCentralForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectBodyState2D, force: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddConstantCentralForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectBodyState2D,) -> Self { + let force = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, + } + } + #[inline] + pub fn force(self, force: Vector2) -> Self { + Self { + force: force, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, + } + = self; + re_export::PhysicsDirectBodyState2D::add_constant_central_force_full(surround_object, force,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectBodyState2D::add_constant_force_ex`][super::PhysicsDirectBodyState2D::add_constant_force_ex]."] +#[must_use] +pub struct ExAddConstantForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectBodyState2D, force: Vector2, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddConstantForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectBodyState2D, force: Vector2,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, position, + } + = self; + re_export::PhysicsDirectBodyState2D::add_constant_force_full(surround_object, force, position,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_2d_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_2d_extension.rs new file mode 100644 index 0000000..910fe40 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_2d_extension.rs @@ -0,0 +1,238 @@ +#![doc = "Sidecar module for class [`PhysicsDirectBodyState2DExtension`][crate::classes::PhysicsDirectBodyState2DExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsDirectBodyState2DExtension` enums](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate2dextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsDirectBodyState2DExtension.`\n\nInherits [`PhysicsDirectBodyState2D`][crate::classes::PhysicsDirectBodyState2D].\n\nRelated symbols:\n\n* [`IPhysicsDirectBodyState2DExtension`][crate::classes::IPhysicsDirectBodyState2DExtension]: virtual methods\n\n\nSee also [Godot docs for `PhysicsDirectBodyState2DExtension`](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate2dextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PhysicsDirectBodyState2DExtension::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsDirectBodyState2DExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsDirectBodyState2DExtension`][crate::classes::PhysicsDirectBodyState2DExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsDirectBodyState2DExtension` methods](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate2dextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsDirectBodyState2DExtension: crate::obj::GodotClass < Base = PhysicsDirectBodyState2DExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_total_gravity(&self,) -> Vector2; + fn get_total_linear_damp(&self,) -> f32; + fn get_total_angular_damp(&self,) -> f32; + fn get_center_of_mass(&self,) -> Vector2; + fn get_center_of_mass_local(&self,) -> Vector2; + fn get_inverse_mass(&self,) -> f32; + fn get_inverse_inertia(&self,) -> f32; + fn set_linear_velocity(&mut self, velocity: Vector2,); + fn get_linear_velocity(&self,) -> Vector2; + fn set_angular_velocity(&mut self, velocity: f32,); + fn get_angular_velocity(&self,) -> f32; + fn set_transform(&mut self, transform: Transform2D,); + fn get_transform(&self,) -> Transform2D; + fn get_velocity_at_local_position(&self, local_position: Vector2,) -> Vector2; + fn apply_central_impulse(&mut self, impulse: Vector2,); + fn apply_impulse(&mut self, impulse: Vector2, position: Vector2,); + fn apply_torque_impulse(&mut self, impulse: f32,); + fn apply_central_force(&mut self, force: Vector2,); + fn apply_force(&mut self, force: Vector2, position: Vector2,); + fn apply_torque(&mut self, torque: f32,); + fn add_constant_central_force(&mut self, force: Vector2,); + fn add_constant_force(&mut self, force: Vector2, position: Vector2,); + fn add_constant_torque(&mut self, torque: f32,); + fn set_constant_force(&mut self, force: Vector2,); + fn get_constant_force(&self,) -> Vector2; + fn set_constant_torque(&mut self, torque: f32,); + fn get_constant_torque(&self,) -> f32; + fn set_sleep_state(&mut self, enabled: bool,); + fn is_sleeping(&self,) -> bool; + fn get_contact_count(&self,) -> i32; + fn get_contact_local_position(&self, contact_idx: i32,) -> Vector2; + fn get_contact_local_normal(&self, contact_idx: i32,) -> Vector2; + fn get_contact_local_shape(&self, contact_idx: i32,) -> i32; + fn get_contact_local_velocity_at_position(&self, contact_idx: i32,) -> Vector2; + fn get_contact_collider(&self, contact_idx: i32,) -> Rid; + fn get_contact_collider_position(&self, contact_idx: i32,) -> Vector2; + fn get_contact_collider_id(&self, contact_idx: i32,) -> u64; + fn get_contact_collider_object(&self, contact_idx: i32,) -> Option < Gd < crate::classes::Object > >; + fn get_contact_collider_shape(&self, contact_idx: i32,) -> i32; + fn get_contact_collider_velocity_at_position(&self, contact_idx: i32,) -> Vector2; + fn get_contact_impulse(&self, contact_idx: i32,) -> Vector2; + fn get_step(&self,) -> f32; + fn integrate_forces(&mut self,); + fn get_space_state(&mut self,) -> Option < Gd < crate::classes::PhysicsDirectSpaceState2D > >; + + } + impl PhysicsDirectBodyState2DExtension { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsDirectBodyState2DExtension { + type Base = crate::classes::PhysicsDirectBodyState2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsDirectBodyState2DExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsDirectBodyState2DExtension { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsDirectBodyState2D > for PhysicsDirectBodyState2DExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsDirectBodyState2DExtension { + + } + impl crate::obj::cap::GodotDefault for PhysicsDirectBodyState2DExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsDirectBodyState2DExtension { + type Target = crate::classes::PhysicsDirectBodyState2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsDirectBodyState2DExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsDirectBodyState2DExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsDirectBodyState2DExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectBodyState2DExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectBodyState2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_3d.rs new file mode 100644 index 0000000..0692442 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_3d.rs @@ -0,0 +1,772 @@ +#![doc = "Sidecar module for class [`PhysicsDirectBodyState3D`][crate::classes::PhysicsDirectBodyState3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsDirectBodyState3D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsDirectBodyState3D.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`physics_direct_body_state_3d`][crate::classes::physics_direct_body_state_3d]: sidecar module with related enum/flag types\n* [`IPhysicsDirectBodyState3D`][crate::classes::IPhysicsDirectBodyState3D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsDirectBodyState3D`](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsDirectBodyState3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsDirectBodyState3D`][crate::classes::PhysicsDirectBodyState3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsDirectBodyState3D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsDirectBodyState3D: crate::obj::GodotClass < Base = PhysicsDirectBodyState3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsDirectBodyState3D { + pub fn get_total_gravity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(145usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_total_gravity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_total_linear_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(146usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_total_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_total_angular_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(147usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_total_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_of_mass(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(148usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_center_of_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_of_mass_local(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(149usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_center_of_mass_local", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_principal_inertia_axes(&self,) -> Basis { + type CallSig = (Basis,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(150usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_principal_inertia_axes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inverse_mass(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(151usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_inverse_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inverse_inertia(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(152usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_inverse_inertia", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inverse_inertia_tensor(&self,) -> Basis { + type CallSig = (Basis,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(153usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_inverse_inertia_tensor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_velocity(&mut self, velocity: Vector3,) { + type CallSig = ((), Vector3); + let args = (velocity,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(154usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "set_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(155usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_velocity(&mut self, velocity: Vector3,) { + type CallSig = ((), Vector3); + let args = (velocity,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(156usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "set_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(157usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transform(&mut self, transform: Transform3D,) { + type CallSig = ((), Transform3D); + let args = (transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(158usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transform(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(159usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_velocity_at_local_position(&self, local_position: Vector3,) -> Vector3 { + type CallSig = (Vector3, Vector3); + let args = (local_position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(160usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_velocity_at_local_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn apply_central_impulse_full(&mut self, impulse: Vector3,) { + type CallSig = ((), Vector3); + let args = (impulse,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(161usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "apply_central_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_central_impulse_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_central_impulse(&mut self,) { + self.apply_central_impulse_ex() . done() + } + #[inline] + pub fn apply_central_impulse_ex < 'a > (&'a mut self,) -> ExApplyCentralImpulse < 'a > { + ExApplyCentralImpulse::new(self,) + } + pub(crate) fn apply_impulse_full(&mut self, impulse: Vector3, position: Vector3,) { + type CallSig = ((), Vector3, Vector3); + let args = (impulse, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(162usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "apply_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_impulse_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_impulse(&mut self, impulse: Vector3,) { + self.apply_impulse_ex(impulse,) . done() + } + #[inline] + pub fn apply_impulse_ex < 'a > (&'a mut self, impulse: Vector3,) -> ExApplyImpulse < 'a > { + ExApplyImpulse::new(self, impulse,) + } + pub fn apply_torque_impulse(&mut self, impulse: Vector3,) { + type CallSig = ((), Vector3); + let args = (impulse,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(163usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "apply_torque_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn apply_central_force_full(&mut self, force: Vector3,) { + type CallSig = ((), Vector3); + let args = (force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(164usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "apply_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_central_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_central_force(&mut self,) { + self.apply_central_force_ex() . done() + } + #[inline] + pub fn apply_central_force_ex < 'a > (&'a mut self,) -> ExApplyCentralForce < 'a > { + ExApplyCentralForce::new(self,) + } + pub(crate) fn apply_force_full(&mut self, force: Vector3, position: Vector3,) { + type CallSig = ((), Vector3, Vector3); + let args = (force, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(165usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "apply_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_force(&mut self, force: Vector3,) { + self.apply_force_ex(force,) . done() + } + #[inline] + pub fn apply_force_ex < 'a > (&'a mut self, force: Vector3,) -> ExApplyForce < 'a > { + ExApplyForce::new(self, force,) + } + pub fn apply_torque(&mut self, torque: Vector3,) { + type CallSig = ((), Vector3); + let args = (torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(166usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "apply_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_constant_central_force_full(&mut self, force: Vector3,) { + type CallSig = ((), Vector3); + let args = (force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(167usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "add_constant_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_constant_central_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_constant_central_force(&mut self,) { + self.add_constant_central_force_ex() . done() + } + #[inline] + pub fn add_constant_central_force_ex < 'a > (&'a mut self,) -> ExAddConstantCentralForce < 'a > { + ExAddConstantCentralForce::new(self,) + } + pub(crate) fn add_constant_force_full(&mut self, force: Vector3, position: Vector3,) { + type CallSig = ((), Vector3, Vector3); + let args = (force, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(168usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "add_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_constant_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_constant_force(&mut self, force: Vector3,) { + self.add_constant_force_ex(force,) . done() + } + #[inline] + pub fn add_constant_force_ex < 'a > (&'a mut self, force: Vector3,) -> ExAddConstantForce < 'a > { + ExAddConstantForce::new(self, force,) + } + pub fn add_constant_torque(&mut self, torque: Vector3,) { + type CallSig = ((), Vector3); + let args = (torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(169usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "add_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_constant_force(&mut self, force: Vector3,) { + type CallSig = ((), Vector3); + let args = (force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(170usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "set_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_constant_force(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(171usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_constant_torque(&mut self, torque: Vector3,) { + type CallSig = ((), Vector3); + let args = (torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(172usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "set_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_constant_torque(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(173usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sleep_state(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(174usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "set_sleep_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_sleeping(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(175usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "is_sleeping", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(176usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_local_position(&self, contact_idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(177usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_local_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_local_normal(&self, contact_idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(178usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_local_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_impulse(&self, contact_idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(179usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_local_shape(&self, contact_idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(180usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_local_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_local_velocity_at_position(&self, contact_idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(181usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_local_velocity_at_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider(&self, contact_idx: i32,) -> Rid { + type CallSig = (Rid, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(182usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_collider", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider_position(&self, contact_idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(183usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_collider_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider_id(&self, contact_idx: i32,) -> u64 { + type CallSig = (u64, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(184usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_collider_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider_object(&self, contact_idx: i32,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(185usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_collider_object", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider_shape(&self, contact_idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(186usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_collider_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_collider_velocity_at_position(&self, contact_idx: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (contact_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(187usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_contact_collider_velocity_at_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_step(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(188usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_step", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn integrate_forces(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(189usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "integrate_forces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_space_state(&mut self,) -> Option < Gd < crate::classes::PhysicsDirectSpaceState3D > > { + type CallSig = (Option < Gd < crate::classes::PhysicsDirectSpaceState3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(190usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectBodyState3D", "get_space_state", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsDirectBodyState3D { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsDirectBodyState3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsDirectBodyState3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsDirectBodyState3D { + + } + impl std::ops::Deref for PhysicsDirectBodyState3D { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsDirectBodyState3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsDirectBodyState3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsDirectBodyState3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectBodyState3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicsDirectBodyState3D::apply_central_impulse_ex`][super::PhysicsDirectBodyState3D::apply_central_impulse_ex]."] +#[must_use] +pub struct ExApplyCentralImpulse < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectBodyState3D, impulse: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyCentralImpulse < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectBodyState3D,) -> Self { + let impulse = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, impulse: impulse, + } + } + #[inline] + pub fn impulse(self, impulse: Vector3) -> Self { + Self { + impulse: impulse, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, impulse, + } + = self; + re_export::PhysicsDirectBodyState3D::apply_central_impulse_full(surround_object, impulse,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectBodyState3D::apply_impulse_ex`][super::PhysicsDirectBodyState3D::apply_impulse_ex]."] +#[must_use] +pub struct ExApplyImpulse < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectBodyState3D, impulse: Vector3, position: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyImpulse < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectBodyState3D, impulse: Vector3,) -> Self { + let position = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, impulse: impulse, position: position, + } + } + #[inline] + pub fn position(self, position: Vector3) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, impulse, position, + } + = self; + re_export::PhysicsDirectBodyState3D::apply_impulse_full(surround_object, impulse, position,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectBodyState3D::apply_central_force_ex`][super::PhysicsDirectBodyState3D::apply_central_force_ex]."] +#[must_use] +pub struct ExApplyCentralForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectBodyState3D, force: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyCentralForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectBodyState3D,) -> Self { + let force = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, + } + } + #[inline] + pub fn force(self, force: Vector3) -> Self { + Self { + force: force, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, + } + = self; + re_export::PhysicsDirectBodyState3D::apply_central_force_full(surround_object, force,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectBodyState3D::apply_force_ex`][super::PhysicsDirectBodyState3D::apply_force_ex]."] +#[must_use] +pub struct ExApplyForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectBodyState3D, force: Vector3, position: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectBodyState3D, force: Vector3,) -> Self { + let position = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector3) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, position, + } + = self; + re_export::PhysicsDirectBodyState3D::apply_force_full(surround_object, force, position,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectBodyState3D::add_constant_central_force_ex`][super::PhysicsDirectBodyState3D::add_constant_central_force_ex]."] +#[must_use] +pub struct ExAddConstantCentralForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectBodyState3D, force: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddConstantCentralForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectBodyState3D,) -> Self { + let force = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, + } + } + #[inline] + pub fn force(self, force: Vector3) -> Self { + Self { + force: force, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, + } + = self; + re_export::PhysicsDirectBodyState3D::add_constant_central_force_full(surround_object, force,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectBodyState3D::add_constant_force_ex`][super::PhysicsDirectBodyState3D::add_constant_force_ex]."] +#[must_use] +pub struct ExAddConstantForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectBodyState3D, force: Vector3, position: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddConstantForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectBodyState3D, force: Vector3,) -> Self { + let position = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector3) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, position, + } + = self; + re_export::PhysicsDirectBodyState3D::add_constant_force_full(surround_object, force, position,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_3d_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_3d_extension.rs new file mode 100644 index 0000000..b54ed19 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_body_state_3d_extension.rs @@ -0,0 +1,240 @@ +#![doc = "Sidecar module for class [`PhysicsDirectBodyState3DExtension`][crate::classes::PhysicsDirectBodyState3DExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsDirectBodyState3DExtension` enums](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate3dextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsDirectBodyState3DExtension.`\n\nInherits [`PhysicsDirectBodyState3D`][crate::classes::PhysicsDirectBodyState3D].\n\nRelated symbols:\n\n* [`IPhysicsDirectBodyState3DExtension`][crate::classes::IPhysicsDirectBodyState3DExtension]: virtual methods\n\n\nSee also [Godot docs for `PhysicsDirectBodyState3DExtension`](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate3dextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PhysicsDirectBodyState3DExtension::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsDirectBodyState3DExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsDirectBodyState3DExtension`][crate::classes::PhysicsDirectBodyState3DExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsDirectBodyState3DExtension` methods](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate3dextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsDirectBodyState3DExtension: crate::obj::GodotClass < Base = PhysicsDirectBodyState3DExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_total_gravity(&self,) -> Vector3; + fn get_total_linear_damp(&self,) -> f32; + fn get_total_angular_damp(&self,) -> f32; + fn get_center_of_mass(&self,) -> Vector3; + fn get_center_of_mass_local(&self,) -> Vector3; + fn get_principal_inertia_axes(&self,) -> Basis; + fn get_inverse_mass(&self,) -> f32; + fn get_inverse_inertia(&self,) -> Vector3; + fn get_inverse_inertia_tensor(&self,) -> Basis; + fn set_linear_velocity(&mut self, velocity: Vector3,); + fn get_linear_velocity(&self,) -> Vector3; + fn set_angular_velocity(&mut self, velocity: Vector3,); + fn get_angular_velocity(&self,) -> Vector3; + fn set_transform(&mut self, transform: Transform3D,); + fn get_transform(&self,) -> Transform3D; + fn get_velocity_at_local_position(&self, local_position: Vector3,) -> Vector3; + fn apply_central_impulse(&mut self, impulse: Vector3,); + fn apply_impulse(&mut self, impulse: Vector3, position: Vector3,); + fn apply_torque_impulse(&mut self, impulse: Vector3,); + fn apply_central_force(&mut self, force: Vector3,); + fn apply_force(&mut self, force: Vector3, position: Vector3,); + fn apply_torque(&mut self, torque: Vector3,); + fn add_constant_central_force(&mut self, force: Vector3,); + fn add_constant_force(&mut self, force: Vector3, position: Vector3,); + fn add_constant_torque(&mut self, torque: Vector3,); + fn set_constant_force(&mut self, force: Vector3,); + fn get_constant_force(&self,) -> Vector3; + fn set_constant_torque(&mut self, torque: Vector3,); + fn get_constant_torque(&self,) -> Vector3; + fn set_sleep_state(&mut self, enabled: bool,); + fn is_sleeping(&self,) -> bool; + fn get_contact_count(&self,) -> i32; + fn get_contact_local_position(&self, contact_idx: i32,) -> Vector3; + fn get_contact_local_normal(&self, contact_idx: i32,) -> Vector3; + fn get_contact_impulse(&self, contact_idx: i32,) -> Vector3; + fn get_contact_local_shape(&self, contact_idx: i32,) -> i32; + fn get_contact_local_velocity_at_position(&self, contact_idx: i32,) -> Vector3; + fn get_contact_collider(&self, contact_idx: i32,) -> Rid; + fn get_contact_collider_position(&self, contact_idx: i32,) -> Vector3; + fn get_contact_collider_id(&self, contact_idx: i32,) -> u64; + fn get_contact_collider_object(&self, contact_idx: i32,) -> Option < Gd < crate::classes::Object > >; + fn get_contact_collider_shape(&self, contact_idx: i32,) -> i32; + fn get_contact_collider_velocity_at_position(&self, contact_idx: i32,) -> Vector3; + fn get_step(&self,) -> f32; + fn integrate_forces(&mut self,); + fn get_space_state(&mut self,) -> Option < Gd < crate::classes::PhysicsDirectSpaceState3D > >; + + } + impl PhysicsDirectBodyState3DExtension { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsDirectBodyState3DExtension { + type Base = crate::classes::PhysicsDirectBodyState3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsDirectBodyState3DExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsDirectBodyState3DExtension { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsDirectBodyState3D > for PhysicsDirectBodyState3DExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsDirectBodyState3DExtension { + + } + impl crate::obj::cap::GodotDefault for PhysicsDirectBodyState3DExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsDirectBodyState3DExtension { + type Target = crate::classes::PhysicsDirectBodyState3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsDirectBodyState3DExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsDirectBodyState3DExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsDirectBodyState3DExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectBodyState3DExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectBodyState3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_2d.rs new file mode 100644 index 0000000..ffc839c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_2d.rs @@ -0,0 +1,341 @@ +#![doc = "Sidecar module for class [`PhysicsDirectSpaceState2D`][crate::classes::PhysicsDirectSpaceState2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsDirectSpaceState2D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsDirectSpaceState2D.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`physics_direct_space_state_2d`][crate::classes::physics_direct_space_state_2d]: sidecar module with related enum/flag types\n* [`IPhysicsDirectSpaceState2D`][crate::classes::IPhysicsDirectSpaceState2D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsDirectSpaceState2D`](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate2d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsDirectSpaceState2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsDirectSpaceState2D`][crate::classes::PhysicsDirectSpaceState2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsDirectSpaceState2D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsDirectSpaceState2D: crate::obj::GodotClass < Base = PhysicsDirectSpaceState2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsDirectSpaceState2D { + pub(crate) fn intersect_point_full(&mut self, parameters: ObjectArg < crate::classes::PhysicsPointQueryParameters2D >, max_results: i32,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >, ObjectArg < crate::classes::PhysicsPointQueryParameters2D >, i32); + let args = (parameters, max_results,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(191usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState2D", "intersect_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::intersect_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn intersect_point(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsPointQueryParameters2D >,) -> Array < Dictionary > { + self.intersect_point_ex(parameters,) . done() + } + #[inline] + pub fn intersect_point_ex < 'a > (&'a mut self, parameters: impl AsObjectArg < crate::classes::PhysicsPointQueryParameters2D >,) -> ExIntersectPoint < 'a > { + ExIntersectPoint::new(self, parameters,) + } + pub fn intersect_ray(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsRayQueryParameters2D >,) -> Dictionary { + type CallSig = (Dictionary, ObjectArg < crate::classes::PhysicsRayQueryParameters2D >); + let args = (parameters.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(192usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState2D", "intersect_ray", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn intersect_shape_full(&mut self, parameters: ObjectArg < crate::classes::PhysicsShapeQueryParameters2D >, max_results: i32,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >, ObjectArg < crate::classes::PhysicsShapeQueryParameters2D >, i32); + let args = (parameters, max_results,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(193usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState2D", "intersect_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::intersect_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn intersect_shape(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters2D >,) -> Array < Dictionary > { + self.intersect_shape_ex(parameters,) . done() + } + #[inline] + pub fn intersect_shape_ex < 'a > (&'a mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters2D >,) -> ExIntersectShape < 'a > { + ExIntersectShape::new(self, parameters,) + } + pub fn cast_motion(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters2D >,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array, ObjectArg < crate::classes::PhysicsShapeQueryParameters2D >); + let args = (parameters.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(194usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState2D", "cast_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn collide_shape_full(&mut self, parameters: ObjectArg < crate::classes::PhysicsShapeQueryParameters2D >, max_results: i32,) -> Array < Vector2 > { + type CallSig = (Array < Vector2 >, ObjectArg < crate::classes::PhysicsShapeQueryParameters2D >, i32); + let args = (parameters, max_results,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(195usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState2D", "collide_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::collide_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn collide_shape(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters2D >,) -> Array < Vector2 > { + self.collide_shape_ex(parameters,) . done() + } + #[inline] + pub fn collide_shape_ex < 'a > (&'a mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters2D >,) -> ExCollideShape < 'a > { + ExCollideShape::new(self, parameters,) + } + pub fn get_rest_info(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters2D >,) -> Dictionary { + type CallSig = (Dictionary, ObjectArg < crate::classes::PhysicsShapeQueryParameters2D >); + let args = (parameters.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(196usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState2D", "get_rest_info", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsDirectSpaceState2D { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsDirectSpaceState2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsDirectSpaceState2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsDirectSpaceState2D { + + } + impl std::ops::Deref for PhysicsDirectSpaceState2D { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsDirectSpaceState2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsDirectSpaceState2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsDirectSpaceState2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectSpaceState2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicsDirectSpaceState2D::intersect_point_ex`][super::PhysicsDirectSpaceState2D::intersect_point_ex]."] +#[must_use] +pub struct ExIntersectPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectSpaceState2D, parameters: ObjectCow < crate::classes::PhysicsPointQueryParameters2D >, max_results: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIntersectPoint < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectSpaceState2D, parameters: impl AsObjectArg < crate::classes::PhysicsPointQueryParameters2D >,) -> Self { + let max_results = 32i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, parameters: parameters.consume_arg(), max_results: max_results, + } + } + #[inline] + pub fn max_results(self, max_results: i32) -> Self { + Self { + max_results: max_results, .. self + } + } + #[inline] + pub fn done(self) -> Array < Dictionary > { + let Self { + _phantom, surround_object, parameters, max_results, + } + = self; + re_export::PhysicsDirectSpaceState2D::intersect_point_full(surround_object, parameters.cow_as_object_arg(), max_results,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectSpaceState2D::intersect_shape_ex`][super::PhysicsDirectSpaceState2D::intersect_shape_ex]."] +#[must_use] +pub struct ExIntersectShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectSpaceState2D, parameters: ObjectCow < crate::classes::PhysicsShapeQueryParameters2D >, max_results: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIntersectShape < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectSpaceState2D, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters2D >,) -> Self { + let max_results = 32i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, parameters: parameters.consume_arg(), max_results: max_results, + } + } + #[inline] + pub fn max_results(self, max_results: i32) -> Self { + Self { + max_results: max_results, .. self + } + } + #[inline] + pub fn done(self) -> Array < Dictionary > { + let Self { + _phantom, surround_object, parameters, max_results, + } + = self; + re_export::PhysicsDirectSpaceState2D::intersect_shape_full(surround_object, parameters.cow_as_object_arg(), max_results,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectSpaceState2D::collide_shape_ex`][super::PhysicsDirectSpaceState2D::collide_shape_ex]."] +#[must_use] +pub struct ExCollideShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectSpaceState2D, parameters: ObjectCow < crate::classes::PhysicsShapeQueryParameters2D >, max_results: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCollideShape < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectSpaceState2D, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters2D >,) -> Self { + let max_results = 32i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, parameters: parameters.consume_arg(), max_results: max_results, + } + } + #[inline] + pub fn max_results(self, max_results: i32) -> Self { + Self { + max_results: max_results, .. self + } + } + #[inline] + pub fn done(self) -> Array < Vector2 > { + let Self { + _phantom, surround_object, parameters, max_results, + } + = self; + re_export::PhysicsDirectSpaceState2D::collide_shape_full(surround_object, parameters.cow_as_object_arg(), max_results,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_2d_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_2d_extension.rs new file mode 100644 index 0000000..e6c03f8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_2d_extension.rs @@ -0,0 +1,232 @@ +#![doc = "Sidecar module for class [`PhysicsDirectSpaceState2DExtension`][crate::classes::PhysicsDirectSpaceState2DExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsDirectSpaceState2DExtension` enums](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate2dextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsDirectSpaceState2DExtension.`\n\nInherits [`PhysicsDirectSpaceState2D`][crate::classes::PhysicsDirectSpaceState2D].\n\nRelated symbols:\n\n* [`IPhysicsDirectSpaceState2DExtension`][crate::classes::IPhysicsDirectSpaceState2DExtension]: virtual methods\n\n\nSee also [Godot docs for `PhysicsDirectSpaceState2DExtension`](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate2dextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PhysicsDirectSpaceState2DExtension::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsDirectSpaceState2DExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsDirectSpaceState2DExtension`][crate::classes::PhysicsDirectSpaceState2DExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsDirectSpaceState2DExtension` methods](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate2dextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsDirectSpaceState2DExtension: crate::obj::GodotClass < Base = PhysicsDirectSpaceState2DExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn intersect_ray(&mut self, from: Vector2, to: Vector2, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, hit_from_inside: bool, result: * mut PhysicsServer2DExtensionRayResult,) -> bool; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn intersect_point(&mut self, position: Vector2, canvas_instance_id: u64, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, results: * mut PhysicsServer2DExtensionShapeResult, max_results: i32,) -> i32; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn intersect_shape(&mut self, shape_rid: Rid, transform: Transform2D, motion: Vector2, margin: f32, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, result: * mut PhysicsServer2DExtensionShapeResult, max_results: i32,) -> i32; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn cast_motion(&mut self, shape_rid: Rid, transform: Transform2D, motion: Vector2, margin: f32, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, closest_safe: * mut f64, closest_unsafe: * mut f64,) -> bool; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn collide_shape(&mut self, shape_rid: Rid, transform: Transform2D, motion: Vector2, margin: f32, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, results: * mut c_void, max_results: i32, result_count: * mut i32,) -> bool; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn rest_info(&mut self, shape_rid: Rid, transform: Transform2D, motion: Vector2, margin: f32, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, rest_info: * mut PhysicsServer2DExtensionShapeRestInfo,) -> bool; + + } + impl PhysicsDirectSpaceState2DExtension { + pub fn is_body_excluded_from_query(&self, body: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(197usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState2DExtension", "is_body_excluded_from_query", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsDirectSpaceState2DExtension { + type Base = crate::classes::PhysicsDirectSpaceState2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsDirectSpaceState2DExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsDirectSpaceState2DExtension { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsDirectSpaceState2D > for PhysicsDirectSpaceState2DExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsDirectSpaceState2DExtension { + + } + impl crate::obj::cap::GodotDefault for PhysicsDirectSpaceState2DExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsDirectSpaceState2DExtension { + type Target = crate::classes::PhysicsDirectSpaceState2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsDirectSpaceState2DExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsDirectSpaceState2DExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsDirectSpaceState2DExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectSpaceState2DExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectSpaceState2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_3d.rs new file mode 100644 index 0000000..c2fb76a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_3d.rs @@ -0,0 +1,341 @@ +#![doc = "Sidecar module for class [`PhysicsDirectSpaceState3D`][crate::classes::PhysicsDirectSpaceState3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsDirectSpaceState3D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsDirectSpaceState3D.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`physics_direct_space_state_3d`][crate::classes::physics_direct_space_state_3d]: sidecar module with related enum/flag types\n* [`IPhysicsDirectSpaceState3D`][crate::classes::IPhysicsDirectSpaceState3D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsDirectSpaceState3D`](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate3d.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsDirectSpaceState3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsDirectSpaceState3D`][crate::classes::PhysicsDirectSpaceState3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsDirectSpaceState3D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsDirectSpaceState3D: crate::obj::GodotClass < Base = PhysicsDirectSpaceState3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsDirectSpaceState3D { + pub(crate) fn intersect_point_full(&mut self, parameters: ObjectArg < crate::classes::PhysicsPointQueryParameters3D >, max_results: i32,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >, ObjectArg < crate::classes::PhysicsPointQueryParameters3D >, i32); + let args = (parameters, max_results,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(198usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState3D", "intersect_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::intersect_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn intersect_point(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsPointQueryParameters3D >,) -> Array < Dictionary > { + self.intersect_point_ex(parameters,) . done() + } + #[inline] + pub fn intersect_point_ex < 'a > (&'a mut self, parameters: impl AsObjectArg < crate::classes::PhysicsPointQueryParameters3D >,) -> ExIntersectPoint < 'a > { + ExIntersectPoint::new(self, parameters,) + } + pub fn intersect_ray(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsRayQueryParameters3D >,) -> Dictionary { + type CallSig = (Dictionary, ObjectArg < crate::classes::PhysicsRayQueryParameters3D >); + let args = (parameters.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(199usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState3D", "intersect_ray", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn intersect_shape_full(&mut self, parameters: ObjectArg < crate::classes::PhysicsShapeQueryParameters3D >, max_results: i32,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >, ObjectArg < crate::classes::PhysicsShapeQueryParameters3D >, i32); + let args = (parameters, max_results,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(200usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState3D", "intersect_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::intersect_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn intersect_shape(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters3D >,) -> Array < Dictionary > { + self.intersect_shape_ex(parameters,) . done() + } + #[inline] + pub fn intersect_shape_ex < 'a > (&'a mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters3D >,) -> ExIntersectShape < 'a > { + ExIntersectShape::new(self, parameters,) + } + pub fn cast_motion(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters3D >,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array, ObjectArg < crate::classes::PhysicsShapeQueryParameters3D >); + let args = (parameters.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(201usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState3D", "cast_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn collide_shape_full(&mut self, parameters: ObjectArg < crate::classes::PhysicsShapeQueryParameters3D >, max_results: i32,) -> Array < Vector3 > { + type CallSig = (Array < Vector3 >, ObjectArg < crate::classes::PhysicsShapeQueryParameters3D >, i32); + let args = (parameters, max_results,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(202usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState3D", "collide_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::collide_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn collide_shape(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters3D >,) -> Array < Vector3 > { + self.collide_shape_ex(parameters,) . done() + } + #[inline] + pub fn collide_shape_ex < 'a > (&'a mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters3D >,) -> ExCollideShape < 'a > { + ExCollideShape::new(self, parameters,) + } + pub fn get_rest_info(&mut self, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters3D >,) -> Dictionary { + type CallSig = (Dictionary, ObjectArg < crate::classes::PhysicsShapeQueryParameters3D >); + let args = (parameters.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(203usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState3D", "get_rest_info", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsDirectSpaceState3D { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsDirectSpaceState3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsDirectSpaceState3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsDirectSpaceState3D { + + } + impl std::ops::Deref for PhysicsDirectSpaceState3D { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsDirectSpaceState3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsDirectSpaceState3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsDirectSpaceState3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectSpaceState3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicsDirectSpaceState3D::intersect_point_ex`][super::PhysicsDirectSpaceState3D::intersect_point_ex]."] +#[must_use] +pub struct ExIntersectPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectSpaceState3D, parameters: ObjectCow < crate::classes::PhysicsPointQueryParameters3D >, max_results: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIntersectPoint < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectSpaceState3D, parameters: impl AsObjectArg < crate::classes::PhysicsPointQueryParameters3D >,) -> Self { + let max_results = 32i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, parameters: parameters.consume_arg(), max_results: max_results, + } + } + #[inline] + pub fn max_results(self, max_results: i32) -> Self { + Self { + max_results: max_results, .. self + } + } + #[inline] + pub fn done(self) -> Array < Dictionary > { + let Self { + _phantom, surround_object, parameters, max_results, + } + = self; + re_export::PhysicsDirectSpaceState3D::intersect_point_full(surround_object, parameters.cow_as_object_arg(), max_results,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectSpaceState3D::intersect_shape_ex`][super::PhysicsDirectSpaceState3D::intersect_shape_ex]."] +#[must_use] +pub struct ExIntersectShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectSpaceState3D, parameters: ObjectCow < crate::classes::PhysicsShapeQueryParameters3D >, max_results: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIntersectShape < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectSpaceState3D, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters3D >,) -> Self { + let max_results = 32i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, parameters: parameters.consume_arg(), max_results: max_results, + } + } + #[inline] + pub fn max_results(self, max_results: i32) -> Self { + Self { + max_results: max_results, .. self + } + } + #[inline] + pub fn done(self) -> Array < Dictionary > { + let Self { + _phantom, surround_object, parameters, max_results, + } + = self; + re_export::PhysicsDirectSpaceState3D::intersect_shape_full(surround_object, parameters.cow_as_object_arg(), max_results,) + } +} +#[doc = "Default-param extender for [`PhysicsDirectSpaceState3D::collide_shape_ex`][super::PhysicsDirectSpaceState3D::collide_shape_ex]."] +#[must_use] +pub struct ExCollideShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsDirectSpaceState3D, parameters: ObjectCow < crate::classes::PhysicsShapeQueryParameters3D >, max_results: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCollideShape < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsDirectSpaceState3D, parameters: impl AsObjectArg < crate::classes::PhysicsShapeQueryParameters3D >,) -> Self { + let max_results = 32i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, parameters: parameters.consume_arg(), max_results: max_results, + } + } + #[inline] + pub fn max_results(self, max_results: i32) -> Self { + Self { + max_results: max_results, .. self + } + } + #[inline] + pub fn done(self) -> Array < Vector3 > { + let Self { + _phantom, surround_object, parameters, max_results, + } + = self; + re_export::PhysicsDirectSpaceState3D::collide_shape_full(surround_object, parameters.cow_as_object_arg(), max_results,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_3d_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_3d_extension.rs new file mode 100644 index 0000000..965cd5b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_direct_space_state_3d_extension.rs @@ -0,0 +1,233 @@ +#![doc = "Sidecar module for class [`PhysicsDirectSpaceState3DExtension`][crate::classes::PhysicsDirectSpaceState3DExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsDirectSpaceState3DExtension` enums](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate3dextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsDirectSpaceState3DExtension.`\n\nInherits [`PhysicsDirectSpaceState3D`][crate::classes::PhysicsDirectSpaceState3D].\n\nRelated symbols:\n\n* [`IPhysicsDirectSpaceState3DExtension`][crate::classes::IPhysicsDirectSpaceState3DExtension]: virtual methods\n\n\nSee also [Godot docs for `PhysicsDirectSpaceState3DExtension`](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate3dextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PhysicsDirectSpaceState3DExtension::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsDirectSpaceState3DExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsDirectSpaceState3DExtension`][crate::classes::PhysicsDirectSpaceState3DExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsDirectSpaceState3DExtension` methods](https://docs.godotengine.org/en/stable/classes/class_physicsdirectspacestate3dextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsDirectSpaceState3DExtension: crate::obj::GodotClass < Base = PhysicsDirectSpaceState3DExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn intersect_ray(&mut self, from: Vector3, to: Vector3, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, hit_from_inside: bool, hit_back_faces: bool, pick_ray: bool, result: * mut PhysicsServer3DExtensionRayResult,) -> bool; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn intersect_point(&mut self, position: Vector3, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, results: * mut PhysicsServer3DExtensionShapeResult, max_results: i32,) -> i32; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn intersect_shape(&mut self, shape_rid: Rid, transform: Transform3D, motion: Vector3, margin: f32, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, result_count: * mut PhysicsServer3DExtensionShapeResult, max_results: i32,) -> i32; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn cast_motion(&mut self, shape_rid: Rid, transform: Transform3D, motion: Vector3, margin: f32, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, closest_safe: * mut f64, closest_unsafe: * mut f64, info: * mut PhysicsServer3DExtensionShapeRestInfo,) -> bool; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn collide_shape(&mut self, shape_rid: Rid, transform: Transform3D, motion: Vector3, margin: f32, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, results: * mut c_void, max_results: i32, result_count: * mut i32,) -> bool; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn rest_info(&mut self, shape_rid: Rid, transform: Transform3D, motion: Vector3, margin: f32, collision_mask: u32, collide_with_bodies: bool, collide_with_areas: bool, rest_info: * mut PhysicsServer3DExtensionShapeRestInfo,) -> bool; + fn get_closest_point_to_object_volume(&self, object: Rid, point: Vector3,) -> Vector3; + + } + impl PhysicsDirectSpaceState3DExtension { + pub fn is_body_excluded_from_query(&self, body: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(204usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsDirectSpaceState3DExtension", "is_body_excluded_from_query", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsDirectSpaceState3DExtension { + type Base = crate::classes::PhysicsDirectSpaceState3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsDirectSpaceState3DExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsDirectSpaceState3DExtension { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsDirectSpaceState3D > for PhysicsDirectSpaceState3DExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsDirectSpaceState3DExtension { + + } + impl crate::obj::cap::GodotDefault for PhysicsDirectSpaceState3DExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsDirectSpaceState3DExtension { + type Target = crate::classes::PhysicsDirectSpaceState3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsDirectSpaceState3DExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsDirectSpaceState3DExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsDirectSpaceState3DExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectSpaceState3DExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsDirectSpaceState3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_material.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_material.rs new file mode 100644 index 0000000..f8772da --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_material.rs @@ -0,0 +1,266 @@ +#![doc = "Sidecar module for class [`PhysicsMaterial`][crate::classes::PhysicsMaterial].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsMaterial` enums](https://docs.godotengine.org/en/stable/classes/class_physicsmaterial.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsMaterial.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IPhysicsMaterial`][crate::classes::IPhysicsMaterial]: virtual methods\n\n\nSee also [Godot docs for `PhysicsMaterial`](https://docs.godotengine.org/en/stable/classes/class_physicsmaterial.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicsMaterial::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsMaterial { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsMaterial`][crate::classes::PhysicsMaterial].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsMaterial` methods](https://docs.godotengine.org/en/stable/classes/class_physicsmaterial.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsMaterial: crate::obj::GodotClass < Base = PhysicsMaterial > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PhysicsMaterial { + pub fn set_friction(&mut self, friction: f32,) { + type CallSig = ((), f32); + let args = (friction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6152usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsMaterial", "set_friction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_friction(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6153usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsMaterial", "get_friction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_rough(&mut self, rough: bool,) { + type CallSig = ((), bool); + let args = (rough,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6154usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsMaterial", "set_rough", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_rough(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6155usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsMaterial", "is_rough", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bounce(&mut self, bounce: f32,) { + type CallSig = ((), f32); + let args = (bounce,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6156usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsMaterial", "set_bounce", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bounce(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6157usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsMaterial", "get_bounce", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_absorbent(&mut self, absorbent: bool,) { + type CallSig = ((), bool); + let args = (absorbent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6158usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsMaterial", "set_absorbent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_absorbent(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6159usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsMaterial", "is_absorbent", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsMaterial { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsMaterial")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsMaterial { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PhysicsMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicsMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsMaterial { + + } + impl crate::obj::cap::GodotDefault for PhysicsMaterial { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsMaterial { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsMaterial { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsMaterial`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsMaterial { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsMaterial > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_point_query_parameters_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_point_query_parameters_2d.rs new file mode 100644 index 0000000..f76c0ef --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_point_query_parameters_2d.rs @@ -0,0 +1,289 @@ +#![doc = "Sidecar module for class [`PhysicsPointQueryParameters2D`][crate::classes::PhysicsPointQueryParameters2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsPointQueryParameters2D` enums](https://docs.godotengine.org/en/stable/classes/class_physicspointqueryparameters2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsPointQueryParameters2D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IPhysicsPointQueryParameters2D`][crate::classes::IPhysicsPointQueryParameters2D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsPointQueryParameters2D`](https://docs.godotengine.org/en/stable/classes/class_physicspointqueryparameters2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicsPointQueryParameters2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsPointQueryParameters2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsPointQueryParameters2D`][crate::classes::PhysicsPointQueryParameters2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsPointQueryParameters2D` methods](https://docs.godotengine.org/en/stable/classes/class_physicspointqueryparameters2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsPointQueryParameters2D: crate::obj::GodotClass < Base = PhysicsPointQueryParameters2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsPointQueryParameters2D { + pub fn set_position(&mut self, position: Vector2,) { + type CallSig = ((), Vector2); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6160usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "set_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6161usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_canvas_instance_id(&mut self, canvas_instance_id: u64,) { + type CallSig = ((), u64); + let args = (canvas_instance_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6162usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "set_canvas_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_canvas_instance_id(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6163usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "get_canvas_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, collision_mask: u32,) { + type CallSig = ((), u32); + let args = (collision_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6164usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6165usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude(&mut self, exclude: &Array < Rid >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Rid > >); + let args = (RefArg::new(exclude),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6166usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "set_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude(&self,) -> Array < Rid > { + type CallSig = (Array < Rid >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6167usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "get_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_bodies(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6168usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "set_collide_with_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_bodies_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6169usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "is_collide_with_bodies_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_areas(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6170usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "set_collide_with_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_areas_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6171usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters2D", "is_collide_with_areas_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsPointQueryParameters2D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsPointQueryParameters2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsPointQueryParameters2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicsPointQueryParameters2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsPointQueryParameters2D { + + } + impl crate::obj::cap::GodotDefault for PhysicsPointQueryParameters2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsPointQueryParameters2D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsPointQueryParameters2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsPointQueryParameters2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsPointQueryParameters2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsPointQueryParameters2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_point_query_parameters_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_point_query_parameters_3d.rs new file mode 100644 index 0000000..8964d44 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_point_query_parameters_3d.rs @@ -0,0 +1,273 @@ +#![doc = "Sidecar module for class [`PhysicsPointQueryParameters3D`][crate::classes::PhysicsPointQueryParameters3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsPointQueryParameters3D` enums](https://docs.godotengine.org/en/stable/classes/class_physicspointqueryparameters3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsPointQueryParameters3D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IPhysicsPointQueryParameters3D`][crate::classes::IPhysicsPointQueryParameters3D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsPointQueryParameters3D`](https://docs.godotengine.org/en/stable/classes/class_physicspointqueryparameters3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicsPointQueryParameters3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsPointQueryParameters3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsPointQueryParameters3D`][crate::classes::PhysicsPointQueryParameters3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsPointQueryParameters3D` methods](https://docs.godotengine.org/en/stable/classes/class_physicspointqueryparameters3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsPointQueryParameters3D: crate::obj::GodotClass < Base = PhysicsPointQueryParameters3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsPointQueryParameters3D { + pub fn set_position(&mut self, position: Vector3,) { + type CallSig = ((), Vector3); + let args = (position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6172usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters3D", "set_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_position(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6173usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters3D", "get_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, collision_mask: u32,) { + type CallSig = ((), u32); + let args = (collision_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6174usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters3D", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6175usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters3D", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude(&mut self, exclude: &Array < Rid >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Rid > >); + let args = (RefArg::new(exclude),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6176usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters3D", "set_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude(&self,) -> Array < Rid > { + type CallSig = (Array < Rid >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6177usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters3D", "get_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_bodies(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6178usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters3D", "set_collide_with_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_bodies_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6179usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters3D", "is_collide_with_bodies_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_areas(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6180usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters3D", "set_collide_with_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_areas_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6181usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsPointQueryParameters3D", "is_collide_with_areas_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsPointQueryParameters3D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsPointQueryParameters3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsPointQueryParameters3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicsPointQueryParameters3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsPointQueryParameters3D { + + } + impl crate::obj::cap::GodotDefault for PhysicsPointQueryParameters3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsPointQueryParameters3D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsPointQueryParameters3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsPointQueryParameters3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsPointQueryParameters3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsPointQueryParameters3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_ray_query_parameters_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_ray_query_parameters_2d.rs new file mode 100644 index 0000000..f4d53aa --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_ray_query_parameters_2d.rs @@ -0,0 +1,357 @@ +#![doc = "Sidecar module for class [`PhysicsRayQueryParameters2D`][crate::classes::PhysicsRayQueryParameters2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsRayQueryParameters2D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsrayqueryparameters2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsRayQueryParameters2D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`physics_ray_query_parameters_2d`][crate::classes::physics_ray_query_parameters_2d]: sidecar module with related enum/flag types\n* [`IPhysicsRayQueryParameters2D`][crate::classes::IPhysicsRayQueryParameters2D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsRayQueryParameters2D`](https://docs.godotengine.org/en/stable/classes/class_physicsrayqueryparameters2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicsRayQueryParameters2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsRayQueryParameters2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsRayQueryParameters2D`][crate::classes::PhysicsRayQueryParameters2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsRayQueryParameters2D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsrayqueryparameters2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsRayQueryParameters2D: crate::obj::GodotClass < Base = PhysicsRayQueryParameters2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsRayQueryParameters2D { + pub(crate) fn create_full(from: Vector2, to: Vector2, collision_mask: u32, exclude: RefArg < Array < Rid > >,) -> Option < Gd < crate::classes::PhysicsRayQueryParameters2D > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::PhysicsRayQueryParameters2D > >, Vector2, Vector2, u32, RefArg < 'a0, Array < Rid > >); + let args = (from, to, collision_mask, exclude,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6182usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "create", std::ptr::null_mut(), None, args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create(from: Vector2, to: Vector2,) -> Option < Gd < crate::classes::PhysicsRayQueryParameters2D > > { + Self::create_ex(from, to,) . done() + } + #[inline] + pub fn create_ex < 'a > (from: Vector2, to: Vector2,) -> ExCreate < 'a > { + ExCreate::new(from, to,) + } + pub fn set_from(&mut self, from: Vector2,) { + type CallSig = ((), Vector2); + let args = (from,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6183usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "set_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_from(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6184usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "get_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_to(&mut self, to: Vector2,) { + type CallSig = ((), Vector2); + let args = (to,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6185usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "set_to", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_to(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6186usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "get_to", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, collision_mask: u32,) { + type CallSig = ((), u32); + let args = (collision_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6187usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6188usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude(&mut self, exclude: &Array < Rid >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Rid > >); + let args = (RefArg::new(exclude),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6189usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "set_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude(&self,) -> Array < Rid > { + type CallSig = (Array < Rid >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6190usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "get_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_bodies(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6191usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "set_collide_with_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_bodies_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6192usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "is_collide_with_bodies_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_areas(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6193usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "set_collide_with_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_areas_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6194usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "is_collide_with_areas_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hit_from_inside(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6195usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "set_hit_from_inside", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hit_from_inside_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6196usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters2D", "is_hit_from_inside_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsRayQueryParameters2D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsRayQueryParameters2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsRayQueryParameters2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicsRayQueryParameters2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsRayQueryParameters2D { + + } + impl crate::obj::cap::GodotDefault for PhysicsRayQueryParameters2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsRayQueryParameters2D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsRayQueryParameters2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsRayQueryParameters2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsRayQueryParameters2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsRayQueryParameters2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicsRayQueryParameters2D::create_ex`][super::PhysicsRayQueryParameters2D::create_ex]."] +#[must_use] +pub struct ExCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, from: Vector2, to: Vector2, collision_mask: u32, exclude: CowArg < 'a, Array < Rid > >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreate < 'a > { + fn new(from: Vector2, to: Vector2,) -> Self { + let collision_mask = 4294967295u32; + let exclude = Array::new(); + Self { + _phantom: std::marker::PhantomData, from: from, to: to, collision_mask: collision_mask, exclude: CowArg::Owned(exclude), + } + } + #[inline] + pub fn collision_mask(self, collision_mask: u32) -> Self { + Self { + collision_mask: collision_mask, .. self + } + } + #[inline] + pub fn exclude(self, exclude: &'a Array < Rid >) -> Self { + Self { + exclude: CowArg::Borrowed(exclude), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::PhysicsRayQueryParameters2D > > { + let Self { + _phantom, from, to, collision_mask, exclude, + } + = self; + re_export::PhysicsRayQueryParameters2D::create_full(from, to, collision_mask, exclude.cow_as_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_ray_query_parameters_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_ray_query_parameters_3d.rs new file mode 100644 index 0000000..a6925c3 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_ray_query_parameters_3d.rs @@ -0,0 +1,373 @@ +#![doc = "Sidecar module for class [`PhysicsRayQueryParameters3D`][crate::classes::PhysicsRayQueryParameters3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsRayQueryParameters3D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsrayqueryparameters3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsRayQueryParameters3D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`physics_ray_query_parameters_3d`][crate::classes::physics_ray_query_parameters_3d]: sidecar module with related enum/flag types\n* [`IPhysicsRayQueryParameters3D`][crate::classes::IPhysicsRayQueryParameters3D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsRayQueryParameters3D`](https://docs.godotengine.org/en/stable/classes/class_physicsrayqueryparameters3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicsRayQueryParameters3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsRayQueryParameters3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsRayQueryParameters3D`][crate::classes::PhysicsRayQueryParameters3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsRayQueryParameters3D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsrayqueryparameters3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsRayQueryParameters3D: crate::obj::GodotClass < Base = PhysicsRayQueryParameters3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsRayQueryParameters3D { + pub(crate) fn create_full(from: Vector3, to: Vector3, collision_mask: u32, exclude: RefArg < Array < Rid > >,) -> Option < Gd < crate::classes::PhysicsRayQueryParameters3D > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::PhysicsRayQueryParameters3D > >, Vector3, Vector3, u32, RefArg < 'a0, Array < Rid > >); + let args = (from, to, collision_mask, exclude,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6197usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "create", std::ptr::null_mut(), None, args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create(from: Vector3, to: Vector3,) -> Option < Gd < crate::classes::PhysicsRayQueryParameters3D > > { + Self::create_ex(from, to,) . done() + } + #[inline] + pub fn create_ex < 'a > (from: Vector3, to: Vector3,) -> ExCreate < 'a > { + ExCreate::new(from, to,) + } + pub fn set_from(&mut self, from: Vector3,) { + type CallSig = ((), Vector3); + let args = (from,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6198usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "set_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_from(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6199usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "get_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_to(&mut self, to: Vector3,) { + type CallSig = ((), Vector3); + let args = (to,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6200usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "set_to", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_to(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6201usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "get_to", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, collision_mask: u32,) { + type CallSig = ((), u32); + let args = (collision_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6202usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6203usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude(&mut self, exclude: &Array < Rid >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Rid > >); + let args = (RefArg::new(exclude),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6204usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "set_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude(&self,) -> Array < Rid > { + type CallSig = (Array < Rid >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6205usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "get_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_bodies(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6206usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "set_collide_with_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_bodies_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6207usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "is_collide_with_bodies_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_areas(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6208usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "set_collide_with_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_areas_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6209usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "is_collide_with_areas_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hit_from_inside(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6210usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "set_hit_from_inside", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hit_from_inside_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6211usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "is_hit_from_inside_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hit_back_faces(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6212usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "set_hit_back_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hit_back_faces_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6213usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsRayQueryParameters3D", "is_hit_back_faces_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsRayQueryParameters3D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsRayQueryParameters3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsRayQueryParameters3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicsRayQueryParameters3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsRayQueryParameters3D { + + } + impl crate::obj::cap::GodotDefault for PhysicsRayQueryParameters3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsRayQueryParameters3D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsRayQueryParameters3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsRayQueryParameters3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsRayQueryParameters3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsRayQueryParameters3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicsRayQueryParameters3D::create_ex`][super::PhysicsRayQueryParameters3D::create_ex]."] +#[must_use] +pub struct ExCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, from: Vector3, to: Vector3, collision_mask: u32, exclude: CowArg < 'a, Array < Rid > >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreate < 'a > { + fn new(from: Vector3, to: Vector3,) -> Self { + let collision_mask = 4294967295u32; + let exclude = Array::new(); + Self { + _phantom: std::marker::PhantomData, from: from, to: to, collision_mask: collision_mask, exclude: CowArg::Owned(exclude), + } + } + #[inline] + pub fn collision_mask(self, collision_mask: u32) -> Self { + Self { + collision_mask: collision_mask, .. self + } + } + #[inline] + pub fn exclude(self, exclude: &'a Array < Rid >) -> Self { + Self { + exclude: CowArg::Borrowed(exclude), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::PhysicsRayQueryParameters3D > > { + let Self { + _phantom, from, to, collision_mask, exclude, + } + = self; + re_export::PhysicsRayQueryParameters3D::create_full(from, to, collision_mask, exclude.cow_as_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_2d.rs new file mode 100644 index 0000000..4db88f6 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_2d.rs @@ -0,0 +1,2896 @@ +#![doc = "Sidecar module for class [`PhysicsServer2D`][crate::classes::PhysicsServer2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsServer2D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsserver2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsServer2D.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`physics_server_2d`][crate::classes::physics_server_2d]: sidecar module with related enum/flag types\n* [`IPhysicsServer2D`][crate::classes::IPhysicsServer2D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsServer2D`](https://docs.godotengine.org/en/stable/classes/class_physicsserver2d.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`PhysicsServer2D::singleton()`][PhysicsServer2D::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsServer2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsServer2D`][crate::classes::PhysicsServer2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsServer2D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsserver2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsServer2D: crate::obj::GodotClass < Base = PhysicsServer2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsServer2D { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"PhysicsServer2D"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn world_boundary_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(205usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "world_boundary_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn separation_ray_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(206usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "separation_ray_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn segment_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(207usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "segment_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn circle_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(208usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "circle_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rectangle_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(209usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "rectangle_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn capsule_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(210usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "capsule_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn convex_polygon_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(211usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "convex_polygon_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn concave_polygon_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(212usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "concave_polygon_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_set_data(&mut self, shape: Rid, data: &Variant,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Variant >); + let args = (shape, RefArg::new(data),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(213usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "shape_set_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_get_type(&self, shape: Rid,) -> crate::classes::physics_server_2d::ShapeType { + type CallSig = (crate::classes::physics_server_2d::ShapeType, Rid); + let args = (shape,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(214usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "shape_get_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_get_data(&self, shape: Rid,) -> Variant { + type CallSig = (Variant, Rid); + let args = (shape,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(215usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "shape_get_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(216usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "space_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_set_active(&mut self, space: Rid, active: bool,) { + type CallSig = ((), Rid, bool); + let args = (space, active,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(217usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "space_set_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_is_active(&self, space: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (space,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(218usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "space_is_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_set_param(&mut self, space: Rid, param: crate::classes::physics_server_2d::SpaceParameter, value: f32,) { + type CallSig = ((), Rid, crate::classes::physics_server_2d::SpaceParameter, f32); + let args = (space, param, value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(219usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "space_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_get_param(&self, space: Rid, param: crate::classes::physics_server_2d::SpaceParameter,) -> f32 { + type CallSig = (f32, Rid, crate::classes::physics_server_2d::SpaceParameter); + let args = (space, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(220usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "space_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_get_direct_state(&mut self, space: Rid,) -> Option < Gd < crate::classes::PhysicsDirectSpaceState2D > > { + type CallSig = (Option < Gd < crate::classes::PhysicsDirectSpaceState2D > >, Rid); + let args = (space,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(221usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "space_get_direct_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(222usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_space(&mut self, area: Rid, space: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (area, space,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(223usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_set_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_space(&self, area: Rid,) -> Rid { + type CallSig = (Rid, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(224usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_get_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn area_add_shape_full(&mut self, area: Rid, shape: Rid, transform: Transform2D, disabled: bool,) { + type CallSig = ((), Rid, Rid, Transform2D, bool); + let args = (area, shape, transform, disabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(225usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_add_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::area_add_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn area_add_shape(&mut self, area: Rid, shape: Rid,) { + self.area_add_shape_ex(area, shape,) . done() + } + #[inline] + pub fn area_add_shape_ex < 'a > (&'a mut self, area: Rid, shape: Rid,) -> ExAreaAddShape < 'a > { + ExAreaAddShape::new(self, area, shape,) + } + pub fn area_set_shape(&mut self, area: Rid, shape_idx: i32, shape: Rid,) { + type CallSig = ((), Rid, i32, Rid); + let args = (area, shape_idx, shape,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(226usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_shape_transform(&mut self, area: Rid, shape_idx: i32, transform: Transform2D,) { + type CallSig = ((), Rid, i32, Transform2D); + let args = (area, shape_idx, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(227usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_set_shape_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_shape_disabled(&mut self, area: Rid, shape_idx: i32, disabled: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (area, shape_idx, disabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(228usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_set_shape_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_shape_count(&self, area: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(229usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_get_shape_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_shape(&self, area: Rid, shape_idx: i32,) -> Rid { + type CallSig = (Rid, Rid, i32); + let args = (area, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(230usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_shape_transform(&self, area: Rid, shape_idx: i32,) -> Transform2D { + type CallSig = (Transform2D, Rid, i32); + let args = (area, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(231usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_get_shape_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_remove_shape(&mut self, area: Rid, shape_idx: i32,) { + type CallSig = ((), Rid, i32); + let args = (area, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(232usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_remove_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_clear_shapes(&mut self, area: Rid,) { + type CallSig = ((), Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(233usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_clear_shapes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_collision_layer(&mut self, area: Rid, layer: u32,) { + type CallSig = ((), Rid, u32); + let args = (area, layer,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(234usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_set_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_collision_layer(&self, area: Rid,) -> u32 { + type CallSig = (u32, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(235usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_get_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_collision_mask(&mut self, area: Rid, mask: u32,) { + type CallSig = ((), Rid, u32); + let args = (area, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(236usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_collision_mask(&self, area: Rid,) -> u32 { + type CallSig = (u32, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(237usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_param(&mut self, area: Rid, param: crate::classes::physics_server_2d::AreaParameter, value: &Variant,) { + type CallSig < 'a0, > = ((), Rid, crate::classes::physics_server_2d::AreaParameter, RefArg < 'a0, Variant >); + let args = (area, param, RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(238usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_transform(&mut self, area: Rid, transform: Transform2D,) { + type CallSig = ((), Rid, Transform2D); + let args = (area, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(239usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_param(&self, area: Rid, param: crate::classes::physics_server_2d::AreaParameter,) -> Variant { + type CallSig = (Variant, Rid, crate::classes::physics_server_2d::AreaParameter); + let args = (area, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(240usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_transform(&self, area: Rid,) -> Transform2D { + type CallSig = (Transform2D, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(241usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_attach_object_instance_id(&mut self, area: Rid, id: u64,) { + type CallSig = ((), Rid, u64); + let args = (area, id,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(242usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_attach_object_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_object_instance_id(&self, area: Rid,) -> u64 { + type CallSig = (u64, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(243usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_get_object_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_attach_canvas_instance_id(&mut self, area: Rid, id: u64,) { + type CallSig = ((), Rid, u64); + let args = (area, id,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(244usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_attach_canvas_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_canvas_instance_id(&self, area: Rid,) -> u64 { + type CallSig = (u64, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(245usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_get_canvas_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_monitor_callback(&mut self, area: Rid, callback: &Callable,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Callable >); + let args = (area, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(246usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_set_monitor_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_area_monitor_callback(&mut self, area: Rid, callback: &Callable,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Callable >); + let args = (area, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(247usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_set_area_monitor_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_monitorable(&mut self, area: Rid, monitorable: bool,) { + type CallSig = ((), Rid, bool); + let args = (area, monitorable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(248usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "area_set_monitorable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(249usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_space(&mut self, body: Rid, space: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (body, space,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(250usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_space(&self, body: Rid,) -> Rid { + type CallSig = (Rid, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(251usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_mode(&mut self, body: Rid, mode: crate::classes::physics_server_2d::BodyMode,) { + type CallSig = ((), Rid, crate::classes::physics_server_2d::BodyMode); + let args = (body, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(252usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_mode(&self, body: Rid,) -> crate::classes::physics_server_2d::BodyMode { + type CallSig = (crate::classes::physics_server_2d::BodyMode, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(253usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn body_add_shape_full(&mut self, body: Rid, shape: Rid, transform: Transform2D, disabled: bool,) { + type CallSig = ((), Rid, Rid, Transform2D, bool); + let args = (body, shape, transform, disabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(254usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_add_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_add_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_add_shape(&mut self, body: Rid, shape: Rid,) { + self.body_add_shape_ex(body, shape,) . done() + } + #[inline] + pub fn body_add_shape_ex < 'a > (&'a mut self, body: Rid, shape: Rid,) -> ExBodyAddShape < 'a > { + ExBodyAddShape::new(self, body, shape,) + } + pub fn body_set_shape(&mut self, body: Rid, shape_idx: i32, shape: Rid,) { + type CallSig = ((), Rid, i32, Rid); + let args = (body, shape_idx, shape,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(255usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_shape_transform(&mut self, body: Rid, shape_idx: i32, transform: Transform2D,) { + type CallSig = ((), Rid, i32, Transform2D); + let args = (body, shape_idx, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(256usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_shape_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_shape_count(&self, body: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(257usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_shape_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_shape(&self, body: Rid, shape_idx: i32,) -> Rid { + type CallSig = (Rid, Rid, i32); + let args = (body, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(258usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_shape_transform(&self, body: Rid, shape_idx: i32,) -> Transform2D { + type CallSig = (Transform2D, Rid, i32); + let args = (body, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(259usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_shape_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_remove_shape(&mut self, body: Rid, shape_idx: i32,) { + type CallSig = ((), Rid, i32); + let args = (body, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(260usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_remove_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_clear_shapes(&mut self, body: Rid,) { + type CallSig = ((), Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(261usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_clear_shapes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_shape_disabled(&mut self, body: Rid, shape_idx: i32, disabled: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (body, shape_idx, disabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(262usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_shape_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_shape_as_one_way_collision(&mut self, body: Rid, shape_idx: i32, enable: bool, margin: f32,) { + type CallSig = ((), Rid, i32, bool, f32); + let args = (body, shape_idx, enable, margin,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(263usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_shape_as_one_way_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_attach_object_instance_id(&mut self, body: Rid, id: u64,) { + type CallSig = ((), Rid, u64); + let args = (body, id,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(264usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_attach_object_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_object_instance_id(&self, body: Rid,) -> u64 { + type CallSig = (u64, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(265usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_object_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_attach_canvas_instance_id(&mut self, body: Rid, id: u64,) { + type CallSig = ((), Rid, u64); + let args = (body, id,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(266usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_attach_canvas_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_canvas_instance_id(&self, body: Rid,) -> u64 { + type CallSig = (u64, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(267usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_canvas_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_continuous_collision_detection_mode(&mut self, body: Rid, mode: crate::classes::physics_server_2d::CcdMode,) { + type CallSig = ((), Rid, crate::classes::physics_server_2d::CcdMode); + let args = (body, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(268usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_continuous_collision_detection_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_continuous_collision_detection_mode(&self, body: Rid,) -> crate::classes::physics_server_2d::CcdMode { + type CallSig = (crate::classes::physics_server_2d::CcdMode, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(269usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_continuous_collision_detection_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_collision_layer(&mut self, body: Rid, layer: u32,) { + type CallSig = ((), Rid, u32); + let args = (body, layer,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(270usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_collision_layer(&self, body: Rid,) -> u32 { + type CallSig = (u32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(271usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_collision_mask(&mut self, body: Rid, mask: u32,) { + type CallSig = ((), Rid, u32); + let args = (body, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(272usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_collision_mask(&self, body: Rid,) -> u32 { + type CallSig = (u32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(273usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_collision_priority(&mut self, body: Rid, priority: f32,) { + type CallSig = ((), Rid, f32); + let args = (body, priority,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(274usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_collision_priority(&self, body: Rid,) -> f32 { + type CallSig = (f32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(275usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_param(&mut self, body: Rid, param: crate::classes::physics_server_2d::BodyParameter, value: &Variant,) { + type CallSig < 'a0, > = ((), Rid, crate::classes::physics_server_2d::BodyParameter, RefArg < 'a0, Variant >); + let args = (body, param, RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(276usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_param(&self, body: Rid, param: crate::classes::physics_server_2d::BodyParameter,) -> Variant { + type CallSig = (Variant, Rid, crate::classes::physics_server_2d::BodyParameter); + let args = (body, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(277usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_reset_mass_properties(&mut self, body: Rid,) { + type CallSig = ((), Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(278usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_reset_mass_properties", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_state(&mut self, body: Rid, state: crate::classes::physics_server_2d::BodyState, value: &Variant,) { + type CallSig < 'a0, > = ((), Rid, crate::classes::physics_server_2d::BodyState, RefArg < 'a0, Variant >); + let args = (body, state, RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(279usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_state(&self, body: Rid, state: crate::classes::physics_server_2d::BodyState,) -> Variant { + type CallSig = (Variant, Rid, crate::classes::physics_server_2d::BodyState); + let args = (body, state,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(280usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_apply_central_impulse(&mut self, body: Rid, impulse: Vector2,) { + type CallSig = ((), Rid, Vector2); + let args = (body, impulse,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(281usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_apply_central_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_apply_torque_impulse(&mut self, body: Rid, impulse: f32,) { + type CallSig = ((), Rid, f32); + let args = (body, impulse,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(282usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_apply_torque_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn body_apply_impulse_full(&mut self, body: Rid, impulse: Vector2, position: Vector2,) { + type CallSig = ((), Rid, Vector2, Vector2); + let args = (body, impulse, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(283usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_apply_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_apply_impulse_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_apply_impulse(&mut self, body: Rid, impulse: Vector2,) { + self.body_apply_impulse_ex(body, impulse,) . done() + } + #[inline] + pub fn body_apply_impulse_ex < 'a > (&'a mut self, body: Rid, impulse: Vector2,) -> ExBodyApplyImpulse < 'a > { + ExBodyApplyImpulse::new(self, body, impulse,) + } + pub fn body_apply_central_force(&mut self, body: Rid, force: Vector2,) { + type CallSig = ((), Rid, Vector2); + let args = (body, force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(284usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_apply_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn body_apply_force_full(&mut self, body: Rid, force: Vector2, position: Vector2,) { + type CallSig = ((), Rid, Vector2, Vector2); + let args = (body, force, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(285usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_apply_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_apply_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_apply_force(&mut self, body: Rid, force: Vector2,) { + self.body_apply_force_ex(body, force,) . done() + } + #[inline] + pub fn body_apply_force_ex < 'a > (&'a mut self, body: Rid, force: Vector2,) -> ExBodyApplyForce < 'a > { + ExBodyApplyForce::new(self, body, force,) + } + pub fn body_apply_torque(&mut self, body: Rid, torque: f32,) { + type CallSig = ((), Rid, f32); + let args = (body, torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(286usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_apply_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_add_constant_central_force(&mut self, body: Rid, force: Vector2,) { + type CallSig = ((), Rid, Vector2); + let args = (body, force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(287usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_add_constant_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn body_add_constant_force_full(&mut self, body: Rid, force: Vector2, position: Vector2,) { + type CallSig = ((), Rid, Vector2, Vector2); + let args = (body, force, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(288usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_add_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_add_constant_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_add_constant_force(&mut self, body: Rid, force: Vector2,) { + self.body_add_constant_force_ex(body, force,) . done() + } + #[inline] + pub fn body_add_constant_force_ex < 'a > (&'a mut self, body: Rid, force: Vector2,) -> ExBodyAddConstantForce < 'a > { + ExBodyAddConstantForce::new(self, body, force,) + } + pub fn body_add_constant_torque(&mut self, body: Rid, torque: f32,) { + type CallSig = ((), Rid, f32); + let args = (body, torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(289usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_add_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_constant_force(&mut self, body: Rid, force: Vector2,) { + type CallSig = ((), Rid, Vector2); + let args = (body, force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(290usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_constant_force(&self, body: Rid,) -> Vector2 { + type CallSig = (Vector2, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(291usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_constant_torque(&mut self, body: Rid, torque: f32,) { + type CallSig = ((), Rid, f32); + let args = (body, torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(292usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_constant_torque(&self, body: Rid,) -> f32 { + type CallSig = (f32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(293usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_axis_velocity(&mut self, body: Rid, axis_velocity: Vector2,) { + type CallSig = ((), Rid, Vector2); + let args = (body, axis_velocity,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(294usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_axis_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_add_collision_exception(&mut self, body: Rid, excepted_body: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (body, excepted_body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(295usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_add_collision_exception", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_remove_collision_exception(&mut self, body: Rid, excepted_body: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (body, excepted_body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(296usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_remove_collision_exception", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_max_contacts_reported(&mut self, body: Rid, amount: i32,) { + type CallSig = ((), Rid, i32); + let args = (body, amount,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(297usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_max_contacts_reported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_max_contacts_reported(&self, body: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(298usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_max_contacts_reported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_omit_force_integration(&mut self, body: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (body, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(299usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_omit_force_integration", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_is_omitting_force_integration(&self, body: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(300usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_is_omitting_force_integration", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_state_sync_callback(&mut self, body: Rid, callable: &Callable,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Callable >); + let args = (body, RefArg::new(callable),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(301usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_state_sync_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn body_set_force_integration_callback_full(&mut self, body: Rid, callable: RefArg < Callable >, userdata: RefArg < Variant >,) { + type CallSig < 'a0, 'a1, > = ((), Rid, RefArg < 'a0, Callable >, RefArg < 'a1, Variant >); + let args = (body, callable, userdata,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(302usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_set_force_integration_callback", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_set_force_integration_callback_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_set_force_integration_callback(&mut self, body: Rid, callable: &Callable,) { + self.body_set_force_integration_callback_ex(body, callable,) . done() + } + #[inline] + pub fn body_set_force_integration_callback_ex < 'a > (&'a mut self, body: Rid, callable: &'a Callable,) -> ExBodySetForceIntegrationCallback < 'a > { + ExBodySetForceIntegrationCallback::new(self, body, callable,) + } + pub(crate) fn body_test_motion_full(&mut self, body: Rid, parameters: ObjectArg < crate::classes::PhysicsTestMotionParameters2D >, result: ObjectArg < crate::classes::PhysicsTestMotionResult2D >,) -> bool { + type CallSig = (bool, Rid, ObjectArg < crate::classes::PhysicsTestMotionParameters2D >, ObjectArg < crate::classes::PhysicsTestMotionResult2D >); + let args = (body, parameters, result,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(303usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_test_motion", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_test_motion_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_test_motion(&mut self, body: Rid, parameters: impl AsObjectArg < crate::classes::PhysicsTestMotionParameters2D >,) -> bool { + self.body_test_motion_ex(body, parameters,) . done() + } + #[inline] + pub fn body_test_motion_ex < 'a > (&'a mut self, body: Rid, parameters: impl AsObjectArg < crate::classes::PhysicsTestMotionParameters2D >,) -> ExBodyTestMotion < 'a > { + ExBodyTestMotion::new(self, body, parameters,) + } + pub fn body_get_direct_state(&mut self, body: Rid,) -> Option < Gd < crate::classes::PhysicsDirectBodyState2D > > { + type CallSig = (Option < Gd < crate::classes::PhysicsDirectBodyState2D > >, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(304usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "body_get_direct_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(305usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "joint_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_clear(&mut self, joint: Rid,) { + type CallSig = ((), Rid); + let args = (joint,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(306usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "joint_clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_2d::JointParam, value: f32,) { + type CallSig = ((), Rid, crate::classes::physics_server_2d::JointParam, f32); + let args = (joint, param, value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(307usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "joint_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_2d::JointParam,) -> f32 { + type CallSig = (f32, Rid, crate::classes::physics_server_2d::JointParam); + let args = (joint, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(308usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "joint_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_disable_collisions_between_bodies(&mut self, joint: Rid, disable: bool,) { + type CallSig = ((), Rid, bool); + let args = (joint, disable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(309usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "joint_disable_collisions_between_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_is_disabled_collisions_between_bodies(&self, joint: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (joint,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(310usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "joint_is_disabled_collisions_between_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn joint_make_pin_full(&mut self, joint: Rid, anchor: Vector2, body_a: Rid, body_b: Rid,) { + type CallSig = ((), Rid, Vector2, Rid, Rid); + let args = (joint, anchor, body_a, body_b,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(311usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "joint_make_pin", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::joint_make_pin_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn joint_make_pin(&mut self, joint: Rid, anchor: Vector2, body_a: Rid,) { + self.joint_make_pin_ex(joint, anchor, body_a,) . done() + } + #[inline] + pub fn joint_make_pin_ex < 'a > (&'a mut self, joint: Rid, anchor: Vector2, body_a: Rid,) -> ExJointMakePin < 'a > { + ExJointMakePin::new(self, joint, anchor, body_a,) + } + pub(crate) fn joint_make_groove_full(&mut self, joint: Rid, groove1_a: Vector2, groove2_a: Vector2, anchor_b: Vector2, body_a: Rid, body_b: Rid,) { + type CallSig = ((), Rid, Vector2, Vector2, Vector2, Rid, Rid); + let args = (joint, groove1_a, groove2_a, anchor_b, body_a, body_b,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(312usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "joint_make_groove", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::joint_make_groove_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn joint_make_groove(&mut self, joint: Rid, groove1_a: Vector2, groove2_a: Vector2, anchor_b: Vector2,) { + self.joint_make_groove_ex(joint, groove1_a, groove2_a, anchor_b,) . done() + } + #[inline] + pub fn joint_make_groove_ex < 'a > (&'a mut self, joint: Rid, groove1_a: Vector2, groove2_a: Vector2, anchor_b: Vector2,) -> ExJointMakeGroove < 'a > { + ExJointMakeGroove::new(self, joint, groove1_a, groove2_a, anchor_b,) + } + pub(crate) fn joint_make_damped_spring_full(&mut self, joint: Rid, anchor_a: Vector2, anchor_b: Vector2, body_a: Rid, body_b: Rid,) { + type CallSig = ((), Rid, Vector2, Vector2, Rid, Rid); + let args = (joint, anchor_a, anchor_b, body_a, body_b,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(313usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "joint_make_damped_spring", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::joint_make_damped_spring_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn joint_make_damped_spring(&mut self, joint: Rid, anchor_a: Vector2, anchor_b: Vector2, body_a: Rid,) { + self.joint_make_damped_spring_ex(joint, anchor_a, anchor_b, body_a,) . done() + } + #[inline] + pub fn joint_make_damped_spring_ex < 'a > (&'a mut self, joint: Rid, anchor_a: Vector2, anchor_b: Vector2, body_a: Rid,) -> ExJointMakeDampedSpring < 'a > { + ExJointMakeDampedSpring::new(self, joint, anchor_a, anchor_b, body_a,) + } + pub fn pin_joint_set_flag(&mut self, joint: Rid, flag: crate::classes::physics_server_2d::PinJointFlag, enabled: bool,) { + type CallSig = ((), Rid, crate::classes::physics_server_2d::PinJointFlag, bool); + let args = (joint, flag, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(314usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "pin_joint_set_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pin_joint_get_flag(&self, joint: Rid, flag: crate::classes::physics_server_2d::PinJointFlag,) -> bool { + type CallSig = (bool, Rid, crate::classes::physics_server_2d::PinJointFlag); + let args = (joint, flag,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(315usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "pin_joint_get_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pin_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_2d::PinJointParam, value: f32,) { + type CallSig = ((), Rid, crate::classes::physics_server_2d::PinJointParam, f32); + let args = (joint, param, value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(316usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "pin_joint_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pin_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_2d::PinJointParam,) -> f32 { + type CallSig = (f32, Rid, crate::classes::physics_server_2d::PinJointParam); + let args = (joint, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(317usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "pin_joint_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn damped_spring_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_2d::DampedSpringParam, value: f32,) { + type CallSig = ((), Rid, crate::classes::physics_server_2d::DampedSpringParam, f32); + let args = (joint, param, value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(318usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "damped_spring_joint_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn damped_spring_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_2d::DampedSpringParam,) -> f32 { + type CallSig = (f32, Rid, crate::classes::physics_server_2d::DampedSpringParam); + let args = (joint, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(319usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "damped_spring_joint_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_get_type(&self, joint: Rid,) -> crate::classes::physics_server_2d::JointType { + type CallSig = (crate::classes::physics_server_2d::JointType, Rid); + let args = (joint,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(320usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "joint_get_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn free_rid(&mut self, rid: Rid,) { + type CallSig = ((), Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(321usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "free_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_active(&mut self, active: bool,) { + type CallSig = ((), bool); + let args = (active,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(322usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "set_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_info(&mut self, process_info: crate::classes::physics_server_2d::ProcessInfo,) -> i32 { + type CallSig = (i32, crate::classes::physics_server_2d::ProcessInfo); + let args = (process_info,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(323usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2D", "get_process_info", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsServer2D { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsServer2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsServer2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsServer2D { + + } + impl std::ops::Deref for PhysicsServer2D { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsServer2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsServer2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsServer2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsServer2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicsServer2D::area_add_shape_ex`][super::PhysicsServer2D::area_add_shape_ex]."] +#[must_use] +pub struct ExAreaAddShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer2D, area: Rid, shape: Rid, transform: Transform2D, disabled: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAreaAddShape < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer2D, area: Rid, shape: Rid,) -> Self { + let transform = Transform2D::__internal_codegen(1 as _, 0 as _, 0 as _, 1 as _, 0 as _, 0 as _); + let disabled = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, area: area, shape: shape, transform: transform, disabled: disabled, + } + } + #[inline] + pub fn transform(self, transform: Transform2D) -> Self { + Self { + transform: transform, .. self + } + } + #[inline] + pub fn disabled(self, disabled: bool) -> Self { + Self { + disabled: disabled, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, area, shape, transform, disabled, + } + = self; + re_export::PhysicsServer2D::area_add_shape_full(surround_object, area, shape, transform, disabled,) + } +} +#[doc = "Default-param extender for [`PhysicsServer2D::body_add_shape_ex`][super::PhysicsServer2D::body_add_shape_ex]."] +#[must_use] +pub struct ExBodyAddShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, shape: Rid, transform: Transform2D, disabled: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodyAddShape < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, shape: Rid,) -> Self { + let transform = Transform2D::__internal_codegen(1 as _, 0 as _, 0 as _, 1 as _, 0 as _, 0 as _); + let disabled = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, shape: shape, transform: transform, disabled: disabled, + } + } + #[inline] + pub fn transform(self, transform: Transform2D) -> Self { + Self { + transform: transform, .. self + } + } + #[inline] + pub fn disabled(self, disabled: bool) -> Self { + Self { + disabled: disabled, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, body, shape, transform, disabled, + } + = self; + re_export::PhysicsServer2D::body_add_shape_full(surround_object, body, shape, transform, disabled,) + } +} +#[doc = "Default-param extender for [`PhysicsServer2D::body_apply_impulse_ex`][super::PhysicsServer2D::body_apply_impulse_ex]."] +#[must_use] +pub struct ExBodyApplyImpulse < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, impulse: Vector2, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodyApplyImpulse < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, impulse: Vector2,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, impulse: impulse, position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, body, impulse, position, + } + = self; + re_export::PhysicsServer2D::body_apply_impulse_full(surround_object, body, impulse, position,) + } +} +#[doc = "Default-param extender for [`PhysicsServer2D::body_apply_force_ex`][super::PhysicsServer2D::body_apply_force_ex]."] +#[must_use] +pub struct ExBodyApplyForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, force: Vector2, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodyApplyForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, force: Vector2,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, body, force, position, + } + = self; + re_export::PhysicsServer2D::body_apply_force_full(surround_object, body, force, position,) + } +} +#[doc = "Default-param extender for [`PhysicsServer2D::body_add_constant_force_ex`][super::PhysicsServer2D::body_add_constant_force_ex]."] +#[must_use] +pub struct ExBodyAddConstantForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, force: Vector2, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodyAddConstantForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, force: Vector2,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, body, force, position, + } + = self; + re_export::PhysicsServer2D::body_add_constant_force_full(surround_object, body, force, position,) + } +} +#[doc = "Default-param extender for [`PhysicsServer2D::body_set_force_integration_callback_ex`][super::PhysicsServer2D::body_set_force_integration_callback_ex]."] +#[must_use] +pub struct ExBodySetForceIntegrationCallback < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, callable: CowArg < 'a, Callable >, userdata: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodySetForceIntegrationCallback < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, callable: &'a Callable,) -> Self { + let userdata = Variant::nil(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, callable: CowArg::Borrowed(callable), userdata: CowArg::Owned(userdata), + } + } + #[inline] + pub fn userdata(self, userdata: &'a Variant) -> Self { + Self { + userdata: CowArg::Borrowed(userdata), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, body, callable, userdata, + } + = self; + re_export::PhysicsServer2D::body_set_force_integration_callback_full(surround_object, body, callable.cow_as_arg(), userdata.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`PhysicsServer2D::body_test_motion_ex`][super::PhysicsServer2D::body_test_motion_ex]."] +#[must_use] +pub struct ExBodyTestMotion < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, parameters: ObjectCow < crate::classes::PhysicsTestMotionParameters2D >, result: ObjectCow < crate::classes::PhysicsTestMotionResult2D >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodyTestMotion < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer2D, body: Rid, parameters: impl AsObjectArg < crate::classes::PhysicsTestMotionParameters2D >,) -> Self { + let result = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, parameters: parameters.consume_arg(), result: result.consume_arg(), + } + } + #[inline] + pub fn result(self, result: impl AsObjectArg < crate::classes::PhysicsTestMotionResult2D >) -> Self { + Self { + result: result.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, body, parameters, result, + } + = self; + re_export::PhysicsServer2D::body_test_motion_full(surround_object, body, parameters.cow_as_object_arg(), result.cow_as_object_arg(),) + } +} +#[doc = "Default-param extender for [`PhysicsServer2D::joint_make_pin_ex`][super::PhysicsServer2D::joint_make_pin_ex]."] +#[must_use] +pub struct ExJointMakePin < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer2D, joint: Rid, anchor: Vector2, body_a: Rid, body_b: Rid, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExJointMakePin < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer2D, joint: Rid, anchor: Vector2, body_a: Rid,) -> Self { + let body_b = Rid::Invalid; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, joint: joint, anchor: anchor, body_a: body_a, body_b: body_b, + } + } + #[inline] + pub fn body_b(self, body_b: Rid) -> Self { + Self { + body_b: body_b, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, joint, anchor, body_a, body_b, + } + = self; + re_export::PhysicsServer2D::joint_make_pin_full(surround_object, joint, anchor, body_a, body_b,) + } +} +#[doc = "Default-param extender for [`PhysicsServer2D::joint_make_groove_ex`][super::PhysicsServer2D::joint_make_groove_ex]."] +#[must_use] +pub struct ExJointMakeGroove < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer2D, joint: Rid, groove1_a: Vector2, groove2_a: Vector2, anchor_b: Vector2, body_a: Rid, body_b: Rid, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExJointMakeGroove < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer2D, joint: Rid, groove1_a: Vector2, groove2_a: Vector2, anchor_b: Vector2,) -> Self { + let body_a = Rid::Invalid; + let body_b = Rid::Invalid; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, joint: joint, groove1_a: groove1_a, groove2_a: groove2_a, anchor_b: anchor_b, body_a: body_a, body_b: body_b, + } + } + #[inline] + pub fn body_a(self, body_a: Rid) -> Self { + Self { + body_a: body_a, .. self + } + } + #[inline] + pub fn body_b(self, body_b: Rid) -> Self { + Self { + body_b: body_b, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, joint, groove1_a, groove2_a, anchor_b, body_a, body_b, + } + = self; + re_export::PhysicsServer2D::joint_make_groove_full(surround_object, joint, groove1_a, groove2_a, anchor_b, body_a, body_b,) + } +} +#[doc = "Default-param extender for [`PhysicsServer2D::joint_make_damped_spring_ex`][super::PhysicsServer2D::joint_make_damped_spring_ex]."] +#[must_use] +pub struct ExJointMakeDampedSpring < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer2D, joint: Rid, anchor_a: Vector2, anchor_b: Vector2, body_a: Rid, body_b: Rid, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExJointMakeDampedSpring < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer2D, joint: Rid, anchor_a: Vector2, anchor_b: Vector2, body_a: Rid,) -> Self { + let body_b = Rid::Invalid; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, joint: joint, anchor_a: anchor_a, anchor_b: anchor_b, body_a: body_a, body_b: body_b, + } + } + #[inline] + pub fn body_b(self, body_b: Rid) -> Self { + Self { + body_b: body_b, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, joint, anchor_a, anchor_b, body_a, body_b, + } + = self; + re_export::PhysicsServer2D::joint_make_damped_spring_full(surround_object, joint, anchor_a, anchor_b, body_a, body_b,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SpaceParameter { + ord: i32 +} +impl SpaceParameter { + #[doc(alias = "SPACE_PARAM_CONTACT_RECYCLE_RADIUS")] + #[doc = "Godot enumerator name: `SPACE_PARAM_CONTACT_RECYCLE_RADIUS`"] + pub const CONTACT_RECYCLE_RADIUS: SpaceParameter = SpaceParameter { + ord: 0i32 + }; + #[doc(alias = "SPACE_PARAM_CONTACT_MAX_SEPARATION")] + #[doc = "Godot enumerator name: `SPACE_PARAM_CONTACT_MAX_SEPARATION`"] + pub const CONTACT_MAX_SEPARATION: SpaceParameter = SpaceParameter { + ord: 1i32 + }; + #[doc(alias = "SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION")] + #[doc = "Godot enumerator name: `SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION`"] + pub const CONTACT_MAX_ALLOWED_PENETRATION: SpaceParameter = SpaceParameter { + ord: 2i32 + }; + #[doc(alias = "SPACE_PARAM_CONTACT_DEFAULT_BIAS")] + #[doc = "Godot enumerator name: `SPACE_PARAM_CONTACT_DEFAULT_BIAS`"] + pub const CONTACT_DEFAULT_BIAS: SpaceParameter = SpaceParameter { + ord: 3i32 + }; + #[doc(alias = "SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD")] + #[doc = "Godot enumerator name: `SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD`"] + pub const BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD: SpaceParameter = SpaceParameter { + ord: 4i32 + }; + #[doc(alias = "SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD")] + #[doc = "Godot enumerator name: `SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD`"] + pub const BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD: SpaceParameter = SpaceParameter { + ord: 5i32 + }; + #[doc(alias = "SPACE_PARAM_BODY_TIME_TO_SLEEP")] + #[doc = "Godot enumerator name: `SPACE_PARAM_BODY_TIME_TO_SLEEP`"] + pub const BODY_TIME_TO_SLEEP: SpaceParameter = SpaceParameter { + ord: 6i32 + }; + #[doc(alias = "SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS")] + #[doc = "Godot enumerator name: `SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS`"] + pub const CONSTRAINT_DEFAULT_BIAS: SpaceParameter = SpaceParameter { + ord: 7i32 + }; + #[doc(alias = "SPACE_PARAM_SOLVER_ITERATIONS")] + #[doc = "Godot enumerator name: `SPACE_PARAM_SOLVER_ITERATIONS`"] + pub const SOLVER_ITERATIONS: SpaceParameter = SpaceParameter { + ord: 8i32 + }; + +} +impl std::fmt::Debug for SpaceParameter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SpaceParameter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SpaceParameter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CONTACT_RECYCLE_RADIUS => "CONTACT_RECYCLE_RADIUS", Self::CONTACT_MAX_SEPARATION => "CONTACT_MAX_SEPARATION", Self::CONTACT_MAX_ALLOWED_PENETRATION => "CONTACT_MAX_ALLOWED_PENETRATION", Self::CONTACT_DEFAULT_BIAS => "CONTACT_DEFAULT_BIAS", Self::BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD => "BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD", Self::BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD => "BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD", Self::BODY_TIME_TO_SLEEP => "BODY_TIME_TO_SLEEP", Self::CONSTRAINT_DEFAULT_BIAS => "CONSTRAINT_DEFAULT_BIAS", Self::SOLVER_ITERATIONS => "SOLVER_ITERATIONS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CONTACT_RECYCLE_RADIUS => "SPACE_PARAM_CONTACT_RECYCLE_RADIUS", Self::CONTACT_MAX_SEPARATION => "SPACE_PARAM_CONTACT_MAX_SEPARATION", Self::CONTACT_MAX_ALLOWED_PENETRATION => "SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION", Self::CONTACT_DEFAULT_BIAS => "SPACE_PARAM_CONTACT_DEFAULT_BIAS", Self::BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD => "SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD", Self::BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD => "SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD", Self::BODY_TIME_TO_SLEEP => "SPACE_PARAM_BODY_TIME_TO_SLEEP", Self::CONSTRAINT_DEFAULT_BIAS => "SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS", Self::SOLVER_ITERATIONS => "SPACE_PARAM_SOLVER_ITERATIONS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SpaceParameter { + type Via = i32; + +} +impl crate::meta::ToGodot for SpaceParameter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SpaceParameter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShapeType { + ord: i32 +} +impl ShapeType { + #[doc(alias = "SHAPE_WORLD_BOUNDARY")] + #[doc = "Godot enumerator name: `SHAPE_WORLD_BOUNDARY`"] + pub const WORLD_BOUNDARY: ShapeType = ShapeType { + ord: 0i32 + }; + #[doc(alias = "SHAPE_SEPARATION_RAY")] + #[doc = "Godot enumerator name: `SHAPE_SEPARATION_RAY`"] + pub const SEPARATION_RAY: ShapeType = ShapeType { + ord: 1i32 + }; + #[doc(alias = "SHAPE_SEGMENT")] + #[doc = "Godot enumerator name: `SHAPE_SEGMENT`"] + pub const SEGMENT: ShapeType = ShapeType { + ord: 2i32 + }; + #[doc(alias = "SHAPE_CIRCLE")] + #[doc = "Godot enumerator name: `SHAPE_CIRCLE`"] + pub const CIRCLE: ShapeType = ShapeType { + ord: 3i32 + }; + #[doc(alias = "SHAPE_RECTANGLE")] + #[doc = "Godot enumerator name: `SHAPE_RECTANGLE`"] + pub const RECTANGLE: ShapeType = ShapeType { + ord: 4i32 + }; + #[doc(alias = "SHAPE_CAPSULE")] + #[doc = "Godot enumerator name: `SHAPE_CAPSULE`"] + pub const CAPSULE: ShapeType = ShapeType { + ord: 5i32 + }; + #[doc(alias = "SHAPE_CONVEX_POLYGON")] + #[doc = "Godot enumerator name: `SHAPE_CONVEX_POLYGON`"] + pub const CONVEX_POLYGON: ShapeType = ShapeType { + ord: 6i32 + }; + #[doc(alias = "SHAPE_CONCAVE_POLYGON")] + #[doc = "Godot enumerator name: `SHAPE_CONCAVE_POLYGON`"] + pub const CONCAVE_POLYGON: ShapeType = ShapeType { + ord: 7i32 + }; + #[doc(alias = "SHAPE_CUSTOM")] + #[doc = "Godot enumerator name: `SHAPE_CUSTOM`"] + pub const CUSTOM: ShapeType = ShapeType { + ord: 8i32 + }; + +} +impl std::fmt::Debug for ShapeType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShapeType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShapeType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WORLD_BOUNDARY => "WORLD_BOUNDARY", Self::SEPARATION_RAY => "SEPARATION_RAY", Self::SEGMENT => "SEGMENT", Self::CIRCLE => "CIRCLE", Self::RECTANGLE => "RECTANGLE", Self::CAPSULE => "CAPSULE", Self::CONVEX_POLYGON => "CONVEX_POLYGON", Self::CONCAVE_POLYGON => "CONCAVE_POLYGON", Self::CUSTOM => "CUSTOM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WORLD_BOUNDARY => "SHAPE_WORLD_BOUNDARY", Self::SEPARATION_RAY => "SHAPE_SEPARATION_RAY", Self::SEGMENT => "SHAPE_SEGMENT", Self::CIRCLE => "SHAPE_CIRCLE", Self::RECTANGLE => "SHAPE_RECTANGLE", Self::CAPSULE => "SHAPE_CAPSULE", Self::CONVEX_POLYGON => "SHAPE_CONVEX_POLYGON", Self::CONCAVE_POLYGON => "SHAPE_CONCAVE_POLYGON", Self::CUSTOM => "SHAPE_CUSTOM", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ShapeType { + type Via = i32; + +} +impl crate::meta::ToGodot for ShapeType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShapeType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AreaParameter { + ord: i32 +} +impl AreaParameter { + #[doc(alias = "AREA_PARAM_GRAVITY_OVERRIDE_MODE")] + #[doc = "Godot enumerator name: `AREA_PARAM_GRAVITY_OVERRIDE_MODE`"] + pub const GRAVITY_OVERRIDE_MODE: AreaParameter = AreaParameter { + ord: 0i32 + }; + #[doc(alias = "AREA_PARAM_GRAVITY")] + #[doc = "Godot enumerator name: `AREA_PARAM_GRAVITY`"] + pub const GRAVITY: AreaParameter = AreaParameter { + ord: 1i32 + }; + #[doc(alias = "AREA_PARAM_GRAVITY_VECTOR")] + #[doc = "Godot enumerator name: `AREA_PARAM_GRAVITY_VECTOR`"] + pub const GRAVITY_VECTOR: AreaParameter = AreaParameter { + ord: 2i32 + }; + #[doc(alias = "AREA_PARAM_GRAVITY_IS_POINT")] + #[doc = "Godot enumerator name: `AREA_PARAM_GRAVITY_IS_POINT`"] + pub const GRAVITY_IS_POINT: AreaParameter = AreaParameter { + ord: 3i32 + }; + #[doc(alias = "AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE")] + #[doc = "Godot enumerator name: `AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE`"] + pub const GRAVITY_POINT_UNIT_DISTANCE: AreaParameter = AreaParameter { + ord: 4i32 + }; + #[doc(alias = "AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE")] + #[doc = "Godot enumerator name: `AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE`"] + pub const LINEAR_DAMP_OVERRIDE_MODE: AreaParameter = AreaParameter { + ord: 5i32 + }; + #[doc(alias = "AREA_PARAM_LINEAR_DAMP")] + #[doc = "Godot enumerator name: `AREA_PARAM_LINEAR_DAMP`"] + pub const LINEAR_DAMP: AreaParameter = AreaParameter { + ord: 6i32 + }; + #[doc(alias = "AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE")] + #[doc = "Godot enumerator name: `AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE`"] + pub const ANGULAR_DAMP_OVERRIDE_MODE: AreaParameter = AreaParameter { + ord: 7i32 + }; + #[doc(alias = "AREA_PARAM_ANGULAR_DAMP")] + #[doc = "Godot enumerator name: `AREA_PARAM_ANGULAR_DAMP`"] + pub const ANGULAR_DAMP: AreaParameter = AreaParameter { + ord: 8i32 + }; + #[doc(alias = "AREA_PARAM_PRIORITY")] + #[doc = "Godot enumerator name: `AREA_PARAM_PRIORITY`"] + pub const PRIORITY: AreaParameter = AreaParameter { + ord: 9i32 + }; + +} +impl std::fmt::Debug for AreaParameter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AreaParameter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AreaParameter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GRAVITY_OVERRIDE_MODE => "GRAVITY_OVERRIDE_MODE", Self::GRAVITY => "GRAVITY", Self::GRAVITY_VECTOR => "GRAVITY_VECTOR", Self::GRAVITY_IS_POINT => "GRAVITY_IS_POINT", Self::GRAVITY_POINT_UNIT_DISTANCE => "GRAVITY_POINT_UNIT_DISTANCE", Self::LINEAR_DAMP_OVERRIDE_MODE => "LINEAR_DAMP_OVERRIDE_MODE", Self::LINEAR_DAMP => "LINEAR_DAMP", Self::ANGULAR_DAMP_OVERRIDE_MODE => "ANGULAR_DAMP_OVERRIDE_MODE", Self::ANGULAR_DAMP => "ANGULAR_DAMP", Self::PRIORITY => "PRIORITY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GRAVITY_OVERRIDE_MODE => "AREA_PARAM_GRAVITY_OVERRIDE_MODE", Self::GRAVITY => "AREA_PARAM_GRAVITY", Self::GRAVITY_VECTOR => "AREA_PARAM_GRAVITY_VECTOR", Self::GRAVITY_IS_POINT => "AREA_PARAM_GRAVITY_IS_POINT", Self::GRAVITY_POINT_UNIT_DISTANCE => "AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE", Self::LINEAR_DAMP_OVERRIDE_MODE => "AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE", Self::LINEAR_DAMP => "AREA_PARAM_LINEAR_DAMP", Self::ANGULAR_DAMP_OVERRIDE_MODE => "AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE", Self::ANGULAR_DAMP => "AREA_PARAM_ANGULAR_DAMP", Self::PRIORITY => "AREA_PARAM_PRIORITY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AreaParameter { + type Via = i32; + +} +impl crate::meta::ToGodot for AreaParameter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AreaParameter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AreaSpaceOverrideMode { + ord: i32 +} +impl AreaSpaceOverrideMode { + #[doc(alias = "AREA_SPACE_OVERRIDE_DISABLED")] + #[doc = "Godot enumerator name: `AREA_SPACE_OVERRIDE_DISABLED`"] + pub const DISABLED: AreaSpaceOverrideMode = AreaSpaceOverrideMode { + ord: 0i32 + }; + #[doc(alias = "AREA_SPACE_OVERRIDE_COMBINE")] + #[doc = "Godot enumerator name: `AREA_SPACE_OVERRIDE_COMBINE`"] + pub const COMBINE: AreaSpaceOverrideMode = AreaSpaceOverrideMode { + ord: 1i32 + }; + #[doc(alias = "AREA_SPACE_OVERRIDE_COMBINE_REPLACE")] + #[doc = "Godot enumerator name: `AREA_SPACE_OVERRIDE_COMBINE_REPLACE`"] + pub const COMBINE_REPLACE: AreaSpaceOverrideMode = AreaSpaceOverrideMode { + ord: 2i32 + }; + #[doc(alias = "AREA_SPACE_OVERRIDE_REPLACE")] + #[doc = "Godot enumerator name: `AREA_SPACE_OVERRIDE_REPLACE`"] + pub const REPLACE: AreaSpaceOverrideMode = AreaSpaceOverrideMode { + ord: 3i32 + }; + #[doc(alias = "AREA_SPACE_OVERRIDE_REPLACE_COMBINE")] + #[doc = "Godot enumerator name: `AREA_SPACE_OVERRIDE_REPLACE_COMBINE`"] + pub const REPLACE_COMBINE: AreaSpaceOverrideMode = AreaSpaceOverrideMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for AreaSpaceOverrideMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AreaSpaceOverrideMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AreaSpaceOverrideMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::COMBINE => "COMBINE", Self::COMBINE_REPLACE => "COMBINE_REPLACE", Self::REPLACE => "REPLACE", Self::REPLACE_COMBINE => "REPLACE_COMBINE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "AREA_SPACE_OVERRIDE_DISABLED", Self::COMBINE => "AREA_SPACE_OVERRIDE_COMBINE", Self::COMBINE_REPLACE => "AREA_SPACE_OVERRIDE_COMBINE_REPLACE", Self::REPLACE => "AREA_SPACE_OVERRIDE_REPLACE", Self::REPLACE_COMBINE => "AREA_SPACE_OVERRIDE_REPLACE_COMBINE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AreaSpaceOverrideMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AreaSpaceOverrideMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AreaSpaceOverrideMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BodyMode { + ord: i32 +} +impl BodyMode { + #[doc(alias = "BODY_MODE_STATIC")] + #[doc = "Godot enumerator name: `BODY_MODE_STATIC`"] + pub const STATIC: BodyMode = BodyMode { + ord: 0i32 + }; + #[doc(alias = "BODY_MODE_KINEMATIC")] + #[doc = "Godot enumerator name: `BODY_MODE_KINEMATIC`"] + pub const KINEMATIC: BodyMode = BodyMode { + ord: 1i32 + }; + #[doc(alias = "BODY_MODE_RIGID")] + #[doc = "Godot enumerator name: `BODY_MODE_RIGID`"] + pub const RIGID: BodyMode = BodyMode { + ord: 2i32 + }; + #[doc(alias = "BODY_MODE_RIGID_LINEAR")] + #[doc = "Godot enumerator name: `BODY_MODE_RIGID_LINEAR`"] + pub const RIGID_LINEAR: BodyMode = BodyMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for BodyMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BodyMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BodyMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STATIC => "STATIC", Self::KINEMATIC => "KINEMATIC", Self::RIGID => "RIGID", Self::RIGID_LINEAR => "RIGID_LINEAR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STATIC => "BODY_MODE_STATIC", Self::KINEMATIC => "BODY_MODE_KINEMATIC", Self::RIGID => "BODY_MODE_RIGID", Self::RIGID_LINEAR => "BODY_MODE_RIGID_LINEAR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BodyMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BodyMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BodyMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BodyParameter { + ord: i32 +} +impl BodyParameter { + #[doc(alias = "BODY_PARAM_BOUNCE")] + #[doc = "Godot enumerator name: `BODY_PARAM_BOUNCE`"] + pub const BOUNCE: BodyParameter = BodyParameter { + ord: 0i32 + }; + #[doc(alias = "BODY_PARAM_FRICTION")] + #[doc = "Godot enumerator name: `BODY_PARAM_FRICTION`"] + pub const FRICTION: BodyParameter = BodyParameter { + ord: 1i32 + }; + #[doc(alias = "BODY_PARAM_MASS")] + #[doc = "Godot enumerator name: `BODY_PARAM_MASS`"] + pub const MASS: BodyParameter = BodyParameter { + ord: 2i32 + }; + #[doc(alias = "BODY_PARAM_INERTIA")] + #[doc = "Godot enumerator name: `BODY_PARAM_INERTIA`"] + pub const INERTIA: BodyParameter = BodyParameter { + ord: 3i32 + }; + #[doc(alias = "BODY_PARAM_CENTER_OF_MASS")] + #[doc = "Godot enumerator name: `BODY_PARAM_CENTER_OF_MASS`"] + pub const CENTER_OF_MASS: BodyParameter = BodyParameter { + ord: 4i32 + }; + #[doc(alias = "BODY_PARAM_GRAVITY_SCALE")] + #[doc = "Godot enumerator name: `BODY_PARAM_GRAVITY_SCALE`"] + pub const GRAVITY_SCALE: BodyParameter = BodyParameter { + ord: 5i32 + }; + #[doc(alias = "BODY_PARAM_LINEAR_DAMP_MODE")] + #[doc = "Godot enumerator name: `BODY_PARAM_LINEAR_DAMP_MODE`"] + pub const LINEAR_DAMP_MODE: BodyParameter = BodyParameter { + ord: 6i32 + }; + #[doc(alias = "BODY_PARAM_ANGULAR_DAMP_MODE")] + #[doc = "Godot enumerator name: `BODY_PARAM_ANGULAR_DAMP_MODE`"] + pub const ANGULAR_DAMP_MODE: BodyParameter = BodyParameter { + ord: 7i32 + }; + #[doc(alias = "BODY_PARAM_LINEAR_DAMP")] + #[doc = "Godot enumerator name: `BODY_PARAM_LINEAR_DAMP`"] + pub const LINEAR_DAMP: BodyParameter = BodyParameter { + ord: 8i32 + }; + #[doc(alias = "BODY_PARAM_ANGULAR_DAMP")] + #[doc = "Godot enumerator name: `BODY_PARAM_ANGULAR_DAMP`"] + pub const ANGULAR_DAMP: BodyParameter = BodyParameter { + ord: 9i32 + }; + #[doc(alias = "BODY_PARAM_MAX")] + #[doc = "Godot enumerator name: `BODY_PARAM_MAX`"] + pub const MAX: BodyParameter = BodyParameter { + ord: 10i32 + }; + +} +impl std::fmt::Debug for BodyParameter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BodyParameter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BodyParameter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOUNCE => "BOUNCE", Self::FRICTION => "FRICTION", Self::MASS => "MASS", Self::INERTIA => "INERTIA", Self::CENTER_OF_MASS => "CENTER_OF_MASS", Self::GRAVITY_SCALE => "GRAVITY_SCALE", Self::LINEAR_DAMP_MODE => "LINEAR_DAMP_MODE", Self::ANGULAR_DAMP_MODE => "ANGULAR_DAMP_MODE", Self::LINEAR_DAMP => "LINEAR_DAMP", Self::ANGULAR_DAMP => "ANGULAR_DAMP", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOUNCE => "BODY_PARAM_BOUNCE", Self::FRICTION => "BODY_PARAM_FRICTION", Self::MASS => "BODY_PARAM_MASS", Self::INERTIA => "BODY_PARAM_INERTIA", Self::CENTER_OF_MASS => "BODY_PARAM_CENTER_OF_MASS", Self::GRAVITY_SCALE => "BODY_PARAM_GRAVITY_SCALE", Self::LINEAR_DAMP_MODE => "BODY_PARAM_LINEAR_DAMP_MODE", Self::ANGULAR_DAMP_MODE => "BODY_PARAM_ANGULAR_DAMP_MODE", Self::LINEAR_DAMP => "BODY_PARAM_LINEAR_DAMP", Self::ANGULAR_DAMP => "BODY_PARAM_ANGULAR_DAMP", Self::MAX => "BODY_PARAM_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for BodyParameter { + const ENUMERATOR_COUNT: usize = 10usize; + +} +impl crate::meta::GodotConvert for BodyParameter { + type Via = i32; + +} +impl crate::meta::ToGodot for BodyParameter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BodyParameter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BodyDampMode { + ord: i32 +} +impl BodyDampMode { + #[doc(alias = "BODY_DAMP_MODE_COMBINE")] + #[doc = "Godot enumerator name: `BODY_DAMP_MODE_COMBINE`"] + pub const COMBINE: BodyDampMode = BodyDampMode { + ord: 0i32 + }; + #[doc(alias = "BODY_DAMP_MODE_REPLACE")] + #[doc = "Godot enumerator name: `BODY_DAMP_MODE_REPLACE`"] + pub const REPLACE: BodyDampMode = BodyDampMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for BodyDampMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BodyDampMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BodyDampMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMBINE => "COMBINE", Self::REPLACE => "REPLACE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMBINE => "BODY_DAMP_MODE_COMBINE", Self::REPLACE => "BODY_DAMP_MODE_REPLACE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BodyDampMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BodyDampMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BodyDampMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BodyState { + ord: i32 +} +impl BodyState { + #[doc(alias = "BODY_STATE_TRANSFORM")] + #[doc = "Godot enumerator name: `BODY_STATE_TRANSFORM`"] + pub const TRANSFORM: BodyState = BodyState { + ord: 0i32 + }; + #[doc(alias = "BODY_STATE_LINEAR_VELOCITY")] + #[doc = "Godot enumerator name: `BODY_STATE_LINEAR_VELOCITY`"] + pub const LINEAR_VELOCITY: BodyState = BodyState { + ord: 1i32 + }; + #[doc(alias = "BODY_STATE_ANGULAR_VELOCITY")] + #[doc = "Godot enumerator name: `BODY_STATE_ANGULAR_VELOCITY`"] + pub const ANGULAR_VELOCITY: BodyState = BodyState { + ord: 2i32 + }; + #[doc(alias = "BODY_STATE_SLEEPING")] + #[doc = "Godot enumerator name: `BODY_STATE_SLEEPING`"] + pub const SLEEPING: BodyState = BodyState { + ord: 3i32 + }; + #[doc(alias = "BODY_STATE_CAN_SLEEP")] + #[doc = "Godot enumerator name: `BODY_STATE_CAN_SLEEP`"] + pub const CAN_SLEEP: BodyState = BodyState { + ord: 4i32 + }; + +} +impl std::fmt::Debug for BodyState { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BodyState") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BodyState { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TRANSFORM => "TRANSFORM", Self::LINEAR_VELOCITY => "LINEAR_VELOCITY", Self::ANGULAR_VELOCITY => "ANGULAR_VELOCITY", Self::SLEEPING => "SLEEPING", Self::CAN_SLEEP => "CAN_SLEEP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TRANSFORM => "BODY_STATE_TRANSFORM", Self::LINEAR_VELOCITY => "BODY_STATE_LINEAR_VELOCITY", Self::ANGULAR_VELOCITY => "BODY_STATE_ANGULAR_VELOCITY", Self::SLEEPING => "BODY_STATE_SLEEPING", Self::CAN_SLEEP => "BODY_STATE_CAN_SLEEP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BodyState { + type Via = i32; + +} +impl crate::meta::ToGodot for BodyState { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BodyState { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct JointType { + ord: i32 +} +impl JointType { + #[doc(alias = "JOINT_TYPE_PIN")] + #[doc = "Godot enumerator name: `JOINT_TYPE_PIN`"] + pub const PIN: JointType = JointType { + ord: 0i32 + }; + #[doc(alias = "JOINT_TYPE_GROOVE")] + #[doc = "Godot enumerator name: `JOINT_TYPE_GROOVE`"] + pub const GROOVE: JointType = JointType { + ord: 1i32 + }; + #[doc(alias = "JOINT_TYPE_DAMPED_SPRING")] + #[doc = "Godot enumerator name: `JOINT_TYPE_DAMPED_SPRING`"] + pub const DAMPED_SPRING: JointType = JointType { + ord: 2i32 + }; + #[doc(alias = "JOINT_TYPE_MAX")] + #[doc = "Godot enumerator name: `JOINT_TYPE_MAX`"] + pub const MAX: JointType = JointType { + ord: 3i32 + }; + +} +impl std::fmt::Debug for JointType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("JointType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for JointType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PIN => "PIN", Self::GROOVE => "GROOVE", Self::DAMPED_SPRING => "DAMPED_SPRING", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PIN => "JOINT_TYPE_PIN", Self::GROOVE => "JOINT_TYPE_GROOVE", Self::DAMPED_SPRING => "JOINT_TYPE_DAMPED_SPRING", Self::MAX => "JOINT_TYPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for JointType { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for JointType { + type Via = i32; + +} +impl crate::meta::ToGodot for JointType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for JointType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct JointParam { + ord: i32 +} +impl JointParam { + #[doc(alias = "JOINT_PARAM_BIAS")] + #[doc = "Godot enumerator name: `JOINT_PARAM_BIAS`"] + pub const BIAS: JointParam = JointParam { + ord: 0i32 + }; + #[doc(alias = "JOINT_PARAM_MAX_BIAS")] + #[doc = "Godot enumerator name: `JOINT_PARAM_MAX_BIAS`"] + pub const MAX_BIAS: JointParam = JointParam { + ord: 1i32 + }; + #[doc(alias = "JOINT_PARAM_MAX_FORCE")] + #[doc = "Godot enumerator name: `JOINT_PARAM_MAX_FORCE`"] + pub const MAX_FORCE: JointParam = JointParam { + ord: 2i32 + }; + +} +impl std::fmt::Debug for JointParam { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("JointParam") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for JointParam { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BIAS => "BIAS", Self::MAX_BIAS => "MAX_BIAS", Self::MAX_FORCE => "MAX_FORCE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BIAS => "JOINT_PARAM_BIAS", Self::MAX_BIAS => "JOINT_PARAM_MAX_BIAS", Self::MAX_FORCE => "JOINT_PARAM_MAX_FORCE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for JointParam { + type Via = i32; + +} +impl crate::meta::ToGodot for JointParam { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for JointParam { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PinJointParam { + ord: i32 +} +impl PinJointParam { + #[doc(alias = "PIN_JOINT_SOFTNESS")] + #[doc = "Godot enumerator name: `PIN_JOINT_SOFTNESS`"] + pub const SOFTNESS: PinJointParam = PinJointParam { + ord: 0i32 + }; + #[doc(alias = "PIN_JOINT_LIMIT_UPPER")] + #[doc = "Godot enumerator name: `PIN_JOINT_LIMIT_UPPER`"] + pub const LIMIT_UPPER: PinJointParam = PinJointParam { + ord: 1i32 + }; + #[doc(alias = "PIN_JOINT_LIMIT_LOWER")] + #[doc = "Godot enumerator name: `PIN_JOINT_LIMIT_LOWER`"] + pub const LIMIT_LOWER: PinJointParam = PinJointParam { + ord: 2i32 + }; + #[doc(alias = "PIN_JOINT_MOTOR_TARGET_VELOCITY")] + #[doc = "Godot enumerator name: `PIN_JOINT_MOTOR_TARGET_VELOCITY`"] + pub const MOTOR_TARGET_VELOCITY: PinJointParam = PinJointParam { + ord: 3i32 + }; + +} +impl std::fmt::Debug for PinJointParam { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PinJointParam") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PinJointParam { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SOFTNESS => "SOFTNESS", Self::LIMIT_UPPER => "LIMIT_UPPER", Self::LIMIT_LOWER => "LIMIT_LOWER", Self::MOTOR_TARGET_VELOCITY => "MOTOR_TARGET_VELOCITY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SOFTNESS => "PIN_JOINT_SOFTNESS", Self::LIMIT_UPPER => "PIN_JOINT_LIMIT_UPPER", Self::LIMIT_LOWER => "PIN_JOINT_LIMIT_LOWER", Self::MOTOR_TARGET_VELOCITY => "PIN_JOINT_MOTOR_TARGET_VELOCITY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PinJointParam { + type Via = i32; + +} +impl crate::meta::ToGodot for PinJointParam { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PinJointParam { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PinJointFlag { + ord: i32 +} +impl PinJointFlag { + #[doc(alias = "PIN_JOINT_FLAG_ANGULAR_LIMIT_ENABLED")] + #[doc = "Godot enumerator name: `PIN_JOINT_FLAG_ANGULAR_LIMIT_ENABLED`"] + pub const ANGULAR_LIMIT_ENABLED: PinJointFlag = PinJointFlag { + ord: 0i32 + }; + #[doc(alias = "PIN_JOINT_FLAG_MOTOR_ENABLED")] + #[doc = "Godot enumerator name: `PIN_JOINT_FLAG_MOTOR_ENABLED`"] + pub const MOTOR_ENABLED: PinJointFlag = PinJointFlag { + ord: 1i32 + }; + +} +impl std::fmt::Debug for PinJointFlag { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PinJointFlag") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PinJointFlag { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ANGULAR_LIMIT_ENABLED => "ANGULAR_LIMIT_ENABLED", Self::MOTOR_ENABLED => "MOTOR_ENABLED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ANGULAR_LIMIT_ENABLED => "PIN_JOINT_FLAG_ANGULAR_LIMIT_ENABLED", Self::MOTOR_ENABLED => "PIN_JOINT_FLAG_MOTOR_ENABLED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PinJointFlag { + type Via = i32; + +} +impl crate::meta::ToGodot for PinJointFlag { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PinJointFlag { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DampedSpringParam { + ord: i32 +} +impl DampedSpringParam { + #[doc(alias = "DAMPED_SPRING_REST_LENGTH")] + #[doc = "Godot enumerator name: `DAMPED_SPRING_REST_LENGTH`"] + pub const REST_LENGTH: DampedSpringParam = DampedSpringParam { + ord: 0i32 + }; + #[doc(alias = "DAMPED_SPRING_STIFFNESS")] + #[doc = "Godot enumerator name: `DAMPED_SPRING_STIFFNESS`"] + pub const STIFFNESS: DampedSpringParam = DampedSpringParam { + ord: 1i32 + }; + #[doc(alias = "DAMPED_SPRING_DAMPING")] + #[doc = "Godot enumerator name: `DAMPED_SPRING_DAMPING`"] + pub const DAMPING: DampedSpringParam = DampedSpringParam { + ord: 2i32 + }; + +} +impl std::fmt::Debug for DampedSpringParam { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DampedSpringParam") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DampedSpringParam { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::REST_LENGTH => "REST_LENGTH", Self::STIFFNESS => "STIFFNESS", Self::DAMPING => "DAMPING", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::REST_LENGTH => "DAMPED_SPRING_REST_LENGTH", Self::STIFFNESS => "DAMPED_SPRING_STIFFNESS", Self::DAMPING => "DAMPED_SPRING_DAMPING", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DampedSpringParam { + type Via = i32; + +} +impl crate::meta::ToGodot for DampedSpringParam { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DampedSpringParam { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `CCDMode`."] +pub struct CcdMode { + ord: i32 +} +impl CcdMode { + #[doc(alias = "CCD_MODE_DISABLED")] + #[doc = "Godot enumerator name: `CCD_MODE_DISABLED`"] + pub const DISABLED: CcdMode = CcdMode { + ord: 0i32 + }; + #[doc(alias = "CCD_MODE_CAST_RAY")] + #[doc = "Godot enumerator name: `CCD_MODE_CAST_RAY`"] + pub const CAST_RAY: CcdMode = CcdMode { + ord: 1i32 + }; + #[doc(alias = "CCD_MODE_CAST_SHAPE")] + #[doc = "Godot enumerator name: `CCD_MODE_CAST_SHAPE`"] + pub const CAST_SHAPE: CcdMode = CcdMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for CcdMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CcdMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CcdMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::CAST_RAY => "CAST_RAY", Self::CAST_SHAPE => "CAST_SHAPE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "CCD_MODE_DISABLED", Self::CAST_RAY => "CCD_MODE_CAST_RAY", Self::CAST_SHAPE => "CCD_MODE_CAST_SHAPE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CcdMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CcdMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CcdMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AreaBodyStatus { + ord: i32 +} +impl AreaBodyStatus { + #[doc(alias = "AREA_BODY_ADDED")] + #[doc = "Godot enumerator name: `AREA_BODY_ADDED`"] + pub const ADDED: AreaBodyStatus = AreaBodyStatus { + ord: 0i32 + }; + #[doc(alias = "AREA_BODY_REMOVED")] + #[doc = "Godot enumerator name: `AREA_BODY_REMOVED`"] + pub const REMOVED: AreaBodyStatus = AreaBodyStatus { + ord: 1i32 + }; + +} +impl std::fmt::Debug for AreaBodyStatus { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AreaBodyStatus") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AreaBodyStatus { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADDED => "ADDED", Self::REMOVED => "REMOVED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADDED => "AREA_BODY_ADDED", Self::REMOVED => "AREA_BODY_REMOVED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AreaBodyStatus { + type Via = i32; + +} +impl crate::meta::ToGodot for AreaBodyStatus { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AreaBodyStatus { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ProcessInfo { + ord: i32 +} +impl ProcessInfo { + #[doc(alias = "INFO_ACTIVE_OBJECTS")] + #[doc = "Godot enumerator name: `INFO_ACTIVE_OBJECTS`"] + pub const ACTIVE_OBJECTS: ProcessInfo = ProcessInfo { + ord: 0i32 + }; + #[doc(alias = "INFO_COLLISION_PAIRS")] + #[doc = "Godot enumerator name: `INFO_COLLISION_PAIRS`"] + pub const COLLISION_PAIRS: ProcessInfo = ProcessInfo { + ord: 1i32 + }; + #[doc(alias = "INFO_ISLAND_COUNT")] + #[doc = "Godot enumerator name: `INFO_ISLAND_COUNT`"] + pub const ISLAND_COUNT: ProcessInfo = ProcessInfo { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ProcessInfo { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ProcessInfo") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ProcessInfo { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ACTIVE_OBJECTS => "ACTIVE_OBJECTS", Self::COLLISION_PAIRS => "COLLISION_PAIRS", Self::ISLAND_COUNT => "ISLAND_COUNT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ACTIVE_OBJECTS => "INFO_ACTIVE_OBJECTS", Self::COLLISION_PAIRS => "INFO_COLLISION_PAIRS", Self::ISLAND_COUNT => "INFO_ISLAND_COUNT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ProcessInfo { + type Via = i32; + +} +impl crate::meta::ToGodot for ProcessInfo { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ProcessInfo { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_2d_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_2d_extension.rs new file mode 100644 index 0000000..9786afe --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_2d_extension.rs @@ -0,0 +1,360 @@ +#![doc = "Sidecar module for class [`PhysicsServer2DExtension`][crate::classes::PhysicsServer2DExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsServer2DExtension` enums](https://docs.godotengine.org/en/stable/classes/class_physicsserver2dextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsServer2DExtension.`\n\nInherits [`PhysicsServer2D`][crate::classes::PhysicsServer2D].\n\nRelated symbols:\n\n* [`IPhysicsServer2DExtension`][crate::classes::IPhysicsServer2DExtension]: virtual methods\n\n\nSee also [Godot docs for `PhysicsServer2DExtension`](https://docs.godotengine.org/en/stable/classes/class_physicsserver2dextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PhysicsServer2DExtension::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsServer2DExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsServer2DExtension`][crate::classes::PhysicsServer2DExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsServer2DExtension` methods](https://docs.godotengine.org/en/stable/classes/class_physicsserver2dextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsServer2DExtension: crate::obj::GodotClass < Base = PhysicsServer2DExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn world_boundary_shape_create(&mut self,) -> Rid; + fn separation_ray_shape_create(&mut self,) -> Rid; + fn segment_shape_create(&mut self,) -> Rid; + fn circle_shape_create(&mut self,) -> Rid; + fn rectangle_shape_create(&mut self,) -> Rid; + fn capsule_shape_create(&mut self,) -> Rid; + fn convex_polygon_shape_create(&mut self,) -> Rid; + fn concave_polygon_shape_create(&mut self,) -> Rid; + fn shape_set_data(&mut self, shape: Rid, data: Variant,); + fn shape_set_custom_solver_bias(&mut self, shape: Rid, bias: f32,); + fn shape_get_type(&self, shape: Rid,) -> crate::classes::physics_server_2d::ShapeType; + fn shape_get_data(&self, shape: Rid,) -> Variant; + fn shape_get_custom_solver_bias(&self, shape: Rid,) -> f32; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn shape_collide(&mut self, shape_A: Rid, xform_A: Transform2D, motion_A: Vector2, shape_B: Rid, xform_B: Transform2D, motion_B: Vector2, results: * mut c_void, result_max: i32, result_count: * mut i32,) -> bool; + fn space_create(&mut self,) -> Rid; + fn space_set_active(&mut self, space: Rid, active: bool,); + fn space_is_active(&self, space: Rid,) -> bool; + fn space_set_param(&mut self, space: Rid, param: crate::classes::physics_server_2d::SpaceParameter, value: f32,); + fn space_get_param(&self, space: Rid, param: crate::classes::physics_server_2d::SpaceParameter,) -> f32; + fn space_get_direct_state(&mut self, space: Rid,) -> Option < Gd < crate::classes::PhysicsDirectSpaceState2D > >; + fn space_set_debug_contacts(&mut self, space: Rid, max_contacts: i32,); + fn space_get_contacts(&self, space: Rid,) -> PackedVector2Array; + fn space_get_contact_count(&self, space: Rid,) -> i32; + fn area_create(&mut self,) -> Rid; + fn area_set_space(&mut self, area: Rid, space: Rid,); + fn area_get_space(&self, area: Rid,) -> Rid; + fn area_add_shape(&mut self, area: Rid, shape: Rid, transform: Transform2D, disabled: bool,); + fn area_set_shape(&mut self, area: Rid, shape_idx: i32, shape: Rid,); + fn area_set_shape_transform(&mut self, area: Rid, shape_idx: i32, transform: Transform2D,); + fn area_set_shape_disabled(&mut self, area: Rid, shape_idx: i32, disabled: bool,); + fn area_get_shape_count(&self, area: Rid,) -> i32; + fn area_get_shape(&self, area: Rid, shape_idx: i32,) -> Rid; + fn area_get_shape_transform(&self, area: Rid, shape_idx: i32,) -> Transform2D; + fn area_remove_shape(&mut self, area: Rid, shape_idx: i32,); + fn area_clear_shapes(&mut self, area: Rid,); + fn area_attach_object_instance_id(&mut self, area: Rid, id: u64,); + fn area_get_object_instance_id(&self, area: Rid,) -> u64; + fn area_attach_canvas_instance_id(&mut self, area: Rid, id: u64,); + fn area_get_canvas_instance_id(&self, area: Rid,) -> u64; + fn area_set_param(&mut self, area: Rid, param: crate::classes::physics_server_2d::AreaParameter, value: Variant,); + fn area_set_transform(&mut self, area: Rid, transform: Transform2D,); + fn area_get_param(&self, area: Rid, param: crate::classes::physics_server_2d::AreaParameter,) -> Variant; + fn area_get_transform(&self, area: Rid,) -> Transform2D; + fn area_set_collision_layer(&mut self, area: Rid, layer: u32,); + fn area_get_collision_layer(&self, area: Rid,) -> u32; + fn area_set_collision_mask(&mut self, area: Rid, mask: u32,); + fn area_get_collision_mask(&self, area: Rid,) -> u32; + fn area_set_monitorable(&mut self, area: Rid, monitorable: bool,); + fn area_set_pickable(&mut self, area: Rid, pickable: bool,); + fn area_set_monitor_callback(&mut self, area: Rid, callback: Callable,); + fn area_set_area_monitor_callback(&mut self, area: Rid, callback: Callable,); + fn body_create(&mut self,) -> Rid; + fn body_set_space(&mut self, body: Rid, space: Rid,); + fn body_get_space(&self, body: Rid,) -> Rid; + fn body_set_mode(&mut self, body: Rid, mode: crate::classes::physics_server_2d::BodyMode,); + fn body_get_mode(&self, body: Rid,) -> crate::classes::physics_server_2d::BodyMode; + fn body_add_shape(&mut self, body: Rid, shape: Rid, transform: Transform2D, disabled: bool,); + fn body_set_shape(&mut self, body: Rid, shape_idx: i32, shape: Rid,); + fn body_set_shape_transform(&mut self, body: Rid, shape_idx: i32, transform: Transform2D,); + fn body_get_shape_count(&self, body: Rid,) -> i32; + fn body_get_shape(&self, body: Rid, shape_idx: i32,) -> Rid; + fn body_get_shape_transform(&self, body: Rid, shape_idx: i32,) -> Transform2D; + fn body_set_shape_disabled(&mut self, body: Rid, shape_idx: i32, disabled: bool,); + fn body_set_shape_as_one_way_collision(&mut self, body: Rid, shape_idx: i32, enable: bool, margin: f32,); + fn body_remove_shape(&mut self, body: Rid, shape_idx: i32,); + fn body_clear_shapes(&mut self, body: Rid,); + fn body_attach_object_instance_id(&mut self, body: Rid, id: u64,); + fn body_get_object_instance_id(&self, body: Rid,) -> u64; + fn body_attach_canvas_instance_id(&mut self, body: Rid, id: u64,); + fn body_get_canvas_instance_id(&self, body: Rid,) -> u64; + fn body_set_continuous_collision_detection_mode(&mut self, body: Rid, mode: crate::classes::physics_server_2d::CcdMode,); + fn body_get_continuous_collision_detection_mode(&self, body: Rid,) -> crate::classes::physics_server_2d::CcdMode; + fn body_set_collision_layer(&mut self, body: Rid, layer: u32,); + fn body_get_collision_layer(&self, body: Rid,) -> u32; + fn body_set_collision_mask(&mut self, body: Rid, mask: u32,); + fn body_get_collision_mask(&self, body: Rid,) -> u32; + fn body_set_collision_priority(&mut self, body: Rid, priority: f32,); + fn body_get_collision_priority(&self, body: Rid,) -> f32; + fn body_set_param(&mut self, body: Rid, param: crate::classes::physics_server_2d::BodyParameter, value: Variant,); + fn body_get_param(&self, body: Rid, param: crate::classes::physics_server_2d::BodyParameter,) -> Variant; + fn body_reset_mass_properties(&mut self, body: Rid,); + fn body_set_state(&mut self, body: Rid, state: crate::classes::physics_server_2d::BodyState, value: Variant,); + fn body_get_state(&self, body: Rid, state: crate::classes::physics_server_2d::BodyState,) -> Variant; + fn body_apply_central_impulse(&mut self, body: Rid, impulse: Vector2,); + fn body_apply_torque_impulse(&mut self, body: Rid, impulse: f32,); + fn body_apply_impulse(&mut self, body: Rid, impulse: Vector2, position: Vector2,); + fn body_apply_central_force(&mut self, body: Rid, force: Vector2,); + fn body_apply_force(&mut self, body: Rid, force: Vector2, position: Vector2,); + fn body_apply_torque(&mut self, body: Rid, torque: f32,); + fn body_add_constant_central_force(&mut self, body: Rid, force: Vector2,); + fn body_add_constant_force(&mut self, body: Rid, force: Vector2, position: Vector2,); + fn body_add_constant_torque(&mut self, body: Rid, torque: f32,); + fn body_set_constant_force(&mut self, body: Rid, force: Vector2,); + fn body_get_constant_force(&self, body: Rid,) -> Vector2; + fn body_set_constant_torque(&mut self, body: Rid, torque: f32,); + fn body_get_constant_torque(&self, body: Rid,) -> f32; + fn body_set_axis_velocity(&mut self, body: Rid, axis_velocity: Vector2,); + fn body_add_collision_exception(&mut self, body: Rid, excepted_body: Rid,); + fn body_remove_collision_exception(&mut self, body: Rid, excepted_body: Rid,); + fn body_get_collision_exceptions(&self, body: Rid,) -> Array < Rid >; + fn body_set_max_contacts_reported(&mut self, body: Rid, amount: i32,); + fn body_get_max_contacts_reported(&self, body: Rid,) -> i32; + fn body_set_contacts_reported_depth_threshold(&mut self, body: Rid, threshold: f32,); + fn body_get_contacts_reported_depth_threshold(&self, body: Rid,) -> f32; + fn body_set_omit_force_integration(&mut self, body: Rid, enable: bool,); + fn body_is_omitting_force_integration(&self, body: Rid,) -> bool; + fn body_set_state_sync_callback(&mut self, body: Rid, callable: Callable,); + fn body_set_force_integration_callback(&mut self, body: Rid, callable: Callable, userdata: Variant,); + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn body_collide_shape(&mut self, body: Rid, body_shape: i32, shape: Rid, shape_xform: Transform2D, motion: Vector2, results: * mut c_void, result_max: i32, result_count: * mut i32,) -> bool; + fn body_set_pickable(&mut self, body: Rid, pickable: bool,); + fn body_get_direct_state(&mut self, body: Rid,) -> Option < Gd < crate::classes::PhysicsDirectBodyState2D > >; + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn body_test_motion(&self, body: Rid, from: Transform2D, motion: Vector2, margin: f32, collide_separation_ray: bool, recovery_as_collision: bool, result: * mut PhysicsServer2DExtensionMotionResult,) -> bool; + fn joint_create(&mut self,) -> Rid; + fn joint_clear(&mut self, joint: Rid,); + fn joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_2d::JointParam, value: f32,); + fn joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_2d::JointParam,) -> f32; + fn joint_disable_collisions_between_bodies(&mut self, joint: Rid, disable: bool,); + fn joint_is_disabled_collisions_between_bodies(&self, joint: Rid,) -> bool; + fn joint_make_pin(&mut self, joint: Rid, anchor: Vector2, body_a: Rid, body_b: Rid,); + fn joint_make_groove(&mut self, joint: Rid, a_groove1: Vector2, a_groove2: Vector2, b_anchor: Vector2, body_a: Rid, body_b: Rid,); + fn joint_make_damped_spring(&mut self, joint: Rid, anchor_a: Vector2, anchor_b: Vector2, body_a: Rid, body_b: Rid,); + fn pin_joint_set_flag(&mut self, joint: Rid, flag: crate::classes::physics_server_2d::PinJointFlag, enabled: bool,); + fn pin_joint_get_flag(&self, joint: Rid, flag: crate::classes::physics_server_2d::PinJointFlag,) -> bool; + fn pin_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_2d::PinJointParam, value: f32,); + fn pin_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_2d::PinJointParam,) -> f32; + fn damped_spring_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_2d::DampedSpringParam, value: f32,); + fn damped_spring_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_2d::DampedSpringParam,) -> f32; + fn joint_get_type(&self, joint: Rid,) -> crate::classes::physics_server_2d::JointType; + fn free_rid(&mut self, rid: Rid,); + fn set_active(&mut self, active: bool,); + fn init_ext(&mut self,); + fn step(&mut self, step: f32,); + fn sync(&mut self,); + fn flush_queries(&mut self,); + fn end_sync(&mut self,); + fn finish(&mut self,); + fn is_flushing_queries(&self,) -> bool; + fn get_process_info(&mut self, process_info: crate::classes::physics_server_2d::ProcessInfo,) -> i32; + + } + impl PhysicsServer2DExtension { + pub fn body_test_motion_is_excluding_body(&self, body: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(324usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2DExtension", "body_test_motion_is_excluding_body", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_test_motion_is_excluding_object(&self, object: u64,) -> bool { + type CallSig = (bool, u64); + let args = (object,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(325usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2DExtension", "body_test_motion_is_excluding_object", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsServer2DExtension { + type Base = crate::classes::PhysicsServer2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsServer2DExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsServer2DExtension { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsServer2D > for PhysicsServer2DExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsServer2DExtension { + + } + impl crate::obj::cap::GodotDefault for PhysicsServer2DExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsServer2DExtension { + type Target = crate::classes::PhysicsServer2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsServer2DExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsServer2DExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsServer2DExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsServer2DExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsServer2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_2d_manager.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_2d_manager.rs new file mode 100644 index 0000000..c4b01cc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_2d_manager.rs @@ -0,0 +1,205 @@ +#![doc = "Sidecar module for class [`PhysicsServer2DManager`][crate::classes::PhysicsServer2DManager].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsServer2DManager` enums](https://docs.godotengine.org/en/stable/classes/class_physicsserver2dmanager.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsServer2DManager.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IPhysicsServer2DManager`][crate::classes::IPhysicsServer2DManager]: virtual methods\n\n\nSee also [Godot docs for `PhysicsServer2DManager`](https://docs.godotengine.org/en/stable/classes/class_physicsserver2dmanager.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`PhysicsServer2DManager::singleton()`][PhysicsServer2DManager::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsServer2DManager { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsServer2DManager`][crate::classes::PhysicsServer2DManager].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsServer2DManager` methods](https://docs.godotengine.org/en/stable/classes/class_physicsserver2dmanager.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsServer2DManager: crate::obj::GodotClass < Base = PhysicsServer2DManager > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsServer2DManager { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"PhysicsServer2DManager"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn register_server(&mut self, name: impl AsArg < GString >, create_callback: &Callable,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, Callable >); + let args = (name.into_arg(), RefArg::new(create_callback),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(326usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2DManager", "register_server", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_default_server(&mut self, name: impl AsArg < GString >, priority: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32); + let args = (name.into_arg(), priority,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(327usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer2DManager", "set_default_server", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsServer2DManager { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsServer2DManager")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsServer2DManager { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsServer2DManager { + + } + impl std::ops::Deref for PhysicsServer2DManager { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsServer2DManager { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsServer2DManager`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsServer2DManager { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsServer2DManager > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d.rs new file mode 100644 index 0000000..4c675fc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d.rs @@ -0,0 +1,3716 @@ +#![doc = "Sidecar module for class [`PhysicsServer3D`][crate::classes::PhysicsServer3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsServer3D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsserver3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsServer3D.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`physics_server_3d`][crate::classes::physics_server_3d]: sidecar module with related enum/flag types\n* [`IPhysicsServer3D`][crate::classes::IPhysicsServer3D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsServer3D`](https://docs.godotengine.org/en/stable/classes/class_physicsserver3d.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`PhysicsServer3D::singleton()`][PhysicsServer3D::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsServer3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsServer3D`][crate::classes::PhysicsServer3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsServer3D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsserver3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsServer3D: crate::obj::GodotClass < Base = PhysicsServer3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsServer3D { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"PhysicsServer3D"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn world_boundary_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(328usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "world_boundary_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn separation_ray_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(329usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "separation_ray_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sphere_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(330usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "sphere_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn box_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(331usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "box_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn capsule_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(332usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "capsule_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn cylinder_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(333usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "cylinder_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn convex_polygon_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(334usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "convex_polygon_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn concave_polygon_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(335usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "concave_polygon_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn heightmap_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(336usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "heightmap_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn custom_shape_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(337usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "custom_shape_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_set_data(&mut self, shape: Rid, data: &Variant,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Variant >); + let args = (shape, RefArg::new(data),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(338usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "shape_set_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_set_margin(&mut self, shape: Rid, margin: f32,) { + type CallSig = ((), Rid, f32); + let args = (shape, margin,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(339usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "shape_set_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_get_type(&self, shape: Rid,) -> crate::classes::physics_server_3d::ShapeType { + type CallSig = (crate::classes::physics_server_3d::ShapeType, Rid); + let args = (shape,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(340usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "shape_get_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_get_data(&self, shape: Rid,) -> Variant { + type CallSig = (Variant, Rid); + let args = (shape,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(341usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "shape_get_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shape_get_margin(&self, shape: Rid,) -> f32 { + type CallSig = (f32, Rid); + let args = (shape,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(342usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "shape_get_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(343usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "space_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_set_active(&mut self, space: Rid, active: bool,) { + type CallSig = ((), Rid, bool); + let args = (space, active,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(344usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "space_set_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_is_active(&self, space: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (space,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(345usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "space_is_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_set_param(&mut self, space: Rid, param: crate::classes::physics_server_3d::SpaceParameter, value: f32,) { + type CallSig = ((), Rid, crate::classes::physics_server_3d::SpaceParameter, f32); + let args = (space, param, value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(346usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "space_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_get_param(&self, space: Rid, param: crate::classes::physics_server_3d::SpaceParameter,) -> f32 { + type CallSig = (f32, Rid, crate::classes::physics_server_3d::SpaceParameter); + let args = (space, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(347usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "space_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn space_get_direct_state(&mut self, space: Rid,) -> Option < Gd < crate::classes::PhysicsDirectSpaceState3D > > { + type CallSig = (Option < Gd < crate::classes::PhysicsDirectSpaceState3D > >, Rid); + let args = (space,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(348usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "space_get_direct_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(349usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_space(&mut self, area: Rid, space: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (area, space,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(350usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_space(&self, area: Rid,) -> Rid { + type CallSig = (Rid, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(351usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_get_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn area_add_shape_full(&mut self, area: Rid, shape: Rid, transform: Transform3D, disabled: bool,) { + type CallSig = ((), Rid, Rid, Transform3D, bool); + let args = (area, shape, transform, disabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(352usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_add_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::area_add_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn area_add_shape(&mut self, area: Rid, shape: Rid,) { + self.area_add_shape_ex(area, shape,) . done() + } + #[inline] + pub fn area_add_shape_ex < 'a > (&'a mut self, area: Rid, shape: Rid,) -> ExAreaAddShape < 'a > { + ExAreaAddShape::new(self, area, shape,) + } + pub fn area_set_shape(&mut self, area: Rid, shape_idx: i32, shape: Rid,) { + type CallSig = ((), Rid, i32, Rid); + let args = (area, shape_idx, shape,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(353usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_shape_transform(&mut self, area: Rid, shape_idx: i32, transform: Transform3D,) { + type CallSig = ((), Rid, i32, Transform3D); + let args = (area, shape_idx, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(354usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_shape_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_shape_disabled(&mut self, area: Rid, shape_idx: i32, disabled: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (area, shape_idx, disabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(355usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_shape_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_shape_count(&self, area: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(356usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_get_shape_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_shape(&self, area: Rid, shape_idx: i32,) -> Rid { + type CallSig = (Rid, Rid, i32); + let args = (area, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(357usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_shape_transform(&self, area: Rid, shape_idx: i32,) -> Transform3D { + type CallSig = (Transform3D, Rid, i32); + let args = (area, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(358usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_get_shape_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_remove_shape(&mut self, area: Rid, shape_idx: i32,) { + type CallSig = ((), Rid, i32); + let args = (area, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(359usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_remove_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_clear_shapes(&mut self, area: Rid,) { + type CallSig = ((), Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(360usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_clear_shapes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_collision_layer(&mut self, area: Rid, layer: u32,) { + type CallSig = ((), Rid, u32); + let args = (area, layer,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(361usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_collision_layer(&self, area: Rid,) -> u32 { + type CallSig = (u32, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(362usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_get_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_collision_mask(&mut self, area: Rid, mask: u32,) { + type CallSig = ((), Rid, u32); + let args = (area, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(363usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_collision_mask(&self, area: Rid,) -> u32 { + type CallSig = (u32, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(364usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_param(&mut self, area: Rid, param: crate::classes::physics_server_3d::AreaParameter, value: &Variant,) { + type CallSig < 'a0, > = ((), Rid, crate::classes::physics_server_3d::AreaParameter, RefArg < 'a0, Variant >); + let args = (area, param, RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(365usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_transform(&mut self, area: Rid, transform: Transform3D,) { + type CallSig = ((), Rid, Transform3D); + let args = (area, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(366usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_param(&self, area: Rid, param: crate::classes::physics_server_3d::AreaParameter,) -> Variant { + type CallSig = (Variant, Rid, crate::classes::physics_server_3d::AreaParameter); + let args = (area, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(367usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_transform(&self, area: Rid,) -> Transform3D { + type CallSig = (Transform3D, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(368usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_attach_object_instance_id(&mut self, area: Rid, id: u64,) { + type CallSig = ((), Rid, u64); + let args = (area, id,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(369usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_attach_object_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_get_object_instance_id(&self, area: Rid,) -> u64 { + type CallSig = (u64, Rid); + let args = (area,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(370usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_get_object_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_monitor_callback(&mut self, area: Rid, callback: &Callable,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Callable >); + let args = (area, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(371usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_monitor_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_area_monitor_callback(&mut self, area: Rid, callback: &Callable,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Callable >); + let args = (area, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(372usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_area_monitor_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_monitorable(&mut self, area: Rid, monitorable: bool,) { + type CallSig = ((), Rid, bool); + let args = (area, monitorable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(373usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_monitorable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn area_set_ray_pickable(&mut self, area: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (area, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(374usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "area_set_ray_pickable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(375usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_space(&mut self, body: Rid, space: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (body, space,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(376usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_space(&self, body: Rid,) -> Rid { + type CallSig = (Rid, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(377usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_mode(&mut self, body: Rid, mode: crate::classes::physics_server_3d::BodyMode,) { + type CallSig = ((), Rid, crate::classes::physics_server_3d::BodyMode); + let args = (body, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(378usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_mode(&self, body: Rid,) -> crate::classes::physics_server_3d::BodyMode { + type CallSig = (crate::classes::physics_server_3d::BodyMode, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(379usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_collision_layer(&mut self, body: Rid, layer: u32,) { + type CallSig = ((), Rid, u32); + let args = (body, layer,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(380usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_collision_layer(&self, body: Rid,) -> u32 { + type CallSig = (u32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(381usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_collision_mask(&mut self, body: Rid, mask: u32,) { + type CallSig = ((), Rid, u32); + let args = (body, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(382usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_collision_mask(&self, body: Rid,) -> u32 { + type CallSig = (u32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(383usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_collision_priority(&mut self, body: Rid, priority: f32,) { + type CallSig = ((), Rid, f32); + let args = (body, priority,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(384usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_collision_priority(&self, body: Rid,) -> f32 { + type CallSig = (f32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(385usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_collision_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn body_add_shape_full(&mut self, body: Rid, shape: Rid, transform: Transform3D, disabled: bool,) { + type CallSig = ((), Rid, Rid, Transform3D, bool); + let args = (body, shape, transform, disabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(386usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_add_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_add_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_add_shape(&mut self, body: Rid, shape: Rid,) { + self.body_add_shape_ex(body, shape,) . done() + } + #[inline] + pub fn body_add_shape_ex < 'a > (&'a mut self, body: Rid, shape: Rid,) -> ExBodyAddShape < 'a > { + ExBodyAddShape::new(self, body, shape,) + } + pub fn body_set_shape(&mut self, body: Rid, shape_idx: i32, shape: Rid,) { + type CallSig = ((), Rid, i32, Rid); + let args = (body, shape_idx, shape,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(387usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_shape_transform(&mut self, body: Rid, shape_idx: i32, transform: Transform3D,) { + type CallSig = ((), Rid, i32, Transform3D); + let args = (body, shape_idx, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(388usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_shape_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_shape_disabled(&mut self, body: Rid, shape_idx: i32, disabled: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (body, shape_idx, disabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(389usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_shape_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_shape_count(&self, body: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(390usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_shape_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_shape(&self, body: Rid, shape_idx: i32,) -> Rid { + type CallSig = (Rid, Rid, i32); + let args = (body, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(391usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_shape_transform(&self, body: Rid, shape_idx: i32,) -> Transform3D { + type CallSig = (Transform3D, Rid, i32); + let args = (body, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(392usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_shape_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_remove_shape(&mut self, body: Rid, shape_idx: i32,) { + type CallSig = ((), Rid, i32); + let args = (body, shape_idx,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(393usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_remove_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_clear_shapes(&mut self, body: Rid,) { + type CallSig = ((), Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(394usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_clear_shapes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_attach_object_instance_id(&mut self, body: Rid, id: u64,) { + type CallSig = ((), Rid, u64); + let args = (body, id,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(395usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_attach_object_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_object_instance_id(&self, body: Rid,) -> u64 { + type CallSig = (u64, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(396usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_object_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_enable_continuous_collision_detection(&mut self, body: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (body, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(397usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_enable_continuous_collision_detection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_is_continuous_collision_detection_enabled(&self, body: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(398usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_is_continuous_collision_detection_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_param(&mut self, body: Rid, param: crate::classes::physics_server_3d::BodyParameter, value: &Variant,) { + type CallSig < 'a0, > = ((), Rid, crate::classes::physics_server_3d::BodyParameter, RefArg < 'a0, Variant >); + let args = (body, param, RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(399usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_param(&self, body: Rid, param: crate::classes::physics_server_3d::BodyParameter,) -> Variant { + type CallSig = (Variant, Rid, crate::classes::physics_server_3d::BodyParameter); + let args = (body, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(400usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_reset_mass_properties(&mut self, body: Rid,) { + type CallSig = ((), Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(401usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_reset_mass_properties", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_state(&mut self, body: Rid, state: crate::classes::physics_server_3d::BodyState, value: &Variant,) { + type CallSig < 'a0, > = ((), Rid, crate::classes::physics_server_3d::BodyState, RefArg < 'a0, Variant >); + let args = (body, state, RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(402usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_state(&self, body: Rid, state: crate::classes::physics_server_3d::BodyState,) -> Variant { + type CallSig = (Variant, Rid, crate::classes::physics_server_3d::BodyState); + let args = (body, state,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(403usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_apply_central_impulse(&mut self, body: Rid, impulse: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (body, impulse,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(404usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_apply_central_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn body_apply_impulse_full(&mut self, body: Rid, impulse: Vector3, position: Vector3,) { + type CallSig = ((), Rid, Vector3, Vector3); + let args = (body, impulse, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(405usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_apply_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_apply_impulse_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_apply_impulse(&mut self, body: Rid, impulse: Vector3,) { + self.body_apply_impulse_ex(body, impulse,) . done() + } + #[inline] + pub fn body_apply_impulse_ex < 'a > (&'a mut self, body: Rid, impulse: Vector3,) -> ExBodyApplyImpulse < 'a > { + ExBodyApplyImpulse::new(self, body, impulse,) + } + pub fn body_apply_torque_impulse(&mut self, body: Rid, impulse: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (body, impulse,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(406usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_apply_torque_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_apply_central_force(&mut self, body: Rid, force: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (body, force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(407usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_apply_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn body_apply_force_full(&mut self, body: Rid, force: Vector3, position: Vector3,) { + type CallSig = ((), Rid, Vector3, Vector3); + let args = (body, force, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(408usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_apply_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_apply_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_apply_force(&mut self, body: Rid, force: Vector3,) { + self.body_apply_force_ex(body, force,) . done() + } + #[inline] + pub fn body_apply_force_ex < 'a > (&'a mut self, body: Rid, force: Vector3,) -> ExBodyApplyForce < 'a > { + ExBodyApplyForce::new(self, body, force,) + } + pub fn body_apply_torque(&mut self, body: Rid, torque: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (body, torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(409usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_apply_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_add_constant_central_force(&mut self, body: Rid, force: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (body, force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(410usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_add_constant_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn body_add_constant_force_full(&mut self, body: Rid, force: Vector3, position: Vector3,) { + type CallSig = ((), Rid, Vector3, Vector3); + let args = (body, force, position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(411usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_add_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_add_constant_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_add_constant_force(&mut self, body: Rid, force: Vector3,) { + self.body_add_constant_force_ex(body, force,) . done() + } + #[inline] + pub fn body_add_constant_force_ex < 'a > (&'a mut self, body: Rid, force: Vector3,) -> ExBodyAddConstantForce < 'a > { + ExBodyAddConstantForce::new(self, body, force,) + } + pub fn body_add_constant_torque(&mut self, body: Rid, torque: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (body, torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(412usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_add_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_constant_force(&mut self, body: Rid, force: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (body, force,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(413usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_constant_force(&self, body: Rid,) -> Vector3 { + type CallSig = (Vector3, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(414usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_constant_torque(&mut self, body: Rid, torque: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (body, torque,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(415usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_constant_torque(&self, body: Rid,) -> Vector3 { + type CallSig = (Vector3, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(416usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_axis_velocity(&mut self, body: Rid, axis_velocity: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (body, axis_velocity,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(417usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_axis_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_axis_lock(&mut self, body: Rid, axis: crate::classes::physics_server_3d::BodyAxis, lock: bool,) { + type CallSig = ((), Rid, crate::classes::physics_server_3d::BodyAxis, bool); + let args = (body, axis, lock,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(418usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_axis_lock", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_is_axis_locked(&self, body: Rid, axis: crate::classes::physics_server_3d::BodyAxis,) -> bool { + type CallSig = (bool, Rid, crate::classes::physics_server_3d::BodyAxis); + let args = (body, axis,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(419usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_is_axis_locked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_add_collision_exception(&mut self, body: Rid, excepted_body: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (body, excepted_body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(420usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_add_collision_exception", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_remove_collision_exception(&mut self, body: Rid, excepted_body: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (body, excepted_body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(421usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_remove_collision_exception", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_max_contacts_reported(&mut self, body: Rid, amount: i32,) { + type CallSig = ((), Rid, i32); + let args = (body, amount,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(422usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_max_contacts_reported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_get_max_contacts_reported(&self, body: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(423usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_max_contacts_reported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_omit_force_integration(&mut self, body: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (body, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(424usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_omit_force_integration", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_is_omitting_force_integration(&self, body: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(425usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_is_omitting_force_integration", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_set_state_sync_callback(&mut self, body: Rid, callable: &Callable,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Callable >); + let args = (body, RefArg::new(callable),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(426usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_state_sync_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn body_set_force_integration_callback_full(&mut self, body: Rid, callable: RefArg < Callable >, userdata: RefArg < Variant >,) { + type CallSig < 'a0, 'a1, > = ((), Rid, RefArg < 'a0, Callable >, RefArg < 'a1, Variant >); + let args = (body, callable, userdata,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(427usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_force_integration_callback", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_set_force_integration_callback_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_set_force_integration_callback(&mut self, body: Rid, callable: &Callable,) { + self.body_set_force_integration_callback_ex(body, callable,) . done() + } + #[inline] + pub fn body_set_force_integration_callback_ex < 'a > (&'a mut self, body: Rid, callable: &'a Callable,) -> ExBodySetForceIntegrationCallback < 'a > { + ExBodySetForceIntegrationCallback::new(self, body, callable,) + } + pub fn body_set_ray_pickable(&mut self, body: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (body, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(428usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_set_ray_pickable", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn body_test_motion_full(&mut self, body: Rid, parameters: ObjectArg < crate::classes::PhysicsTestMotionParameters3D >, result: ObjectArg < crate::classes::PhysicsTestMotionResult3D >,) -> bool { + type CallSig = (bool, Rid, ObjectArg < crate::classes::PhysicsTestMotionParameters3D >, ObjectArg < crate::classes::PhysicsTestMotionResult3D >); + let args = (body, parameters, result,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(429usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_test_motion", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::body_test_motion_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn body_test_motion(&mut self, body: Rid, parameters: impl AsObjectArg < crate::classes::PhysicsTestMotionParameters3D >,) -> bool { + self.body_test_motion_ex(body, parameters,) . done() + } + #[inline] + pub fn body_test_motion_ex < 'a > (&'a mut self, body: Rid, parameters: impl AsObjectArg < crate::classes::PhysicsTestMotionParameters3D >,) -> ExBodyTestMotion < 'a > { + ExBodyTestMotion::new(self, body, parameters,) + } + pub fn body_get_direct_state(&mut self, body: Rid,) -> Option < Gd < crate::classes::PhysicsDirectBodyState3D > > { + type CallSig = (Option < Gd < crate::classes::PhysicsDirectBodyState3D > >, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(430usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "body_get_direct_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(431usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_update_rendering_server(&mut self, body: Rid, rendering_server_handler: impl AsObjectArg < crate::classes::PhysicsServer3DRenderingServerHandler >,) { + type CallSig = ((), Rid, ObjectArg < crate::classes::PhysicsServer3DRenderingServerHandler >); + let args = (body, rendering_server_handler.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(432usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_update_rendering_server", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_space(&mut self, body: Rid, space: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (body, space,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(433usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_space(&self, body: Rid,) -> Rid { + type CallSig = (Rid, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(434usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_space", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_mesh(&mut self, body: Rid, mesh: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (body, mesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(435usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_bounds(&self, body: Rid,) -> Aabb { + type CallSig = (Aabb, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(436usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_bounds", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_collision_layer(&mut self, body: Rid, layer: u32,) { + type CallSig = ((), Rid, u32); + let args = (body, layer,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(437usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_collision_layer(&self, body: Rid,) -> u32 { + type CallSig = (u32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(438usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_collision_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_collision_mask(&mut self, body: Rid, mask: u32,) { + type CallSig = ((), Rid, u32); + let args = (body, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(439usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_collision_mask(&self, body: Rid,) -> u32 { + type CallSig = (u32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(440usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_add_collision_exception(&mut self, body: Rid, body_b: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (body, body_b,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(441usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_add_collision_exception", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_remove_collision_exception(&mut self, body: Rid, body_b: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (body, body_b,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(442usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_remove_collision_exception", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_state(&mut self, body: Rid, state: crate::classes::physics_server_3d::BodyState, variant: &Variant,) { + type CallSig < 'a0, > = ((), Rid, crate::classes::physics_server_3d::BodyState, RefArg < 'a0, Variant >); + let args = (body, state, RefArg::new(variant),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(443usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_state(&self, body: Rid, state: crate::classes::physics_server_3d::BodyState,) -> Variant { + type CallSig = (Variant, Rid, crate::classes::physics_server_3d::BodyState); + let args = (body, state,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(444usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_transform(&mut self, body: Rid, transform: Transform3D,) { + type CallSig = ((), Rid, Transform3D); + let args = (body, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(445usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_ray_pickable(&mut self, body: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (body, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(446usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_ray_pickable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_simulation_precision(&mut self, body: Rid, simulation_precision: i32,) { + type CallSig = ((), Rid, i32); + let args = (body, simulation_precision,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(447usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_simulation_precision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_simulation_precision(&self, body: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(448usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_simulation_precision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_total_mass(&mut self, body: Rid, total_mass: f32,) { + type CallSig = ((), Rid, f32); + let args = (body, total_mass,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(449usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_total_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_total_mass(&self, body: Rid,) -> f32 { + type CallSig = (f32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(450usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_total_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_linear_stiffness(&mut self, body: Rid, stiffness: f32,) { + type CallSig = ((), Rid, f32); + let args = (body, stiffness,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(451usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_linear_stiffness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_linear_stiffness(&self, body: Rid,) -> f32 { + type CallSig = (f32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(452usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_linear_stiffness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_pressure_coefficient(&mut self, body: Rid, pressure_coefficient: f32,) { + type CallSig = ((), Rid, f32); + let args = (body, pressure_coefficient,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(453usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_pressure_coefficient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_pressure_coefficient(&self, body: Rid,) -> f32 { + type CallSig = (f32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(454usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_pressure_coefficient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_damping_coefficient(&mut self, body: Rid, damping_coefficient: f32,) { + type CallSig = ((), Rid, f32); + let args = (body, damping_coefficient,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(455usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_damping_coefficient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_damping_coefficient(&self, body: Rid,) -> f32 { + type CallSig = (f32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(456usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_damping_coefficient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_set_drag_coefficient(&mut self, body: Rid, drag_coefficient: f32,) { + type CallSig = ((), Rid, f32); + let args = (body, drag_coefficient,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(457usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_set_drag_coefficient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_drag_coefficient(&self, body: Rid,) -> f32 { + type CallSig = (f32, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(458usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_drag_coefficient", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_move_point(&mut self, body: Rid, point_index: i32, global_position: Vector3,) { + type CallSig = ((), Rid, i32, Vector3); + let args = (body, point_index, global_position,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(459usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_move_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_get_point_global_position(&self, body: Rid, point_index: i32,) -> Vector3 { + type CallSig = (Vector3, Rid, i32); + let args = (body, point_index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(460usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_get_point_global_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_remove_all_pinned_points(&mut self, body: Rid,) { + type CallSig = ((), Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(461usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_remove_all_pinned_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_pin_point(&mut self, body: Rid, point_index: i32, pin: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (body, point_index, pin,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(462usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_pin_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn soft_body_is_point_pinned(&self, body: Rid, point_index: i32,) -> bool { + type CallSig = (bool, Rid, i32); + let args = (body, point_index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(463usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "soft_body_is_point_pinned", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(464usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_clear(&mut self, joint: Rid,) { + type CallSig = ((), Rid); + let args = (joint,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(465usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_make_pin(&mut self, joint: Rid, body_A: Rid, local_A: Vector3, body_B: Rid, local_B: Vector3,) { + type CallSig = ((), Rid, Rid, Vector3, Rid, Vector3); + let args = (joint, body_A, local_A, body_B, local_B,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(466usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_make_pin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pin_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_3d::PinJointParam, value: f32,) { + type CallSig = ((), Rid, crate::classes::physics_server_3d::PinJointParam, f32); + let args = (joint, param, value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(467usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "pin_joint_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pin_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_3d::PinJointParam,) -> f32 { + type CallSig = (f32, Rid, crate::classes::physics_server_3d::PinJointParam); + let args = (joint, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(468usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "pin_joint_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pin_joint_set_local_a(&mut self, joint: Rid, local_A: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (joint, local_A,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(469usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "pin_joint_set_local_a", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pin_joint_get_local_a(&self, joint: Rid,) -> Vector3 { + type CallSig = (Vector3, Rid); + let args = (joint,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(470usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "pin_joint_get_local_a", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pin_joint_set_local_b(&mut self, joint: Rid, local_B: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (joint, local_B,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(471usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "pin_joint_set_local_b", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pin_joint_get_local_b(&self, joint: Rid,) -> Vector3 { + type CallSig = (Vector3, Rid); + let args = (joint,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(472usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "pin_joint_get_local_b", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_make_hinge(&mut self, joint: Rid, body_A: Rid, hinge_A: Transform3D, body_B: Rid, hinge_B: Transform3D,) { + type CallSig = ((), Rid, Rid, Transform3D, Rid, Transform3D); + let args = (joint, body_A, hinge_A, body_B, hinge_B,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(473usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_make_hinge", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn hinge_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_3d::HingeJointParam, value: f32,) { + type CallSig = ((), Rid, crate::classes::physics_server_3d::HingeJointParam, f32); + let args = (joint, param, value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(474usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "hinge_joint_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn hinge_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_3d::HingeJointParam,) -> f32 { + type CallSig = (f32, Rid, crate::classes::physics_server_3d::HingeJointParam); + let args = (joint, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(475usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "hinge_joint_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn hinge_joint_set_flag(&mut self, joint: Rid, flag: crate::classes::physics_server_3d::HingeJointFlag, enabled: bool,) { + type CallSig = ((), Rid, crate::classes::physics_server_3d::HingeJointFlag, bool); + let args = (joint, flag, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(476usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "hinge_joint_set_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn hinge_joint_get_flag(&self, joint: Rid, flag: crate::classes::physics_server_3d::HingeJointFlag,) -> bool { + type CallSig = (bool, Rid, crate::classes::physics_server_3d::HingeJointFlag); + let args = (joint, flag,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(477usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "hinge_joint_get_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_make_slider(&mut self, joint: Rid, body_A: Rid, local_ref_A: Transform3D, body_B: Rid, local_ref_B: Transform3D,) { + type CallSig = ((), Rid, Rid, Transform3D, Rid, Transform3D); + let args = (joint, body_A, local_ref_A, body_B, local_ref_B,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(478usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_make_slider", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn slider_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_3d::SliderJointParam, value: f32,) { + type CallSig = ((), Rid, crate::classes::physics_server_3d::SliderJointParam, f32); + let args = (joint, param, value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(479usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "slider_joint_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn slider_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_3d::SliderJointParam,) -> f32 { + type CallSig = (f32, Rid, crate::classes::physics_server_3d::SliderJointParam); + let args = (joint, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(480usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "slider_joint_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_make_cone_twist(&mut self, joint: Rid, body_A: Rid, local_ref_A: Transform3D, body_B: Rid, local_ref_B: Transform3D,) { + type CallSig = ((), Rid, Rid, Transform3D, Rid, Transform3D); + let args = (joint, body_A, local_ref_A, body_B, local_ref_B,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(481usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_make_cone_twist", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn cone_twist_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_3d::ConeTwistJointParam, value: f32,) { + type CallSig = ((), Rid, crate::classes::physics_server_3d::ConeTwistJointParam, f32); + let args = (joint, param, value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(482usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "cone_twist_joint_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn cone_twist_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_3d::ConeTwistJointParam,) -> f32 { + type CallSig = (f32, Rid, crate::classes::physics_server_3d::ConeTwistJointParam); + let args = (joint, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(483usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "cone_twist_joint_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_get_type(&self, joint: Rid,) -> crate::classes::physics_server_3d::JointType { + type CallSig = (crate::classes::physics_server_3d::JointType, Rid); + let args = (joint,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(484usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_get_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_set_solver_priority(&mut self, joint: Rid, priority: i32,) { + type CallSig = ((), Rid, i32); + let args = (joint, priority,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(485usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_set_solver_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_get_solver_priority(&self, joint: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (joint,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(486usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_get_solver_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_disable_collisions_between_bodies(&mut self, joint: Rid, disable: bool,) { + type CallSig = ((), Rid, bool); + let args = (joint, disable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(487usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_disable_collisions_between_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_is_disabled_collisions_between_bodies(&self, joint: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (joint,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(488usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_is_disabled_collisions_between_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn joint_make_generic_6dof(&mut self, joint: Rid, body_A: Rid, local_ref_A: Transform3D, body_B: Rid, local_ref_B: Transform3D,) { + type CallSig = ((), Rid, Rid, Transform3D, Rid, Transform3D); + let args = (joint, body_A, local_ref_A, body_B, local_ref_B,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(489usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "joint_make_generic_6dof", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn generic_6dof_joint_set_param(&mut self, joint: Rid, axis: Vector3Axis, param: crate::classes::physics_server_3d::G6dofJointAxisParam, value: f32,) { + type CallSig = ((), Rid, Vector3Axis, crate::classes::physics_server_3d::G6dofJointAxisParam, f32); + let args = (joint, axis, param, value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(490usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "generic_6dof_joint_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn generic_6dof_joint_get_param(&self, joint: Rid, axis: Vector3Axis, param: crate::classes::physics_server_3d::G6dofJointAxisParam,) -> f32 { + type CallSig = (f32, Rid, Vector3Axis, crate::classes::physics_server_3d::G6dofJointAxisParam); + let args = (joint, axis, param,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(491usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "generic_6dof_joint_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn generic_6dof_joint_set_flag(&mut self, joint: Rid, axis: Vector3Axis, flag: crate::classes::physics_server_3d::G6dofJointAxisFlag, enable: bool,) { + type CallSig = ((), Rid, Vector3Axis, crate::classes::physics_server_3d::G6dofJointAxisFlag, bool); + let args = (joint, axis, flag, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(492usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "generic_6dof_joint_set_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn generic_6dof_joint_get_flag(&self, joint: Rid, axis: Vector3Axis, flag: crate::classes::physics_server_3d::G6dofJointAxisFlag,) -> bool { + type CallSig = (bool, Rid, Vector3Axis, crate::classes::physics_server_3d::G6dofJointAxisFlag); + let args = (joint, axis, flag,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(493usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "generic_6dof_joint_get_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn free_rid(&mut self, rid: Rid,) { + type CallSig = ((), Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(494usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "free_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_active(&mut self, active: bool,) { + type CallSig = ((), bool); + let args = (active,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(495usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "set_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_process_info(&mut self, process_info: crate::classes::physics_server_3d::ProcessInfo,) -> i32 { + type CallSig = (i32, crate::classes::physics_server_3d::ProcessInfo); + let args = (process_info,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(496usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3D", "get_process_info", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsServer3D { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsServer3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsServer3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsServer3D { + + } + impl std::ops::Deref for PhysicsServer3D { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsServer3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsServer3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsServer3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsServer3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicsServer3D::area_add_shape_ex`][super::PhysicsServer3D::area_add_shape_ex]."] +#[must_use] +pub struct ExAreaAddShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer3D, area: Rid, shape: Rid, transform: Transform3D, disabled: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAreaAddShape < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer3D, area: Rid, shape: Rid,) -> Self { + let transform = Transform3D::__internal_codegen(1 as _, 0 as _, 0 as _, 0 as _, 1 as _, 0 as _, 0 as _, 0 as _, 1 as _, 0 as _, 0 as _, 0 as _); + let disabled = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, area: area, shape: shape, transform: transform, disabled: disabled, + } + } + #[inline] + pub fn transform(self, transform: Transform3D) -> Self { + Self { + transform: transform, .. self + } + } + #[inline] + pub fn disabled(self, disabled: bool) -> Self { + Self { + disabled: disabled, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, area, shape, transform, disabled, + } + = self; + re_export::PhysicsServer3D::area_add_shape_full(surround_object, area, shape, transform, disabled,) + } +} +#[doc = "Default-param extender for [`PhysicsServer3D::body_add_shape_ex`][super::PhysicsServer3D::body_add_shape_ex]."] +#[must_use] +pub struct ExBodyAddShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, shape: Rid, transform: Transform3D, disabled: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodyAddShape < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, shape: Rid,) -> Self { + let transform = Transform3D::__internal_codegen(1 as _, 0 as _, 0 as _, 0 as _, 1 as _, 0 as _, 0 as _, 0 as _, 1 as _, 0 as _, 0 as _, 0 as _); + let disabled = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, shape: shape, transform: transform, disabled: disabled, + } + } + #[inline] + pub fn transform(self, transform: Transform3D) -> Self { + Self { + transform: transform, .. self + } + } + #[inline] + pub fn disabled(self, disabled: bool) -> Self { + Self { + disabled: disabled, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, body, shape, transform, disabled, + } + = self; + re_export::PhysicsServer3D::body_add_shape_full(surround_object, body, shape, transform, disabled,) + } +} +#[doc = "Default-param extender for [`PhysicsServer3D::body_apply_impulse_ex`][super::PhysicsServer3D::body_apply_impulse_ex]."] +#[must_use] +pub struct ExBodyApplyImpulse < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, impulse: Vector3, position: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodyApplyImpulse < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, impulse: Vector3,) -> Self { + let position = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, impulse: impulse, position: position, + } + } + #[inline] + pub fn position(self, position: Vector3) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, body, impulse, position, + } + = self; + re_export::PhysicsServer3D::body_apply_impulse_full(surround_object, body, impulse, position,) + } +} +#[doc = "Default-param extender for [`PhysicsServer3D::body_apply_force_ex`][super::PhysicsServer3D::body_apply_force_ex]."] +#[must_use] +pub struct ExBodyApplyForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, force: Vector3, position: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodyApplyForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, force: Vector3,) -> Self { + let position = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector3) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, body, force, position, + } + = self; + re_export::PhysicsServer3D::body_apply_force_full(surround_object, body, force, position,) + } +} +#[doc = "Default-param extender for [`PhysicsServer3D::body_add_constant_force_ex`][super::PhysicsServer3D::body_add_constant_force_ex]."] +#[must_use] +pub struct ExBodyAddConstantForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, force: Vector3, position: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodyAddConstantForce < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, force: Vector3,) -> Self { + let position = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector3) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, body, force, position, + } + = self; + re_export::PhysicsServer3D::body_add_constant_force_full(surround_object, body, force, position,) + } +} +#[doc = "Default-param extender for [`PhysicsServer3D::body_set_force_integration_callback_ex`][super::PhysicsServer3D::body_set_force_integration_callback_ex]."] +#[must_use] +pub struct ExBodySetForceIntegrationCallback < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, callable: CowArg < 'a, Callable >, userdata: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodySetForceIntegrationCallback < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, callable: &'a Callable,) -> Self { + let userdata = Variant::nil(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, callable: CowArg::Borrowed(callable), userdata: CowArg::Owned(userdata), + } + } + #[inline] + pub fn userdata(self, userdata: &'a Variant) -> Self { + Self { + userdata: CowArg::Borrowed(userdata), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, body, callable, userdata, + } + = self; + re_export::PhysicsServer3D::body_set_force_integration_callback_full(surround_object, body, callable.cow_as_arg(), userdata.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`PhysicsServer3D::body_test_motion_ex`][super::PhysicsServer3D::body_test_motion_ex]."] +#[must_use] +pub struct ExBodyTestMotion < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, parameters: ObjectCow < crate::classes::PhysicsTestMotionParameters3D >, result: ObjectCow < crate::classes::PhysicsTestMotionResult3D >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBodyTestMotion < 'a > { + fn new(surround_object: &'a mut re_export::PhysicsServer3D, body: Rid, parameters: impl AsObjectArg < crate::classes::PhysicsTestMotionParameters3D >,) -> Self { + let result = Gd::null_arg(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, body: body, parameters: parameters.consume_arg(), result: result.consume_arg(), + } + } + #[inline] + pub fn result(self, result: impl AsObjectArg < crate::classes::PhysicsTestMotionResult3D >) -> Self { + Self { + result: result.consume_arg(), .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, body, parameters, result, + } + = self; + re_export::PhysicsServer3D::body_test_motion_full(surround_object, body, parameters.cow_as_object_arg(), result.cow_as_object_arg(),) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct JointType { + ord: i32 +} +impl JointType { + #[doc(alias = "JOINT_TYPE_PIN")] + #[doc = "Godot enumerator name: `JOINT_TYPE_PIN`"] + pub const PIN: JointType = JointType { + ord: 0i32 + }; + #[doc(alias = "JOINT_TYPE_HINGE")] + #[doc = "Godot enumerator name: `JOINT_TYPE_HINGE`"] + pub const HINGE: JointType = JointType { + ord: 1i32 + }; + #[doc(alias = "JOINT_TYPE_SLIDER")] + #[doc = "Godot enumerator name: `JOINT_TYPE_SLIDER`"] + pub const SLIDER: JointType = JointType { + ord: 2i32 + }; + #[doc(alias = "JOINT_TYPE_CONE_TWIST")] + #[doc = "Godot enumerator name: `JOINT_TYPE_CONE_TWIST`"] + pub const CONE_TWIST: JointType = JointType { + ord: 3i32 + }; + #[doc(alias = "JOINT_TYPE_6DOF")] + #[doc = "Godot enumerator name: `JOINT_TYPE_6DOF`"] + pub const TYPE_6DOF: JointType = JointType { + ord: 4i32 + }; + #[doc(alias = "JOINT_TYPE_MAX")] + #[doc = "Godot enumerator name: `JOINT_TYPE_MAX`"] + pub const MAX: JointType = JointType { + ord: 5i32 + }; + +} +impl std::fmt::Debug for JointType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("JointType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for JointType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PIN => "PIN", Self::HINGE => "HINGE", Self::SLIDER => "SLIDER", Self::CONE_TWIST => "CONE_TWIST", Self::TYPE_6DOF => "TYPE_6DOF", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PIN => "JOINT_TYPE_PIN", Self::HINGE => "JOINT_TYPE_HINGE", Self::SLIDER => "JOINT_TYPE_SLIDER", Self::CONE_TWIST => "JOINT_TYPE_CONE_TWIST", Self::TYPE_6DOF => "JOINT_TYPE_6DOF", Self::MAX => "JOINT_TYPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for JointType { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for JointType { + type Via = i32; + +} +impl crate::meta::ToGodot for JointType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for JointType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PinJointParam { + ord: i32 +} +impl PinJointParam { + #[doc(alias = "PIN_JOINT_BIAS")] + #[doc = "Godot enumerator name: `PIN_JOINT_BIAS`"] + pub const BIAS: PinJointParam = PinJointParam { + ord: 0i32 + }; + #[doc(alias = "PIN_JOINT_DAMPING")] + #[doc = "Godot enumerator name: `PIN_JOINT_DAMPING`"] + pub const DAMPING: PinJointParam = PinJointParam { + ord: 1i32 + }; + #[doc(alias = "PIN_JOINT_IMPULSE_CLAMP")] + #[doc = "Godot enumerator name: `PIN_JOINT_IMPULSE_CLAMP`"] + pub const IMPULSE_CLAMP: PinJointParam = PinJointParam { + ord: 2i32 + }; + +} +impl std::fmt::Debug for PinJointParam { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PinJointParam") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PinJointParam { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BIAS => "BIAS", Self::DAMPING => "DAMPING", Self::IMPULSE_CLAMP => "IMPULSE_CLAMP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BIAS => "PIN_JOINT_BIAS", Self::DAMPING => "PIN_JOINT_DAMPING", Self::IMPULSE_CLAMP => "PIN_JOINT_IMPULSE_CLAMP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PinJointParam { + type Via = i32; + +} +impl crate::meta::ToGodot for PinJointParam { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PinJointParam { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct HingeJointParam { + ord: i32 +} +impl HingeJointParam { + #[doc(alias = "HINGE_JOINT_BIAS")] + #[doc = "Godot enumerator name: `HINGE_JOINT_BIAS`"] + pub const BIAS: HingeJointParam = HingeJointParam { + ord: 0i32 + }; + #[doc(alias = "HINGE_JOINT_LIMIT_UPPER")] + #[doc = "Godot enumerator name: `HINGE_JOINT_LIMIT_UPPER`"] + pub const LIMIT_UPPER: HingeJointParam = HingeJointParam { + ord: 1i32 + }; + #[doc(alias = "HINGE_JOINT_LIMIT_LOWER")] + #[doc = "Godot enumerator name: `HINGE_JOINT_LIMIT_LOWER`"] + pub const LIMIT_LOWER: HingeJointParam = HingeJointParam { + ord: 2i32 + }; + #[doc(alias = "HINGE_JOINT_LIMIT_BIAS")] + #[doc = "Godot enumerator name: `HINGE_JOINT_LIMIT_BIAS`"] + pub const LIMIT_BIAS: HingeJointParam = HingeJointParam { + ord: 3i32 + }; + #[doc(alias = "HINGE_JOINT_LIMIT_SOFTNESS")] + #[doc = "Godot enumerator name: `HINGE_JOINT_LIMIT_SOFTNESS`"] + pub const LIMIT_SOFTNESS: HingeJointParam = HingeJointParam { + ord: 4i32 + }; + #[doc(alias = "HINGE_JOINT_LIMIT_RELAXATION")] + #[doc = "Godot enumerator name: `HINGE_JOINT_LIMIT_RELAXATION`"] + pub const LIMIT_RELAXATION: HingeJointParam = HingeJointParam { + ord: 5i32 + }; + #[doc(alias = "HINGE_JOINT_MOTOR_TARGET_VELOCITY")] + #[doc = "Godot enumerator name: `HINGE_JOINT_MOTOR_TARGET_VELOCITY`"] + pub const MOTOR_TARGET_VELOCITY: HingeJointParam = HingeJointParam { + ord: 6i32 + }; + #[doc(alias = "HINGE_JOINT_MOTOR_MAX_IMPULSE")] + #[doc = "Godot enumerator name: `HINGE_JOINT_MOTOR_MAX_IMPULSE`"] + pub const MOTOR_MAX_IMPULSE: HingeJointParam = HingeJointParam { + ord: 7i32 + }; + +} +impl std::fmt::Debug for HingeJointParam { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("HingeJointParam") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for HingeJointParam { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BIAS => "BIAS", Self::LIMIT_UPPER => "LIMIT_UPPER", Self::LIMIT_LOWER => "LIMIT_LOWER", Self::LIMIT_BIAS => "LIMIT_BIAS", Self::LIMIT_SOFTNESS => "LIMIT_SOFTNESS", Self::LIMIT_RELAXATION => "LIMIT_RELAXATION", Self::MOTOR_TARGET_VELOCITY => "MOTOR_TARGET_VELOCITY", Self::MOTOR_MAX_IMPULSE => "MOTOR_MAX_IMPULSE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BIAS => "HINGE_JOINT_BIAS", Self::LIMIT_UPPER => "HINGE_JOINT_LIMIT_UPPER", Self::LIMIT_LOWER => "HINGE_JOINT_LIMIT_LOWER", Self::LIMIT_BIAS => "HINGE_JOINT_LIMIT_BIAS", Self::LIMIT_SOFTNESS => "HINGE_JOINT_LIMIT_SOFTNESS", Self::LIMIT_RELAXATION => "HINGE_JOINT_LIMIT_RELAXATION", Self::MOTOR_TARGET_VELOCITY => "HINGE_JOINT_MOTOR_TARGET_VELOCITY", Self::MOTOR_MAX_IMPULSE => "HINGE_JOINT_MOTOR_MAX_IMPULSE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for HingeJointParam { + type Via = i32; + +} +impl crate::meta::ToGodot for HingeJointParam { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for HingeJointParam { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct HingeJointFlag { + ord: i32 +} +impl HingeJointFlag { + #[doc(alias = "HINGE_JOINT_FLAG_USE_LIMIT")] + #[doc = "Godot enumerator name: `HINGE_JOINT_FLAG_USE_LIMIT`"] + pub const USE_LIMIT: HingeJointFlag = HingeJointFlag { + ord: 0i32 + }; + #[doc(alias = "HINGE_JOINT_FLAG_ENABLE_MOTOR")] + #[doc = "Godot enumerator name: `HINGE_JOINT_FLAG_ENABLE_MOTOR`"] + pub const ENABLE_MOTOR: HingeJointFlag = HingeJointFlag { + ord: 1i32 + }; + +} +impl std::fmt::Debug for HingeJointFlag { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("HingeJointFlag") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for HingeJointFlag { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::USE_LIMIT => "USE_LIMIT", Self::ENABLE_MOTOR => "ENABLE_MOTOR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::USE_LIMIT => "HINGE_JOINT_FLAG_USE_LIMIT", Self::ENABLE_MOTOR => "HINGE_JOINT_FLAG_ENABLE_MOTOR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for HingeJointFlag { + type Via = i32; + +} +impl crate::meta::ToGodot for HingeJointFlag { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for HingeJointFlag { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SliderJointParam { + ord: i32 +} +impl SliderJointParam { + #[doc(alias = "SLIDER_JOINT_LINEAR_LIMIT_UPPER")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_LINEAR_LIMIT_UPPER`"] + pub const LINEAR_LIMIT_UPPER: SliderJointParam = SliderJointParam { + ord: 0i32 + }; + #[doc(alias = "SLIDER_JOINT_LINEAR_LIMIT_LOWER")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_LINEAR_LIMIT_LOWER`"] + pub const LINEAR_LIMIT_LOWER: SliderJointParam = SliderJointParam { + ord: 1i32 + }; + #[doc(alias = "SLIDER_JOINT_LINEAR_LIMIT_SOFTNESS")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_LINEAR_LIMIT_SOFTNESS`"] + pub const LINEAR_LIMIT_SOFTNESS: SliderJointParam = SliderJointParam { + ord: 2i32 + }; + #[doc(alias = "SLIDER_JOINT_LINEAR_LIMIT_RESTITUTION")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_LINEAR_LIMIT_RESTITUTION`"] + pub const LINEAR_LIMIT_RESTITUTION: SliderJointParam = SliderJointParam { + ord: 3i32 + }; + #[doc(alias = "SLIDER_JOINT_LINEAR_LIMIT_DAMPING")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_LINEAR_LIMIT_DAMPING`"] + pub const LINEAR_LIMIT_DAMPING: SliderJointParam = SliderJointParam { + ord: 4i32 + }; + #[doc(alias = "SLIDER_JOINT_LINEAR_MOTION_SOFTNESS")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_LINEAR_MOTION_SOFTNESS`"] + pub const LINEAR_MOTION_SOFTNESS: SliderJointParam = SliderJointParam { + ord: 5i32 + }; + #[doc(alias = "SLIDER_JOINT_LINEAR_MOTION_RESTITUTION")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_LINEAR_MOTION_RESTITUTION`"] + pub const LINEAR_MOTION_RESTITUTION: SliderJointParam = SliderJointParam { + ord: 6i32 + }; + #[doc(alias = "SLIDER_JOINT_LINEAR_MOTION_DAMPING")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_LINEAR_MOTION_DAMPING`"] + pub const LINEAR_MOTION_DAMPING: SliderJointParam = SliderJointParam { + ord: 7i32 + }; + #[doc(alias = "SLIDER_JOINT_LINEAR_ORTHOGONAL_SOFTNESS")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_LINEAR_ORTHOGONAL_SOFTNESS`"] + pub const LINEAR_ORTHOGONAL_SOFTNESS: SliderJointParam = SliderJointParam { + ord: 8i32 + }; + #[doc(alias = "SLIDER_JOINT_LINEAR_ORTHOGONAL_RESTITUTION")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_LINEAR_ORTHOGONAL_RESTITUTION`"] + pub const LINEAR_ORTHOGONAL_RESTITUTION: SliderJointParam = SliderJointParam { + ord: 9i32 + }; + #[doc(alias = "SLIDER_JOINT_LINEAR_ORTHOGONAL_DAMPING")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_LINEAR_ORTHOGONAL_DAMPING`"] + pub const LINEAR_ORTHOGONAL_DAMPING: SliderJointParam = SliderJointParam { + ord: 10i32 + }; + #[doc(alias = "SLIDER_JOINT_ANGULAR_LIMIT_UPPER")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_ANGULAR_LIMIT_UPPER`"] + pub const ANGULAR_LIMIT_UPPER: SliderJointParam = SliderJointParam { + ord: 11i32 + }; + #[doc(alias = "SLIDER_JOINT_ANGULAR_LIMIT_LOWER")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_ANGULAR_LIMIT_LOWER`"] + pub const ANGULAR_LIMIT_LOWER: SliderJointParam = SliderJointParam { + ord: 12i32 + }; + #[doc(alias = "SLIDER_JOINT_ANGULAR_LIMIT_SOFTNESS")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_ANGULAR_LIMIT_SOFTNESS`"] + pub const ANGULAR_LIMIT_SOFTNESS: SliderJointParam = SliderJointParam { + ord: 13i32 + }; + #[doc(alias = "SLIDER_JOINT_ANGULAR_LIMIT_RESTITUTION")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_ANGULAR_LIMIT_RESTITUTION`"] + pub const ANGULAR_LIMIT_RESTITUTION: SliderJointParam = SliderJointParam { + ord: 14i32 + }; + #[doc(alias = "SLIDER_JOINT_ANGULAR_LIMIT_DAMPING")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_ANGULAR_LIMIT_DAMPING`"] + pub const ANGULAR_LIMIT_DAMPING: SliderJointParam = SliderJointParam { + ord: 15i32 + }; + #[doc(alias = "SLIDER_JOINT_ANGULAR_MOTION_SOFTNESS")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_ANGULAR_MOTION_SOFTNESS`"] + pub const ANGULAR_MOTION_SOFTNESS: SliderJointParam = SliderJointParam { + ord: 16i32 + }; + #[doc(alias = "SLIDER_JOINT_ANGULAR_MOTION_RESTITUTION")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_ANGULAR_MOTION_RESTITUTION`"] + pub const ANGULAR_MOTION_RESTITUTION: SliderJointParam = SliderJointParam { + ord: 17i32 + }; + #[doc(alias = "SLIDER_JOINT_ANGULAR_MOTION_DAMPING")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_ANGULAR_MOTION_DAMPING`"] + pub const ANGULAR_MOTION_DAMPING: SliderJointParam = SliderJointParam { + ord: 18i32 + }; + #[doc(alias = "SLIDER_JOINT_ANGULAR_ORTHOGONAL_SOFTNESS")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_ANGULAR_ORTHOGONAL_SOFTNESS`"] + pub const ANGULAR_ORTHOGONAL_SOFTNESS: SliderJointParam = SliderJointParam { + ord: 19i32 + }; + #[doc(alias = "SLIDER_JOINT_ANGULAR_ORTHOGONAL_RESTITUTION")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_ANGULAR_ORTHOGONAL_RESTITUTION`"] + pub const ANGULAR_ORTHOGONAL_RESTITUTION: SliderJointParam = SliderJointParam { + ord: 20i32 + }; + #[doc(alias = "SLIDER_JOINT_ANGULAR_ORTHOGONAL_DAMPING")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_ANGULAR_ORTHOGONAL_DAMPING`"] + pub const ANGULAR_ORTHOGONAL_DAMPING: SliderJointParam = SliderJointParam { + ord: 21i32 + }; + #[doc(alias = "SLIDER_JOINT_MAX")] + #[doc = "Godot enumerator name: `SLIDER_JOINT_MAX`"] + pub const MAX: SliderJointParam = SliderJointParam { + ord: 22i32 + }; + +} +impl std::fmt::Debug for SliderJointParam { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SliderJointParam") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SliderJointParam { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR_LIMIT_UPPER => "LINEAR_LIMIT_UPPER", Self::LINEAR_LIMIT_LOWER => "LINEAR_LIMIT_LOWER", Self::LINEAR_LIMIT_SOFTNESS => "LINEAR_LIMIT_SOFTNESS", Self::LINEAR_LIMIT_RESTITUTION => "LINEAR_LIMIT_RESTITUTION", Self::LINEAR_LIMIT_DAMPING => "LINEAR_LIMIT_DAMPING", Self::LINEAR_MOTION_SOFTNESS => "LINEAR_MOTION_SOFTNESS", Self::LINEAR_MOTION_RESTITUTION => "LINEAR_MOTION_RESTITUTION", Self::LINEAR_MOTION_DAMPING => "LINEAR_MOTION_DAMPING", Self::LINEAR_ORTHOGONAL_SOFTNESS => "LINEAR_ORTHOGONAL_SOFTNESS", Self::LINEAR_ORTHOGONAL_RESTITUTION => "LINEAR_ORTHOGONAL_RESTITUTION", Self::LINEAR_ORTHOGONAL_DAMPING => "LINEAR_ORTHOGONAL_DAMPING", Self::ANGULAR_LIMIT_UPPER => "ANGULAR_LIMIT_UPPER", Self::ANGULAR_LIMIT_LOWER => "ANGULAR_LIMIT_LOWER", Self::ANGULAR_LIMIT_SOFTNESS => "ANGULAR_LIMIT_SOFTNESS", Self::ANGULAR_LIMIT_RESTITUTION => "ANGULAR_LIMIT_RESTITUTION", Self::ANGULAR_LIMIT_DAMPING => "ANGULAR_LIMIT_DAMPING", Self::ANGULAR_MOTION_SOFTNESS => "ANGULAR_MOTION_SOFTNESS", Self::ANGULAR_MOTION_RESTITUTION => "ANGULAR_MOTION_RESTITUTION", Self::ANGULAR_MOTION_DAMPING => "ANGULAR_MOTION_DAMPING", Self::ANGULAR_ORTHOGONAL_SOFTNESS => "ANGULAR_ORTHOGONAL_SOFTNESS", Self::ANGULAR_ORTHOGONAL_RESTITUTION => "ANGULAR_ORTHOGONAL_RESTITUTION", Self::ANGULAR_ORTHOGONAL_DAMPING => "ANGULAR_ORTHOGONAL_DAMPING", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR_LIMIT_UPPER => "SLIDER_JOINT_LINEAR_LIMIT_UPPER", Self::LINEAR_LIMIT_LOWER => "SLIDER_JOINT_LINEAR_LIMIT_LOWER", Self::LINEAR_LIMIT_SOFTNESS => "SLIDER_JOINT_LINEAR_LIMIT_SOFTNESS", Self::LINEAR_LIMIT_RESTITUTION => "SLIDER_JOINT_LINEAR_LIMIT_RESTITUTION", Self::LINEAR_LIMIT_DAMPING => "SLIDER_JOINT_LINEAR_LIMIT_DAMPING", Self::LINEAR_MOTION_SOFTNESS => "SLIDER_JOINT_LINEAR_MOTION_SOFTNESS", Self::LINEAR_MOTION_RESTITUTION => "SLIDER_JOINT_LINEAR_MOTION_RESTITUTION", Self::LINEAR_MOTION_DAMPING => "SLIDER_JOINT_LINEAR_MOTION_DAMPING", Self::LINEAR_ORTHOGONAL_SOFTNESS => "SLIDER_JOINT_LINEAR_ORTHOGONAL_SOFTNESS", Self::LINEAR_ORTHOGONAL_RESTITUTION => "SLIDER_JOINT_LINEAR_ORTHOGONAL_RESTITUTION", Self::LINEAR_ORTHOGONAL_DAMPING => "SLIDER_JOINT_LINEAR_ORTHOGONAL_DAMPING", Self::ANGULAR_LIMIT_UPPER => "SLIDER_JOINT_ANGULAR_LIMIT_UPPER", Self::ANGULAR_LIMIT_LOWER => "SLIDER_JOINT_ANGULAR_LIMIT_LOWER", Self::ANGULAR_LIMIT_SOFTNESS => "SLIDER_JOINT_ANGULAR_LIMIT_SOFTNESS", Self::ANGULAR_LIMIT_RESTITUTION => "SLIDER_JOINT_ANGULAR_LIMIT_RESTITUTION", Self::ANGULAR_LIMIT_DAMPING => "SLIDER_JOINT_ANGULAR_LIMIT_DAMPING", Self::ANGULAR_MOTION_SOFTNESS => "SLIDER_JOINT_ANGULAR_MOTION_SOFTNESS", Self::ANGULAR_MOTION_RESTITUTION => "SLIDER_JOINT_ANGULAR_MOTION_RESTITUTION", Self::ANGULAR_MOTION_DAMPING => "SLIDER_JOINT_ANGULAR_MOTION_DAMPING", Self::ANGULAR_ORTHOGONAL_SOFTNESS => "SLIDER_JOINT_ANGULAR_ORTHOGONAL_SOFTNESS", Self::ANGULAR_ORTHOGONAL_RESTITUTION => "SLIDER_JOINT_ANGULAR_ORTHOGONAL_RESTITUTION", Self::ANGULAR_ORTHOGONAL_DAMPING => "SLIDER_JOINT_ANGULAR_ORTHOGONAL_DAMPING", Self::MAX => "SLIDER_JOINT_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for SliderJointParam { + const ENUMERATOR_COUNT: usize = 22usize; + +} +impl crate::meta::GodotConvert for SliderJointParam { + type Via = i32; + +} +impl crate::meta::ToGodot for SliderJointParam { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SliderJointParam { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ConeTwistJointParam { + ord: i32 +} +impl ConeTwistJointParam { + #[doc(alias = "CONE_TWIST_JOINT_SWING_SPAN")] + #[doc = "Godot enumerator name: `CONE_TWIST_JOINT_SWING_SPAN`"] + pub const SWING_SPAN: ConeTwistJointParam = ConeTwistJointParam { + ord: 0i32 + }; + #[doc(alias = "CONE_TWIST_JOINT_TWIST_SPAN")] + #[doc = "Godot enumerator name: `CONE_TWIST_JOINT_TWIST_SPAN`"] + pub const TWIST_SPAN: ConeTwistJointParam = ConeTwistJointParam { + ord: 1i32 + }; + #[doc(alias = "CONE_TWIST_JOINT_BIAS")] + #[doc = "Godot enumerator name: `CONE_TWIST_JOINT_BIAS`"] + pub const BIAS: ConeTwistJointParam = ConeTwistJointParam { + ord: 2i32 + }; + #[doc(alias = "CONE_TWIST_JOINT_SOFTNESS")] + #[doc = "Godot enumerator name: `CONE_TWIST_JOINT_SOFTNESS`"] + pub const SOFTNESS: ConeTwistJointParam = ConeTwistJointParam { + ord: 3i32 + }; + #[doc(alias = "CONE_TWIST_JOINT_RELAXATION")] + #[doc = "Godot enumerator name: `CONE_TWIST_JOINT_RELAXATION`"] + pub const RELAXATION: ConeTwistJointParam = ConeTwistJointParam { + ord: 4i32 + }; + +} +impl std::fmt::Debug for ConeTwistJointParam { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ConeTwistJointParam") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ConeTwistJointParam { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SWING_SPAN => "SWING_SPAN", Self::TWIST_SPAN => "TWIST_SPAN", Self::BIAS => "BIAS", Self::SOFTNESS => "SOFTNESS", Self::RELAXATION => "RELAXATION", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SWING_SPAN => "CONE_TWIST_JOINT_SWING_SPAN", Self::TWIST_SPAN => "CONE_TWIST_JOINT_TWIST_SPAN", Self::BIAS => "CONE_TWIST_JOINT_BIAS", Self::SOFTNESS => "CONE_TWIST_JOINT_SOFTNESS", Self::RELAXATION => "CONE_TWIST_JOINT_RELAXATION", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ConeTwistJointParam { + type Via = i32; + +} +impl crate::meta::ToGodot for ConeTwistJointParam { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ConeTwistJointParam { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `G6DOFJointAxisParam`."] +pub struct G6dofJointAxisParam { + ord: i32 +} +impl G6dofJointAxisParam { + #[doc(alias = "G6DOF_JOINT_LINEAR_LOWER_LIMIT")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_LINEAR_LOWER_LIMIT`"] + pub const LINEAR_LOWER_LIMIT: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 0i32 + }; + #[doc(alias = "G6DOF_JOINT_LINEAR_UPPER_LIMIT")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_LINEAR_UPPER_LIMIT`"] + pub const LINEAR_UPPER_LIMIT: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 1i32 + }; + #[doc(alias = "G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS`"] + pub const LINEAR_LIMIT_SOFTNESS: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 2i32 + }; + #[doc(alias = "G6DOF_JOINT_LINEAR_RESTITUTION")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_LINEAR_RESTITUTION`"] + pub const LINEAR_RESTITUTION: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 3i32 + }; + #[doc(alias = "G6DOF_JOINT_LINEAR_DAMPING")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_LINEAR_DAMPING`"] + pub const LINEAR_DAMPING: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 4i32 + }; + #[doc(alias = "G6DOF_JOINT_LINEAR_MOTOR_TARGET_VELOCITY")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_LINEAR_MOTOR_TARGET_VELOCITY`"] + pub const LINEAR_MOTOR_TARGET_VELOCITY: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 5i32 + }; + #[doc(alias = "G6DOF_JOINT_LINEAR_MOTOR_FORCE_LIMIT")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_LINEAR_MOTOR_FORCE_LIMIT`"] + pub const LINEAR_MOTOR_FORCE_LIMIT: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 6i32 + }; + #[doc(alias = "G6DOF_JOINT_LINEAR_SPRING_STIFFNESS")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_LINEAR_SPRING_STIFFNESS`"] + pub const LINEAR_SPRING_STIFFNESS: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 7i32 + }; + #[doc(alias = "G6DOF_JOINT_LINEAR_SPRING_DAMPING")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_LINEAR_SPRING_DAMPING`"] + pub const LINEAR_SPRING_DAMPING: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 8i32 + }; + #[doc(alias = "G6DOF_JOINT_LINEAR_SPRING_EQUILIBRIUM_POINT")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_LINEAR_SPRING_EQUILIBRIUM_POINT`"] + pub const LINEAR_SPRING_EQUILIBRIUM_POINT: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 9i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_LOWER_LIMIT")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_LOWER_LIMIT`"] + pub const ANGULAR_LOWER_LIMIT: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 10i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_UPPER_LIMIT")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_UPPER_LIMIT`"] + pub const ANGULAR_UPPER_LIMIT: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 11i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS`"] + pub const ANGULAR_LIMIT_SOFTNESS: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 12i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_DAMPING")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_DAMPING`"] + pub const ANGULAR_DAMPING: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 13i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_RESTITUTION")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_RESTITUTION`"] + pub const ANGULAR_RESTITUTION: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 14i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_FORCE_LIMIT")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_FORCE_LIMIT`"] + pub const ANGULAR_FORCE_LIMIT: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 15i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_ERP")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_ERP`"] + pub const ANGULAR_ERP: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 16i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_MOTOR_TARGET_VELOCITY")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_MOTOR_TARGET_VELOCITY`"] + pub const ANGULAR_MOTOR_TARGET_VELOCITY: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 17i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT`"] + pub const ANGULAR_MOTOR_FORCE_LIMIT: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 18i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_SPRING_STIFFNESS")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_SPRING_STIFFNESS`"] + pub const ANGULAR_SPRING_STIFFNESS: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 19i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_SPRING_DAMPING")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_SPRING_DAMPING`"] + pub const ANGULAR_SPRING_DAMPING: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 20i32 + }; + #[doc(alias = "G6DOF_JOINT_ANGULAR_SPRING_EQUILIBRIUM_POINT")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_ANGULAR_SPRING_EQUILIBRIUM_POINT`"] + pub const ANGULAR_SPRING_EQUILIBRIUM_POINT: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 21i32 + }; + #[doc(alias = "G6DOF_JOINT_MAX")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_MAX`"] + pub const MAX: G6dofJointAxisParam = G6dofJointAxisParam { + ord: 22i32 + }; + +} +impl std::fmt::Debug for G6dofJointAxisParam { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("G6dofJointAxisParam") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for G6dofJointAxisParam { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR_LOWER_LIMIT => "LINEAR_LOWER_LIMIT", Self::LINEAR_UPPER_LIMIT => "LINEAR_UPPER_LIMIT", Self::LINEAR_LIMIT_SOFTNESS => "LINEAR_LIMIT_SOFTNESS", Self::LINEAR_RESTITUTION => "LINEAR_RESTITUTION", Self::LINEAR_DAMPING => "LINEAR_DAMPING", Self::LINEAR_MOTOR_TARGET_VELOCITY => "LINEAR_MOTOR_TARGET_VELOCITY", Self::LINEAR_MOTOR_FORCE_LIMIT => "LINEAR_MOTOR_FORCE_LIMIT", Self::LINEAR_SPRING_STIFFNESS => "LINEAR_SPRING_STIFFNESS", Self::LINEAR_SPRING_DAMPING => "LINEAR_SPRING_DAMPING", Self::LINEAR_SPRING_EQUILIBRIUM_POINT => "LINEAR_SPRING_EQUILIBRIUM_POINT", Self::ANGULAR_LOWER_LIMIT => "ANGULAR_LOWER_LIMIT", Self::ANGULAR_UPPER_LIMIT => "ANGULAR_UPPER_LIMIT", Self::ANGULAR_LIMIT_SOFTNESS => "ANGULAR_LIMIT_SOFTNESS", Self::ANGULAR_DAMPING => "ANGULAR_DAMPING", Self::ANGULAR_RESTITUTION => "ANGULAR_RESTITUTION", Self::ANGULAR_FORCE_LIMIT => "ANGULAR_FORCE_LIMIT", Self::ANGULAR_ERP => "ANGULAR_ERP", Self::ANGULAR_MOTOR_TARGET_VELOCITY => "ANGULAR_MOTOR_TARGET_VELOCITY", Self::ANGULAR_MOTOR_FORCE_LIMIT => "ANGULAR_MOTOR_FORCE_LIMIT", Self::ANGULAR_SPRING_STIFFNESS => "ANGULAR_SPRING_STIFFNESS", Self::ANGULAR_SPRING_DAMPING => "ANGULAR_SPRING_DAMPING", Self::ANGULAR_SPRING_EQUILIBRIUM_POINT => "ANGULAR_SPRING_EQUILIBRIUM_POINT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR_LOWER_LIMIT => "G6DOF_JOINT_LINEAR_LOWER_LIMIT", Self::LINEAR_UPPER_LIMIT => "G6DOF_JOINT_LINEAR_UPPER_LIMIT", Self::LINEAR_LIMIT_SOFTNESS => "G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS", Self::LINEAR_RESTITUTION => "G6DOF_JOINT_LINEAR_RESTITUTION", Self::LINEAR_DAMPING => "G6DOF_JOINT_LINEAR_DAMPING", Self::LINEAR_MOTOR_TARGET_VELOCITY => "G6DOF_JOINT_LINEAR_MOTOR_TARGET_VELOCITY", Self::LINEAR_MOTOR_FORCE_LIMIT => "G6DOF_JOINT_LINEAR_MOTOR_FORCE_LIMIT", Self::LINEAR_SPRING_STIFFNESS => "G6DOF_JOINT_LINEAR_SPRING_STIFFNESS", Self::LINEAR_SPRING_DAMPING => "G6DOF_JOINT_LINEAR_SPRING_DAMPING", Self::LINEAR_SPRING_EQUILIBRIUM_POINT => "G6DOF_JOINT_LINEAR_SPRING_EQUILIBRIUM_POINT", Self::ANGULAR_LOWER_LIMIT => "G6DOF_JOINT_ANGULAR_LOWER_LIMIT", Self::ANGULAR_UPPER_LIMIT => "G6DOF_JOINT_ANGULAR_UPPER_LIMIT", Self::ANGULAR_LIMIT_SOFTNESS => "G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS", Self::ANGULAR_DAMPING => "G6DOF_JOINT_ANGULAR_DAMPING", Self::ANGULAR_RESTITUTION => "G6DOF_JOINT_ANGULAR_RESTITUTION", Self::ANGULAR_FORCE_LIMIT => "G6DOF_JOINT_ANGULAR_FORCE_LIMIT", Self::ANGULAR_ERP => "G6DOF_JOINT_ANGULAR_ERP", Self::ANGULAR_MOTOR_TARGET_VELOCITY => "G6DOF_JOINT_ANGULAR_MOTOR_TARGET_VELOCITY", Self::ANGULAR_MOTOR_FORCE_LIMIT => "G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT", Self::ANGULAR_SPRING_STIFFNESS => "G6DOF_JOINT_ANGULAR_SPRING_STIFFNESS", Self::ANGULAR_SPRING_DAMPING => "G6DOF_JOINT_ANGULAR_SPRING_DAMPING", Self::ANGULAR_SPRING_EQUILIBRIUM_POINT => "G6DOF_JOINT_ANGULAR_SPRING_EQUILIBRIUM_POINT", Self::MAX => "G6DOF_JOINT_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for G6dofJointAxisParam { + const ENUMERATOR_COUNT: usize = 22usize; + +} +impl crate::meta::GodotConvert for G6dofJointAxisParam { + type Via = i32; + +} +impl crate::meta::ToGodot for G6dofJointAxisParam { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for G6dofJointAxisParam { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `G6DOFJointAxisFlag`."] +pub struct G6dofJointAxisFlag { + ord: i32 +} +impl G6dofJointAxisFlag { + #[doc(alias = "G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT`"] + pub const ENABLE_LINEAR_LIMIT: G6dofJointAxisFlag = G6dofJointAxisFlag { + ord: 0i32 + }; + #[doc(alias = "G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT`"] + pub const ENABLE_ANGULAR_LIMIT: G6dofJointAxisFlag = G6dofJointAxisFlag { + ord: 1i32 + }; + #[doc(alias = "G6DOF_JOINT_FLAG_ENABLE_ANGULAR_SPRING")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_FLAG_ENABLE_ANGULAR_SPRING`"] + pub const ENABLE_ANGULAR_SPRING: G6dofJointAxisFlag = G6dofJointAxisFlag { + ord: 2i32 + }; + #[doc(alias = "G6DOF_JOINT_FLAG_ENABLE_LINEAR_SPRING")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_FLAG_ENABLE_LINEAR_SPRING`"] + pub const ENABLE_LINEAR_SPRING: G6dofJointAxisFlag = G6dofJointAxisFlag { + ord: 3i32 + }; + #[doc(alias = "G6DOF_JOINT_FLAG_ENABLE_MOTOR")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_FLAG_ENABLE_MOTOR`"] + pub const ENABLE_MOTOR: G6dofJointAxisFlag = G6dofJointAxisFlag { + ord: 4i32 + }; + #[doc(alias = "G6DOF_JOINT_FLAG_ENABLE_LINEAR_MOTOR")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_FLAG_ENABLE_LINEAR_MOTOR`"] + pub const ENABLE_LINEAR_MOTOR: G6dofJointAxisFlag = G6dofJointAxisFlag { + ord: 5i32 + }; + #[doc(alias = "G6DOF_JOINT_FLAG_MAX")] + #[doc = "Godot enumerator name: `G6DOF_JOINT_FLAG_MAX`"] + pub const MAX: G6dofJointAxisFlag = G6dofJointAxisFlag { + ord: 6i32 + }; + +} +impl std::fmt::Debug for G6dofJointAxisFlag { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("G6dofJointAxisFlag") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for G6dofJointAxisFlag { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ENABLE_LINEAR_LIMIT => "ENABLE_LINEAR_LIMIT", Self::ENABLE_ANGULAR_LIMIT => "ENABLE_ANGULAR_LIMIT", Self::ENABLE_ANGULAR_SPRING => "ENABLE_ANGULAR_SPRING", Self::ENABLE_LINEAR_SPRING => "ENABLE_LINEAR_SPRING", Self::ENABLE_MOTOR => "ENABLE_MOTOR", Self::ENABLE_LINEAR_MOTOR => "ENABLE_LINEAR_MOTOR", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ENABLE_LINEAR_LIMIT => "G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT", Self::ENABLE_ANGULAR_LIMIT => "G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT", Self::ENABLE_ANGULAR_SPRING => "G6DOF_JOINT_FLAG_ENABLE_ANGULAR_SPRING", Self::ENABLE_LINEAR_SPRING => "G6DOF_JOINT_FLAG_ENABLE_LINEAR_SPRING", Self::ENABLE_MOTOR => "G6DOF_JOINT_FLAG_ENABLE_MOTOR", Self::ENABLE_LINEAR_MOTOR => "G6DOF_JOINT_FLAG_ENABLE_LINEAR_MOTOR", Self::MAX => "G6DOF_JOINT_FLAG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for G6dofJointAxisFlag { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for G6dofJointAxisFlag { + type Via = i32; + +} +impl crate::meta::ToGodot for G6dofJointAxisFlag { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for G6dofJointAxisFlag { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShapeType { + ord: i32 +} +impl ShapeType { + #[doc(alias = "SHAPE_WORLD_BOUNDARY")] + #[doc = "Godot enumerator name: `SHAPE_WORLD_BOUNDARY`"] + pub const WORLD_BOUNDARY: ShapeType = ShapeType { + ord: 0i32 + }; + #[doc(alias = "SHAPE_SEPARATION_RAY")] + #[doc = "Godot enumerator name: `SHAPE_SEPARATION_RAY`"] + pub const SEPARATION_RAY: ShapeType = ShapeType { + ord: 1i32 + }; + #[doc(alias = "SHAPE_SPHERE")] + #[doc = "Godot enumerator name: `SHAPE_SPHERE`"] + pub const SPHERE: ShapeType = ShapeType { + ord: 2i32 + }; + #[doc(alias = "SHAPE_BOX")] + #[doc = "Godot enumerator name: `SHAPE_BOX`"] + pub const BOX: ShapeType = ShapeType { + ord: 3i32 + }; + #[doc(alias = "SHAPE_CAPSULE")] + #[doc = "Godot enumerator name: `SHAPE_CAPSULE`"] + pub const CAPSULE: ShapeType = ShapeType { + ord: 4i32 + }; + #[doc(alias = "SHAPE_CYLINDER")] + #[doc = "Godot enumerator name: `SHAPE_CYLINDER`"] + pub const CYLINDER: ShapeType = ShapeType { + ord: 5i32 + }; + #[doc(alias = "SHAPE_CONVEX_POLYGON")] + #[doc = "Godot enumerator name: `SHAPE_CONVEX_POLYGON`"] + pub const CONVEX_POLYGON: ShapeType = ShapeType { + ord: 6i32 + }; + #[doc(alias = "SHAPE_CONCAVE_POLYGON")] + #[doc = "Godot enumerator name: `SHAPE_CONCAVE_POLYGON`"] + pub const CONCAVE_POLYGON: ShapeType = ShapeType { + ord: 7i32 + }; + #[doc(alias = "SHAPE_HEIGHTMAP")] + #[doc = "Godot enumerator name: `SHAPE_HEIGHTMAP`"] + pub const HEIGHTMAP: ShapeType = ShapeType { + ord: 8i32 + }; + #[doc(alias = "SHAPE_SOFT_BODY")] + #[doc = "Godot enumerator name: `SHAPE_SOFT_BODY`"] + pub const SOFT_BODY: ShapeType = ShapeType { + ord: 9i32 + }; + #[doc(alias = "SHAPE_CUSTOM")] + #[doc = "Godot enumerator name: `SHAPE_CUSTOM`"] + pub const CUSTOM: ShapeType = ShapeType { + ord: 10i32 + }; + +} +impl std::fmt::Debug for ShapeType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShapeType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShapeType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WORLD_BOUNDARY => "WORLD_BOUNDARY", Self::SEPARATION_RAY => "SEPARATION_RAY", Self::SPHERE => "SPHERE", Self::BOX => "BOX", Self::CAPSULE => "CAPSULE", Self::CYLINDER => "CYLINDER", Self::CONVEX_POLYGON => "CONVEX_POLYGON", Self::CONCAVE_POLYGON => "CONCAVE_POLYGON", Self::HEIGHTMAP => "HEIGHTMAP", Self::SOFT_BODY => "SOFT_BODY", Self::CUSTOM => "CUSTOM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::WORLD_BOUNDARY => "SHAPE_WORLD_BOUNDARY", Self::SEPARATION_RAY => "SHAPE_SEPARATION_RAY", Self::SPHERE => "SHAPE_SPHERE", Self::BOX => "SHAPE_BOX", Self::CAPSULE => "SHAPE_CAPSULE", Self::CYLINDER => "SHAPE_CYLINDER", Self::CONVEX_POLYGON => "SHAPE_CONVEX_POLYGON", Self::CONCAVE_POLYGON => "SHAPE_CONCAVE_POLYGON", Self::HEIGHTMAP => "SHAPE_HEIGHTMAP", Self::SOFT_BODY => "SHAPE_SOFT_BODY", Self::CUSTOM => "SHAPE_CUSTOM", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ShapeType { + type Via = i32; + +} +impl crate::meta::ToGodot for ShapeType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShapeType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AreaParameter { + ord: i32 +} +impl AreaParameter { + #[doc(alias = "AREA_PARAM_GRAVITY_OVERRIDE_MODE")] + #[doc = "Godot enumerator name: `AREA_PARAM_GRAVITY_OVERRIDE_MODE`"] + pub const GRAVITY_OVERRIDE_MODE: AreaParameter = AreaParameter { + ord: 0i32 + }; + #[doc(alias = "AREA_PARAM_GRAVITY")] + #[doc = "Godot enumerator name: `AREA_PARAM_GRAVITY`"] + pub const GRAVITY: AreaParameter = AreaParameter { + ord: 1i32 + }; + #[doc(alias = "AREA_PARAM_GRAVITY_VECTOR")] + #[doc = "Godot enumerator name: `AREA_PARAM_GRAVITY_VECTOR`"] + pub const GRAVITY_VECTOR: AreaParameter = AreaParameter { + ord: 2i32 + }; + #[doc(alias = "AREA_PARAM_GRAVITY_IS_POINT")] + #[doc = "Godot enumerator name: `AREA_PARAM_GRAVITY_IS_POINT`"] + pub const GRAVITY_IS_POINT: AreaParameter = AreaParameter { + ord: 3i32 + }; + #[doc(alias = "AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE")] + #[doc = "Godot enumerator name: `AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE`"] + pub const GRAVITY_POINT_UNIT_DISTANCE: AreaParameter = AreaParameter { + ord: 4i32 + }; + #[doc(alias = "AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE")] + #[doc = "Godot enumerator name: `AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE`"] + pub const LINEAR_DAMP_OVERRIDE_MODE: AreaParameter = AreaParameter { + ord: 5i32 + }; + #[doc(alias = "AREA_PARAM_LINEAR_DAMP")] + #[doc = "Godot enumerator name: `AREA_PARAM_LINEAR_DAMP`"] + pub const LINEAR_DAMP: AreaParameter = AreaParameter { + ord: 6i32 + }; + #[doc(alias = "AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE")] + #[doc = "Godot enumerator name: `AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE`"] + pub const ANGULAR_DAMP_OVERRIDE_MODE: AreaParameter = AreaParameter { + ord: 7i32 + }; + #[doc(alias = "AREA_PARAM_ANGULAR_DAMP")] + #[doc = "Godot enumerator name: `AREA_PARAM_ANGULAR_DAMP`"] + pub const ANGULAR_DAMP: AreaParameter = AreaParameter { + ord: 8i32 + }; + #[doc(alias = "AREA_PARAM_PRIORITY")] + #[doc = "Godot enumerator name: `AREA_PARAM_PRIORITY`"] + pub const PRIORITY: AreaParameter = AreaParameter { + ord: 9i32 + }; + #[doc(alias = "AREA_PARAM_WIND_FORCE_MAGNITUDE")] + #[doc = "Godot enumerator name: `AREA_PARAM_WIND_FORCE_MAGNITUDE`"] + pub const WIND_FORCE_MAGNITUDE: AreaParameter = AreaParameter { + ord: 10i32 + }; + #[doc(alias = "AREA_PARAM_WIND_SOURCE")] + #[doc = "Godot enumerator name: `AREA_PARAM_WIND_SOURCE`"] + pub const WIND_SOURCE: AreaParameter = AreaParameter { + ord: 11i32 + }; + #[doc(alias = "AREA_PARAM_WIND_DIRECTION")] + #[doc = "Godot enumerator name: `AREA_PARAM_WIND_DIRECTION`"] + pub const WIND_DIRECTION: AreaParameter = AreaParameter { + ord: 12i32 + }; + #[doc(alias = "AREA_PARAM_WIND_ATTENUATION_FACTOR")] + #[doc = "Godot enumerator name: `AREA_PARAM_WIND_ATTENUATION_FACTOR`"] + pub const WIND_ATTENUATION_FACTOR: AreaParameter = AreaParameter { + ord: 13i32 + }; + +} +impl std::fmt::Debug for AreaParameter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AreaParameter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AreaParameter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GRAVITY_OVERRIDE_MODE => "GRAVITY_OVERRIDE_MODE", Self::GRAVITY => "GRAVITY", Self::GRAVITY_VECTOR => "GRAVITY_VECTOR", Self::GRAVITY_IS_POINT => "GRAVITY_IS_POINT", Self::GRAVITY_POINT_UNIT_DISTANCE => "GRAVITY_POINT_UNIT_DISTANCE", Self::LINEAR_DAMP_OVERRIDE_MODE => "LINEAR_DAMP_OVERRIDE_MODE", Self::LINEAR_DAMP => "LINEAR_DAMP", Self::ANGULAR_DAMP_OVERRIDE_MODE => "ANGULAR_DAMP_OVERRIDE_MODE", Self::ANGULAR_DAMP => "ANGULAR_DAMP", Self::PRIORITY => "PRIORITY", Self::WIND_FORCE_MAGNITUDE => "WIND_FORCE_MAGNITUDE", Self::WIND_SOURCE => "WIND_SOURCE", Self::WIND_DIRECTION => "WIND_DIRECTION", Self::WIND_ATTENUATION_FACTOR => "WIND_ATTENUATION_FACTOR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GRAVITY_OVERRIDE_MODE => "AREA_PARAM_GRAVITY_OVERRIDE_MODE", Self::GRAVITY => "AREA_PARAM_GRAVITY", Self::GRAVITY_VECTOR => "AREA_PARAM_GRAVITY_VECTOR", Self::GRAVITY_IS_POINT => "AREA_PARAM_GRAVITY_IS_POINT", Self::GRAVITY_POINT_UNIT_DISTANCE => "AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE", Self::LINEAR_DAMP_OVERRIDE_MODE => "AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE", Self::LINEAR_DAMP => "AREA_PARAM_LINEAR_DAMP", Self::ANGULAR_DAMP_OVERRIDE_MODE => "AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE", Self::ANGULAR_DAMP => "AREA_PARAM_ANGULAR_DAMP", Self::PRIORITY => "AREA_PARAM_PRIORITY", Self::WIND_FORCE_MAGNITUDE => "AREA_PARAM_WIND_FORCE_MAGNITUDE", Self::WIND_SOURCE => "AREA_PARAM_WIND_SOURCE", Self::WIND_DIRECTION => "AREA_PARAM_WIND_DIRECTION", Self::WIND_ATTENUATION_FACTOR => "AREA_PARAM_WIND_ATTENUATION_FACTOR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AreaParameter { + type Via = i32; + +} +impl crate::meta::ToGodot for AreaParameter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AreaParameter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AreaSpaceOverrideMode { + ord: i32 +} +impl AreaSpaceOverrideMode { + #[doc(alias = "AREA_SPACE_OVERRIDE_DISABLED")] + #[doc = "Godot enumerator name: `AREA_SPACE_OVERRIDE_DISABLED`"] + pub const DISABLED: AreaSpaceOverrideMode = AreaSpaceOverrideMode { + ord: 0i32 + }; + #[doc(alias = "AREA_SPACE_OVERRIDE_COMBINE")] + #[doc = "Godot enumerator name: `AREA_SPACE_OVERRIDE_COMBINE`"] + pub const COMBINE: AreaSpaceOverrideMode = AreaSpaceOverrideMode { + ord: 1i32 + }; + #[doc(alias = "AREA_SPACE_OVERRIDE_COMBINE_REPLACE")] + #[doc = "Godot enumerator name: `AREA_SPACE_OVERRIDE_COMBINE_REPLACE`"] + pub const COMBINE_REPLACE: AreaSpaceOverrideMode = AreaSpaceOverrideMode { + ord: 2i32 + }; + #[doc(alias = "AREA_SPACE_OVERRIDE_REPLACE")] + #[doc = "Godot enumerator name: `AREA_SPACE_OVERRIDE_REPLACE`"] + pub const REPLACE: AreaSpaceOverrideMode = AreaSpaceOverrideMode { + ord: 3i32 + }; + #[doc(alias = "AREA_SPACE_OVERRIDE_REPLACE_COMBINE")] + #[doc = "Godot enumerator name: `AREA_SPACE_OVERRIDE_REPLACE_COMBINE`"] + pub const REPLACE_COMBINE: AreaSpaceOverrideMode = AreaSpaceOverrideMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for AreaSpaceOverrideMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AreaSpaceOverrideMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AreaSpaceOverrideMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::COMBINE => "COMBINE", Self::COMBINE_REPLACE => "COMBINE_REPLACE", Self::REPLACE => "REPLACE", Self::REPLACE_COMBINE => "REPLACE_COMBINE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "AREA_SPACE_OVERRIDE_DISABLED", Self::COMBINE => "AREA_SPACE_OVERRIDE_COMBINE", Self::COMBINE_REPLACE => "AREA_SPACE_OVERRIDE_COMBINE_REPLACE", Self::REPLACE => "AREA_SPACE_OVERRIDE_REPLACE", Self::REPLACE_COMBINE => "AREA_SPACE_OVERRIDE_REPLACE_COMBINE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AreaSpaceOverrideMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AreaSpaceOverrideMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AreaSpaceOverrideMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BodyMode { + ord: i32 +} +impl BodyMode { + #[doc(alias = "BODY_MODE_STATIC")] + #[doc = "Godot enumerator name: `BODY_MODE_STATIC`"] + pub const STATIC: BodyMode = BodyMode { + ord: 0i32 + }; + #[doc(alias = "BODY_MODE_KINEMATIC")] + #[doc = "Godot enumerator name: `BODY_MODE_KINEMATIC`"] + pub const KINEMATIC: BodyMode = BodyMode { + ord: 1i32 + }; + #[doc(alias = "BODY_MODE_RIGID")] + #[doc = "Godot enumerator name: `BODY_MODE_RIGID`"] + pub const RIGID: BodyMode = BodyMode { + ord: 2i32 + }; + #[doc(alias = "BODY_MODE_RIGID_LINEAR")] + #[doc = "Godot enumerator name: `BODY_MODE_RIGID_LINEAR`"] + pub const RIGID_LINEAR: BodyMode = BodyMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for BodyMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BodyMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BodyMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STATIC => "STATIC", Self::KINEMATIC => "KINEMATIC", Self::RIGID => "RIGID", Self::RIGID_LINEAR => "RIGID_LINEAR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STATIC => "BODY_MODE_STATIC", Self::KINEMATIC => "BODY_MODE_KINEMATIC", Self::RIGID => "BODY_MODE_RIGID", Self::RIGID_LINEAR => "BODY_MODE_RIGID_LINEAR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BodyMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BodyMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BodyMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BodyParameter { + ord: i32 +} +impl BodyParameter { + #[doc(alias = "BODY_PARAM_BOUNCE")] + #[doc = "Godot enumerator name: `BODY_PARAM_BOUNCE`"] + pub const BOUNCE: BodyParameter = BodyParameter { + ord: 0i32 + }; + #[doc(alias = "BODY_PARAM_FRICTION")] + #[doc = "Godot enumerator name: `BODY_PARAM_FRICTION`"] + pub const FRICTION: BodyParameter = BodyParameter { + ord: 1i32 + }; + #[doc(alias = "BODY_PARAM_MASS")] + #[doc = "Godot enumerator name: `BODY_PARAM_MASS`"] + pub const MASS: BodyParameter = BodyParameter { + ord: 2i32 + }; + #[doc(alias = "BODY_PARAM_INERTIA")] + #[doc = "Godot enumerator name: `BODY_PARAM_INERTIA`"] + pub const INERTIA: BodyParameter = BodyParameter { + ord: 3i32 + }; + #[doc(alias = "BODY_PARAM_CENTER_OF_MASS")] + #[doc = "Godot enumerator name: `BODY_PARAM_CENTER_OF_MASS`"] + pub const CENTER_OF_MASS: BodyParameter = BodyParameter { + ord: 4i32 + }; + #[doc(alias = "BODY_PARAM_GRAVITY_SCALE")] + #[doc = "Godot enumerator name: `BODY_PARAM_GRAVITY_SCALE`"] + pub const GRAVITY_SCALE: BodyParameter = BodyParameter { + ord: 5i32 + }; + #[doc(alias = "BODY_PARAM_LINEAR_DAMP_MODE")] + #[doc = "Godot enumerator name: `BODY_PARAM_LINEAR_DAMP_MODE`"] + pub const LINEAR_DAMP_MODE: BodyParameter = BodyParameter { + ord: 6i32 + }; + #[doc(alias = "BODY_PARAM_ANGULAR_DAMP_MODE")] + #[doc = "Godot enumerator name: `BODY_PARAM_ANGULAR_DAMP_MODE`"] + pub const ANGULAR_DAMP_MODE: BodyParameter = BodyParameter { + ord: 7i32 + }; + #[doc(alias = "BODY_PARAM_LINEAR_DAMP")] + #[doc = "Godot enumerator name: `BODY_PARAM_LINEAR_DAMP`"] + pub const LINEAR_DAMP: BodyParameter = BodyParameter { + ord: 8i32 + }; + #[doc(alias = "BODY_PARAM_ANGULAR_DAMP")] + #[doc = "Godot enumerator name: `BODY_PARAM_ANGULAR_DAMP`"] + pub const ANGULAR_DAMP: BodyParameter = BodyParameter { + ord: 9i32 + }; + #[doc(alias = "BODY_PARAM_MAX")] + #[doc = "Godot enumerator name: `BODY_PARAM_MAX`"] + pub const MAX: BodyParameter = BodyParameter { + ord: 10i32 + }; + +} +impl std::fmt::Debug for BodyParameter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BodyParameter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BodyParameter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOUNCE => "BOUNCE", Self::FRICTION => "FRICTION", Self::MASS => "MASS", Self::INERTIA => "INERTIA", Self::CENTER_OF_MASS => "CENTER_OF_MASS", Self::GRAVITY_SCALE => "GRAVITY_SCALE", Self::LINEAR_DAMP_MODE => "LINEAR_DAMP_MODE", Self::ANGULAR_DAMP_MODE => "ANGULAR_DAMP_MODE", Self::LINEAR_DAMP => "LINEAR_DAMP", Self::ANGULAR_DAMP => "ANGULAR_DAMP", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOUNCE => "BODY_PARAM_BOUNCE", Self::FRICTION => "BODY_PARAM_FRICTION", Self::MASS => "BODY_PARAM_MASS", Self::INERTIA => "BODY_PARAM_INERTIA", Self::CENTER_OF_MASS => "BODY_PARAM_CENTER_OF_MASS", Self::GRAVITY_SCALE => "BODY_PARAM_GRAVITY_SCALE", Self::LINEAR_DAMP_MODE => "BODY_PARAM_LINEAR_DAMP_MODE", Self::ANGULAR_DAMP_MODE => "BODY_PARAM_ANGULAR_DAMP_MODE", Self::LINEAR_DAMP => "BODY_PARAM_LINEAR_DAMP", Self::ANGULAR_DAMP => "BODY_PARAM_ANGULAR_DAMP", Self::MAX => "BODY_PARAM_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for BodyParameter { + const ENUMERATOR_COUNT: usize = 10usize; + +} +impl crate::meta::GodotConvert for BodyParameter { + type Via = i32; + +} +impl crate::meta::ToGodot for BodyParameter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BodyParameter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BodyDampMode { + ord: i32 +} +impl BodyDampMode { + #[doc(alias = "BODY_DAMP_MODE_COMBINE")] + #[doc = "Godot enumerator name: `BODY_DAMP_MODE_COMBINE`"] + pub const COMBINE: BodyDampMode = BodyDampMode { + ord: 0i32 + }; + #[doc(alias = "BODY_DAMP_MODE_REPLACE")] + #[doc = "Godot enumerator name: `BODY_DAMP_MODE_REPLACE`"] + pub const REPLACE: BodyDampMode = BodyDampMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for BodyDampMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BodyDampMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BodyDampMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMBINE => "COMBINE", Self::REPLACE => "REPLACE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMBINE => "BODY_DAMP_MODE_COMBINE", Self::REPLACE => "BODY_DAMP_MODE_REPLACE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BodyDampMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BodyDampMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BodyDampMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BodyState { + ord: i32 +} +impl BodyState { + #[doc(alias = "BODY_STATE_TRANSFORM")] + #[doc = "Godot enumerator name: `BODY_STATE_TRANSFORM`"] + pub const TRANSFORM: BodyState = BodyState { + ord: 0i32 + }; + #[doc(alias = "BODY_STATE_LINEAR_VELOCITY")] + #[doc = "Godot enumerator name: `BODY_STATE_LINEAR_VELOCITY`"] + pub const LINEAR_VELOCITY: BodyState = BodyState { + ord: 1i32 + }; + #[doc(alias = "BODY_STATE_ANGULAR_VELOCITY")] + #[doc = "Godot enumerator name: `BODY_STATE_ANGULAR_VELOCITY`"] + pub const ANGULAR_VELOCITY: BodyState = BodyState { + ord: 2i32 + }; + #[doc(alias = "BODY_STATE_SLEEPING")] + #[doc = "Godot enumerator name: `BODY_STATE_SLEEPING`"] + pub const SLEEPING: BodyState = BodyState { + ord: 3i32 + }; + #[doc(alias = "BODY_STATE_CAN_SLEEP")] + #[doc = "Godot enumerator name: `BODY_STATE_CAN_SLEEP`"] + pub const CAN_SLEEP: BodyState = BodyState { + ord: 4i32 + }; + +} +impl std::fmt::Debug for BodyState { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BodyState") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BodyState { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TRANSFORM => "TRANSFORM", Self::LINEAR_VELOCITY => "LINEAR_VELOCITY", Self::ANGULAR_VELOCITY => "ANGULAR_VELOCITY", Self::SLEEPING => "SLEEPING", Self::CAN_SLEEP => "CAN_SLEEP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TRANSFORM => "BODY_STATE_TRANSFORM", Self::LINEAR_VELOCITY => "BODY_STATE_LINEAR_VELOCITY", Self::ANGULAR_VELOCITY => "BODY_STATE_ANGULAR_VELOCITY", Self::SLEEPING => "BODY_STATE_SLEEPING", Self::CAN_SLEEP => "BODY_STATE_CAN_SLEEP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BodyState { + type Via = i32; + +} +impl crate::meta::ToGodot for BodyState { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BodyState { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AreaBodyStatus { + ord: i32 +} +impl AreaBodyStatus { + #[doc(alias = "AREA_BODY_ADDED")] + #[doc = "Godot enumerator name: `AREA_BODY_ADDED`"] + pub const ADDED: AreaBodyStatus = AreaBodyStatus { + ord: 0i32 + }; + #[doc(alias = "AREA_BODY_REMOVED")] + #[doc = "Godot enumerator name: `AREA_BODY_REMOVED`"] + pub const REMOVED: AreaBodyStatus = AreaBodyStatus { + ord: 1i32 + }; + +} +impl std::fmt::Debug for AreaBodyStatus { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AreaBodyStatus") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AreaBodyStatus { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADDED => "ADDED", Self::REMOVED => "REMOVED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADDED => "AREA_BODY_ADDED", Self::REMOVED => "AREA_BODY_REMOVED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AreaBodyStatus { + type Via = i32; + +} +impl crate::meta::ToGodot for AreaBodyStatus { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AreaBodyStatus { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ProcessInfo { + ord: i32 +} +impl ProcessInfo { + #[doc(alias = "INFO_ACTIVE_OBJECTS")] + #[doc = "Godot enumerator name: `INFO_ACTIVE_OBJECTS`"] + pub const ACTIVE_OBJECTS: ProcessInfo = ProcessInfo { + ord: 0i32 + }; + #[doc(alias = "INFO_COLLISION_PAIRS")] + #[doc = "Godot enumerator name: `INFO_COLLISION_PAIRS`"] + pub const COLLISION_PAIRS: ProcessInfo = ProcessInfo { + ord: 1i32 + }; + #[doc(alias = "INFO_ISLAND_COUNT")] + #[doc = "Godot enumerator name: `INFO_ISLAND_COUNT`"] + pub const ISLAND_COUNT: ProcessInfo = ProcessInfo { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ProcessInfo { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ProcessInfo") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ProcessInfo { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ACTIVE_OBJECTS => "ACTIVE_OBJECTS", Self::COLLISION_PAIRS => "COLLISION_PAIRS", Self::ISLAND_COUNT => "ISLAND_COUNT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ACTIVE_OBJECTS => "INFO_ACTIVE_OBJECTS", Self::COLLISION_PAIRS => "INFO_COLLISION_PAIRS", Self::ISLAND_COUNT => "INFO_ISLAND_COUNT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ProcessInfo { + type Via = i32; + +} +impl crate::meta::ToGodot for ProcessInfo { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ProcessInfo { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SpaceParameter { + ord: i32 +} +impl SpaceParameter { + #[doc(alias = "SPACE_PARAM_CONTACT_RECYCLE_RADIUS")] + #[doc = "Godot enumerator name: `SPACE_PARAM_CONTACT_RECYCLE_RADIUS`"] + pub const CONTACT_RECYCLE_RADIUS: SpaceParameter = SpaceParameter { + ord: 0i32 + }; + #[doc(alias = "SPACE_PARAM_CONTACT_MAX_SEPARATION")] + #[doc = "Godot enumerator name: `SPACE_PARAM_CONTACT_MAX_SEPARATION`"] + pub const CONTACT_MAX_SEPARATION: SpaceParameter = SpaceParameter { + ord: 1i32 + }; + #[doc(alias = "SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION")] + #[doc = "Godot enumerator name: `SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION`"] + pub const CONTACT_MAX_ALLOWED_PENETRATION: SpaceParameter = SpaceParameter { + ord: 2i32 + }; + #[doc(alias = "SPACE_PARAM_CONTACT_DEFAULT_BIAS")] + #[doc = "Godot enumerator name: `SPACE_PARAM_CONTACT_DEFAULT_BIAS`"] + pub const CONTACT_DEFAULT_BIAS: SpaceParameter = SpaceParameter { + ord: 3i32 + }; + #[doc(alias = "SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD")] + #[doc = "Godot enumerator name: `SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD`"] + pub const BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD: SpaceParameter = SpaceParameter { + ord: 4i32 + }; + #[doc(alias = "SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD")] + #[doc = "Godot enumerator name: `SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD`"] + pub const BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD: SpaceParameter = SpaceParameter { + ord: 5i32 + }; + #[doc(alias = "SPACE_PARAM_BODY_TIME_TO_SLEEP")] + #[doc = "Godot enumerator name: `SPACE_PARAM_BODY_TIME_TO_SLEEP`"] + pub const BODY_TIME_TO_SLEEP: SpaceParameter = SpaceParameter { + ord: 6i32 + }; + #[doc(alias = "SPACE_PARAM_SOLVER_ITERATIONS")] + #[doc = "Godot enumerator name: `SPACE_PARAM_SOLVER_ITERATIONS`"] + pub const SOLVER_ITERATIONS: SpaceParameter = SpaceParameter { + ord: 7i32 + }; + +} +impl std::fmt::Debug for SpaceParameter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SpaceParameter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SpaceParameter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CONTACT_RECYCLE_RADIUS => "CONTACT_RECYCLE_RADIUS", Self::CONTACT_MAX_SEPARATION => "CONTACT_MAX_SEPARATION", Self::CONTACT_MAX_ALLOWED_PENETRATION => "CONTACT_MAX_ALLOWED_PENETRATION", Self::CONTACT_DEFAULT_BIAS => "CONTACT_DEFAULT_BIAS", Self::BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD => "BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD", Self::BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD => "BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD", Self::BODY_TIME_TO_SLEEP => "BODY_TIME_TO_SLEEP", Self::SOLVER_ITERATIONS => "SOLVER_ITERATIONS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CONTACT_RECYCLE_RADIUS => "SPACE_PARAM_CONTACT_RECYCLE_RADIUS", Self::CONTACT_MAX_SEPARATION => "SPACE_PARAM_CONTACT_MAX_SEPARATION", Self::CONTACT_MAX_ALLOWED_PENETRATION => "SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION", Self::CONTACT_DEFAULT_BIAS => "SPACE_PARAM_CONTACT_DEFAULT_BIAS", Self::BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD => "SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD", Self::BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD => "SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD", Self::BODY_TIME_TO_SLEEP => "SPACE_PARAM_BODY_TIME_TO_SLEEP", Self::SOLVER_ITERATIONS => "SPACE_PARAM_SOLVER_ITERATIONS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SpaceParameter { + type Via = i32; + +} +impl crate::meta::ToGodot for SpaceParameter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SpaceParameter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BodyAxis { + ord: i32 +} +impl BodyAxis { + #[doc(alias = "BODY_AXIS_LINEAR_X")] + #[doc = "Godot enumerator name: `BODY_AXIS_LINEAR_X`"] + pub const LINEAR_X: BodyAxis = BodyAxis { + ord: 1i32 + }; + #[doc(alias = "BODY_AXIS_LINEAR_Y")] + #[doc = "Godot enumerator name: `BODY_AXIS_LINEAR_Y`"] + pub const LINEAR_Y: BodyAxis = BodyAxis { + ord: 2i32 + }; + #[doc(alias = "BODY_AXIS_LINEAR_Z")] + #[doc = "Godot enumerator name: `BODY_AXIS_LINEAR_Z`"] + pub const LINEAR_Z: BodyAxis = BodyAxis { + ord: 4i32 + }; + #[doc(alias = "BODY_AXIS_ANGULAR_X")] + #[doc = "Godot enumerator name: `BODY_AXIS_ANGULAR_X`"] + pub const ANGULAR_X: BodyAxis = BodyAxis { + ord: 8i32 + }; + #[doc(alias = "BODY_AXIS_ANGULAR_Y")] + #[doc = "Godot enumerator name: `BODY_AXIS_ANGULAR_Y`"] + pub const ANGULAR_Y: BodyAxis = BodyAxis { + ord: 16i32 + }; + #[doc(alias = "BODY_AXIS_ANGULAR_Z")] + #[doc = "Godot enumerator name: `BODY_AXIS_ANGULAR_Z`"] + pub const ANGULAR_Z: BodyAxis = BodyAxis { + ord: 32i32 + }; + +} +impl std::fmt::Debug for BodyAxis { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BodyAxis") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BodyAxis { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 1i32 | ord @ 2i32 | ord @ 4i32 | ord @ 8i32 | ord @ 16i32 | ord @ 32i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR_X => "LINEAR_X", Self::LINEAR_Y => "LINEAR_Y", Self::LINEAR_Z => "LINEAR_Z", Self::ANGULAR_X => "ANGULAR_X", Self::ANGULAR_Y => "ANGULAR_Y", Self::ANGULAR_Z => "ANGULAR_Z", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR_X => "BODY_AXIS_LINEAR_X", Self::LINEAR_Y => "BODY_AXIS_LINEAR_Y", Self::LINEAR_Z => "BODY_AXIS_LINEAR_Z", Self::ANGULAR_X => "BODY_AXIS_ANGULAR_X", Self::ANGULAR_Y => "BODY_AXIS_ANGULAR_Y", Self::ANGULAR_Z => "BODY_AXIS_ANGULAR_Z", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BodyAxis { + type Via = i32; + +} +impl crate::meta::ToGodot for BodyAxis { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BodyAxis { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d_extension.rs new file mode 100644 index 0000000..1c4c874 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d_extension.rs @@ -0,0 +1,402 @@ +#![doc = "Sidecar module for class [`PhysicsServer3DExtension`][crate::classes::PhysicsServer3DExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsServer3DExtension` enums](https://docs.godotengine.org/en/stable/classes/class_physicsserver3dextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsServer3DExtension.`\n\nInherits [`PhysicsServer3D`][crate::classes::PhysicsServer3D].\n\nRelated symbols:\n\n* [`IPhysicsServer3DExtension`][crate::classes::IPhysicsServer3DExtension]: virtual methods\n\n\nSee also [Godot docs for `PhysicsServer3DExtension`](https://docs.godotengine.org/en/stable/classes/class_physicsserver3dextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PhysicsServer3DExtension::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsServer3DExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsServer3DExtension`][crate::classes::PhysicsServer3DExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsServer3DExtension` methods](https://docs.godotengine.org/en/stable/classes/class_physicsserver3dextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsServer3DExtension: crate::obj::GodotClass < Base = PhysicsServer3DExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn world_boundary_shape_create(&mut self,) -> Rid; + fn separation_ray_shape_create(&mut self,) -> Rid; + fn sphere_shape_create(&mut self,) -> Rid; + fn box_shape_create(&mut self,) -> Rid; + fn capsule_shape_create(&mut self,) -> Rid; + fn cylinder_shape_create(&mut self,) -> Rid; + fn convex_polygon_shape_create(&mut self,) -> Rid; + fn concave_polygon_shape_create(&mut self,) -> Rid; + fn heightmap_shape_create(&mut self,) -> Rid; + fn custom_shape_create(&mut self,) -> Rid; + fn shape_set_data(&mut self, shape: Rid, data: Variant,); + fn shape_set_custom_solver_bias(&mut self, shape: Rid, bias: f32,); + fn shape_set_margin(&mut self, shape: Rid, margin: f32,); + fn shape_get_margin(&self, shape: Rid,) -> f32; + fn shape_get_type(&self, shape: Rid,) -> crate::classes::physics_server_3d::ShapeType; + fn shape_get_data(&self, shape: Rid,) -> Variant; + fn shape_get_custom_solver_bias(&self, shape: Rid,) -> f32; + fn space_create(&mut self,) -> Rid; + fn space_set_active(&mut self, space: Rid, active: bool,); + fn space_is_active(&self, space: Rid,) -> bool; + fn space_set_param(&mut self, space: Rid, param: crate::classes::physics_server_3d::SpaceParameter, value: f32,); + fn space_get_param(&self, space: Rid, param: crate::classes::physics_server_3d::SpaceParameter,) -> f32; + fn space_get_direct_state(&mut self, space: Rid,) -> Option < Gd < crate::classes::PhysicsDirectSpaceState3D > >; + fn space_set_debug_contacts(&mut self, space: Rid, max_contacts: i32,); + fn space_get_contacts(&self, space: Rid,) -> PackedVector3Array; + fn space_get_contact_count(&self, space: Rid,) -> i32; + fn area_create(&mut self,) -> Rid; + fn area_set_space(&mut self, area: Rid, space: Rid,); + fn area_get_space(&self, area: Rid,) -> Rid; + fn area_add_shape(&mut self, area: Rid, shape: Rid, transform: Transform3D, disabled: bool,); + fn area_set_shape(&mut self, area: Rid, shape_idx: i32, shape: Rid,); + fn area_set_shape_transform(&mut self, area: Rid, shape_idx: i32, transform: Transform3D,); + fn area_set_shape_disabled(&mut self, area: Rid, shape_idx: i32, disabled: bool,); + fn area_get_shape_count(&self, area: Rid,) -> i32; + fn area_get_shape(&self, area: Rid, shape_idx: i32,) -> Rid; + fn area_get_shape_transform(&self, area: Rid, shape_idx: i32,) -> Transform3D; + fn area_remove_shape(&mut self, area: Rid, shape_idx: i32,); + fn area_clear_shapes(&mut self, area: Rid,); + fn area_attach_object_instance_id(&mut self, area: Rid, id: u64,); + fn area_get_object_instance_id(&self, area: Rid,) -> u64; + fn area_set_param(&mut self, area: Rid, param: crate::classes::physics_server_3d::AreaParameter, value: Variant,); + fn area_set_transform(&mut self, area: Rid, transform: Transform3D,); + fn area_get_param(&self, area: Rid, param: crate::classes::physics_server_3d::AreaParameter,) -> Variant; + fn area_get_transform(&self, area: Rid,) -> Transform3D; + fn area_set_collision_layer(&mut self, area: Rid, layer: u32,); + fn area_get_collision_layer(&self, area: Rid,) -> u32; + fn area_set_collision_mask(&mut self, area: Rid, mask: u32,); + fn area_get_collision_mask(&self, area: Rid,) -> u32; + fn area_set_monitorable(&mut self, area: Rid, monitorable: bool,); + fn area_set_ray_pickable(&mut self, area: Rid, enable: bool,); + fn area_set_monitor_callback(&mut self, area: Rid, callback: Callable,); + fn area_set_area_monitor_callback(&mut self, area: Rid, callback: Callable,); + fn body_create(&mut self,) -> Rid; + fn body_set_space(&mut self, body: Rid, space: Rid,); + fn body_get_space(&self, body: Rid,) -> Rid; + fn body_set_mode(&mut self, body: Rid, mode: crate::classes::physics_server_3d::BodyMode,); + fn body_get_mode(&self, body: Rid,) -> crate::classes::physics_server_3d::BodyMode; + fn body_add_shape(&mut self, body: Rid, shape: Rid, transform: Transform3D, disabled: bool,); + fn body_set_shape(&mut self, body: Rid, shape_idx: i32, shape: Rid,); + fn body_set_shape_transform(&mut self, body: Rid, shape_idx: i32, transform: Transform3D,); + fn body_set_shape_disabled(&mut self, body: Rid, shape_idx: i32, disabled: bool,); + fn body_get_shape_count(&self, body: Rid,) -> i32; + fn body_get_shape(&self, body: Rid, shape_idx: i32,) -> Rid; + fn body_get_shape_transform(&self, body: Rid, shape_idx: i32,) -> Transform3D; + fn body_remove_shape(&mut self, body: Rid, shape_idx: i32,); + fn body_clear_shapes(&mut self, body: Rid,); + fn body_attach_object_instance_id(&mut self, body: Rid, id: u64,); + fn body_get_object_instance_id(&self, body: Rid,) -> u64; + fn body_set_enable_continuous_collision_detection(&mut self, body: Rid, enable: bool,); + fn body_is_continuous_collision_detection_enabled(&self, body: Rid,) -> bool; + fn body_set_collision_layer(&mut self, body: Rid, layer: u32,); + fn body_get_collision_layer(&self, body: Rid,) -> u32; + fn body_set_collision_mask(&mut self, body: Rid, mask: u32,); + fn body_get_collision_mask(&self, body: Rid,) -> u32; + fn body_set_collision_priority(&mut self, body: Rid, priority: f32,); + fn body_get_collision_priority(&self, body: Rid,) -> f32; + fn body_set_user_flags(&mut self, body: Rid, flags: u32,); + fn body_get_user_flags(&self, body: Rid,) -> u32; + fn body_set_param(&mut self, body: Rid, param: crate::classes::physics_server_3d::BodyParameter, value: Variant,); + fn body_get_param(&self, body: Rid, param: crate::classes::physics_server_3d::BodyParameter,) -> Variant; + fn body_reset_mass_properties(&mut self, body: Rid,); + fn body_set_state(&mut self, body: Rid, state: crate::classes::physics_server_3d::BodyState, value: Variant,); + fn body_get_state(&self, body: Rid, state: crate::classes::physics_server_3d::BodyState,) -> Variant; + fn body_apply_central_impulse(&mut self, body: Rid, impulse: Vector3,); + fn body_apply_impulse(&mut self, body: Rid, impulse: Vector3, position: Vector3,); + fn body_apply_torque_impulse(&mut self, body: Rid, impulse: Vector3,); + fn body_apply_central_force(&mut self, body: Rid, force: Vector3,); + fn body_apply_force(&mut self, body: Rid, force: Vector3, position: Vector3,); + fn body_apply_torque(&mut self, body: Rid, torque: Vector3,); + fn body_add_constant_central_force(&mut self, body: Rid, force: Vector3,); + fn body_add_constant_force(&mut self, body: Rid, force: Vector3, position: Vector3,); + fn body_add_constant_torque(&mut self, body: Rid, torque: Vector3,); + fn body_set_constant_force(&mut self, body: Rid, force: Vector3,); + fn body_get_constant_force(&self, body: Rid,) -> Vector3; + fn body_set_constant_torque(&mut self, body: Rid, torque: Vector3,); + fn body_get_constant_torque(&self, body: Rid,) -> Vector3; + fn body_set_axis_velocity(&mut self, body: Rid, axis_velocity: Vector3,); + fn body_set_axis_lock(&mut self, body: Rid, axis: crate::classes::physics_server_3d::BodyAxis, lock: bool,); + fn body_is_axis_locked(&self, body: Rid, axis: crate::classes::physics_server_3d::BodyAxis,) -> bool; + fn body_add_collision_exception(&mut self, body: Rid, excepted_body: Rid,); + fn body_remove_collision_exception(&mut self, body: Rid, excepted_body: Rid,); + fn body_get_collision_exceptions(&self, body: Rid,) -> Array < Rid >; + fn body_set_max_contacts_reported(&mut self, body: Rid, amount: i32,); + fn body_get_max_contacts_reported(&self, body: Rid,) -> i32; + fn body_set_contacts_reported_depth_threshold(&mut self, body: Rid, threshold: f32,); + fn body_get_contacts_reported_depth_threshold(&self, body: Rid,) -> f32; + fn body_set_omit_force_integration(&mut self, body: Rid, enable: bool,); + fn body_is_omitting_force_integration(&self, body: Rid,) -> bool; + fn body_set_state_sync_callback(&mut self, body: Rid, callable: Callable,); + fn body_set_force_integration_callback(&mut self, body: Rid, callable: Callable, userdata: Variant,); + fn body_set_ray_pickable(&mut self, body: Rid, enable: bool,); + #[doc = r" # Safety"] + #[doc = r""] + #[doc = r" This method has automatically been marked `unsafe` because it accepts raw pointers as parameters."] + #[doc = r" If Godot does not document any safety requirements, make sure you understand the underlying semantics."] + unsafe fn body_test_motion(&self, body: Rid, from: Transform3D, motion: Vector3, margin: f32, max_collisions: i32, collide_separation_ray: bool, recovery_as_collision: bool, result: * mut PhysicsServer3DExtensionMotionResult,) -> bool; + fn body_get_direct_state(&mut self, body: Rid,) -> Option < Gd < crate::classes::PhysicsDirectBodyState3D > >; + fn soft_body_create(&mut self,) -> Rid; + fn soft_body_update_rendering_server(&mut self, body: Rid, rendering_server_handler: Option < Gd < crate::classes::PhysicsServer3DRenderingServerHandler > >,); + fn soft_body_set_space(&mut self, body: Rid, space: Rid,); + fn soft_body_get_space(&self, body: Rid,) -> Rid; + fn soft_body_set_ray_pickable(&mut self, body: Rid, enable: bool,); + fn soft_body_set_collision_layer(&mut self, body: Rid, layer: u32,); + fn soft_body_get_collision_layer(&self, body: Rid,) -> u32; + fn soft_body_set_collision_mask(&mut self, body: Rid, mask: u32,); + fn soft_body_get_collision_mask(&self, body: Rid,) -> u32; + fn soft_body_add_collision_exception(&mut self, body: Rid, body_b: Rid,); + fn soft_body_remove_collision_exception(&mut self, body: Rid, body_b: Rid,); + fn soft_body_get_collision_exceptions(&self, body: Rid,) -> Array < Rid >; + fn soft_body_set_state(&mut self, body: Rid, state: crate::classes::physics_server_3d::BodyState, variant: Variant,); + fn soft_body_get_state(&self, body: Rid, state: crate::classes::physics_server_3d::BodyState,) -> Variant; + fn soft_body_set_transform(&mut self, body: Rid, transform: Transform3D,); + fn soft_body_set_simulation_precision(&mut self, body: Rid, simulation_precision: i32,); + fn soft_body_get_simulation_precision(&self, body: Rid,) -> i32; + fn soft_body_set_total_mass(&mut self, body: Rid, total_mass: f32,); + fn soft_body_get_total_mass(&self, body: Rid,) -> f32; + fn soft_body_set_linear_stiffness(&mut self, body: Rid, linear_stiffness: f32,); + fn soft_body_get_linear_stiffness(&self, body: Rid,) -> f32; + fn soft_body_set_pressure_coefficient(&mut self, body: Rid, pressure_coefficient: f32,); + fn soft_body_get_pressure_coefficient(&self, body: Rid,) -> f32; + fn soft_body_set_damping_coefficient(&mut self, body: Rid, damping_coefficient: f32,); + fn soft_body_get_damping_coefficient(&self, body: Rid,) -> f32; + fn soft_body_set_drag_coefficient(&mut self, body: Rid, drag_coefficient: f32,); + fn soft_body_get_drag_coefficient(&self, body: Rid,) -> f32; + fn soft_body_set_mesh(&mut self, body: Rid, mesh: Rid,); + fn soft_body_get_bounds(&self, body: Rid,) -> Aabb; + fn soft_body_move_point(&mut self, body: Rid, point_index: i32, global_position: Vector3,); + fn soft_body_get_point_global_position(&self, body: Rid, point_index: i32,) -> Vector3; + fn soft_body_remove_all_pinned_points(&mut self, body: Rid,); + fn soft_body_pin_point(&mut self, body: Rid, point_index: i32, pin: bool,); + fn soft_body_is_point_pinned(&self, body: Rid, point_index: i32,) -> bool; + fn joint_create(&mut self,) -> Rid; + fn joint_clear(&mut self, joint: Rid,); + fn joint_make_pin(&mut self, joint: Rid, body_A: Rid, local_A: Vector3, body_B: Rid, local_B: Vector3,); + fn pin_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_3d::PinJointParam, value: f32,); + fn pin_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_3d::PinJointParam,) -> f32; + fn pin_joint_set_local_a(&mut self, joint: Rid, local_A: Vector3,); + fn pin_joint_get_local_a(&self, joint: Rid,) -> Vector3; + fn pin_joint_set_local_b(&mut self, joint: Rid, local_B: Vector3,); + fn pin_joint_get_local_b(&self, joint: Rid,) -> Vector3; + fn joint_make_hinge(&mut self, joint: Rid, body_A: Rid, hinge_A: Transform3D, body_B: Rid, hinge_B: Transform3D,); + fn joint_make_hinge_simple(&mut self, joint: Rid, body_A: Rid, pivot_A: Vector3, axis_A: Vector3, body_B: Rid, pivot_B: Vector3, axis_B: Vector3,); + fn hinge_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_3d::HingeJointParam, value: f32,); + fn hinge_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_3d::HingeJointParam,) -> f32; + fn hinge_joint_set_flag(&mut self, joint: Rid, flag: crate::classes::physics_server_3d::HingeJointFlag, enabled: bool,); + fn hinge_joint_get_flag(&self, joint: Rid, flag: crate::classes::physics_server_3d::HingeJointFlag,) -> bool; + fn joint_make_slider(&mut self, joint: Rid, body_A: Rid, local_ref_A: Transform3D, body_B: Rid, local_ref_B: Transform3D,); + fn slider_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_3d::SliderJointParam, value: f32,); + fn slider_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_3d::SliderJointParam,) -> f32; + fn joint_make_cone_twist(&mut self, joint: Rid, body_A: Rid, local_ref_A: Transform3D, body_B: Rid, local_ref_B: Transform3D,); + fn cone_twist_joint_set_param(&mut self, joint: Rid, param: crate::classes::physics_server_3d::ConeTwistJointParam, value: f32,); + fn cone_twist_joint_get_param(&self, joint: Rid, param: crate::classes::physics_server_3d::ConeTwistJointParam,) -> f32; + fn joint_make_generic_6dof(&mut self, joint: Rid, body_A: Rid, local_ref_A: Transform3D, body_B: Rid, local_ref_B: Transform3D,); + fn generic_6dof_joint_set_param(&mut self, joint: Rid, axis: Vector3Axis, param: crate::classes::physics_server_3d::G6dofJointAxisParam, value: f32,); + fn generic_6dof_joint_get_param(&self, joint: Rid, axis: Vector3Axis, param: crate::classes::physics_server_3d::G6dofJointAxisParam,) -> f32; + fn generic_6dof_joint_set_flag(&mut self, joint: Rid, axis: Vector3Axis, flag: crate::classes::physics_server_3d::G6dofJointAxisFlag, enable: bool,); + fn generic_6dof_joint_get_flag(&self, joint: Rid, axis: Vector3Axis, flag: crate::classes::physics_server_3d::G6dofJointAxisFlag,) -> bool; + fn joint_get_type(&self, joint: Rid,) -> crate::classes::physics_server_3d::JointType; + fn joint_set_solver_priority(&mut self, joint: Rid, priority: i32,); + fn joint_get_solver_priority(&self, joint: Rid,) -> i32; + fn joint_disable_collisions_between_bodies(&mut self, joint: Rid, disable: bool,); + fn joint_is_disabled_collisions_between_bodies(&self, joint: Rid,) -> bool; + fn free_rid(&mut self, rid: Rid,); + fn set_active(&mut self, active: bool,); + fn init_ext(&mut self,); + fn step(&mut self, step: f32,); + fn sync(&mut self,); + fn flush_queries(&mut self,); + fn end_sync(&mut self,); + fn finish(&mut self,); + fn is_flushing_queries(&self,) -> bool; + fn get_process_info(&mut self, process_info: crate::classes::physics_server_3d::ProcessInfo,) -> i32; + + } + impl PhysicsServer3DExtension { + pub fn body_test_motion_is_excluding_body(&self, body: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (body,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(497usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3DExtension", "body_test_motion_is_excluding_body", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn body_test_motion_is_excluding_object(&self, object: u64,) -> bool { + type CallSig = (bool, u64); + let args = (object,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(498usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3DExtension", "body_test_motion_is_excluding_object", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsServer3DExtension { + type Base = crate::classes::PhysicsServer3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsServer3DExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsServer3DExtension { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsServer3D > for PhysicsServer3DExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsServer3DExtension { + + } + impl crate::obj::cap::GodotDefault for PhysicsServer3DExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsServer3DExtension { + type Target = crate::classes::PhysicsServer3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsServer3DExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsServer3DExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsServer3DExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsServer3DExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsServer3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d_manager.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d_manager.rs new file mode 100644 index 0000000..7d4729e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d_manager.rs @@ -0,0 +1,205 @@ +#![doc = "Sidecar module for class [`PhysicsServer3DManager`][crate::classes::PhysicsServer3DManager].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsServer3DManager` enums](https://docs.godotengine.org/en/stable/classes/class_physicsserver3dmanager.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsServer3DManager.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IPhysicsServer3DManager`][crate::classes::IPhysicsServer3DManager]: virtual methods\n\n\nSee also [Godot docs for `PhysicsServer3DManager`](https://docs.godotengine.org/en/stable/classes/class_physicsserver3dmanager.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`PhysicsServer3DManager::singleton()`][PhysicsServer3DManager::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsServer3DManager { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsServer3DManager`][crate::classes::PhysicsServer3DManager].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsServer3DManager` methods](https://docs.godotengine.org/en/stable/classes/class_physicsserver3dmanager.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsServer3DManager: crate::obj::GodotClass < Base = PhysicsServer3DManager > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsServer3DManager { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"PhysicsServer3DManager"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn register_server(&mut self, name: impl AsArg < GString >, create_callback: &Callable,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, Callable >); + let args = (name.into_arg(), RefArg::new(create_callback),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(499usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3DManager", "register_server", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_default_server(&mut self, name: impl AsArg < GString >, priority: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32); + let args = (name.into_arg(), priority,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(500usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3DManager", "set_default_server", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsServer3DManager { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsServer3DManager")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsServer3DManager { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsServer3DManager { + + } + impl std::ops::Deref for PhysicsServer3DManager { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsServer3DManager { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsServer3DManager`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsServer3DManager { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsServer3DManager > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d_rendering_server_handler.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d_rendering_server_handler.rs new file mode 100644 index 0000000..7ccc245 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_server_3d_rendering_server_handler.rs @@ -0,0 +1,220 @@ +#![doc = "Sidecar module for class [`PhysicsServer3DRenderingServerHandler`][crate::classes::PhysicsServer3DRenderingServerHandler].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsServer3DRenderingServerHandler` enums](https://docs.godotengine.org/en/stable/classes/class_physicsserver3drenderingserverhandler.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsServer3DRenderingServerHandler.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IPhysicsServer3DRenderingServerHandler`][crate::classes::IPhysicsServer3DRenderingServerHandler]: virtual methods\n\n\nSee also [Godot docs for `PhysicsServer3DRenderingServerHandler`](https://docs.godotengine.org/en/stable/classes/class_physicsserver3drenderingserverhandler.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PhysicsServer3DRenderingServerHandler::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsServer3DRenderingServerHandler { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsServer3DRenderingServerHandler`][crate::classes::PhysicsServer3DRenderingServerHandler].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsServer3DRenderingServerHandler` methods](https://docs.godotengine.org/en/stable/classes/class_physicsserver3drenderingserverhandler.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsServer3DRenderingServerHandler: crate::obj::GodotClass < Base = PhysicsServer3DRenderingServerHandler > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn set_vertex(&mut self, vertex_id: i32, vertex: Vector3,) { + unimplemented !() + } + fn set_normal(&mut self, vertex_id: i32, normal: Vector3,) { + unimplemented !() + } + fn set_aabb(&mut self, aabb: Aabb,) { + unimplemented !() + } + } + impl PhysicsServer3DRenderingServerHandler { + pub fn set_vertex(&mut self, vertex_id: i32, vertex: Vector3,) { + type CallSig = ((), i32, Vector3); + let args = (vertex_id, vertex,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(501usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3DRenderingServerHandler", "set_vertex", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_normal(&mut self, vertex_id: i32, normal: Vector3,) { + type CallSig = ((), i32, Vector3); + let args = (vertex_id, normal,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(502usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3DRenderingServerHandler", "set_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_aabb(&mut self, aabb: Aabb,) { + type CallSig = ((), Aabb); + let args = (aabb,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(503usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsServer3DRenderingServerHandler", "set_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsServer3DRenderingServerHandler { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsServer3DRenderingServerHandler")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for PhysicsServer3DRenderingServerHandler { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsServer3DRenderingServerHandler { + + } + impl crate::obj::cap::GodotDefault for PhysicsServer3DRenderingServerHandler { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsServer3DRenderingServerHandler { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsServer3DRenderingServerHandler { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsServer3DRenderingServerHandler`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsServer3DRenderingServerHandler { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsServer3DRenderingServerHandler > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_shape_query_parameters_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_shape_query_parameters_2d.rs new file mode 100644 index 0000000..d56066d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_shape_query_parameters_2d.rs @@ -0,0 +1,337 @@ +#![doc = "Sidecar module for class [`PhysicsShapeQueryParameters2D`][crate::classes::PhysicsShapeQueryParameters2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsShapeQueryParameters2D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsshapequeryparameters2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsShapeQueryParameters2D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IPhysicsShapeQueryParameters2D`][crate::classes::IPhysicsShapeQueryParameters2D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsShapeQueryParameters2D`](https://docs.godotengine.org/en/stable/classes/class_physicsshapequeryparameters2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicsShapeQueryParameters2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsShapeQueryParameters2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsShapeQueryParameters2D`][crate::classes::PhysicsShapeQueryParameters2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsShapeQueryParameters2D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsshapequeryparameters2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsShapeQueryParameters2D: crate::obj::GodotClass < Base = PhysicsShapeQueryParameters2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsShapeQueryParameters2D { + pub fn set_shape(&mut self, shape: impl AsObjectArg < crate::classes::Resource >,) { + type CallSig = ((), ObjectArg < crate::classes::Resource >); + let args = (shape.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6214usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape(&self,) -> Option < Gd < crate::classes::Resource > > { + type CallSig = (Option < Gd < crate::classes::Resource > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6215usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shape_rid(&mut self, shape: Rid,) { + type CallSig = ((), Rid); + let args = (shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6216usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "set_shape_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6217usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "get_shape_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transform(&mut self, transform: Transform2D,) { + type CallSig = ((), Transform2D); + let args = (transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6218usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transform(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6219usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_motion(&mut self, motion: Vector2,) { + type CallSig = ((), Vector2); + let args = (motion,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6220usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "set_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_motion(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6221usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "get_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_margin(&mut self, margin: f32,) { + type CallSig = ((), f32); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6222usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "set_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6223usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "get_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, collision_mask: u32,) { + type CallSig = ((), u32); + let args = (collision_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6224usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6225usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude(&mut self, exclude: &Array < Rid >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Rid > >); + let args = (RefArg::new(exclude),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6226usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "set_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude(&self,) -> Array < Rid > { + type CallSig = (Array < Rid >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6227usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "get_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_bodies(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6228usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "set_collide_with_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_bodies_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6229usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "is_collide_with_bodies_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_areas(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6230usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "set_collide_with_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_areas_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6231usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters2D", "is_collide_with_areas_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsShapeQueryParameters2D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsShapeQueryParameters2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsShapeQueryParameters2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicsShapeQueryParameters2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsShapeQueryParameters2D { + + } + impl crate::obj::cap::GodotDefault for PhysicsShapeQueryParameters2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsShapeQueryParameters2D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsShapeQueryParameters2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsShapeQueryParameters2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsShapeQueryParameters2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsShapeQueryParameters2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_shape_query_parameters_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_shape_query_parameters_3d.rs new file mode 100644 index 0000000..9107f05 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_shape_query_parameters_3d.rs @@ -0,0 +1,337 @@ +#![doc = "Sidecar module for class [`PhysicsShapeQueryParameters3D`][crate::classes::PhysicsShapeQueryParameters3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsShapeQueryParameters3D` enums](https://docs.godotengine.org/en/stable/classes/class_physicsshapequeryparameters3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsShapeQueryParameters3D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IPhysicsShapeQueryParameters3D`][crate::classes::IPhysicsShapeQueryParameters3D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsShapeQueryParameters3D`](https://docs.godotengine.org/en/stable/classes/class_physicsshapequeryparameters3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicsShapeQueryParameters3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsShapeQueryParameters3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsShapeQueryParameters3D`][crate::classes::PhysicsShapeQueryParameters3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsShapeQueryParameters3D` methods](https://docs.godotengine.org/en/stable/classes/class_physicsshapequeryparameters3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsShapeQueryParameters3D: crate::obj::GodotClass < Base = PhysicsShapeQueryParameters3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsShapeQueryParameters3D { + pub fn set_shape(&mut self, shape: impl AsObjectArg < crate::classes::Resource >,) { + type CallSig = ((), ObjectArg < crate::classes::Resource >); + let args = (shape.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6232usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape(&self,) -> Option < Gd < crate::classes::Resource > > { + type CallSig = (Option < Gd < crate::classes::Resource > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6233usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shape_rid(&mut self, shape: Rid,) { + type CallSig = ((), Rid); + let args = (shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6234usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "set_shape_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6235usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "get_shape_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_transform(&mut self, transform: Transform3D,) { + type CallSig = ((), Transform3D); + let args = (transform,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6236usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_transform(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6237usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_motion(&mut self, motion: Vector3,) { + type CallSig = ((), Vector3); + let args = (motion,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6238usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "set_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_motion(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6239usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "get_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_margin(&mut self, margin: f32,) { + type CallSig = ((), f32); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6240usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "set_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6241usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "get_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, collision_mask: u32,) { + type CallSig = ((), u32); + let args = (collision_mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6242usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6243usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude(&mut self, exclude: &Array < Rid >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Rid > >); + let args = (RefArg::new(exclude),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6244usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "set_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude(&self,) -> Array < Rid > { + type CallSig = (Array < Rid >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6245usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "get_exclude", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_bodies(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6246usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "set_collide_with_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_bodies_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6247usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "is_collide_with_bodies_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_areas(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6248usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "set_collide_with_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_areas_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6249usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsShapeQueryParameters3D", "is_collide_with_areas_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsShapeQueryParameters3D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsShapeQueryParameters3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsShapeQueryParameters3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicsShapeQueryParameters3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsShapeQueryParameters3D { + + } + impl crate::obj::cap::GodotDefault for PhysicsShapeQueryParameters3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsShapeQueryParameters3D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsShapeQueryParameters3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsShapeQueryParameters3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsShapeQueryParameters3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsShapeQueryParameters3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_parameters_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_parameters_2d.rs new file mode 100644 index 0000000..f3ef4ee --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_parameters_2d.rs @@ -0,0 +1,305 @@ +#![doc = "Sidecar module for class [`PhysicsTestMotionParameters2D`][crate::classes::PhysicsTestMotionParameters2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsTestMotionParameters2D` enums](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionparameters2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsTestMotionParameters2D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IPhysicsTestMotionParameters2D`][crate::classes::IPhysicsTestMotionParameters2D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsTestMotionParameters2D`](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionparameters2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicsTestMotionParameters2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsTestMotionParameters2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsTestMotionParameters2D`][crate::classes::PhysicsTestMotionParameters2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsTestMotionParameters2D` methods](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionparameters2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsTestMotionParameters2D: crate::obj::GodotClass < Base = PhysicsTestMotionParameters2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsTestMotionParameters2D { + pub fn get_from(&self,) -> Transform2D { + type CallSig = (Transform2D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6250usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "get_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_from(&mut self, from: Transform2D,) { + type CallSig = ((), Transform2D); + let args = (from,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6251usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "set_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_motion(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6252usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "get_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_motion(&mut self, motion: Vector2,) { + type CallSig = ((), Vector2); + let args = (motion,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6253usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "set_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6254usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "get_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_margin(&mut self, margin: f32,) { + type CallSig = ((), f32); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6255usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "set_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_separation_ray_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6256usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "is_collide_separation_ray_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_separation_ray_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6257usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "set_collide_separation_ray_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude_bodies(&self,) -> Array < Rid > { + type CallSig = (Array < Rid >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6258usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "get_exclude_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude_bodies(&mut self, exclude_list: &Array < Rid >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Rid > >); + let args = (RefArg::new(exclude_list),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6259usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "set_exclude_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude_objects(&self,) -> Array < i64 > { + type CallSig = (Array < i64 >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6260usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "get_exclude_objects", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude_objects(&mut self, exclude_list: &Array < i64 >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < i64 > >); + let args = (RefArg::new(exclude_list),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6261usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "set_exclude_objects", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_recovery_as_collision_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6262usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "is_recovery_as_collision_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_recovery_as_collision_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6263usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters2D", "set_recovery_as_collision_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsTestMotionParameters2D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsTestMotionParameters2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsTestMotionParameters2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicsTestMotionParameters2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsTestMotionParameters2D { + + } + impl crate::obj::cap::GodotDefault for PhysicsTestMotionParameters2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsTestMotionParameters2D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsTestMotionParameters2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsTestMotionParameters2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsTestMotionParameters2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsTestMotionParameters2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_parameters_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_parameters_3d.rs new file mode 100644 index 0000000..d72a631 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_parameters_3d.rs @@ -0,0 +1,321 @@ +#![doc = "Sidecar module for class [`PhysicsTestMotionParameters3D`][crate::classes::PhysicsTestMotionParameters3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsTestMotionParameters3D` enums](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionparameters3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsTestMotionParameters3D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IPhysicsTestMotionParameters3D`][crate::classes::IPhysicsTestMotionParameters3D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsTestMotionParameters3D`](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionparameters3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicsTestMotionParameters3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsTestMotionParameters3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsTestMotionParameters3D`][crate::classes::PhysicsTestMotionParameters3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsTestMotionParameters3D` methods](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionparameters3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsTestMotionParameters3D: crate::obj::GodotClass < Base = PhysicsTestMotionParameters3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsTestMotionParameters3D { + pub fn get_from(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6264usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "get_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_from(&mut self, from: Transform3D,) { + type CallSig = ((), Transform3D); + let args = (from,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6265usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "set_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_motion(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6266usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "get_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_motion(&mut self, motion: Vector3,) { + type CallSig = ((), Vector3); + let args = (motion,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6267usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "set_motion", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_margin(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6268usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "get_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_margin(&mut self, margin: f32,) { + type CallSig = ((), f32); + let args = (margin,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6269usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "set_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_collisions(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6270usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "get_max_collisions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_collisions(&mut self, max_collisions: i32,) { + type CallSig = ((), i32); + let args = (max_collisions,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6271usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "set_max_collisions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_separation_ray_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6272usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "is_collide_separation_ray_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_separation_ray_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6273usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "set_collide_separation_ray_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude_bodies(&self,) -> Array < Rid > { + type CallSig = (Array < Rid >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6274usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "get_exclude_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude_bodies(&mut self, exclude_list: &Array < Rid >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Rid > >); + let args = (RefArg::new(exclude_list),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6275usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "set_exclude_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude_objects(&self,) -> Array < i64 > { + type CallSig = (Array < i64 >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6276usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "get_exclude_objects", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude_objects(&mut self, exclude_list: &Array < i64 >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < i64 > >); + let args = (RefArg::new(exclude_list),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6277usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "set_exclude_objects", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_recovery_as_collision_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6278usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "is_recovery_as_collision_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_recovery_as_collision_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6279usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionParameters3D", "set_recovery_as_collision_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsTestMotionParameters3D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsTestMotionParameters3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsTestMotionParameters3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicsTestMotionParameters3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsTestMotionParameters3D { + + } + impl crate::obj::cap::GodotDefault for PhysicsTestMotionParameters3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsTestMotionParameters3D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsTestMotionParameters3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsTestMotionParameters3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsTestMotionParameters3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsTestMotionParameters3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_result_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_result_2d.rs new file mode 100644 index 0000000..521c0da --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_result_2d.rs @@ -0,0 +1,297 @@ +#![doc = "Sidecar module for class [`PhysicsTestMotionResult2D`][crate::classes::PhysicsTestMotionResult2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsTestMotionResult2D` enums](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionresult2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsTestMotionResult2D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IPhysicsTestMotionResult2D`][crate::classes::IPhysicsTestMotionResult2D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsTestMotionResult2D`](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionresult2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicsTestMotionResult2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsTestMotionResult2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsTestMotionResult2D`][crate::classes::PhysicsTestMotionResult2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsTestMotionResult2D` methods](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionresult2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsTestMotionResult2D: crate::obj::GodotClass < Base = PhysicsTestMotionResult2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsTestMotionResult2D { + pub fn get_travel(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6280usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_travel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_remainder(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6281usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_remainder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_point(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6282usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_collision_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_normal(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6283usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_collision_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_velocity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6284usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_collider_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_id(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6285usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_collider_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6286usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_collider_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider(&self,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6287usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_collider", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_shape(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6288usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_collider_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_local_shape(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6289usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_collision_local_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_depth(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6290usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_collision_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_safe_fraction(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6291usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_collision_safe_fraction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_unsafe_fraction(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6292usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult2D", "get_collision_unsafe_fraction", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsTestMotionResult2D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsTestMotionResult2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsTestMotionResult2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicsTestMotionResult2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsTestMotionResult2D { + + } + impl crate::obj::cap::GodotDefault for PhysicsTestMotionResult2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsTestMotionResult2D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsTestMotionResult2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsTestMotionResult2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsTestMotionResult2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsTestMotionResult2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_result_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_result_3d.rs new file mode 100644 index 0000000..5bb670b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/physics_test_motion_result_3d.rs @@ -0,0 +1,638 @@ +#![doc = "Sidecar module for class [`PhysicsTestMotionResult3D`][crate::classes::PhysicsTestMotionResult3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PhysicsTestMotionResult3D` enums](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionresult3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PhysicsTestMotionResult3D.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`physics_test_motion_result_3d`][crate::classes::physics_test_motion_result_3d]: sidecar module with related enum/flag types\n* [`IPhysicsTestMotionResult3D`][crate::classes::IPhysicsTestMotionResult3D]: virtual methods\n\n\nSee also [Godot docs for `PhysicsTestMotionResult3D`](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionresult3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PhysicsTestMotionResult3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PhysicsTestMotionResult3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PhysicsTestMotionResult3D`][crate::classes::PhysicsTestMotionResult3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PhysicsTestMotionResult3D` methods](https://docs.godotengine.org/en/stable/classes/class_physicstestmotionresult3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPhysicsTestMotionResult3D: crate::obj::GodotClass < Base = PhysicsTestMotionResult3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PhysicsTestMotionResult3D { + pub fn get_travel(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6293usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_travel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_remainder(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6294usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_remainder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_safe_fraction(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6295usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collision_safe_fraction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_unsafe_fraction(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6296usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collision_unsafe_fraction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6297usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collision_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_collision_point_full(&self, collision_index: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6298usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collision_point", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collision_point_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collision_point(&self,) -> Vector3 { + self.get_collision_point_ex() . done() + } + #[inline] + pub fn get_collision_point_ex < 'a > (&'a self,) -> ExGetCollisionPoint < 'a > { + ExGetCollisionPoint::new(self,) + } + pub(crate) fn get_collision_normal_full(&self, collision_index: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6299usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collision_normal", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collision_normal_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collision_normal(&self,) -> Vector3 { + self.get_collision_normal_ex() . done() + } + #[inline] + pub fn get_collision_normal_ex < 'a > (&'a self,) -> ExGetCollisionNormal < 'a > { + ExGetCollisionNormal::new(self,) + } + pub(crate) fn get_collider_velocity_full(&self, collision_index: i32,) -> Vector3 { + type CallSig = (Vector3, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6300usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collider_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collider_velocity_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collider_velocity(&self,) -> Vector3 { + self.get_collider_velocity_ex() . done() + } + #[inline] + pub fn get_collider_velocity_ex < 'a > (&'a self,) -> ExGetColliderVelocity < 'a > { + ExGetColliderVelocity::new(self,) + } + pub(crate) fn get_collider_id_full(&self, collision_index: i32,) -> u64 { + type CallSig = (u64, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6301usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collider_id", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collider_id_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collider_id(&self,) -> u64 { + self.get_collider_id_ex() . done() + } + #[inline] + pub fn get_collider_id_ex < 'a > (&'a self,) -> ExGetColliderId < 'a > { + ExGetColliderId::new(self,) + } + pub(crate) fn get_collider_rid_full(&self, collision_index: i32,) -> Rid { + type CallSig = (Rid, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6302usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collider_rid", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collider_rid_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collider_rid(&self,) -> Rid { + self.get_collider_rid_ex() . done() + } + #[inline] + pub fn get_collider_rid_ex < 'a > (&'a self,) -> ExGetColliderRid < 'a > { + ExGetColliderRid::new(self,) + } + pub(crate) fn get_collider_full(&self, collision_index: i32,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6303usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collider", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collider_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collider(&self,) -> Option < Gd < crate::classes::Object > > { + self.get_collider_ex() . done() + } + #[inline] + pub fn get_collider_ex < 'a > (&'a self,) -> ExGetCollider < 'a > { + ExGetCollider::new(self,) + } + pub(crate) fn get_collider_shape_full(&self, collision_index: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6304usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collider_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collider_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collider_shape(&self,) -> i32 { + self.get_collider_shape_ex() . done() + } + #[inline] + pub fn get_collider_shape_ex < 'a > (&'a self,) -> ExGetColliderShape < 'a > { + ExGetColliderShape::new(self,) + } + pub(crate) fn get_collision_local_shape_full(&self, collision_index: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6305usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collision_local_shape", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collision_local_shape_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collision_local_shape(&self,) -> i32 { + self.get_collision_local_shape_ex() . done() + } + #[inline] + pub fn get_collision_local_shape_ex < 'a > (&'a self,) -> ExGetCollisionLocalShape < 'a > { + ExGetCollisionLocalShape::new(self,) + } + pub(crate) fn get_collision_depth_full(&self, collision_index: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (collision_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6306usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PhysicsTestMotionResult3D", "get_collision_depth", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_collision_depth_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_collision_depth(&self,) -> f32 { + self.get_collision_depth_ex() . done() + } + #[inline] + pub fn get_collision_depth_ex < 'a > (&'a self,) -> ExGetCollisionDepth < 'a > { + ExGetCollisionDepth::new(self,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PhysicsTestMotionResult3D { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PhysicsTestMotionResult3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PhysicsTestMotionResult3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PhysicsTestMotionResult3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PhysicsTestMotionResult3D { + + } + impl crate::obj::cap::GodotDefault for PhysicsTestMotionResult3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PhysicsTestMotionResult3D { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PhysicsTestMotionResult3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PhysicsTestMotionResult3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PhysicsTestMotionResult3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsTestMotionResult3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PhysicsTestMotionResult3D::get_collision_point_ex`][super::PhysicsTestMotionResult3D::get_collision_point_ex]."] +#[must_use] +pub struct ExGetCollisionPoint < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::PhysicsTestMotionResult3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetCollisionPoint < 'a > { + fn new(surround_object: &'a re_export::PhysicsTestMotionResult3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Vector3 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::PhysicsTestMotionResult3D::get_collision_point_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`PhysicsTestMotionResult3D::get_collision_normal_ex`][super::PhysicsTestMotionResult3D::get_collision_normal_ex]."] +#[must_use] +pub struct ExGetCollisionNormal < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::PhysicsTestMotionResult3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetCollisionNormal < 'a > { + fn new(surround_object: &'a re_export::PhysicsTestMotionResult3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Vector3 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::PhysicsTestMotionResult3D::get_collision_normal_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`PhysicsTestMotionResult3D::get_collider_velocity_ex`][super::PhysicsTestMotionResult3D::get_collider_velocity_ex]."] +#[must_use] +pub struct ExGetColliderVelocity < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::PhysicsTestMotionResult3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetColliderVelocity < 'a > { + fn new(surround_object: &'a re_export::PhysicsTestMotionResult3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Vector3 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::PhysicsTestMotionResult3D::get_collider_velocity_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`PhysicsTestMotionResult3D::get_collider_id_ex`][super::PhysicsTestMotionResult3D::get_collider_id_ex]."] +#[must_use] +pub struct ExGetColliderId < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::PhysicsTestMotionResult3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetColliderId < 'a > { + fn new(surround_object: &'a re_export::PhysicsTestMotionResult3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> u64 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::PhysicsTestMotionResult3D::get_collider_id_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`PhysicsTestMotionResult3D::get_collider_rid_ex`][super::PhysicsTestMotionResult3D::get_collider_rid_ex]."] +#[must_use] +pub struct ExGetColliderRid < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::PhysicsTestMotionResult3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetColliderRid < 'a > { + fn new(surround_object: &'a re_export::PhysicsTestMotionResult3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::PhysicsTestMotionResult3D::get_collider_rid_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`PhysicsTestMotionResult3D::get_collider_ex`][super::PhysicsTestMotionResult3D::get_collider_ex]."] +#[must_use] +pub struct ExGetCollider < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::PhysicsTestMotionResult3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetCollider < 'a > { + fn new(surround_object: &'a re_export::PhysicsTestMotionResult3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Object > > { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::PhysicsTestMotionResult3D::get_collider_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`PhysicsTestMotionResult3D::get_collider_shape_ex`][super::PhysicsTestMotionResult3D::get_collider_shape_ex]."] +#[must_use] +pub struct ExGetColliderShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::PhysicsTestMotionResult3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetColliderShape < 'a > { + fn new(surround_object: &'a re_export::PhysicsTestMotionResult3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::PhysicsTestMotionResult3D::get_collider_shape_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`PhysicsTestMotionResult3D::get_collision_local_shape_ex`][super::PhysicsTestMotionResult3D::get_collision_local_shape_ex]."] +#[must_use] +pub struct ExGetCollisionLocalShape < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::PhysicsTestMotionResult3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetCollisionLocalShape < 'a > { + fn new(surround_object: &'a re_export::PhysicsTestMotionResult3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::PhysicsTestMotionResult3D::get_collision_local_shape_full(surround_object, collision_index,) + } +} +#[doc = "Default-param extender for [`PhysicsTestMotionResult3D::get_collision_depth_ex`][super::PhysicsTestMotionResult3D::get_collision_depth_ex]."] +#[must_use] +pub struct ExGetCollisionDepth < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::PhysicsTestMotionResult3D, collision_index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetCollisionDepth < 'a > { + fn new(surround_object: &'a re_export::PhysicsTestMotionResult3D,) -> Self { + let collision_index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, collision_index: collision_index, + } + } + #[inline] + pub fn collision_index(self, collision_index: i32) -> Self { + Self { + collision_index: collision_index, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, collision_index, + } + = self; + re_export::PhysicsTestMotionResult3D::get_collision_depth_full(surround_object, collision_index,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/pin_joint_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/pin_joint_2d.rs new file mode 100644 index 0000000..99436ec --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/pin_joint_2d.rs @@ -0,0 +1,340 @@ +#![doc = "Sidecar module for class [`PinJoint2D`][crate::classes::PinJoint2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PinJoint2D` enums](https://docs.godotengine.org/en/stable/classes/class_pinjoint2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PinJoint2D.`\n\nInherits [`Joint2D`][crate::classes::Joint2D].\n\nRelated symbols:\n\n* [`IPinJoint2D`][crate::classes::IPinJoint2D]: virtual methods\n\n\nSee also [Godot docs for `PinJoint2D`](https://docs.godotengine.org/en/stable/classes/class_pinjoint2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PinJoint2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PinJoint2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PinJoint2D`][crate::classes::PinJoint2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PinJoint2D` methods](https://docs.godotengine.org/en/stable/classes/class_pinjoint2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPinJoint2D: crate::obj::GodotClass < Base = PinJoint2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PinJoint2D { + pub fn set_softness(&mut self, softness: f32,) { + type CallSig = ((), f32); + let args = (softness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6307usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "set_softness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_softness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6308usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "get_softness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_limit_lower(&mut self, angular_limit_lower: f32,) { + type CallSig = ((), f32); + let args = (angular_limit_lower,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6309usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "set_angular_limit_lower", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_limit_lower(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6310usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "get_angular_limit_lower", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_limit_upper(&mut self, angular_limit_upper: f32,) { + type CallSig = ((), f32); + let args = (angular_limit_upper,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6311usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "set_angular_limit_upper", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_limit_upper(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6312usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "get_angular_limit_upper", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_motor_target_velocity(&mut self, motor_target_velocity: f32,) { + type CallSig = ((), f32); + let args = (motor_target_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6313usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "set_motor_target_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_motor_target_velocity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6314usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "get_motor_target_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_motor_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6315usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "set_motor_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_motor_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6316usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "is_motor_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_limit_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6317usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "set_angular_limit_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_angular_limit_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6318usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint2D", "is_angular_limit_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PinJoint2D { + type Base = crate::classes::Joint2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PinJoint2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PinJoint2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Joint2D > for PinJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for PinJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for PinJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PinJoint2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PinJoint2D { + + } + impl crate::obj::cap::GodotDefault for PinJoint2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PinJoint2D { + type Target = crate::classes::Joint2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PinJoint2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PinJoint2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PinJoint2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PinJoint2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Joint2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/pin_joint_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/pin_joint_3d.rs new file mode 100644 index 0000000..16bedf5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/pin_joint_3d.rs @@ -0,0 +1,326 @@ +#![doc = "Sidecar module for class [`PinJoint3D`][crate::classes::PinJoint3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PinJoint3D` enums](https://docs.godotengine.org/en/stable/classes/class_pinjoint3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PinJoint3D.`\n\nInherits [`Joint3D`][crate::classes::Joint3D].\n\nRelated symbols:\n\n* [`pin_joint_3d`][crate::classes::pin_joint_3d]: sidecar module with related enum/flag types\n* [`IPinJoint3D`][crate::classes::IPinJoint3D]: virtual methods\n\n\nSee also [Godot docs for `PinJoint3D`](https://docs.godotengine.org/en/stable/classes/class_pinjoint3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PinJoint3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PinJoint3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PinJoint3D`][crate::classes::PinJoint3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PinJoint3D` methods](https://docs.godotengine.org/en/stable/classes/class_pinjoint3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPinJoint3D: crate::obj::GodotClass < Base = PinJoint3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PinJoint3D { + pub fn set_param(&mut self, param: crate::classes::pin_joint_3d::Param, value: f32,) { + type CallSig = ((), crate::classes::pin_joint_3d::Param, f32); + let args = (param, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6319usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint3D", "set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_param(&self, param: crate::classes::pin_joint_3d::Param,) -> f32 { + type CallSig = (f32, crate::classes::pin_joint_3d::Param); + let args = (param,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6320usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PinJoint3D", "get_param", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PinJoint3D { + type Base = crate::classes::Joint3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PinJoint3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PinJoint3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Joint3D > for PinJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for PinJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PinJoint3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PinJoint3D { + + } + impl crate::obj::cap::GodotDefault for PinJoint3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PinJoint3D { + type Target = crate::classes::Joint3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PinJoint3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PinJoint3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PinJoint3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PinJoint3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Joint3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Param { + ord: i32 +} +impl Param { + #[doc(alias = "PARAM_BIAS")] + #[doc = "Godot enumerator name: `PARAM_BIAS`"] + pub const BIAS: Param = Param { + ord: 0i32 + }; + #[doc(alias = "PARAM_DAMPING")] + #[doc = "Godot enumerator name: `PARAM_DAMPING`"] + pub const DAMPING: Param = Param { + ord: 1i32 + }; + #[doc(alias = "PARAM_IMPULSE_CLAMP")] + #[doc = "Godot enumerator name: `PARAM_IMPULSE_CLAMP`"] + pub const IMPULSE_CLAMP: Param = Param { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Param { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Param") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Param { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BIAS => "BIAS", Self::DAMPING => "DAMPING", Self::IMPULSE_CLAMP => "IMPULSE_CLAMP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BIAS => "PARAM_BIAS", Self::DAMPING => "PARAM_DAMPING", Self::IMPULSE_CLAMP => "PARAM_IMPULSE_CLAMP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Param { + type Via = i32; + +} +impl crate::meta::ToGodot for Param { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Param { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_cubemap.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_cubemap.rs new file mode 100644 index 0000000..49b128a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_cubemap.rs @@ -0,0 +1,227 @@ +#![doc = "Sidecar module for class [`PlaceholderCubemap`][crate::classes::PlaceholderCubemap].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PlaceholderCubemap` enums](https://docs.godotengine.org/en/stable/classes/class_placeholdercubemap.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PlaceholderCubemap.`\n\nInherits [`PlaceholderTextureLayered`][crate::classes::PlaceholderTextureLayered].\n\nRelated symbols:\n\n* [`IPlaceholderCubemap`][crate::classes::IPlaceholderCubemap]: virtual methods\n\n\nSee also [Godot docs for `PlaceholderCubemap`](https://docs.godotengine.org/en/stable/classes/class_placeholdercubemap.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PlaceholderCubemap::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PlaceholderCubemap { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PlaceholderCubemap`][crate::classes::PlaceholderCubemap].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PlaceholderCubemap` methods](https://docs.godotengine.org/en/stable/classes/class_placeholdercubemap.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPlaceholderCubemap: crate::obj::GodotClass < Base = PlaceholderCubemap > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_layered_type(&self,) -> u32; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_layers(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_layer_data(&self, layer_index: i32,) -> Option < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PlaceholderCubemap { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PlaceholderCubemap { + type Base = crate::classes::PlaceholderTextureLayered; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PlaceholderCubemap")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PlaceholderCubemap { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PlaceholderTextureLayered > for PlaceholderCubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::TextureLayered > for PlaceholderCubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for PlaceholderCubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PlaceholderCubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PlaceholderCubemap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PlaceholderCubemap { + + } + impl crate::obj::cap::GodotDefault for PlaceholderCubemap { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PlaceholderCubemap { + type Target = crate::classes::PlaceholderTextureLayered; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PlaceholderCubemap { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PlaceholderCubemap`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PlaceholderCubemap { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaceholderCubemap > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaceholderTextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_cubemap_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_cubemap_array.rs new file mode 100644 index 0000000..6007368 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_cubemap_array.rs @@ -0,0 +1,227 @@ +#![doc = "Sidecar module for class [`PlaceholderCubemapArray`][crate::classes::PlaceholderCubemapArray].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PlaceholderCubemapArray` enums](https://docs.godotengine.org/en/stable/classes/class_placeholdercubemaparray.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PlaceholderCubemapArray.`\n\nInherits [`PlaceholderTextureLayered`][crate::classes::PlaceholderTextureLayered].\n\nRelated symbols:\n\n* [`IPlaceholderCubemapArray`][crate::classes::IPlaceholderCubemapArray]: virtual methods\n\n\nSee also [Godot docs for `PlaceholderCubemapArray`](https://docs.godotengine.org/en/stable/classes/class_placeholdercubemaparray.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PlaceholderCubemapArray::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PlaceholderCubemapArray { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PlaceholderCubemapArray`][crate::classes::PlaceholderCubemapArray].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PlaceholderCubemapArray` methods](https://docs.godotengine.org/en/stable/classes/class_placeholdercubemaparray.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPlaceholderCubemapArray: crate::obj::GodotClass < Base = PlaceholderCubemapArray > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_layered_type(&self,) -> u32; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_layers(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_layer_data(&self, layer_index: i32,) -> Option < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PlaceholderCubemapArray { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PlaceholderCubemapArray { + type Base = crate::classes::PlaceholderTextureLayered; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PlaceholderCubemapArray")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PlaceholderCubemapArray { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PlaceholderTextureLayered > for PlaceholderCubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::TextureLayered > for PlaceholderCubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for PlaceholderCubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PlaceholderCubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PlaceholderCubemapArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PlaceholderCubemapArray { + + } + impl crate::obj::cap::GodotDefault for PlaceholderCubemapArray { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PlaceholderCubemapArray { + type Target = crate::classes::PlaceholderTextureLayered; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PlaceholderCubemapArray { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PlaceholderCubemapArray`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PlaceholderCubemapArray { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaceholderCubemapArray > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaceholderTextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_material.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_material.rs new file mode 100644 index 0000000..255da26 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_material.rs @@ -0,0 +1,216 @@ +#![doc = "Sidecar module for class [`PlaceholderMaterial`][crate::classes::PlaceholderMaterial].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PlaceholderMaterial` enums](https://docs.godotengine.org/en/stable/classes/class_placeholdermaterial.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PlaceholderMaterial.`\n\nInherits [`Material`][crate::classes::Material].\n\nRelated symbols:\n\n* [`IPlaceholderMaterial`][crate::classes::IPlaceholderMaterial]: virtual methods\n\n\nSee also [Godot docs for `PlaceholderMaterial`](https://docs.godotengine.org/en/stable/classes/class_placeholdermaterial.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PlaceholderMaterial::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PlaceholderMaterial { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PlaceholderMaterial`][crate::classes::PlaceholderMaterial].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PlaceholderMaterial` methods](https://docs.godotengine.org/en/stable/classes/class_placeholdermaterial.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPlaceholderMaterial: crate::obj::GodotClass < Base = PlaceholderMaterial > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_shader_rid(&self,) -> Rid; + fn get_shader_mode(&self,) -> crate::classes::shader::Mode; + fn can_do_next_pass(&self,) -> bool { + unimplemented !() + } + fn can_use_render_priority(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PlaceholderMaterial { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PlaceholderMaterial { + type Base = crate::classes::Material; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PlaceholderMaterial")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PlaceholderMaterial { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Material > for PlaceholderMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PlaceholderMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PlaceholderMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PlaceholderMaterial { + + } + impl crate::obj::cap::GodotDefault for PlaceholderMaterial { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PlaceholderMaterial { + type Target = crate::classes::Material; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PlaceholderMaterial { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PlaceholderMaterial`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PlaceholderMaterial { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaceholderMaterial > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Material > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_mesh.rs new file mode 100644 index 0000000..93b137c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_mesh.rs @@ -0,0 +1,230 @@ +#![doc = "Sidecar module for class [`PlaceholderMesh`][crate::classes::PlaceholderMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PlaceholderMesh` enums](https://docs.godotengine.org/en/stable/classes/class_placeholdermesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PlaceholderMesh.`\n\nInherits [`Mesh`][crate::classes::Mesh].\n\nRelated symbols:\n\n* [`IPlaceholderMesh`][crate::classes::IPlaceholderMesh]: virtual methods\n\n\nSee also [Godot docs for `PlaceholderMesh`](https://docs.godotengine.org/en/stable/classes/class_placeholdermesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PlaceholderMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PlaceholderMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PlaceholderMesh`][crate::classes::PlaceholderMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PlaceholderMesh` methods](https://docs.godotengine.org/en/stable/classes/class_placeholdermesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPlaceholderMesh: crate::obj::GodotClass < Base = PlaceholderMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PlaceholderMesh { + pub fn set_aabb(&mut self, aabb: Aabb,) { + type CallSig = ((), Aabb); + let args = (aabb,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6321usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaceholderMesh", "set_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PlaceholderMesh { + type Base = crate::classes::Mesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PlaceholderMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PlaceholderMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for PlaceholderMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PlaceholderMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PlaceholderMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PlaceholderMesh { + + } + impl crate::obj::cap::GodotDefault for PlaceholderMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PlaceholderMesh { + type Target = crate::classes::Mesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PlaceholderMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PlaceholderMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PlaceholderMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaceholderMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_2d.rs new file mode 100644 index 0000000..df304d5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_2d.rs @@ -0,0 +1,239 @@ +#![doc = "Sidecar module for class [`PlaceholderTexture2D`][crate::classes::PlaceholderTexture2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PlaceholderTexture2D` enums](https://docs.godotengine.org/en/stable/classes/class_placeholdertexture2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PlaceholderTexture2D.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`IPlaceholderTexture2D`][crate::classes::IPlaceholderTexture2D]: virtual methods\n\n\nSee also [Godot docs for `PlaceholderTexture2D`](https://docs.godotengine.org/en/stable/classes/class_placeholdertexture2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PlaceholderTexture2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PlaceholderTexture2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PlaceholderTexture2D`][crate::classes::PlaceholderTexture2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PlaceholderTexture2D` methods](https://docs.godotengine.org/en/stable/classes/class_placeholdertexture2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPlaceholderTexture2D: crate::obj::GodotClass < Base = PlaceholderTexture2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PlaceholderTexture2D { + pub fn set_size(&mut self, size: Vector2,) { + type CallSig = ((), Vector2); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6322usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaceholderTexture2D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PlaceholderTexture2D { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PlaceholderTexture2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PlaceholderTexture2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for PlaceholderTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for PlaceholderTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PlaceholderTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PlaceholderTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PlaceholderTexture2D { + + } + impl crate::obj::cap::GodotDefault for PlaceholderTexture2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PlaceholderTexture2D { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PlaceholderTexture2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PlaceholderTexture2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PlaceholderTexture2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaceholderTexture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_2d_array.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_2d_array.rs new file mode 100644 index 0000000..5ffc763 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_2d_array.rs @@ -0,0 +1,227 @@ +#![doc = "Sidecar module for class [`PlaceholderTexture2DArray`][crate::classes::PlaceholderTexture2DArray].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PlaceholderTexture2DArray` enums](https://docs.godotengine.org/en/stable/classes/class_placeholdertexture2darray.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PlaceholderTexture2DArray.`\n\nInherits [`PlaceholderTextureLayered`][crate::classes::PlaceholderTextureLayered].\n\nRelated symbols:\n\n* [`IPlaceholderTexture2DArray`][crate::classes::IPlaceholderTexture2DArray]: virtual methods\n\n\nSee also [Godot docs for `PlaceholderTexture2DArray`](https://docs.godotengine.org/en/stable/classes/class_placeholdertexture2darray.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PlaceholderTexture2DArray::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PlaceholderTexture2DArray { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PlaceholderTexture2DArray`][crate::classes::PlaceholderTexture2DArray].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PlaceholderTexture2DArray` methods](https://docs.godotengine.org/en/stable/classes/class_placeholdertexture2darray.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPlaceholderTexture2DArray: crate::obj::GodotClass < Base = PlaceholderTexture2DArray > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_layered_type(&self,) -> u32; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_layers(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_layer_data(&self, layer_index: i32,) -> Option < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PlaceholderTexture2DArray { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PlaceholderTexture2DArray { + type Base = crate::classes::PlaceholderTextureLayered; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PlaceholderTexture2DArray")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PlaceholderTexture2DArray { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PlaceholderTextureLayered > for PlaceholderTexture2DArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::TextureLayered > for PlaceholderTexture2DArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for PlaceholderTexture2DArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PlaceholderTexture2DArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PlaceholderTexture2DArray { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PlaceholderTexture2DArray { + + } + impl crate::obj::cap::GodotDefault for PlaceholderTexture2DArray { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PlaceholderTexture2DArray { + type Target = crate::classes::PlaceholderTextureLayered; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PlaceholderTexture2DArray { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PlaceholderTexture2DArray`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PlaceholderTexture2DArray { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaceholderTexture2DArray > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaceholderTextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_3d.rs new file mode 100644 index 0000000..d7b0525 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_3d.rs @@ -0,0 +1,236 @@ +#![doc = "Sidecar module for class [`PlaceholderTexture3D`][crate::classes::PlaceholderTexture3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PlaceholderTexture3D` enums](https://docs.godotengine.org/en/stable/classes/class_placeholdertexture3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PlaceholderTexture3D.`\n\nInherits [`Texture3D`][crate::classes::Texture3D].\n\nRelated symbols:\n\n* [`IPlaceholderTexture3D`][crate::classes::IPlaceholderTexture3D]: virtual methods\n\n\nSee also [Godot docs for `PlaceholderTexture3D`](https://docs.godotengine.org/en/stable/classes/class_placeholdertexture3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PlaceholderTexture3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PlaceholderTexture3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PlaceholderTexture3D`][crate::classes::PlaceholderTexture3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PlaceholderTexture3D` methods](https://docs.godotengine.org/en/stable/classes/class_placeholdertexture3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPlaceholderTexture3D: crate::obj::GodotClass < Base = PlaceholderTexture3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_depth(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_data(&self,) -> Array < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PlaceholderTexture3D { + pub fn set_size(&mut self, size: Vector3i,) { + type CallSig = ((), Vector3i); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6323usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaceholderTexture3D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3i { + type CallSig = (Vector3i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6324usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaceholderTexture3D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PlaceholderTexture3D { + type Base = crate::classes::Texture3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PlaceholderTexture3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PlaceholderTexture3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture3D > for PlaceholderTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for PlaceholderTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PlaceholderTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PlaceholderTexture3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PlaceholderTexture3D { + + } + impl crate::obj::cap::GodotDefault for PlaceholderTexture3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PlaceholderTexture3D { + type Target = crate::classes::Texture3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PlaceholderTexture3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PlaceholderTexture3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PlaceholderTexture3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaceholderTexture3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_layered.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_layered.rs new file mode 100644 index 0000000..ebb002d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/placeholder_texture_layered.rs @@ -0,0 +1,240 @@ +#![doc = "Sidecar module for class [`PlaceholderTextureLayered`][crate::classes::PlaceholderTextureLayered].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PlaceholderTextureLayered` enums](https://docs.godotengine.org/en/stable/classes/class_placeholdertexturelayered.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PlaceholderTextureLayered.`\n\nInherits [`TextureLayered`][crate::classes::TextureLayered].\n\nRelated symbols:\n\n* [`IPlaceholderTextureLayered`][crate::classes::IPlaceholderTextureLayered]: virtual methods\n\n\nSee also [Godot docs for `PlaceholderTextureLayered`](https://docs.godotengine.org/en/stable/classes/class_placeholdertexturelayered.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct PlaceholderTextureLayered { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PlaceholderTextureLayered`][crate::classes::PlaceholderTextureLayered].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PlaceholderTextureLayered` methods](https://docs.godotengine.org/en/stable/classes/class_placeholdertexturelayered.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPlaceholderTextureLayered: crate::obj::GodotClass < Base = PlaceholderTextureLayered > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_format(&self,) -> crate::classes::image::Format; + fn get_layered_type(&self,) -> u32; + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn get_layers(&self,) -> i32; + fn has_mipmaps(&self,) -> bool; + fn get_layer_data(&self, layer_index: i32,) -> Option < Gd < crate::classes::Image > >; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PlaceholderTextureLayered { + pub fn set_size(&mut self, size: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6325usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaceholderTextureLayered", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6326usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaceholderTextureLayered", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_layers(&mut self, layers: i32,) { + type CallSig = ((), i32); + let args = (layers,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6327usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaceholderTextureLayered", "set_layers", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PlaceholderTextureLayered { + type Base = crate::classes::TextureLayered; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PlaceholderTextureLayered")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PlaceholderTextureLayered { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::TextureLayered > for PlaceholderTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for PlaceholderTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PlaceholderTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PlaceholderTextureLayered { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PlaceholderTextureLayered { + + } + impl std::ops::Deref for PlaceholderTextureLayered { + type Target = crate::classes::TextureLayered; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PlaceholderTextureLayered { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PlaceholderTextureLayered`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PlaceholderTextureLayered { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaceholderTextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::TextureLayered > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/plane_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/plane_mesh.rs new file mode 100644 index 0000000..c787a4d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/plane_mesh.rs @@ -0,0 +1,386 @@ +#![doc = "Sidecar module for class [`PlaneMesh`][crate::classes::PlaneMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PlaneMesh` enums](https://docs.godotengine.org/en/stable/classes/class_planemesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PlaneMesh.`\n\nInherits [`PrimitiveMesh`][crate::classes::PrimitiveMesh].\n\nRelated symbols:\n\n* [`plane_mesh`][crate::classes::plane_mesh]: sidecar module with related enum/flag types\n* [`IPlaneMesh`][crate::classes::IPlaneMesh]: virtual methods\n\n\nSee also [Godot docs for `PlaneMesh`](https://docs.godotengine.org/en/stable/classes/class_planemesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PlaneMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PlaneMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PlaneMesh`][crate::classes::PlaneMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PlaneMesh` methods](https://docs.godotengine.org/en/stable/classes/class_planemesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPlaneMesh: crate::obj::GodotClass < Base = PlaneMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn create_mesh_array(&self,) -> VariantArray { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PlaneMesh { + pub fn set_size(&mut self, size: Vector2,) { + type CallSig = ((), Vector2); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6328usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaneMesh", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6329usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaneMesh", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_subdivide_width(&mut self, subdivide: i32,) { + type CallSig = ((), i32); + let args = (subdivide,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6330usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaneMesh", "set_subdivide_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subdivide_width(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6331usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaneMesh", "get_subdivide_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_subdivide_depth(&mut self, subdivide: i32,) { + type CallSig = ((), i32); + let args = (subdivide,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6332usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaneMesh", "set_subdivide_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subdivide_depth(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6333usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaneMesh", "get_subdivide_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_center_offset(&mut self, offset: Vector3,) { + type CallSig = ((), Vector3); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6334usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaneMesh", "set_center_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_offset(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6335usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaneMesh", "get_center_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_orientation(&mut self, orientation: crate::classes::plane_mesh::Orientation,) { + type CallSig = ((), crate::classes::plane_mesh::Orientation); + let args = (orientation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6336usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaneMesh", "set_orientation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_orientation(&self,) -> crate::classes::plane_mesh::Orientation { + type CallSig = (crate::classes::plane_mesh::Orientation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6337usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PlaneMesh", "get_orientation", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PlaneMesh { + type Base = crate::classes::PrimitiveMesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PlaneMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PlaneMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PrimitiveMesh > for PlaneMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for PlaneMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PlaneMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PlaneMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PlaneMesh { + + } + impl crate::obj::cap::GodotDefault for PlaneMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PlaneMesh { + type Target = crate::classes::PrimitiveMesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PlaneMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PlaneMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PlaneMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaneMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PrimitiveMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Orientation { + ord: i32 +} +impl Orientation { + #[doc(alias = "FACE_X")] + #[doc = "Godot enumerator name: `FACE_X`"] + pub const X: Orientation = Orientation { + ord: 0i32 + }; + #[doc(alias = "FACE_Y")] + #[doc = "Godot enumerator name: `FACE_Y`"] + pub const Y: Orientation = Orientation { + ord: 1i32 + }; + #[doc(alias = "FACE_Z")] + #[doc = "Godot enumerator name: `FACE_Z`"] + pub const Z: Orientation = Orientation { + ord: 2i32 + }; + +} +impl std::fmt::Debug for Orientation { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Orientation") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Orientation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "X", Self::Y => "Y", Self::Z => "Z", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::X => "FACE_X", Self::Y => "FACE_Y", Self::Z => "FACE_Z", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Orientation { + type Via = i32; + +} +impl crate::meta::ToGodot for Orientation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Orientation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/point_light_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/point_light_2d.rs new file mode 100644 index 0000000..fbf4df8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/point_light_2d.rs @@ -0,0 +1,292 @@ +#![doc = "Sidecar module for class [`PointLight2D`][crate::classes::PointLight2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PointLight2D` enums](https://docs.godotengine.org/en/stable/classes/class_pointlight2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PointLight2D.`\n\nInherits [`Light2D`][crate::classes::Light2D].\n\nRelated symbols:\n\n* [`IPointLight2D`][crate::classes::IPointLight2D]: virtual methods\n\n\nSee also [Godot docs for `PointLight2D`](https://docs.godotengine.org/en/stable/classes/class_pointlight2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PointLight2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PointLight2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PointLight2D`][crate::classes::PointLight2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PointLight2D` methods](https://docs.godotengine.org/en/stable/classes/class_pointlight2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPointLight2D: crate::obj::GodotClass < Base = PointLight2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PointLight2D { + pub fn set_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6338usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PointLight2D", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6339usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PointLight2D", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_offset(&mut self, texture_offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (texture_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6340usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PointLight2D", "set_texture_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6341usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PointLight2D", "get_texture_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_scale(&mut self, texture_scale: f32,) { + type CallSig = ((), f32); + let args = (texture_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6342usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PointLight2D", "set_texture_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6343usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PointLight2D", "get_texture_scale", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PointLight2D { + type Base = crate::classes::Light2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PointLight2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PointLight2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Light2D > for PointLight2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for PointLight2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for PointLight2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PointLight2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PointLight2D { + + } + impl crate::obj::cap::GodotDefault for PointLight2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PointLight2D { + type Target = crate::classes::Light2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PointLight2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PointLight2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PointLight2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PointLight2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Light2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/point_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/point_mesh.rs new file mode 100644 index 0000000..fd0db60 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/point_mesh.rs @@ -0,0 +1,231 @@ +#![doc = "Sidecar module for class [`PointMesh`][crate::classes::PointMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PointMesh` enums](https://docs.godotengine.org/en/stable/classes/class_pointmesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PointMesh.`\n\nInherits [`PrimitiveMesh`][crate::classes::PrimitiveMesh].\n\nRelated symbols:\n\n* [`IPointMesh`][crate::classes::IPointMesh]: virtual methods\n\n\nSee also [Godot docs for `PointMesh`](https://docs.godotengine.org/en/stable/classes/class_pointmesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PointMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PointMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PointMesh`][crate::classes::PointMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PointMesh` methods](https://docs.godotengine.org/en/stable/classes/class_pointmesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPointMesh: crate::obj::GodotClass < Base = PointMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn create_mesh_array(&self,) -> VariantArray { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PointMesh { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PointMesh { + type Base = crate::classes::PrimitiveMesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PointMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PointMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PrimitiveMesh > for PointMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for PointMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PointMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PointMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PointMesh { + + } + impl crate::obj::cap::GodotDefault for PointMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PointMesh { + type Target = crate::classes::PrimitiveMesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PointMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PointMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PointMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PointMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PrimitiveMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/polygon_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/polygon_2d.rs new file mode 100644 index 0000000..26c392b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/polygon_2d.rs @@ -0,0 +1,542 @@ +#![doc = "Sidecar module for class [`Polygon2D`][crate::classes::Polygon2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Polygon2D` enums](https://docs.godotengine.org/en/stable/classes/class_polygon2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Polygon2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IPolygon2D`][crate::classes::IPolygon2D]: virtual methods\n\n\nSee also [Godot docs for `Polygon2D`](https://docs.godotengine.org/en/stable/classes/class_polygon2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Polygon2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Polygon2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Polygon2D`][crate::classes::Polygon2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Polygon2D` methods](https://docs.godotengine.org/en/stable/classes/class_polygon2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPolygon2D: crate::obj::GodotClass < Base = Polygon2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Polygon2D { + pub fn set_polygon(&mut self, polygon: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6344usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_polygon(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6345usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uv(&mut self, uv: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(uv),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6346usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_uv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_uv(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6347usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_uv", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6348usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6349usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_polygons(&mut self, polygons: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(polygons),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6350usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_polygons", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_polygons(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6351usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_polygons", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_vertex_colors(&mut self, vertex_colors: &PackedColorArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedColorArray >); + let args = (RefArg::new(vertex_colors),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6352usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_vertex_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_vertex_colors(&self,) -> PackedColorArray { + type CallSig = (PackedColorArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6353usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_vertex_colors", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (texture.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6354usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6355usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_offset(&mut self, texture_offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (texture_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6356usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_texture_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6357usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_texture_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_rotation(&mut self, texture_rotation: f32,) { + type CallSig = ((), f32); + let args = (texture_rotation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6358usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_texture_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_rotation(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6359usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_texture_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_scale(&mut self, texture_scale: Vector2,) { + type CallSig = ((), Vector2); + let args = (texture_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6360usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_texture_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_scale(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6361usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_texture_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_invert_enabled(&mut self, invert: bool,) { + type CallSig = ((), bool); + let args = (invert,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6362usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_invert_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_invert_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6363usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_invert_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_antialiased(&mut self, antialiased: bool,) { + type CallSig = ((), bool); + let args = (antialiased,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6364usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_antialiased", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_antialiased(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6365usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_antialiased", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_invert_border(&mut self, invert_border: f32,) { + type CallSig = ((), f32); + let args = (invert_border,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6366usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_invert_border", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_invert_border(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6367usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_invert_border", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offset(&mut self, offset: Vector2,) { + type CallSig = ((), Vector2); + let args = (offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6368usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6369usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_bone(&mut self, path: impl AsArg < NodePath >, weights: &PackedFloat32Array,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, NodePath >, RefArg < 'a1, PackedFloat32Array >); + let args = (path.into_arg(), RefArg::new(weights),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6370usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "add_bone", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6371usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_bone_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone_path(&self, index: i32,) -> NodePath { + type CallSig = (NodePath, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6372usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_bone_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bone_weights(&self, index: i32,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6373usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_bone_weights", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn erase_bone(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6374usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "erase_bone", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_bones(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6375usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "clear_bones", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bone_path(&mut self, index: i32, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, NodePath >); + let args = (index, path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6376usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_bone_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_bone_weights(&mut self, index: i32, weights: &PackedFloat32Array,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, PackedFloat32Array >); + let args = (index, RefArg::new(weights),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6377usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_bone_weights", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_skeleton(&mut self, skeleton: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (skeleton.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6378usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_skeleton(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6379usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_internal_vertex_count(&mut self, internal_vertex_count: i32,) { + type CallSig = ((), i32); + let args = (internal_vertex_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6380usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "set_internal_vertex_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_internal_vertex_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6381usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Polygon2D", "get_internal_vertex_count", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Polygon2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Polygon2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Polygon2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for Polygon2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Polygon2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Polygon2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Polygon2D { + + } + impl crate::obj::cap::GodotDefault for Polygon2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Polygon2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Polygon2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Polygon2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Polygon2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Polygon2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/polygon_occluder_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/polygon_occluder_3d.rs new file mode 100644 index 0000000..5d6696f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/polygon_occluder_3d.rs @@ -0,0 +1,224 @@ +#![doc = "Sidecar module for class [`PolygonOccluder3D`][crate::classes::PolygonOccluder3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PolygonOccluder3D` enums](https://docs.godotengine.org/en/stable/classes/class_polygonoccluder3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PolygonOccluder3D.`\n\nInherits [`Occluder3D`][crate::classes::Occluder3D].\n\nRelated symbols:\n\n* [`IPolygonOccluder3D`][crate::classes::IPolygonOccluder3D]: virtual methods\n\n\nSee also [Godot docs for `PolygonOccluder3D`](https://docs.godotengine.org/en/stable/classes/class_polygonoccluder3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PolygonOccluder3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PolygonOccluder3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PolygonOccluder3D`][crate::classes::PolygonOccluder3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PolygonOccluder3D` methods](https://docs.godotengine.org/en/stable/classes/class_polygonoccluder3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPolygonOccluder3D: crate::obj::GodotClass < Base = PolygonOccluder3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PolygonOccluder3D { + pub fn set_polygon(&mut self, polygon: &PackedVector2Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedVector2Array >); + let args = (RefArg::new(polygon),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6382usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PolygonOccluder3D", "set_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_polygon(&self,) -> PackedVector2Array { + type CallSig = (PackedVector2Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6383usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PolygonOccluder3D", "get_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PolygonOccluder3D { + type Base = crate::classes::Occluder3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PolygonOccluder3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PolygonOccluder3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Occluder3D > for PolygonOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PolygonOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PolygonOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PolygonOccluder3D { + + } + impl crate::obj::cap::GodotDefault for PolygonOccluder3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PolygonOccluder3D { + type Target = crate::classes::Occluder3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PolygonOccluder3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PolygonOccluder3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PolygonOccluder3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PolygonOccluder3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Occluder3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/polygon_path_finder.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/polygon_path_finder.rs new file mode 100644 index 0000000..1a4895d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/polygon_path_finder.rs @@ -0,0 +1,266 @@ +#![doc = "Sidecar module for class [`PolygonPathFinder`][crate::classes::PolygonPathFinder].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PolygonPathFinder` enums](https://docs.godotengine.org/en/stable/classes/class_polygonpathfinder.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PolygonPathFinder.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IPolygonPathFinder`][crate::classes::IPolygonPathFinder]: virtual methods\n\n\nSee also [Godot docs for `PolygonPathFinder`](https://docs.godotengine.org/en/stable/classes/class_polygonpathfinder.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PolygonPathFinder::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PolygonPathFinder { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PolygonPathFinder`][crate::classes::PolygonPathFinder].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PolygonPathFinder` methods](https://docs.godotengine.org/en/stable/classes/class_polygonpathfinder.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPolygonPathFinder: crate::obj::GodotClass < Base = PolygonPathFinder > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PolygonPathFinder { + pub fn setup(&mut self, points: &PackedVector2Array, connections: &PackedInt32Array,) { + type CallSig < 'a0, 'a1, > = ((), RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedInt32Array >); + let args = (RefArg::new(points), RefArg::new(connections),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6384usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PolygonPathFinder", "setup", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn find_path(&mut self, from: Vector2, to: Vector2,) -> PackedVector2Array { + type CallSig = (PackedVector2Array, Vector2, Vector2); + let args = (from, to,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6385usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PolygonPathFinder", "find_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_intersections(&self, from: Vector2, to: Vector2,) -> PackedVector2Array { + type CallSig = (PackedVector2Array, Vector2, Vector2); + let args = (from, to,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6386usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PolygonPathFinder", "get_intersections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_closest_point(&self, point: Vector2,) -> Vector2 { + type CallSig = (Vector2, Vector2); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6387usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PolygonPathFinder", "get_closest_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_point_inside(&self, point: Vector2,) -> bool { + type CallSig = (bool, Vector2); + let args = (point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6388usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PolygonPathFinder", "is_point_inside", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_point_penalty(&mut self, idx: i32, penalty: f32,) { + type CallSig = ((), i32, f32); + let args = (idx, penalty,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6389usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PolygonPathFinder", "set_point_penalty", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_point_penalty(&self, idx: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6390usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PolygonPathFinder", "get_point_penalty", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_bounds(&self,) -> Rect2 { + type CallSig = (Rect2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6391usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PolygonPathFinder", "get_bounds", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PolygonPathFinder { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PolygonPathFinder")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PolygonPathFinder { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PolygonPathFinder { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PolygonPathFinder { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PolygonPathFinder { + + } + impl crate::obj::cap::GodotDefault for PolygonPathFinder { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PolygonPathFinder { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PolygonPathFinder { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PolygonPathFinder`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PolygonPathFinder { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PolygonPathFinder > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/popup.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/popup.rs new file mode 100644 index 0000000..955bfb0 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/popup.rs @@ -0,0 +1,238 @@ +#![doc = "Sidecar module for class [`Popup`][crate::classes::Popup].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Popup` enums](https://docs.godotengine.org/en/stable/classes/class_popup.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Popup.`\n\nInherits [`Window`][crate::classes::Window].\n\nRelated symbols:\n\n* [`IPopup`][crate::classes::IPopup]: virtual methods\n\n\nSee also [Godot docs for `Popup`](https://docs.godotengine.org/en/stable/classes/class_popup.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Popup::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Popup { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Popup`][crate::classes::Popup].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Popup` methods](https://docs.godotengine.org/en/stable/classes/class_popup.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPopup: crate::obj::GodotClass < Base = Popup > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: WindowNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_contents_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Popup { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Popup { + type Base = crate::classes::Window; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Popup")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Popup { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Window > for Popup { + + } + unsafe impl crate::obj::Inherits < crate::classes::Viewport > for Popup { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Popup { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Popup { + + } + impl crate::obj::cap::GodotDefault for Popup { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Popup { + type Target = crate::classes::Window; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Popup { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Popup`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Popup { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Popup > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Window > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Viewport > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/popup_menu.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/popup_menu.rs new file mode 100644 index 0000000..d4baefc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/popup_menu.rs @@ -0,0 +1,1762 @@ +#![doc = "Sidecar module for class [`PopupMenu`][crate::classes::PopupMenu].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PopupMenu` enums](https://docs.godotengine.org/en/stable/classes/class_popupmenu.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PopupMenu.`\n\nInherits [`Popup`][crate::classes::Popup].\n\nRelated symbols:\n\n* [`popup_menu`][crate::classes::popup_menu]: sidecar module with related enum/flag types\n* [`IPopupMenu`][crate::classes::IPopupMenu]: virtual methods\n\n\nSee also [Godot docs for `PopupMenu`](https://docs.godotengine.org/en/stable/classes/class_popupmenu.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PopupMenu::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PopupMenu { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PopupMenu`][crate::classes::PopupMenu].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PopupMenu` methods](https://docs.godotengine.org/en/stable/classes/class_popupmenu.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPopupMenu: crate::obj::GodotClass < Base = PopupMenu > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: WindowNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_contents_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PopupMenu { + pub(crate) fn activate_item_by_event_full(&mut self, event: ObjectArg < crate::classes::InputEvent >, for_global_only: bool,) -> bool { + type CallSig = (bool, ObjectArg < crate::classes::InputEvent >, bool); + let args = (event, for_global_only,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6392usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "activate_item_by_event", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::activate_item_by_event_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn activate_item_by_event(&mut self, event: impl AsObjectArg < crate::classes::InputEvent >,) -> bool { + self.activate_item_by_event_ex(event,) . done() + } + #[inline] + pub fn activate_item_by_event_ex < 'a > (&'a mut self, event: impl AsObjectArg < crate::classes::InputEvent >,) -> ExActivateItemByEvent < 'a > { + ExActivateItemByEvent::new(self, event,) + } + pub fn set_prefer_native_menu(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6393usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_prefer_native_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_prefer_native_menu(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6394usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_prefer_native_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_native_menu(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6395usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_native_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_item_full(&mut self, label: CowArg < GString >, id: i32, accel: crate::global::Key,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, crate::global::Key); + let args = (label, id, accel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6396usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_item(&mut self, label: impl AsArg < GString >,) { + self.add_item_ex(label,) . done() + } + #[inline] + pub fn add_item_ex < 'a > (&'a mut self, label: impl AsArg < GString > + 'a,) -> ExAddItem < 'a > { + ExAddItem::new(self, label,) + } + pub(crate) fn add_icon_item_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, label: CowArg < GString >, id: i32, accel: crate::global::Key,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Texture2D >, CowArg < 'a0, GString >, i32, crate::global::Key); + let args = (texture, label, id, accel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6397usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_icon_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_icon_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_icon_item(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString >,) { + self.add_icon_item_ex(texture, label,) . done() + } + #[inline] + pub fn add_icon_item_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> ExAddIconItem < 'a > { + ExAddIconItem::new(self, texture, label,) + } + pub(crate) fn add_check_item_full(&mut self, label: CowArg < GString >, id: i32, accel: crate::global::Key,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, crate::global::Key); + let args = (label, id, accel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6398usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_check_item(&mut self, label: impl AsArg < GString >,) { + self.add_check_item_ex(label,) . done() + } + #[inline] + pub fn add_check_item_ex < 'a > (&'a mut self, label: impl AsArg < GString > + 'a,) -> ExAddCheckItem < 'a > { + ExAddCheckItem::new(self, label,) + } + pub(crate) fn add_icon_check_item_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, label: CowArg < GString >, id: i32, accel: crate::global::Key,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Texture2D >, CowArg < 'a0, GString >, i32, crate::global::Key); + let args = (texture, label, id, accel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6399usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_icon_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_icon_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_icon_check_item(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString >,) { + self.add_icon_check_item_ex(texture, label,) . done() + } + #[inline] + pub fn add_icon_check_item_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> ExAddIconCheckItem < 'a > { + ExAddIconCheckItem::new(self, texture, label,) + } + pub(crate) fn add_radio_check_item_full(&mut self, label: CowArg < GString >, id: i32, accel: crate::global::Key,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, crate::global::Key); + let args = (label, id, accel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6400usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_radio_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_radio_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_radio_check_item(&mut self, label: impl AsArg < GString >,) { + self.add_radio_check_item_ex(label,) . done() + } + #[inline] + pub fn add_radio_check_item_ex < 'a > (&'a mut self, label: impl AsArg < GString > + 'a,) -> ExAddRadioCheckItem < 'a > { + ExAddRadioCheckItem::new(self, label,) + } + pub(crate) fn add_icon_radio_check_item_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, label: CowArg < GString >, id: i32, accel: crate::global::Key,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::Texture2D >, CowArg < 'a0, GString >, i32, crate::global::Key); + let args = (texture, label, id, accel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6401usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_icon_radio_check_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_icon_radio_check_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_icon_radio_check_item(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString >,) { + self.add_icon_radio_check_item_ex(texture, label,) . done() + } + #[inline] + pub fn add_icon_radio_check_item_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> ExAddIconRadioCheckItem < 'a > { + ExAddIconRadioCheckItem::new(self, texture, label,) + } + pub(crate) fn add_multistate_item_full(&mut self, label: CowArg < GString >, max_states: i32, default_state: i32, id: i32, accel: crate::global::Key,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32, i32, i32, crate::global::Key); + let args = (label, max_states, default_state, id, accel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6402usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_multistate_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_multistate_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_multistate_item(&mut self, label: impl AsArg < GString >, max_states: i32,) { + self.add_multistate_item_ex(label, max_states,) . done() + } + #[inline] + pub fn add_multistate_item_ex < 'a > (&'a mut self, label: impl AsArg < GString > + 'a, max_states: i32,) -> ExAddMultistateItem < 'a > { + ExAddMultistateItem::new(self, label, max_states,) + } + pub(crate) fn add_shortcut_full(&mut self, shortcut: ObjectArg < crate::classes::Shortcut >, id: i32, global: bool, allow_echo: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Shortcut >, i32, bool, bool); + let args = (shortcut, id, global, allow_echo,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6403usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_shortcut_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_shortcut(&mut self, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) { + self.add_shortcut_ex(shortcut,) . done() + } + #[inline] + pub fn add_shortcut_ex < 'a > (&'a mut self, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> ExAddShortcut < 'a > { + ExAddShortcut::new(self, shortcut,) + } + pub(crate) fn add_icon_shortcut_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, shortcut: ObjectArg < crate::classes::Shortcut >, id: i32, global: bool, allow_echo: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >, ObjectArg < crate::classes::Shortcut >, i32, bool, bool); + let args = (texture, shortcut, id, global, allow_echo,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6404usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_icon_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_icon_shortcut_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_icon_shortcut(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) { + self.add_icon_shortcut_ex(texture, shortcut,) . done() + } + #[inline] + pub fn add_icon_shortcut_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> ExAddIconShortcut < 'a > { + ExAddIconShortcut::new(self, texture, shortcut,) + } + pub(crate) fn add_check_shortcut_full(&mut self, shortcut: ObjectArg < crate::classes::Shortcut >, id: i32, global: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Shortcut >, i32, bool); + let args = (shortcut, id, global,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6405usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_check_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_check_shortcut_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_check_shortcut(&mut self, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) { + self.add_check_shortcut_ex(shortcut,) . done() + } + #[inline] + pub fn add_check_shortcut_ex < 'a > (&'a mut self, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> ExAddCheckShortcut < 'a > { + ExAddCheckShortcut::new(self, shortcut,) + } + pub(crate) fn add_icon_check_shortcut_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, shortcut: ObjectArg < crate::classes::Shortcut >, id: i32, global: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >, ObjectArg < crate::classes::Shortcut >, i32, bool); + let args = (texture, shortcut, id, global,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6406usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_icon_check_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_icon_check_shortcut_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_icon_check_shortcut(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) { + self.add_icon_check_shortcut_ex(texture, shortcut,) . done() + } + #[inline] + pub fn add_icon_check_shortcut_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> ExAddIconCheckShortcut < 'a > { + ExAddIconCheckShortcut::new(self, texture, shortcut,) + } + pub(crate) fn add_radio_check_shortcut_full(&mut self, shortcut: ObjectArg < crate::classes::Shortcut >, id: i32, global: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Shortcut >, i32, bool); + let args = (shortcut, id, global,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6407usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_radio_check_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_radio_check_shortcut_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_radio_check_shortcut(&mut self, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) { + self.add_radio_check_shortcut_ex(shortcut,) . done() + } + #[inline] + pub fn add_radio_check_shortcut_ex < 'a > (&'a mut self, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> ExAddRadioCheckShortcut < 'a > { + ExAddRadioCheckShortcut::new(self, shortcut,) + } + pub(crate) fn add_icon_radio_check_shortcut_full(&mut self, texture: ObjectArg < crate::classes::Texture2D >, shortcut: ObjectArg < crate::classes::Shortcut >, id: i32, global: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >, ObjectArg < crate::classes::Shortcut >, i32, bool); + let args = (texture, shortcut, id, global,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6408usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_icon_radio_check_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_icon_radio_check_shortcut_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_icon_radio_check_shortcut(&mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) { + self.add_icon_radio_check_shortcut_ex(texture, shortcut,) . done() + } + #[inline] + pub fn add_icon_radio_check_shortcut_ex < 'a > (&'a mut self, texture: impl AsObjectArg < crate::classes::Texture2D >, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> ExAddIconRadioCheckShortcut < 'a > { + ExAddIconRadioCheckShortcut::new(self, texture, shortcut,) + } + pub(crate) fn add_submenu_item_full(&mut self, label: CowArg < GString >, submenu: CowArg < GString >, id: i32,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, CowArg < 'a1, GString >, i32); + let args = (label, submenu, id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6409usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_submenu_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_submenu_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_submenu_item(&mut self, label: impl AsArg < GString >, submenu: impl AsArg < GString >,) { + self.add_submenu_item_ex(label, submenu,) . done() + } + #[inline] + pub fn add_submenu_item_ex < 'a > (&'a mut self, label: impl AsArg < GString > + 'a, submenu: impl AsArg < GString > + 'a,) -> ExAddSubmenuItem < 'a > { + ExAddSubmenuItem::new(self, label, submenu,) + } + pub(crate) fn add_submenu_node_item_full(&mut self, label: CowArg < GString >, submenu: ObjectArg < crate::classes::PopupMenu >, id: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, ObjectArg < crate::classes::PopupMenu >, i32); + let args = (label, submenu, id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6410usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_submenu_node_item", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_submenu_node_item_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_submenu_node_item(&mut self, label: impl AsArg < GString >, submenu: impl AsObjectArg < crate::classes::PopupMenu >,) { + self.add_submenu_node_item_ex(label, submenu,) . done() + } + #[inline] + pub fn add_submenu_node_item_ex < 'a > (&'a mut self, label: impl AsArg < GString > + 'a, submenu: impl AsObjectArg < crate::classes::PopupMenu >,) -> ExAddSubmenuNodeItem < 'a > { + ExAddSubmenuNodeItem::new(self, label, submenu,) + } + pub fn set_item_text(&mut self, index: i32, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (index, text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6411usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_text_direction(&mut self, index: i32, direction: crate::classes::control::TextDirection,) { + type CallSig = ((), i32, crate::classes::control::TextDirection); + let args = (index, direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6412usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_language(&mut self, index: i32, language: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (index, language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6413usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_icon(&mut self, index: i32, icon: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Texture2D >); + let args = (index, icon.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6414usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_icon_max_width(&mut self, index: i32, width: i32,) { + type CallSig = ((), i32, i32); + let args = (index, width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6415usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_icon_max_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_icon_modulate(&mut self, index: i32, modulate: Color,) { + type CallSig = ((), i32, Color); + let args = (index, modulate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6416usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_icon_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_checked(&mut self, index: i32, checked: bool,) { + type CallSig = ((), i32, bool); + let args = (index, checked,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6417usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_checked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_id(&mut self, index: i32, id: i32,) { + type CallSig = ((), i32, i32); + let args = (index, id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6418usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_accelerator(&mut self, index: i32, accel: crate::global::Key,) { + type CallSig = ((), i32, crate::global::Key); + let args = (index, accel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6419usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_accelerator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_metadata(&mut self, index: i32, metadata: &Variant,) { + type CallSig < 'a0, > = ((), i32, RefArg < 'a0, Variant >); + let args = (index, RefArg::new(metadata),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6420usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_metadata", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_disabled(&mut self, index: i32, disabled: bool,) { + type CallSig = ((), i32, bool); + let args = (index, disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6421usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_submenu(&mut self, index: i32, submenu: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (index, submenu.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6422usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_submenu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_submenu_node(&mut self, index: i32, submenu: impl AsObjectArg < crate::classes::PopupMenu >,) { + type CallSig = ((), i32, ObjectArg < crate::classes::PopupMenu >); + let args = (index, submenu.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6423usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_submenu_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_as_separator(&mut self, index: i32, enable: bool,) { + type CallSig = ((), i32, bool); + let args = (index, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6424usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_as_separator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_as_checkable(&mut self, index: i32, enable: bool,) { + type CallSig = ((), i32, bool); + let args = (index, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6425usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_as_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_as_radio_checkable(&mut self, index: i32, enable: bool,) { + type CallSig = ((), i32, bool); + let args = (index, enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6426usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_as_radio_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_tooltip(&mut self, index: i32, tooltip: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i32, CowArg < 'a0, GString >); + let args = (index, tooltip.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6427usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_item_shortcut_full(&mut self, index: i32, shortcut: ObjectArg < crate::classes::Shortcut >, global: bool,) { + type CallSig = ((), i32, ObjectArg < crate::classes::Shortcut >, bool); + let args = (index, shortcut, global,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6428usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_item_shortcut_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_item_shortcut(&mut self, index: i32, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) { + self.set_item_shortcut_ex(index, shortcut,) . done() + } + #[inline] + pub fn set_item_shortcut_ex < 'a > (&'a mut self, index: i32, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> ExSetItemShortcut < 'a > { + ExSetItemShortcut::new(self, index, shortcut,) + } + pub fn set_item_indent(&mut self, index: i32, indent: i32,) { + type CallSig = ((), i32, i32); + let args = (index, indent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6429usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_indent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_multistate(&mut self, index: i32, state: i32,) { + type CallSig = ((), i32, i32); + let args = (index, state,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6430usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_multistate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_multistate_max(&mut self, index: i32, max_states: i32,) { + type CallSig = ((), i32, i32); + let args = (index, max_states,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6431usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_multistate_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_shortcut_disabled(&mut self, index: i32, disabled: bool,) { + type CallSig = ((), i32, bool); + let args = (index, disabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6432usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_shortcut_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn toggle_item_checked(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6433usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "toggle_item_checked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn toggle_item_multistate(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6434usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "toggle_item_multistate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_text(&self, index: i32,) -> GString { + type CallSig = (GString, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6435usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_text_direction(&self, index: i32,) -> crate::classes::control::TextDirection { + type CallSig = (crate::classes::control::TextDirection, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6436usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_language(&self, index: i32,) -> GString { + type CallSig = (GString, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6437usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_icon(&self, index: i32,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6438usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_icon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_icon_max_width(&self, index: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6439usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_icon_max_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_icon_modulate(&self, index: i32,) -> Color { + type CallSig = (Color, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6440usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_icon_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_checked(&self, index: i32,) -> bool { + type CallSig = (bool, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6441usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_item_checked", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_id(&self, index: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6442usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_index(&self, id: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6443usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_accelerator(&self, index: i32,) -> crate::global::Key { + type CallSig = (crate::global::Key, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6444usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_accelerator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_metadata(&self, index: i32,) -> Variant { + type CallSig = (Variant, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6445usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_metadata", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_disabled(&self, index: i32,) -> bool { + type CallSig = (bool, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6446usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_item_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_submenu(&self, index: i32,) -> GString { + type CallSig = (GString, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6447usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_submenu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_submenu_node(&self, index: i32,) -> Option < Gd < crate::classes::PopupMenu > > { + type CallSig = (Option < Gd < crate::classes::PopupMenu > >, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6448usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_submenu_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_separator(&self, index: i32,) -> bool { + type CallSig = (bool, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6449usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_item_separator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_checkable(&self, index: i32,) -> bool { + type CallSig = (bool, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6450usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_item_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_radio_checkable(&self, index: i32,) -> bool { + type CallSig = (bool, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6451usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_item_radio_checkable", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_item_shortcut_disabled(&self, index: i32,) -> bool { + type CallSig = (bool, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6452usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_item_shortcut_disabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_tooltip(&self, index: i32,) -> GString { + type CallSig = (GString, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6453usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_tooltip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_shortcut(&self, index: i32,) -> Option < Gd < crate::classes::Shortcut > > { + type CallSig = (Option < Gd < crate::classes::Shortcut > >, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6454usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_shortcut", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_indent(&self, index: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6455usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_indent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_multistate_max(&self, index: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6456usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_multistate_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_multistate(&self, index: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6457usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_multistate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_focused_item(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6458usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_focused_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_focused_item(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6459usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_focused_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_item_count(&mut self, count: i32,) { + type CallSig = ((), i32); + let args = (count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6460usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_item_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_item_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6461usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_item_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scroll_to_item(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6462usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "scroll_to_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_item(&mut self, index: i32,) { + type CallSig = ((), i32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6463usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "remove_item", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_separator_full(&mut self, label: CowArg < GString >, id: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32); + let args = (label, id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6464usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "add_separator", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_separator_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_separator(&mut self,) { + self.add_separator_ex() . done() + } + #[inline] + pub fn add_separator_ex < 'a > (&'a mut self,) -> ExAddSeparator < 'a > { + ExAddSeparator::new(self,) + } + pub(crate) fn clear_full(&mut self, free_submenus: bool,) { + type CallSig = ((), bool); + let args = (free_submenus,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6465usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::clear_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn clear(&mut self,) { + self.clear_ex() . done() + } + #[inline] + pub fn clear_ex < 'a > (&'a mut self,) -> ExClear < 'a > { + ExClear::new(self,) + } + pub fn set_hide_on_item_selection(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6466usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_hide_on_item_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hide_on_item_selection(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6467usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_hide_on_item_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hide_on_checkable_item_selection(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6468usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_hide_on_checkable_item_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hide_on_checkable_item_selection(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6469usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_hide_on_checkable_item_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hide_on_state_item_selection(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6470usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_hide_on_state_item_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hide_on_state_item_selection(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6471usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_hide_on_state_item_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_submenu_popup_delay(&mut self, seconds: f32,) { + type CallSig = ((), f32); + let args = (seconds,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6472usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_submenu_popup_delay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_submenu_popup_delay(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6473usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_submenu_popup_delay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_search(&mut self, allow: bool,) { + type CallSig = ((), bool); + let args = (allow,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6474usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_allow_search", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_allow_search(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6475usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_allow_search", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_system_menu(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6476usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "is_system_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_system_menu(&mut self, system_menu_id: crate::classes::native_menu::SystemMenus,) { + type CallSig = ((), crate::classes::native_menu::SystemMenus); + let args = (system_menu_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6477usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "set_system_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_system_menu(&self,) -> crate::classes::native_menu::SystemMenus { + type CallSig = (crate::classes::native_menu::SystemMenus,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6478usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PopupMenu", "get_system_menu", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PopupMenu { + type Base = crate::classes::Popup; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PopupMenu")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PopupMenu { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Popup > for PopupMenu { + + } + unsafe impl crate::obj::Inherits < crate::classes::Window > for PopupMenu { + + } + unsafe impl crate::obj::Inherits < crate::classes::Viewport > for PopupMenu { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PopupMenu { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PopupMenu { + + } + impl crate::obj::cap::GodotDefault for PopupMenu { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PopupMenu { + type Target = crate::classes::Popup; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PopupMenu { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PopupMenu`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PopupMenu { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PopupMenu > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Popup > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Window > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Viewport > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PopupMenu::activate_item_by_event_ex`][super::PopupMenu::activate_item_by_event_ex]."] +#[must_use] +pub struct ExActivateItemByEvent < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, event: ObjectCow < crate::classes::InputEvent >, for_global_only: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExActivateItemByEvent < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, event: impl AsObjectArg < crate::classes::InputEvent >,) -> Self { + let for_global_only = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, event: event.consume_arg(), for_global_only: for_global_only, + } + } + #[inline] + pub fn for_global_only(self, for_global_only: bool) -> Self { + Self { + for_global_only: for_global_only, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, event, for_global_only, + } + = self; + re_export::PopupMenu::activate_item_by_event_full(surround_object, event.cow_as_object_arg(), for_global_only,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_item_ex`][super::PopupMenu::add_item_ex]."] +#[must_use] +pub struct ExAddItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, label: CowArg < 'a, GString >, id: i32, accel: crate::global::Key, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddItem < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, label: impl AsArg < GString > + 'a,) -> Self { + let id = - 1i32; + let accel = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, label: label.into_arg(), id: id, accel: accel, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn accel(self, accel: crate::global::Key) -> Self { + Self { + accel: accel, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, label, id, accel, + } + = self; + re_export::PopupMenu::add_item_full(surround_object, label, id, accel,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_icon_item_ex`][super::PopupMenu::add_icon_item_ex]."] +#[must_use] +pub struct ExAddIconItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, texture: ObjectCow < crate::classes::Texture2D >, label: CowArg < 'a, GString >, id: i32, accel: crate::global::Key, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddIconItem < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> Self { + let id = - 1i32; + let accel = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), label: label.into_arg(), id: id, accel: accel, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn accel(self, accel: crate::global::Key) -> Self { + Self { + accel: accel, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, label, id, accel, + } + = self; + re_export::PopupMenu::add_icon_item_full(surround_object, texture.cow_as_object_arg(), label, id, accel,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_check_item_ex`][super::PopupMenu::add_check_item_ex]."] +#[must_use] +pub struct ExAddCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, label: CowArg < 'a, GString >, id: i32, accel: crate::global::Key, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, label: impl AsArg < GString > + 'a,) -> Self { + let id = - 1i32; + let accel = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, label: label.into_arg(), id: id, accel: accel, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn accel(self, accel: crate::global::Key) -> Self { + Self { + accel: accel, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, label, id, accel, + } + = self; + re_export::PopupMenu::add_check_item_full(surround_object, label, id, accel,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_icon_check_item_ex`][super::PopupMenu::add_icon_check_item_ex]."] +#[must_use] +pub struct ExAddIconCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, texture: ObjectCow < crate::classes::Texture2D >, label: CowArg < 'a, GString >, id: i32, accel: crate::global::Key, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddIconCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> Self { + let id = - 1i32; + let accel = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), label: label.into_arg(), id: id, accel: accel, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn accel(self, accel: crate::global::Key) -> Self { + Self { + accel: accel, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, label, id, accel, + } + = self; + re_export::PopupMenu::add_icon_check_item_full(surround_object, texture.cow_as_object_arg(), label, id, accel,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_radio_check_item_ex`][super::PopupMenu::add_radio_check_item_ex]."] +#[must_use] +pub struct ExAddRadioCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, label: CowArg < 'a, GString >, id: i32, accel: crate::global::Key, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddRadioCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, label: impl AsArg < GString > + 'a,) -> Self { + let id = - 1i32; + let accel = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, label: label.into_arg(), id: id, accel: accel, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn accel(self, accel: crate::global::Key) -> Self { + Self { + accel: accel, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, label, id, accel, + } + = self; + re_export::PopupMenu::add_radio_check_item_full(surround_object, label, id, accel,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_icon_radio_check_item_ex`][super::PopupMenu::add_icon_radio_check_item_ex]."] +#[must_use] +pub struct ExAddIconRadioCheckItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, texture: ObjectCow < crate::classes::Texture2D >, label: CowArg < 'a, GString >, id: i32, accel: crate::global::Key, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddIconRadioCheckItem < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, texture: impl AsObjectArg < crate::classes::Texture2D >, label: impl AsArg < GString > + 'a,) -> Self { + let id = - 1i32; + let accel = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), label: label.into_arg(), id: id, accel: accel, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn accel(self, accel: crate::global::Key) -> Self { + Self { + accel: accel, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, label, id, accel, + } + = self; + re_export::PopupMenu::add_icon_radio_check_item_full(surround_object, texture.cow_as_object_arg(), label, id, accel,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_multistate_item_ex`][super::PopupMenu::add_multistate_item_ex]."] +#[must_use] +pub struct ExAddMultistateItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, label: CowArg < 'a, GString >, max_states: i32, default_state: i32, id: i32, accel: crate::global::Key, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddMultistateItem < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, label: impl AsArg < GString > + 'a, max_states: i32,) -> Self { + let default_state = 0i32; + let id = - 1i32; + let accel = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, label: label.into_arg(), max_states: max_states, default_state: default_state, id: id, accel: accel, + } + } + #[inline] + pub fn default_state(self, default_state: i32) -> Self { + Self { + default_state: default_state, .. self + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn accel(self, accel: crate::global::Key) -> Self { + Self { + accel: accel, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, label, max_states, default_state, id, accel, + } + = self; + re_export::PopupMenu::add_multistate_item_full(surround_object, label, max_states, default_state, id, accel,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_shortcut_ex`][super::PopupMenu::add_shortcut_ex]."] +#[must_use] +pub struct ExAddShortcut < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, shortcut: ObjectCow < crate::classes::Shortcut >, id: i32, global: bool, allow_echo: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddShortcut < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> Self { + let id = - 1i32; + let global = false; + let allow_echo = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, shortcut: shortcut.consume_arg(), id: id, global: global, allow_echo: allow_echo, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn global(self, global: bool) -> Self { + Self { + global: global, .. self + } + } + #[inline] + pub fn allow_echo(self, allow_echo: bool) -> Self { + Self { + allow_echo: allow_echo, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, shortcut, id, global, allow_echo, + } + = self; + re_export::PopupMenu::add_shortcut_full(surround_object, shortcut.cow_as_object_arg(), id, global, allow_echo,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_icon_shortcut_ex`][super::PopupMenu::add_icon_shortcut_ex]."] +#[must_use] +pub struct ExAddIconShortcut < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, texture: ObjectCow < crate::classes::Texture2D >, shortcut: ObjectCow < crate::classes::Shortcut >, id: i32, global: bool, allow_echo: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddIconShortcut < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, texture: impl AsObjectArg < crate::classes::Texture2D >, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> Self { + let id = - 1i32; + let global = false; + let allow_echo = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), shortcut: shortcut.consume_arg(), id: id, global: global, allow_echo: allow_echo, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn global(self, global: bool) -> Self { + Self { + global: global, .. self + } + } + #[inline] + pub fn allow_echo(self, allow_echo: bool) -> Self { + Self { + allow_echo: allow_echo, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, shortcut, id, global, allow_echo, + } + = self; + re_export::PopupMenu::add_icon_shortcut_full(surround_object, texture.cow_as_object_arg(), shortcut.cow_as_object_arg(), id, global, allow_echo,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_check_shortcut_ex`][super::PopupMenu::add_check_shortcut_ex]."] +#[must_use] +pub struct ExAddCheckShortcut < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, shortcut: ObjectCow < crate::classes::Shortcut >, id: i32, global: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddCheckShortcut < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> Self { + let id = - 1i32; + let global = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, shortcut: shortcut.consume_arg(), id: id, global: global, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn global(self, global: bool) -> Self { + Self { + global: global, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, shortcut, id, global, + } + = self; + re_export::PopupMenu::add_check_shortcut_full(surround_object, shortcut.cow_as_object_arg(), id, global,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_icon_check_shortcut_ex`][super::PopupMenu::add_icon_check_shortcut_ex]."] +#[must_use] +pub struct ExAddIconCheckShortcut < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, texture: ObjectCow < crate::classes::Texture2D >, shortcut: ObjectCow < crate::classes::Shortcut >, id: i32, global: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddIconCheckShortcut < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, texture: impl AsObjectArg < crate::classes::Texture2D >, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> Self { + let id = - 1i32; + let global = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), shortcut: shortcut.consume_arg(), id: id, global: global, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn global(self, global: bool) -> Self { + Self { + global: global, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, shortcut, id, global, + } + = self; + re_export::PopupMenu::add_icon_check_shortcut_full(surround_object, texture.cow_as_object_arg(), shortcut.cow_as_object_arg(), id, global,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_radio_check_shortcut_ex`][super::PopupMenu::add_radio_check_shortcut_ex]."] +#[must_use] +pub struct ExAddRadioCheckShortcut < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, shortcut: ObjectCow < crate::classes::Shortcut >, id: i32, global: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddRadioCheckShortcut < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> Self { + let id = - 1i32; + let global = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, shortcut: shortcut.consume_arg(), id: id, global: global, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn global(self, global: bool) -> Self { + Self { + global: global, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, shortcut, id, global, + } + = self; + re_export::PopupMenu::add_radio_check_shortcut_full(surround_object, shortcut.cow_as_object_arg(), id, global,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_icon_radio_check_shortcut_ex`][super::PopupMenu::add_icon_radio_check_shortcut_ex]."] +#[must_use] +pub struct ExAddIconRadioCheckShortcut < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, texture: ObjectCow < crate::classes::Texture2D >, shortcut: ObjectCow < crate::classes::Shortcut >, id: i32, global: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddIconRadioCheckShortcut < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, texture: impl AsObjectArg < crate::classes::Texture2D >, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> Self { + let id = - 1i32; + let global = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture.consume_arg(), shortcut: shortcut.consume_arg(), id: id, global: global, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn global(self, global: bool) -> Self { + Self { + global: global, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, texture, shortcut, id, global, + } + = self; + re_export::PopupMenu::add_icon_radio_check_shortcut_full(surround_object, texture.cow_as_object_arg(), shortcut.cow_as_object_arg(), id, global,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_submenu_item_ex`][super::PopupMenu::add_submenu_item_ex]."] +#[must_use] +pub struct ExAddSubmenuItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, label: CowArg < 'a, GString >, submenu: CowArg < 'a, GString >, id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddSubmenuItem < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, label: impl AsArg < GString > + 'a, submenu: impl AsArg < GString > + 'a,) -> Self { + let id = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, label: label.into_arg(), submenu: submenu.into_arg(), id: id, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, label, submenu, id, + } + = self; + re_export::PopupMenu::add_submenu_item_full(surround_object, label, submenu, id,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_submenu_node_item_ex`][super::PopupMenu::add_submenu_node_item_ex]."] +#[must_use] +pub struct ExAddSubmenuNodeItem < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, label: CowArg < 'a, GString >, submenu: ObjectCow < crate::classes::PopupMenu >, id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddSubmenuNodeItem < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, label: impl AsArg < GString > + 'a, submenu: impl AsObjectArg < crate::classes::PopupMenu >,) -> Self { + let id = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, label: label.into_arg(), submenu: submenu.consume_arg(), id: id, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, label, submenu, id, + } + = self; + re_export::PopupMenu::add_submenu_node_item_full(surround_object, label, submenu.cow_as_object_arg(), id,) + } +} +#[doc = "Default-param extender for [`PopupMenu::set_item_shortcut_ex`][super::PopupMenu::set_item_shortcut_ex]."] +#[must_use] +pub struct ExSetItemShortcut < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, index: i32, shortcut: ObjectCow < crate::classes::Shortcut >, global: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetItemShortcut < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu, index: i32, shortcut: impl AsObjectArg < crate::classes::Shortcut >,) -> Self { + let global = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, index: index, shortcut: shortcut.consume_arg(), global: global, + } + } + #[inline] + pub fn global(self, global: bool) -> Self { + Self { + global: global, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, index, shortcut, global, + } + = self; + re_export::PopupMenu::set_item_shortcut_full(surround_object, index, shortcut.cow_as_object_arg(), global,) + } +} +#[doc = "Default-param extender for [`PopupMenu::add_separator_ex`][super::PopupMenu::add_separator_ex]."] +#[must_use] +pub struct ExAddSeparator < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, label: CowArg < 'a, GString >, id: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddSeparator < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu,) -> Self { + let label = GString::from(""); + let id = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, label: CowArg::Owned(label), id: id, + } + } + #[inline] + pub fn label(self, label: impl AsArg < GString > + 'a) -> Self { + Self { + label: label.into_arg(), .. self + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, label, id, + } + = self; + re_export::PopupMenu::add_separator_full(surround_object, label, id,) + } +} +#[doc = "Default-param extender for [`PopupMenu::clear_ex`][super::PopupMenu::clear_ex]."] +#[must_use] +pub struct ExClear < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PopupMenu, free_submenus: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExClear < 'a > { + fn new(surround_object: &'a mut re_export::PopupMenu,) -> Self { + let free_submenus = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, free_submenus: free_submenus, + } + } + #[inline] + pub fn free_submenus(self, free_submenus: bool) -> Self { + Self { + free_submenus: free_submenus, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, free_submenus, + } + = self; + re_export::PopupMenu::clear_full(surround_object, free_submenus,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/popup_panel.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/popup_panel.rs new file mode 100644 index 0000000..5323831 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/popup_panel.rs @@ -0,0 +1,244 @@ +#![doc = "Sidecar module for class [`PopupPanel`][crate::classes::PopupPanel].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PopupPanel` enums](https://docs.godotengine.org/en/stable/classes/class_popuppanel.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PopupPanel.`\n\nInherits [`Popup`][crate::classes::Popup].\n\nRelated symbols:\n\n* [`IPopupPanel`][crate::classes::IPopupPanel]: virtual methods\n\n\nSee also [Godot docs for `PopupPanel`](https://docs.godotengine.org/en/stable/classes/class_popuppanel.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`PopupPanel::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct PopupPanel { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PopupPanel`][crate::classes::PopupPanel].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PopupPanel` methods](https://docs.godotengine.org/en/stable/classes/class_popuppanel.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPopupPanel: crate::obj::GodotClass < Base = PopupPanel > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: WindowNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_contents_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl PopupPanel { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PopupPanel { + type Base = crate::classes::Popup; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PopupPanel")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PopupPanel { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Popup > for PopupPanel { + + } + unsafe impl crate::obj::Inherits < crate::classes::Window > for PopupPanel { + + } + unsafe impl crate::obj::Inherits < crate::classes::Viewport > for PopupPanel { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for PopupPanel { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PopupPanel { + + } + impl crate::obj::cap::GodotDefault for PopupPanel { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PopupPanel { + type Target = crate::classes::Popup; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PopupPanel { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PopupPanel`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PopupPanel { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PopupPanel > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Popup > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Window > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Viewport > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/portable_compressed_texture_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/portable_compressed_texture_2d.rs new file mode 100644 index 0000000..8137ea9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/portable_compressed_texture_2d.rs @@ -0,0 +1,437 @@ +#![doc = "Sidecar module for class [`PortableCompressedTexture2D`][crate::classes::PortableCompressedTexture2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PortableCompressedTexture2D` enums](https://docs.godotengine.org/en/stable/classes/class_portablecompressedtexture2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PortableCompressedTexture2D.`\n\nInherits [`Texture2D`][crate::classes::Texture2D].\n\nRelated symbols:\n\n* [`portable_compressed_texture_2d`][crate::classes::portable_compressed_texture_2d]: sidecar module with related enum/flag types\n* [`IPortableCompressedTexture2D`][crate::classes::IPortableCompressedTexture2D]: virtual methods\n\n\nSee also [Godot docs for `PortableCompressedTexture2D`](https://docs.godotengine.org/en/stable/classes/class_portablecompressedtexture2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PortableCompressedTexture2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PortableCompressedTexture2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PortableCompressedTexture2D`][crate::classes::PortableCompressedTexture2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PortableCompressedTexture2D` methods](https://docs.godotengine.org/en/stable/classes/class_portablecompressedtexture2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPortableCompressedTexture2D: crate::obj::GodotClass < Base = PortableCompressedTexture2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_width(&self,) -> i32; + fn get_height(&self,) -> i32; + fn is_pixel_opaque(&self, x: i32, y: i32,) -> bool { + unimplemented !() + } + fn has_alpha(&self,) -> bool { + unimplemented !() + } + fn draw(&self, to_canvas_item: Rid, pos: Vector2, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect(&self, to_canvas_item: Rid, rect: Rect2, tile: bool, modulate: Color, transpose: bool,) { + unimplemented !() + } + fn draw_rect_region(&self, to_canvas_item: Rid, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PortableCompressedTexture2D { + pub(crate) fn create_from_image_full(&mut self, image: ObjectArg < crate::classes::Image >, compression_mode: crate::classes::portable_compressed_texture_2d::CompressionMode, normal_map: bool, lossy_quality: f32,) { + type CallSig = ((), ObjectArg < crate::classes::Image >, crate::classes::portable_compressed_texture_2d::CompressionMode, bool, f32); + let args = (image, compression_mode, normal_map, lossy_quality,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6479usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PortableCompressedTexture2D", "create_from_image", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_from_image_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_from_image(&mut self, image: impl AsObjectArg < crate::classes::Image >, compression_mode: crate::classes::portable_compressed_texture_2d::CompressionMode,) { + self.create_from_image_ex(image, compression_mode,) . done() + } + #[inline] + pub fn create_from_image_ex < 'a > (&'a mut self, image: impl AsObjectArg < crate::classes::Image >, compression_mode: crate::classes::portable_compressed_texture_2d::CompressionMode,) -> ExCreateFromImage < 'a > { + ExCreateFromImage::new(self, image, compression_mode,) + } + pub fn get_format(&self,) -> crate::classes::image::Format { + type CallSig = (crate::classes::image::Format,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6480usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PortableCompressedTexture2D", "get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_compression_mode(&self,) -> crate::classes::portable_compressed_texture_2d::CompressionMode { + type CallSig = (crate::classes::portable_compressed_texture_2d::CompressionMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6481usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PortableCompressedTexture2D", "get_compression_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_size_override(&mut self, size: Vector2,) { + type CallSig = ((), Vector2); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6482usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PortableCompressedTexture2D", "set_size_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size_override(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6483usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PortableCompressedTexture2D", "get_size_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_keep_compressed_buffer(&mut self, keep: bool,) { + type CallSig = ((), bool); + let args = (keep,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6484usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PortableCompressedTexture2D", "set_keep_compressed_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_keeping_compressed_buffer(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6485usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PortableCompressedTexture2D", "is_keeping_compressed_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_keep_all_compressed_buffers(keep: bool,) { + type CallSig = ((), bool); + let args = (keep,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6486usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PortableCompressedTexture2D", "set_keep_all_compressed_buffers", std::ptr::null_mut(), None, args,) + } + } + pub fn is_keeping_all_compressed_buffers() -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6487usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PortableCompressedTexture2D", "is_keeping_all_compressed_buffers", std::ptr::null_mut(), None, args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PortableCompressedTexture2D { + type Base = crate::classes::Texture2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PortableCompressedTexture2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PortableCompressedTexture2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture2D > for PortableCompressedTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Texture > for PortableCompressedTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PortableCompressedTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PortableCompressedTexture2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PortableCompressedTexture2D { + + } + impl crate::obj::cap::GodotDefault for PortableCompressedTexture2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PortableCompressedTexture2D { + type Target = crate::classes::Texture2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PortableCompressedTexture2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PortableCompressedTexture2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PortableCompressedTexture2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PortableCompressedTexture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Texture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`PortableCompressedTexture2D::create_from_image_ex`][super::PortableCompressedTexture2D::create_from_image_ex]."] +#[must_use] +pub struct ExCreateFromImage < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::PortableCompressedTexture2D, image: ObjectCow < crate::classes::Image >, compression_mode: crate::classes::portable_compressed_texture_2d::CompressionMode, normal_map: bool, lossy_quality: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateFromImage < 'a > { + fn new(surround_object: &'a mut re_export::PortableCompressedTexture2D, image: impl AsObjectArg < crate::classes::Image >, compression_mode: crate::classes::portable_compressed_texture_2d::CompressionMode,) -> Self { + let normal_map = false; + let lossy_quality = 0.8f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, image: image.consume_arg(), compression_mode: compression_mode, normal_map: normal_map, lossy_quality: lossy_quality, + } + } + #[inline] + pub fn normal_map(self, normal_map: bool) -> Self { + Self { + normal_map: normal_map, .. self + } + } + #[inline] + pub fn lossy_quality(self, lossy_quality: f32) -> Self { + Self { + lossy_quality: lossy_quality, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, image, compression_mode, normal_map, lossy_quality, + } + = self; + re_export::PortableCompressedTexture2D::create_from_image_full(surround_object, image.cow_as_object_arg(), compression_mode, normal_map, lossy_quality,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CompressionMode { + ord: i32 +} +impl CompressionMode { + #[doc(alias = "COMPRESSION_MODE_LOSSLESS")] + #[doc = "Godot enumerator name: `COMPRESSION_MODE_LOSSLESS`"] + pub const LOSSLESS: CompressionMode = CompressionMode { + ord: 0i32 + }; + #[doc(alias = "COMPRESSION_MODE_LOSSY")] + #[doc = "Godot enumerator name: `COMPRESSION_MODE_LOSSY`"] + pub const LOSSY: CompressionMode = CompressionMode { + ord: 1i32 + }; + #[doc(alias = "COMPRESSION_MODE_BASIS_UNIVERSAL")] + #[doc = "Godot enumerator name: `COMPRESSION_MODE_BASIS_UNIVERSAL`"] + pub const BASIS_UNIVERSAL: CompressionMode = CompressionMode { + ord: 2i32 + }; + #[doc(alias = "COMPRESSION_MODE_S3TC")] + #[doc = "Godot enumerator name: `COMPRESSION_MODE_S3TC`"] + pub const S3TC: CompressionMode = CompressionMode { + ord: 3i32 + }; + #[doc(alias = "COMPRESSION_MODE_ETC2")] + #[doc = "Godot enumerator name: `COMPRESSION_MODE_ETC2`"] + pub const ETC2: CompressionMode = CompressionMode { + ord: 4i32 + }; + #[doc(alias = "COMPRESSION_MODE_BPTC")] + #[doc = "Godot enumerator name: `COMPRESSION_MODE_BPTC`"] + pub const BPTC: CompressionMode = CompressionMode { + ord: 5i32 + }; + +} +impl std::fmt::Debug for CompressionMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CompressionMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CompressionMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOSSLESS => "LOSSLESS", Self::LOSSY => "LOSSY", Self::BASIS_UNIVERSAL => "BASIS_UNIVERSAL", Self::S3TC => "S3TC", Self::ETC2 => "ETC2", Self::BPTC => "BPTC", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOSSLESS => "COMPRESSION_MODE_LOSSLESS", Self::LOSSY => "COMPRESSION_MODE_LOSSY", Self::BASIS_UNIVERSAL => "COMPRESSION_MODE_BASIS_UNIVERSAL", Self::S3TC => "COMPRESSION_MODE_S3TC", Self::ETC2 => "COMPRESSION_MODE_ETC2", Self::BPTC => "COMPRESSION_MODE_BPTC", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CompressionMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CompressionMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CompressionMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/primitive_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/primitive_mesh.rs new file mode 100644 index 0000000..9bd96af --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/primitive_mesh.rs @@ -0,0 +1,321 @@ +#![doc = "Sidecar module for class [`PrimitiveMesh`][crate::classes::PrimitiveMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PrimitiveMesh` enums](https://docs.godotengine.org/en/stable/classes/class_primitivemesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PrimitiveMesh.`\n\nInherits [`Mesh`][crate::classes::Mesh].\n\nRelated symbols:\n\n* [`IPrimitiveMesh`][crate::classes::IPrimitiveMesh]: virtual methods\n\n\nSee also [Godot docs for `PrimitiveMesh`](https://docs.godotengine.org/en/stable/classes/class_primitivemesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PrimitiveMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PrimitiveMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PrimitiveMesh`][crate::classes::PrimitiveMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PrimitiveMesh` methods](https://docs.godotengine.org/en/stable/classes/class_primitivemesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPrimitiveMesh: crate::obj::GodotClass < Base = PrimitiveMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn create_mesh_array(&self,) -> VariantArray { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PrimitiveMesh { + pub fn set_material(&mut self, material: impl AsObjectArg < crate::classes::Material >,) { + type CallSig = ((), ObjectArg < crate::classes::Material >); + let args = (material.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6488usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_material(&self,) -> Option < Gd < crate::classes::Material > > { + type CallSig = (Option < Gd < crate::classes::Material > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6489usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "get_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh_arrays(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6490usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "get_mesh_arrays", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_custom_aabb(&mut self, aabb: Aabb,) { + type CallSig = ((), Aabb); + let args = (aabb,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6491usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "set_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_custom_aabb(&self,) -> Aabb { + type CallSig = (Aabb,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6492usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "get_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_flip_faces(&mut self, flip_faces: bool,) { + type CallSig = ((), bool); + let args = (flip_faces,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6493usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "set_flip_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_flip_faces(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6494usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "get_flip_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_add_uv2(&mut self, add_uv2: bool,) { + type CallSig = ((), bool); + let args = (add_uv2,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6495usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "set_add_uv2", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_add_uv2(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6496usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "get_add_uv2", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_uv2_padding(&mut self, uv2_padding: f32,) { + type CallSig = ((), f32); + let args = (uv2_padding,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6497usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "set_uv2_padding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_uv2_padding(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6498usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "get_uv2_padding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn request_update(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6499usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrimitiveMesh", "request_update", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PrimitiveMesh { + type Base = crate::classes::Mesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PrimitiveMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PrimitiveMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for PrimitiveMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PrimitiveMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PrimitiveMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PrimitiveMesh { + + } + impl crate::obj::cap::GodotDefault for PrimitiveMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PrimitiveMesh { + type Target = crate::classes::Mesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PrimitiveMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PrimitiveMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PrimitiveMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PrimitiveMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/prism_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/prism_mesh.rs new file mode 100644 index 0000000..943544b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/prism_mesh.rs @@ -0,0 +1,311 @@ +#![doc = "Sidecar module for class [`PrismMesh`][crate::classes::PrismMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PrismMesh` enums](https://docs.godotengine.org/en/stable/classes/class_prismmesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PrismMesh.`\n\nInherits [`PrimitiveMesh`][crate::classes::PrimitiveMesh].\n\nRelated symbols:\n\n* [`IPrismMesh`][crate::classes::IPrismMesh]: virtual methods\n\n\nSee also [Godot docs for `PrismMesh`](https://docs.godotengine.org/en/stable/classes/class_prismmesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PrismMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PrismMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PrismMesh`][crate::classes::PrismMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PrismMesh` methods](https://docs.godotengine.org/en/stable/classes/class_prismmesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPrismMesh: crate::obj::GodotClass < Base = PrismMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn create_mesh_array(&self,) -> VariantArray { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl PrismMesh { + pub fn set_left_to_right(&mut self, left_to_right: f32,) { + type CallSig = ((), f32); + let args = (left_to_right,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6500usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrismMesh", "set_left_to_right", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_left_to_right(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6501usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrismMesh", "get_left_to_right", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6502usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrismMesh", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6503usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrismMesh", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_subdivide_width(&mut self, segments: i32,) { + type CallSig = ((), i32); + let args = (segments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6504usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrismMesh", "set_subdivide_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subdivide_width(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6505usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrismMesh", "get_subdivide_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_subdivide_height(&mut self, segments: i32,) { + type CallSig = ((), i32); + let args = (segments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6506usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrismMesh", "set_subdivide_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subdivide_height(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6507usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrismMesh", "get_subdivide_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_subdivide_depth(&mut self, segments: i32,) { + type CallSig = ((), i32); + let args = (segments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6508usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrismMesh", "set_subdivide_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_subdivide_depth(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6509usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PrismMesh", "get_subdivide_depth", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PrismMesh { + type Base = crate::classes::PrimitiveMesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PrismMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PrismMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PrimitiveMesh > for PrismMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for PrismMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for PrismMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PrismMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PrismMesh { + + } + impl crate::obj::cap::GodotDefault for PrismMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PrismMesh { + type Target = crate::classes::PrimitiveMesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PrismMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PrismMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PrismMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PrismMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PrimitiveMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/procedural_sky_material.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/procedural_sky_material.rs new file mode 100644 index 0000000..9fc928a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/procedural_sky_material.rs @@ -0,0 +1,440 @@ +#![doc = "Sidecar module for class [`ProceduralSkyMaterial`][crate::classes::ProceduralSkyMaterial].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ProceduralSkyMaterial` enums](https://docs.godotengine.org/en/stable/classes/class_proceduralskymaterial.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ProceduralSkyMaterial.`\n\nInherits [`Material`][crate::classes::Material].\n\nRelated symbols:\n\n* [`IProceduralSkyMaterial`][crate::classes::IProceduralSkyMaterial]: virtual methods\n\n\nSee also [Godot docs for `ProceduralSkyMaterial`](https://docs.godotengine.org/en/stable/classes/class_proceduralskymaterial.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ProceduralSkyMaterial::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ProceduralSkyMaterial { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ProceduralSkyMaterial`][crate::classes::ProceduralSkyMaterial].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ProceduralSkyMaterial` methods](https://docs.godotengine.org/en/stable/classes/class_proceduralskymaterial.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IProceduralSkyMaterial: crate::obj::GodotClass < Base = ProceduralSkyMaterial > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_shader_rid(&self,) -> Rid; + fn get_shader_mode(&self,) -> crate::classes::shader::Mode; + fn can_do_next_pass(&self,) -> bool { + unimplemented !() + } + fn can_use_render_priority(&self,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl ProceduralSkyMaterial { + pub fn set_sky_top_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6510usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_sky_top_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sky_top_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6511usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_sky_top_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sky_horizon_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6512usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_sky_horizon_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sky_horizon_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6513usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_sky_horizon_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sky_curve(&mut self, curve: f32,) { + type CallSig = ((), f32); + let args = (curve,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6514usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_sky_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sky_curve(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6515usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_sky_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sky_energy_multiplier(&mut self, multiplier: f32,) { + type CallSig = ((), f32); + let args = (multiplier,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6516usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_sky_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sky_energy_multiplier(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6517usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_sky_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sky_cover(&mut self, sky_cover: impl AsObjectArg < crate::classes::Texture2D >,) { + type CallSig = ((), ObjectArg < crate::classes::Texture2D >); + let args = (sky_cover.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6518usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_sky_cover", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sky_cover(&self,) -> Option < Gd < crate::classes::Texture2D > > { + type CallSig = (Option < Gd < crate::classes::Texture2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6519usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_sky_cover", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sky_cover_modulate(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6520usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_sky_cover_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sky_cover_modulate(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6521usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_sky_cover_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ground_bottom_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6522usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_ground_bottom_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ground_bottom_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6523usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_ground_bottom_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ground_horizon_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6524usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_ground_horizon_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ground_horizon_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6525usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_ground_horizon_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ground_curve(&mut self, curve: f32,) { + type CallSig = ((), f32); + let args = (curve,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6526usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_ground_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ground_curve(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6527usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_ground_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ground_energy_multiplier(&mut self, energy: f32,) { + type CallSig = ((), f32); + let args = (energy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6528usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_ground_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ground_energy_multiplier(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6529usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_ground_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sun_angle_max(&mut self, degrees: f32,) { + type CallSig = ((), f32); + let args = (degrees,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6530usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_sun_angle_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sun_angle_max(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6531usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_sun_angle_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sun_curve(&mut self, curve: f32,) { + type CallSig = ((), f32); + let args = (curve,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6532usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_sun_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sun_curve(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6533usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_sun_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_debanding(&mut self, use_debanding: bool,) { + type CallSig = ((), bool); + let args = (use_debanding,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6534usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_use_debanding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_debanding(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6535usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_use_debanding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_energy_multiplier(&mut self, multiplier: f32,) { + type CallSig = ((), f32); + let args = (multiplier,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6536usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "set_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_energy_multiplier(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6537usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProceduralSkyMaterial", "get_energy_multiplier", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ProceduralSkyMaterial { + type Base = crate::classes::Material; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ProceduralSkyMaterial")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ProceduralSkyMaterial { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Material > for ProceduralSkyMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for ProceduralSkyMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ProceduralSkyMaterial { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ProceduralSkyMaterial { + + } + impl crate::obj::cap::GodotDefault for ProceduralSkyMaterial { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ProceduralSkyMaterial { + type Target = crate::classes::Material; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ProceduralSkyMaterial { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ProceduralSkyMaterial`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ProceduralSkyMaterial { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ProceduralSkyMaterial > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Material > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/progress_bar.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/progress_bar.rs new file mode 100644 index 0000000..2fe3308 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/progress_bar.rs @@ -0,0 +1,418 @@ +#![doc = "Sidecar module for class [`ProgressBar`][crate::classes::ProgressBar].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ProgressBar` enums](https://docs.godotengine.org/en/stable/classes/class_progressbar.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ProgressBar.`\n\nInherits [`Range`][crate::classes::Range].\n\nRelated symbols:\n\n* [`progress_bar`][crate::classes::progress_bar]: sidecar module with related enum/flag types\n* [`IProgressBar`][crate::classes::IProgressBar]: virtual methods\n\n\nSee also [Godot docs for `ProgressBar`](https://docs.godotengine.org/en/stable/classes/class_progressbar.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ProgressBar::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ProgressBar { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ProgressBar`][crate::classes::ProgressBar].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ProgressBar` methods](https://docs.godotengine.org/en/stable/classes/class_progressbar.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IProgressBar: crate::obj::GodotClass < Base = ProgressBar > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn value_changed(&mut self, new_value: f64,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ProgressBar { + pub fn set_fill_mode(&mut self, mode: i32,) { + type CallSig = ((), i32); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6538usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProgressBar", "set_fill_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fill_mode(&mut self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6539usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProgressBar", "get_fill_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_show_percentage(&mut self, visible: bool,) { + type CallSig = ((), bool); + let args = (visible,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6540usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProgressBar", "set_show_percentage", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_percentage_shown(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6541usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProgressBar", "is_percentage_shown", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_indeterminate(&mut self, indeterminate: bool,) { + type CallSig = ((), bool); + let args = (indeterminate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6542usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProgressBar", "set_indeterminate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_indeterminate(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6543usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProgressBar", "is_indeterminate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_editor_preview_indeterminate(&mut self, preview_indeterminate: bool,) { + type CallSig = ((), bool); + let args = (preview_indeterminate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6544usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProgressBar", "set_editor_preview_indeterminate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_editor_preview_indeterminate_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6545usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProgressBar", "is_editor_preview_indeterminate_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ProgressBar { + type Base = crate::classes::Range; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ProgressBar")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ProgressBar { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Range > for ProgressBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for ProgressBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for ProgressBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ProgressBar { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ProgressBar { + + } + impl crate::obj::cap::GodotDefault for ProgressBar { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ProgressBar { + type Target = crate::classes::Range; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ProgressBar { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ProgressBar`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ProgressBar { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ProgressBar > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Range > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FillMode { + ord: i32 +} +impl FillMode { + #[doc(alias = "FILL_BEGIN_TO_END")] + #[doc = "Godot enumerator name: `FILL_BEGIN_TO_END`"] + pub const BEGIN_TO_END: FillMode = FillMode { + ord: 0i32 + }; + #[doc(alias = "FILL_END_TO_BEGIN")] + #[doc = "Godot enumerator name: `FILL_END_TO_BEGIN`"] + pub const END_TO_BEGIN: FillMode = FillMode { + ord: 1i32 + }; + #[doc(alias = "FILL_TOP_TO_BOTTOM")] + #[doc = "Godot enumerator name: `FILL_TOP_TO_BOTTOM`"] + pub const TOP_TO_BOTTOM: FillMode = FillMode { + ord: 2i32 + }; + #[doc(alias = "FILL_BOTTOM_TO_TOP")] + #[doc = "Godot enumerator name: `FILL_BOTTOM_TO_TOP`"] + pub const BOTTOM_TO_TOP: FillMode = FillMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for FillMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FillMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FillMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN_TO_END => "BEGIN_TO_END", Self::END_TO_BEGIN => "END_TO_BEGIN", Self::TOP_TO_BOTTOM => "TOP_TO_BOTTOM", Self::BOTTOM_TO_TOP => "BOTTOM_TO_TOP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BEGIN_TO_END => "FILL_BEGIN_TO_END", Self::END_TO_BEGIN => "FILL_END_TO_BEGIN", Self::TOP_TO_BOTTOM => "FILL_TOP_TO_BOTTOM", Self::BOTTOM_TO_TOP => "FILL_BOTTOM_TO_TOP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FillMode { + type Via = i32; + +} +impl crate::meta::ToGodot for FillMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FillMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/project_settings.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/project_settings.rs new file mode 100644 index 0000000..f51335b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/project_settings.rs @@ -0,0 +1,414 @@ +#![doc = "Sidecar module for class [`ProjectSettings`][crate::classes::ProjectSettings].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ProjectSettings` enums](https://docs.godotengine.org/en/stable/classes/class_projectsettings.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ProjectSettings.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`project_settings`][crate::classes::project_settings]: sidecar module with related enum/flag types\n* [`IProjectSettings`][crate::classes::IProjectSettings]: virtual methods\n\n\nSee also [Godot docs for `ProjectSettings`](https://docs.godotengine.org/en/stable/classes/class_projectsettings.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`ProjectSettings::singleton()`][ProjectSettings::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct ProjectSettings { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ProjectSettings`][crate::classes::ProjectSettings].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ProjectSettings` methods](https://docs.godotengine.org/en/stable/classes/class_projectsettings.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IProjectSettings: crate::obj::GodotClass < Base = ProjectSettings > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ProjectSettings { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"ProjectSettings"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn has_setting(&self, name: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6546usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "has_setting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_setting(&mut self, name: impl AsArg < GString >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, Variant >); + let args = (name.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6547usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "set_setting", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_setting_full(&self, name: CowArg < GString >, default_value: RefArg < Variant >,) -> Variant { + type CallSig < 'a0, 'a1, > = (Variant, CowArg < 'a0, GString >, RefArg < 'a1, Variant >); + let args = (name, default_value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6548usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "get_setting", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_setting_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_setting(&self, name: impl AsArg < GString >,) -> Variant { + self.get_setting_ex(name,) . done() + } + #[inline] + pub fn get_setting_ex < 'a > (&'a self, name: impl AsArg < GString > + 'a,) -> ExGetSetting < 'a > { + ExGetSetting::new(self, name,) + } + pub fn get_setting_with_override(&self, name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6549usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "get_setting_with_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_global_class_list(&mut self,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6550usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "get_global_class_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_order(&mut self, name: impl AsArg < GString >, position: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, i32); + let args = (name.into_arg(), position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6551usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "set_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_order(&self, name: impl AsArg < GString >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6552usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "get_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_initial_value(&mut self, name: impl AsArg < GString >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, GString >, RefArg < 'a1, Variant >); + let args = (name.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6553usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "set_initial_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_as_basic(&mut self, name: impl AsArg < GString >, basic: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, bool); + let args = (name.into_arg(), basic,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6554usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "set_as_basic", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_as_internal(&mut self, name: impl AsArg < GString >, internal: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, bool); + let args = (name.into_arg(), internal,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6555usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "set_as_internal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_property_info(&mut self, hint: &Dictionary,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Dictionary >); + let args = (RefArg::new(hint),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6556usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "add_property_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_restart_if_changed(&mut self, name: impl AsArg < GString >, restart: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, bool); + let args = (name.into_arg(), restart,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6557usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "set_restart_if_changed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6558usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn localize_path(&self, path: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6559usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "localize_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn globalize_path(&self, path: impl AsArg < GString >,) -> GString { + type CallSig < 'a0, > = (GString, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6560usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "globalize_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn save(&mut self,) -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6561usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "save", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn load_resource_pack_full(&mut self, pack: CowArg < GString >, replace_files: bool, offset: i32,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >, bool, i32); + let args = (pack, replace_files, offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6562usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "load_resource_pack", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::load_resource_pack_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn load_resource_pack(&mut self, pack: impl AsArg < GString >,) -> bool { + self.load_resource_pack_ex(pack,) . done() + } + #[inline] + pub fn load_resource_pack_ex < 'a > (&'a mut self, pack: impl AsArg < GString > + 'a,) -> ExLoadResourcePack < 'a > { + ExLoadResourcePack::new(self, pack,) + } + pub fn save_custom(&mut self, file: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (file.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6563usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ProjectSettings", "save_custom", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ProjectSettings { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ProjectSettings")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ProjectSettings { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ProjectSettings { + + } + impl std::ops::Deref for ProjectSettings { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ProjectSettings { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ProjectSettings`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ProjectSettings { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ProjectSettings > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ProjectSettings::get_setting_ex`][super::ProjectSettings::get_setting_ex]."] +#[must_use] +pub struct ExGetSetting < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::ProjectSettings, name: CowArg < 'a, GString >, default_value: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetSetting < 'a > { + fn new(surround_object: &'a re_export::ProjectSettings, name: impl AsArg < GString > + 'a,) -> Self { + let default_value = Variant::nil(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: name.into_arg(), default_value: CowArg::Owned(default_value), + } + } + #[inline] + pub fn default_value(self, default_value: &'a Variant) -> Self { + Self { + default_value: CowArg::Borrowed(default_value), .. self + } + } + #[inline] + pub fn done(self) -> Variant { + let Self { + _phantom, surround_object, name, default_value, + } + = self; + re_export::ProjectSettings::get_setting_full(surround_object, name, default_value.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`ProjectSettings::load_resource_pack_ex`][super::ProjectSettings::load_resource_pack_ex]."] +#[must_use] +pub struct ExLoadResourcePack < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ProjectSettings, pack: CowArg < 'a, GString >, replace_files: bool, offset: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExLoadResourcePack < 'a > { + fn new(surround_object: &'a mut re_export::ProjectSettings, pack: impl AsArg < GString > + 'a,) -> Self { + let replace_files = true; + let offset = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, pack: pack.into_arg(), replace_files: replace_files, offset: offset, + } + } + #[inline] + pub fn replace_files(self, replace_files: bool) -> Self { + Self { + replace_files: replace_files, .. self + } + } + #[inline] + pub fn offset(self, offset: i32) -> Self { + Self { + offset: offset, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, pack, replace_files, offset, + } + = self; + re_export::ProjectSettings::load_resource_pack_full(surround_object, pack, replace_files, offset,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/property_tweener.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/property_tweener.rs new file mode 100644 index 0000000..1cc8b9c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/property_tweener.rs @@ -0,0 +1,255 @@ +#![doc = "Sidecar module for class [`PropertyTweener`][crate::classes::PropertyTweener].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `PropertyTweener` enums](https://docs.godotengine.org/en/stable/classes/class_propertytweener.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `PropertyTweener.`\n\nInherits [`Tweener`][crate::classes::Tweener].\n\nRelated symbols:\n\n* [`IPropertyTweener`][crate::classes::IPropertyTweener]: virtual methods\n\n\nSee also [Godot docs for `PropertyTweener`](https://docs.godotengine.org/en/stable/classes/class_propertytweener.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`PropertyTweener::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct PropertyTweener { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`PropertyTweener`][crate::classes::PropertyTweener].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `PropertyTweener` methods](https://docs.godotengine.org/en/stable/classes/class_propertytweener.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IPropertyTweener: crate::obj::GodotClass < Base = PropertyTweener > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl PropertyTweener { + pub fn from(&mut self, value: &Variant,) -> Option < Gd < crate::classes::PropertyTweener > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::PropertyTweener > >, RefArg < 'a0, Variant >); + let args = (RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6564usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PropertyTweener", "from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn from_current(&mut self,) -> Option < Gd < crate::classes::PropertyTweener > > { + type CallSig = (Option < Gd < crate::classes::PropertyTweener > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6565usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PropertyTweener", "from_current", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn as_relative(&mut self,) -> Option < Gd < crate::classes::PropertyTweener > > { + type CallSig = (Option < Gd < crate::classes::PropertyTweener > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6566usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PropertyTweener", "as_relative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_trans(&mut self, trans: crate::classes::tween::TransitionType,) -> Option < Gd < crate::classes::PropertyTweener > > { + type CallSig = (Option < Gd < crate::classes::PropertyTweener > >, crate::classes::tween::TransitionType); + let args = (trans,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6567usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PropertyTweener", "set_trans", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ease(&mut self, ease: crate::classes::tween::EaseType,) -> Option < Gd < crate::classes::PropertyTweener > > { + type CallSig = (Option < Gd < crate::classes::PropertyTweener > >, crate::classes::tween::EaseType); + let args = (ease,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6568usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PropertyTweener", "set_ease", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_custom_interpolator(&mut self, interpolator_method: &Callable,) -> Option < Gd < crate::classes::PropertyTweener > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::PropertyTweener > >, RefArg < 'a0, Callable >); + let args = (RefArg::new(interpolator_method),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6569usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PropertyTweener", "set_custom_interpolator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_delay(&mut self, delay: f64,) -> Option < Gd < crate::classes::PropertyTweener > > { + type CallSig = (Option < Gd < crate::classes::PropertyTweener > >, f64); + let args = (delay,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6570usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "PropertyTweener", "set_delay", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for PropertyTweener { + type Base = crate::classes::Tweener; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"PropertyTweener")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for PropertyTweener { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Tweener > for PropertyTweener { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for PropertyTweener { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for PropertyTweener { + + } + impl crate::obj::cap::GodotDefault for PropertyTweener { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for PropertyTweener { + type Target = crate::classes::Tweener; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for PropertyTweener { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`PropertyTweener`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_PropertyTweener { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::PropertyTweener > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Tweener > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/quad_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/quad_mesh.rs new file mode 100644 index 0000000..b4d13e4 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/quad_mesh.rs @@ -0,0 +1,237 @@ +#![doc = "Sidecar module for class [`QuadMesh`][crate::classes::QuadMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `QuadMesh` enums](https://docs.godotengine.org/en/stable/classes/class_quadmesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `QuadMesh.`\n\nInherits [`PlaneMesh`][crate::classes::PlaneMesh].\n\nRelated symbols:\n\n* [`IQuadMesh`][crate::classes::IQuadMesh]: virtual methods\n\n\nSee also [Godot docs for `QuadMesh`](https://docs.godotengine.org/en/stable/classes/class_quadmesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`QuadMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct QuadMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`QuadMesh`][crate::classes::QuadMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `QuadMesh` methods](https://docs.godotengine.org/en/stable/classes/class_quadmesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IQuadMesh: crate::obj::GodotClass < Base = QuadMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn create_mesh_array(&self,) -> VariantArray { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl QuadMesh { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for QuadMesh { + type Base = crate::classes::PlaneMesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"QuadMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for QuadMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PlaneMesh > for QuadMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::PrimitiveMesh > for QuadMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for QuadMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for QuadMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for QuadMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for QuadMesh { + + } + impl crate::obj::cap::GodotDefault for QuadMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for QuadMesh { + type Target = crate::classes::PlaneMesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for QuadMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`QuadMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_QuadMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::QuadMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PlaneMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PrimitiveMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/quad_occluder_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/quad_occluder_3d.rs new file mode 100644 index 0000000..949f123 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/quad_occluder_3d.rs @@ -0,0 +1,224 @@ +#![doc = "Sidecar module for class [`QuadOccluder3D`][crate::classes::QuadOccluder3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `QuadOccluder3D` enums](https://docs.godotengine.org/en/stable/classes/class_quadoccluder3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `QuadOccluder3D.`\n\nInherits [`Occluder3D`][crate::classes::Occluder3D].\n\nRelated symbols:\n\n* [`IQuadOccluder3D`][crate::classes::IQuadOccluder3D]: virtual methods\n\n\nSee also [Godot docs for `QuadOccluder3D`](https://docs.godotengine.org/en/stable/classes/class_quadoccluder3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`QuadOccluder3D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct QuadOccluder3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`QuadOccluder3D`][crate::classes::QuadOccluder3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `QuadOccluder3D` methods](https://docs.godotengine.org/en/stable/classes/class_quadoccluder3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IQuadOccluder3D: crate::obj::GodotClass < Base = QuadOccluder3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl QuadOccluder3D { + pub fn set_size(&mut self, size: Vector2,) { + type CallSig = ((), Vector2); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6571usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "QuadOccluder3D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6572usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "QuadOccluder3D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for QuadOccluder3D { + type Base = crate::classes::Occluder3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"QuadOccluder3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for QuadOccluder3D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Occluder3D > for QuadOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for QuadOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for QuadOccluder3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for QuadOccluder3D { + + } + impl crate::obj::cap::GodotDefault for QuadOccluder3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for QuadOccluder3D { + type Target = crate::classes::Occluder3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for QuadOccluder3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`QuadOccluder3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_QuadOccluder3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::QuadOccluder3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Occluder3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/random_number_generator.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/random_number_generator.rs new file mode 100644 index 0000000..2cc1233 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/random_number_generator.rs @@ -0,0 +1,325 @@ +#![doc = "Sidecar module for class [`RandomNumberGenerator`][crate::classes::RandomNumberGenerator].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RandomNumberGenerator` enums](https://docs.godotengine.org/en/stable/classes/class_randomnumbergenerator.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RandomNumberGenerator.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`random_number_generator`][crate::classes::random_number_generator]: sidecar module with related enum/flag types\n* [`IRandomNumberGenerator`][crate::classes::IRandomNumberGenerator]: virtual methods\n\n\nSee also [Godot docs for `RandomNumberGenerator`](https://docs.godotengine.org/en/stable/classes/class_randomnumbergenerator.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RandomNumberGenerator::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RandomNumberGenerator { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RandomNumberGenerator`][crate::classes::RandomNumberGenerator].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RandomNumberGenerator` methods](https://docs.godotengine.org/en/stable/classes/class_randomnumbergenerator.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRandomNumberGenerator: crate::obj::GodotClass < Base = RandomNumberGenerator > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RandomNumberGenerator { + pub fn set_seed(&mut self, seed: u64,) { + type CallSig = ((), u64); + let args = (seed,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6790usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RandomNumberGenerator", "set_seed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_seed(&mut self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6791usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RandomNumberGenerator", "get_seed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_state(&mut self, state: u64,) { + type CallSig = ((), u64); + let args = (state,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6792usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RandomNumberGenerator", "set_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_state(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6793usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RandomNumberGenerator", "get_state", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn randi(&mut self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6794usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RandomNumberGenerator", "randi", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn randf(&mut self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6795usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RandomNumberGenerator", "randf", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn randfn_full(&mut self, mean: f32, deviation: f32,) -> f32 { + type CallSig = (f32, f32, f32); + let args = (mean, deviation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6796usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RandomNumberGenerator", "randfn", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::randfn_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn randfn(&mut self,) -> f32 { + self.randfn_ex() . done() + } + #[inline] + pub fn randfn_ex < 'a > (&'a mut self,) -> ExRandfn < 'a > { + ExRandfn::new(self,) + } + pub fn randf_range(&mut self, from: f32, to: f32,) -> f32 { + type CallSig = (f32, f32, f32); + let args = (from, to,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6797usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RandomNumberGenerator", "randf_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn randi_range(&mut self, from: i32, to: i32,) -> i32 { + type CallSig = (i32, i32, i32); + let args = (from, to,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6798usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RandomNumberGenerator", "randi_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rand_weighted(&mut self, weights: &PackedFloat32Array,) -> i64 { + type CallSig < 'a0, > = (i64, RefArg < 'a0, PackedFloat32Array >); + let args = (RefArg::new(weights),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6799usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RandomNumberGenerator", "rand_weighted", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn randomize(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6800usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RandomNumberGenerator", "randomize", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RandomNumberGenerator { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RandomNumberGenerator")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RandomNumberGenerator { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RandomNumberGenerator { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RandomNumberGenerator { + + } + impl crate::obj::cap::GodotDefault for RandomNumberGenerator { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RandomNumberGenerator { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RandomNumberGenerator { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RandomNumberGenerator`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RandomNumberGenerator { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RandomNumberGenerator > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`RandomNumberGenerator::randfn_ex`][super::RandomNumberGenerator::randfn_ex]."] +#[must_use] +pub struct ExRandfn < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RandomNumberGenerator, mean: f32, deviation: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExRandfn < 'a > { + fn new(surround_object: &'a mut re_export::RandomNumberGenerator,) -> Self { + let mean = 0f32; + let deviation = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, mean: mean, deviation: deviation, + } + } + #[inline] + pub fn mean(self, mean: f32) -> Self { + Self { + mean: mean, .. self + } + } + #[inline] + pub fn deviation(self, deviation: f32) -> Self { + Self { + deviation: deviation, .. self + } + } + #[inline] + pub fn done(self) -> f32 { + let Self { + _phantom, surround_object, mean, deviation, + } + = self; + re_export::RandomNumberGenerator::randfn_full(surround_object, mean, deviation,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/range.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/range.rs new file mode 100644 index 0000000..ee68d1e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/range.rs @@ -0,0 +1,452 @@ +#![doc = "Sidecar module for class [`Range`][crate::classes::Range].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Range` enums](https://docs.godotengine.org/en/stable/classes/class_range.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Range.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`IRange`][crate::classes::IRange]: virtual methods\n\n\nSee also [Godot docs for `Range`](https://docs.godotengine.org/en/stable/classes/class_range.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`Range::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct Range { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Range`][crate::classes::Range].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Range` methods](https://docs.godotengine.org/en/stable/classes/class_range.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRange: crate::obj::GodotClass < Base = Range > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn value_changed(&mut self, new_value: f64,) { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl Range { + pub fn get_value(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6801usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "get_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_min(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6802usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "get_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6803usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "get_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_step(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6804usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "get_step", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_page(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6805usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "get_page", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_as_ratio(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6806usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "get_as_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_value(&mut self, value: f64,) { + type CallSig = ((), f64); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6807usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "set_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_value_no_signal(&mut self, value: f64,) { + type CallSig = ((), f64); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6808usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "set_value_no_signal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_min(&mut self, minimum: f64,) { + type CallSig = ((), f64); + let args = (minimum,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6809usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "set_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max(&mut self, maximum: f64,) { + type CallSig = ((), f64); + let args = (maximum,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6810usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "set_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_step(&mut self, step: f64,) { + type CallSig = ((), f64); + let args = (step,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6811usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "set_step", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_page(&mut self, pagesize: f64,) { + type CallSig = ((), f64); + let args = (pagesize,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6812usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "set_page", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_as_ratio(&mut self, value: f64,) { + type CallSig = ((), f64); + let args = (value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6813usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "set_as_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_rounded_values(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6814usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "set_use_rounded_values", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_rounded_values(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6815usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "is_using_rounded_values", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exp_ratio(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6816usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "set_exp_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_ratio_exp(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6817usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "is_ratio_exp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_greater(&mut self, allow: bool,) { + type CallSig = ((), bool); + let args = (allow,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6818usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "set_allow_greater", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_greater_allowed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6819usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "is_greater_allowed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_lesser(&mut self, allow: bool,) { + type CallSig = ((), bool); + let args = (allow,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6820usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "set_allow_lesser", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_lesser_allowed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6821usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "is_lesser_allowed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn share(&mut self, with: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (with.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6822usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "share", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unshare(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6823usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Range", "unshare", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Range { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Range")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Range { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for Range { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for Range { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for Range { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Range { + + } + impl crate::obj::cap::GodotDefault for Range { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Range { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Range { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Range`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Range { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Range > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ray_cast_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ray_cast_2d.rs new file mode 100644 index 0000000..36bba36 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ray_cast_2d.rs @@ -0,0 +1,462 @@ +#![doc = "Sidecar module for class [`RayCast2D`][crate::classes::RayCast2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RayCast2D` enums](https://docs.godotengine.org/en/stable/classes/class_raycast2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RayCast2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IRayCast2D`][crate::classes::IRayCast2D]: virtual methods\n\n\nSee also [Godot docs for `RayCast2D`](https://docs.godotengine.org/en/stable/classes/class_raycast2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RayCast2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RayCast2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RayCast2D`][crate::classes::RayCast2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RayCast2D` methods](https://docs.godotengine.org/en/stable/classes/class_raycast2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRayCast2D: crate::obj::GodotClass < Base = RayCast2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl RayCast2D { + pub fn set_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6824usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "set_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6825usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "is_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_target_position(&mut self, local_point: Vector2,) { + type CallSig = ((), Vector2); + let args = (local_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6826usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "set_target_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_target_position(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6827usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "get_target_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_colliding(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6828usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "is_colliding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_raycast_update(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6829usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "force_raycast_update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider(&self,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6830usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "get_collider", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6831usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "get_collider_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_shape(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6832usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "get_collider_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_point(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6833usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "get_collision_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_normal(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6834usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "get_collision_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_exception_rid(&mut self, rid: Rid,) { + type CallSig = ((), Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6835usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "add_exception_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_exception(&mut self, node: impl AsObjectArg < crate::classes::CollisionObject2D >,) { + type CallSig = ((), ObjectArg < crate::classes::CollisionObject2D >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6836usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "add_exception", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_exception_rid(&mut self, rid: Rid,) { + type CallSig = ((), Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6837usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "remove_exception_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_exception(&mut self, node: impl AsObjectArg < crate::classes::CollisionObject2D >,) { + type CallSig = ((), ObjectArg < crate::classes::CollisionObject2D >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6838usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "remove_exception", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_exceptions(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6839usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "clear_exceptions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6840usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6841usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6842usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "set_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6843usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "get_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude_parent_body(&mut self, mask: bool,) { + type CallSig = ((), bool); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6844usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "set_exclude_parent_body", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude_parent_body(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6845usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "get_exclude_parent_body", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_areas(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6846usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "set_collide_with_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_areas_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6847usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "is_collide_with_areas_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_bodies(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6848usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "set_collide_with_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_bodies_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6849usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "is_collide_with_bodies_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hit_from_inside(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6850usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "set_hit_from_inside", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hit_from_inside_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6851usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast2D", "is_hit_from_inside_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RayCast2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RayCast2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RayCast2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for RayCast2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for RayCast2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for RayCast2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RayCast2D { + + } + impl crate::obj::cap::GodotDefault for RayCast2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RayCast2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RayCast2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RayCast2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RayCast2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RayCast2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ray_cast_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ray_cast_3d.rs new file mode 100644 index 0000000..2a74ae2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ray_cast_3d.rs @@ -0,0 +1,509 @@ +#![doc = "Sidecar module for class [`RayCast3D`][crate::classes::RayCast3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RayCast3D` enums](https://docs.godotengine.org/en/stable/classes/class_raycast3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RayCast3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`IRayCast3D`][crate::classes::IRayCast3D]: virtual methods\n\n\nSee also [Godot docs for `RayCast3D`](https://docs.godotengine.org/en/stable/classes/class_raycast3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RayCast3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RayCast3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RayCast3D`][crate::classes::RayCast3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RayCast3D` methods](https://docs.godotengine.org/en/stable/classes/class_raycast3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRayCast3D: crate::obj::GodotClass < Base = RayCast3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl RayCast3D { + pub fn set_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6852usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "set_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6853usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "is_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_target_position(&mut self, local_point: Vector3,) { + type CallSig = ((), Vector3); + let args = (local_point,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6854usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "set_target_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_target_position(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6855usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_target_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_colliding(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6856usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "is_colliding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_raycast_update(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6857usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "force_raycast_update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider(&self,) -> Option < Gd < crate::classes::Object > > { + type CallSig = (Option < Gd < crate::classes::Object > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6858usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_collider", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6859usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_collider_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collider_shape(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6860usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_collider_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_point(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6861usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_collision_point", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_normal(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6862usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_collision_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_face_index(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6863usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_collision_face_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_exception_rid(&mut self, rid: Rid,) { + type CallSig = ((), Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6864usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "add_exception_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_exception(&mut self, node: impl AsObjectArg < crate::classes::CollisionObject3D >,) { + type CallSig = ((), ObjectArg < crate::classes::CollisionObject3D >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6865usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "add_exception", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_exception_rid(&mut self, rid: Rid,) { + type CallSig = ((), Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6866usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "remove_exception_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_exception(&mut self, node: impl AsObjectArg < crate::classes::CollisionObject3D >,) { + type CallSig = ((), ObjectArg < crate::classes::CollisionObject3D >); + let args = (node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6867usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "remove_exception", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_exceptions(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6868usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "clear_exceptions", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask(&mut self, mask: u32,) { + type CallSig = ((), u32); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6869usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "set_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6870usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_collision_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collision_mask_value(&mut self, layer_number: i32, value: bool,) { + type CallSig = ((), i32, bool); + let args = (layer_number, value,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6871usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "set_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_collision_mask_value(&self, layer_number: i32,) -> bool { + type CallSig = (bool, i32); + let args = (layer_number,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6872usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_collision_mask_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_exclude_parent_body(&mut self, mask: bool,) { + type CallSig = ((), bool); + let args = (mask,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6873usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "set_exclude_parent_body", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_exclude_parent_body(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6874usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_exclude_parent_body", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_areas(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6875usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "set_collide_with_areas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_areas_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6876usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "is_collide_with_areas_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_collide_with_bodies(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6877usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "set_collide_with_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_collide_with_bodies_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6878usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "is_collide_with_bodies_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hit_from_inside(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6879usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "set_hit_from_inside", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hit_from_inside_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6880usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "is_hit_from_inside_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hit_back_faces(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6881usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "set_hit_back_faces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hit_back_faces_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6882usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "is_hit_back_faces_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_debug_shape_custom_color(&mut self, debug_shape_custom_color: Color,) { + type CallSig = ((), Color); + let args = (debug_shape_custom_color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6883usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "set_debug_shape_custom_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_debug_shape_custom_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6884usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_debug_shape_custom_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_debug_shape_thickness(&mut self, debug_shape_thickness: i32,) { + type CallSig = ((), i32); + let args = (debug_shape_thickness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6885usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "set_debug_shape_thickness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_debug_shape_thickness(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6886usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RayCast3D", "get_debug_shape_thickness", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RayCast3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RayCast3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RayCast3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for RayCast3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for RayCast3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RayCast3D { + + } + impl crate::obj::cap::GodotDefault for RayCast3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RayCast3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RayCast3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RayCast3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RayCast3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RayCast3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_attachment_format.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_attachment_format.rs new file mode 100644 index 0000000..09173ce --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_attachment_format.rs @@ -0,0 +1,241 @@ +#![doc = "Sidecar module for class [`RdAttachmentFormat`][crate::classes::RdAttachmentFormat].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDAttachmentFormat` enums](https://docs.godotengine.org/en/stable/classes/class_rdattachmentformat.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDAttachmentFormat.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdAttachmentFormat`][crate::classes::IRdAttachmentFormat]: virtual methods\n\n\nSee also [Godot docs for `RDAttachmentFormat`](https://docs.godotengine.org/en/stable/classes/class_rdattachmentformat.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdAttachmentFormat::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdAttachmentFormat { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdAttachmentFormat`][crate::classes::RdAttachmentFormat].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDAttachmentFormat` methods](https://docs.godotengine.org/en/stable/classes/class_rdattachmentformat.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdAttachmentFormat: crate::obj::GodotClass < Base = RdAttachmentFormat > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdAttachmentFormat { + pub fn set_format(&mut self, p_member: crate::classes::rendering_device::DataFormat,) { + type CallSig = ((), crate::classes::rendering_device::DataFormat); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6573usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdAttachmentFormat", "set_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_format(&self,) -> crate::classes::rendering_device::DataFormat { + type CallSig = (crate::classes::rendering_device::DataFormat,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6574usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdAttachmentFormat", "get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_samples(&mut self, p_member: crate::classes::rendering_device::TextureSamples,) { + type CallSig = ((), crate::classes::rendering_device::TextureSamples); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6575usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdAttachmentFormat", "set_samples", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_samples(&self,) -> crate::classes::rendering_device::TextureSamples { + type CallSig = (crate::classes::rendering_device::TextureSamples,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6576usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdAttachmentFormat", "get_samples", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_usage_flags(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6577usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdAttachmentFormat", "set_usage_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_usage_flags(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6578usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdAttachmentFormat", "get_usage_flags", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdAttachmentFormat { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDAttachmentFormat")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdAttachmentFormat { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdAttachmentFormat { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdAttachmentFormat { + + } + impl crate::obj::cap::GodotDefault for RdAttachmentFormat { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdAttachmentFormat { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdAttachmentFormat { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdAttachmentFormat`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdAttachmentFormat { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdAttachmentFormat > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_framebuffer_pass.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_framebuffer_pass.rs new file mode 100644 index 0000000..7a33f67 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_framebuffer_pass.rs @@ -0,0 +1,275 @@ +#![doc = "Sidecar module for class [`RdFramebufferPass`][crate::classes::RdFramebufferPass].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDFramebufferPass` enums](https://docs.godotengine.org/en/stable/classes/class_rdframebufferpass.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDFramebufferPass.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdFramebufferPass`][crate::classes::IRdFramebufferPass]: virtual methods\n\n\nSee also [Godot docs for `RDFramebufferPass`](https://docs.godotengine.org/en/stable/classes/class_rdframebufferpass.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdFramebufferPass::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdFramebufferPass { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdFramebufferPass`][crate::classes::RdFramebufferPass].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDFramebufferPass` methods](https://docs.godotengine.org/en/stable/classes/class_rdframebufferpass.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdFramebufferPass: crate::obj::GodotClass < Base = RdFramebufferPass > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdFramebufferPass { + pub fn set_color_attachments(&mut self, p_member: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(p_member),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6579usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdFramebufferPass", "set_color_attachments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_attachments(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6580usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdFramebufferPass", "get_color_attachments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_input_attachments(&mut self, p_member: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(p_member),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6581usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdFramebufferPass", "set_input_attachments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_input_attachments(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6582usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdFramebufferPass", "get_input_attachments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_resolve_attachments(&mut self, p_member: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(p_member),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6583usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdFramebufferPass", "set_resolve_attachments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_resolve_attachments(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6584usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdFramebufferPass", "get_resolve_attachments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_preserve_attachments(&mut self, p_member: &PackedInt32Array,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, PackedInt32Array >); + let args = (RefArg::new(p_member),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6585usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdFramebufferPass", "set_preserve_attachments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_preserve_attachments(&self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6586usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdFramebufferPass", "get_preserve_attachments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth_attachment(&mut self, p_member: i32,) { + type CallSig = ((), i32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6587usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdFramebufferPass", "set_depth_attachment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth_attachment(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6588usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdFramebufferPass", "get_depth_attachment", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const ATTACHMENT_UNUSED: i32 = - 1i32; + + } + impl crate::obj::GodotClass for RdFramebufferPass { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDFramebufferPass")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdFramebufferPass { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdFramebufferPass { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdFramebufferPass { + + } + impl crate::obj::cap::GodotDefault for RdFramebufferPass { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdFramebufferPass { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdFramebufferPass { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdFramebufferPass`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdFramebufferPass { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdFramebufferPass > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_color_blend_state.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_color_blend_state.rs new file mode 100644 index 0000000..8eba588 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_color_blend_state.rs @@ -0,0 +1,257 @@ +#![doc = "Sidecar module for class [`RdPipelineColorBlendState`][crate::classes::RdPipelineColorBlendState].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDPipelineColorBlendState` enums](https://docs.godotengine.org/en/stable/classes/class_rdpipelinecolorblendstate.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDPipelineColorBlendState.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdPipelineColorBlendState`][crate::classes::IRdPipelineColorBlendState]: virtual methods\n\n\nSee also [Godot docs for `RDPipelineColorBlendState`](https://docs.godotengine.org/en/stable/classes/class_rdpipelinecolorblendstate.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdPipelineColorBlendState::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdPipelineColorBlendState { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdPipelineColorBlendState`][crate::classes::RdPipelineColorBlendState].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDPipelineColorBlendState` methods](https://docs.godotengine.org/en/stable/classes/class_rdpipelinecolorblendstate.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdPipelineColorBlendState: crate::obj::GodotClass < Base = RdPipelineColorBlendState > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdPipelineColorBlendState { + pub fn set_enable_logic_op(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6589usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendState", "set_enable_logic_op", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_logic_op(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6590usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendState", "get_enable_logic_op", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_logic_op(&mut self, p_member: crate::classes::rendering_device::LogicOperation,) { + type CallSig = ((), crate::classes::rendering_device::LogicOperation); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6591usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendState", "set_logic_op", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_logic_op(&self,) -> crate::classes::rendering_device::LogicOperation { + type CallSig = (crate::classes::rendering_device::LogicOperation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6592usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendState", "get_logic_op", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_blend_constant(&mut self, p_member: Color,) { + type CallSig = ((), Color); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6593usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendState", "set_blend_constant", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_blend_constant(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6594usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendState", "get_blend_constant", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_attachments(&mut self, attachments: &Array < Gd < crate::classes::RdPipelineColorBlendStateAttachment > >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < Gd < crate::classes::RdPipelineColorBlendStateAttachment > > >); + let args = (RefArg::new(attachments),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6595usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendState", "set_attachments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_attachments(&self,) -> Array < Gd < crate::classes::RdPipelineColorBlendStateAttachment > > { + type CallSig = (Array < Gd < crate::classes::RdPipelineColorBlendStateAttachment > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6596usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendState", "get_attachments", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdPipelineColorBlendState { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDPipelineColorBlendState")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdPipelineColorBlendState { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdPipelineColorBlendState { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdPipelineColorBlendState { + + } + impl crate::obj::cap::GodotDefault for RdPipelineColorBlendState { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdPipelineColorBlendState { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdPipelineColorBlendState { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdPipelineColorBlendState`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdPipelineColorBlendState { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdPipelineColorBlendState > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_color_blend_state_attachment.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_color_blend_state_attachment.rs new file mode 100644 index 0000000..2413b34 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_color_blend_state_attachment.rs @@ -0,0 +1,377 @@ +#![doc = "Sidecar module for class [`RdPipelineColorBlendStateAttachment`][crate::classes::RdPipelineColorBlendStateAttachment].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDPipelineColorBlendStateAttachment` enums](https://docs.godotengine.org/en/stable/classes/class_rdpipelinecolorblendstateattachment.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDPipelineColorBlendStateAttachment.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdPipelineColorBlendStateAttachment`][crate::classes::IRdPipelineColorBlendStateAttachment]: virtual methods\n\n\nSee also [Godot docs for `RDPipelineColorBlendStateAttachment`](https://docs.godotengine.org/en/stable/classes/class_rdpipelinecolorblendstateattachment.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdPipelineColorBlendStateAttachment::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdPipelineColorBlendStateAttachment { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdPipelineColorBlendStateAttachment`][crate::classes::RdPipelineColorBlendStateAttachment].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDPipelineColorBlendStateAttachment` methods](https://docs.godotengine.org/en/stable/classes/class_rdpipelinecolorblendstateattachment.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdPipelineColorBlendStateAttachment: crate::obj::GodotClass < Base = RdPipelineColorBlendStateAttachment > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdPipelineColorBlendStateAttachment { + pub fn set_as_mix(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6597usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_as_mix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_blend(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6598usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_enable_blend", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_blend(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6599usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "get_enable_blend", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_src_color_blend_factor(&mut self, p_member: crate::classes::rendering_device::BlendFactor,) { + type CallSig = ((), crate::classes::rendering_device::BlendFactor); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6600usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_src_color_blend_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_src_color_blend_factor(&self,) -> crate::classes::rendering_device::BlendFactor { + type CallSig = (crate::classes::rendering_device::BlendFactor,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6601usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "get_src_color_blend_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dst_color_blend_factor(&mut self, p_member: crate::classes::rendering_device::BlendFactor,) { + type CallSig = ((), crate::classes::rendering_device::BlendFactor); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6602usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_dst_color_blend_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_dst_color_blend_factor(&self,) -> crate::classes::rendering_device::BlendFactor { + type CallSig = (crate::classes::rendering_device::BlendFactor,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6603usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "get_dst_color_blend_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color_blend_op(&mut self, p_member: crate::classes::rendering_device::BlendOperation,) { + type CallSig = ((), crate::classes::rendering_device::BlendOperation); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6604usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_color_blend_op", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color_blend_op(&self,) -> crate::classes::rendering_device::BlendOperation { + type CallSig = (crate::classes::rendering_device::BlendOperation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6605usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "get_color_blend_op", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_src_alpha_blend_factor(&mut self, p_member: crate::classes::rendering_device::BlendFactor,) { + type CallSig = ((), crate::classes::rendering_device::BlendFactor); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6606usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_src_alpha_blend_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_src_alpha_blend_factor(&self,) -> crate::classes::rendering_device::BlendFactor { + type CallSig = (crate::classes::rendering_device::BlendFactor,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6607usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "get_src_alpha_blend_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_dst_alpha_blend_factor(&mut self, p_member: crate::classes::rendering_device::BlendFactor,) { + type CallSig = ((), crate::classes::rendering_device::BlendFactor); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6608usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_dst_alpha_blend_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_dst_alpha_blend_factor(&self,) -> crate::classes::rendering_device::BlendFactor { + type CallSig = (crate::classes::rendering_device::BlendFactor,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6609usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "get_dst_alpha_blend_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_alpha_blend_op(&mut self, p_member: crate::classes::rendering_device::BlendOperation,) { + type CallSig = ((), crate::classes::rendering_device::BlendOperation); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6610usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_alpha_blend_op", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_alpha_blend_op(&self,) -> crate::classes::rendering_device::BlendOperation { + type CallSig = (crate::classes::rendering_device::BlendOperation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6611usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "get_alpha_blend_op", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_write_r(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6612usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_write_r", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_write_r(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6613usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "get_write_r", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_write_g(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6614usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_write_g", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_write_g(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6615usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "get_write_g", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_write_b(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6616usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_write_b", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_write_b(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6617usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "get_write_b", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_write_a(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6618usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "set_write_a", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_write_a(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6619usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineColorBlendStateAttachment", "get_write_a", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdPipelineColorBlendStateAttachment { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDPipelineColorBlendStateAttachment")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdPipelineColorBlendStateAttachment { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdPipelineColorBlendStateAttachment { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdPipelineColorBlendStateAttachment { + + } + impl crate::obj::cap::GodotDefault for RdPipelineColorBlendStateAttachment { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdPipelineColorBlendStateAttachment { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdPipelineColorBlendStateAttachment { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdPipelineColorBlendStateAttachment`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdPipelineColorBlendStateAttachment { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdPipelineColorBlendStateAttachment > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_depth_stencil_state.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_depth_stencil_state.rs new file mode 100644 index 0000000..d78a798 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_depth_stencil_state.rs @@ -0,0 +1,529 @@ +#![doc = "Sidecar module for class [`RdPipelineDepthStencilState`][crate::classes::RdPipelineDepthStencilState].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDPipelineDepthStencilState` enums](https://docs.godotengine.org/en/stable/classes/class_rdpipelinedepthstencilstate.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDPipelineDepthStencilState.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdPipelineDepthStencilState`][crate::classes::IRdPipelineDepthStencilState]: virtual methods\n\n\nSee also [Godot docs for `RDPipelineDepthStencilState`](https://docs.godotengine.org/en/stable/classes/class_rdpipelinedepthstencilstate.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdPipelineDepthStencilState::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdPipelineDepthStencilState { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdPipelineDepthStencilState`][crate::classes::RdPipelineDepthStencilState].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDPipelineDepthStencilState` methods](https://docs.godotengine.org/en/stable/classes/class_rdpipelinedepthstencilstate.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdPipelineDepthStencilState: crate::obj::GodotClass < Base = RdPipelineDepthStencilState > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdPipelineDepthStencilState { + pub fn set_enable_depth_test(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6620usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_enable_depth_test", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_depth_test(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6621usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_enable_depth_test", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_depth_write(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6622usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_enable_depth_write", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_depth_write(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6623usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_enable_depth_write", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth_compare_operator(&mut self, p_member: crate::classes::rendering_device::CompareOperator,) { + type CallSig = ((), crate::classes::rendering_device::CompareOperator); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6624usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_depth_compare_operator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth_compare_operator(&self,) -> crate::classes::rendering_device::CompareOperator { + type CallSig = (crate::classes::rendering_device::CompareOperator,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6625usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_depth_compare_operator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_depth_range(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6626usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_enable_depth_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_depth_range(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6627usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_enable_depth_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth_range_min(&mut self, p_member: f32,) { + type CallSig = ((), f32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6628usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_depth_range_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth_range_min(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6629usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_depth_range_min", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth_range_max(&mut self, p_member: f32,) { + type CallSig = ((), f32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6630usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_depth_range_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth_range_max(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6631usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_depth_range_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_stencil(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6632usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_enable_stencil", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_stencil(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6633usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_enable_stencil", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_front_op_fail(&mut self, p_member: crate::classes::rendering_device::StencilOperation,) { + type CallSig = ((), crate::classes::rendering_device::StencilOperation); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6634usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_front_op_fail", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_front_op_fail(&self,) -> crate::classes::rendering_device::StencilOperation { + type CallSig = (crate::classes::rendering_device::StencilOperation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6635usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_front_op_fail", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_front_op_pass(&mut self, p_member: crate::classes::rendering_device::StencilOperation,) { + type CallSig = ((), crate::classes::rendering_device::StencilOperation); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6636usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_front_op_pass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_front_op_pass(&self,) -> crate::classes::rendering_device::StencilOperation { + type CallSig = (crate::classes::rendering_device::StencilOperation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6637usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_front_op_pass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_front_op_depth_fail(&mut self, p_member: crate::classes::rendering_device::StencilOperation,) { + type CallSig = ((), crate::classes::rendering_device::StencilOperation); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6638usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_front_op_depth_fail", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_front_op_depth_fail(&self,) -> crate::classes::rendering_device::StencilOperation { + type CallSig = (crate::classes::rendering_device::StencilOperation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6639usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_front_op_depth_fail", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_front_op_compare(&mut self, p_member: crate::classes::rendering_device::CompareOperator,) { + type CallSig = ((), crate::classes::rendering_device::CompareOperator); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6640usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_front_op_compare", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_front_op_compare(&self,) -> crate::classes::rendering_device::CompareOperator { + type CallSig = (crate::classes::rendering_device::CompareOperator,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6641usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_front_op_compare", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_front_op_compare_mask(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6642usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_front_op_compare_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_front_op_compare_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6643usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_front_op_compare_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_front_op_write_mask(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6644usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_front_op_write_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_front_op_write_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6645usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_front_op_write_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_front_op_reference(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6646usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_front_op_reference", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_front_op_reference(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6647usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_front_op_reference", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_back_op_fail(&mut self, p_member: crate::classes::rendering_device::StencilOperation,) { + type CallSig = ((), crate::classes::rendering_device::StencilOperation); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6648usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_back_op_fail", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_back_op_fail(&self,) -> crate::classes::rendering_device::StencilOperation { + type CallSig = (crate::classes::rendering_device::StencilOperation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6649usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_back_op_fail", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_back_op_pass(&mut self, p_member: crate::classes::rendering_device::StencilOperation,) { + type CallSig = ((), crate::classes::rendering_device::StencilOperation); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6650usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_back_op_pass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_back_op_pass(&self,) -> crate::classes::rendering_device::StencilOperation { + type CallSig = (crate::classes::rendering_device::StencilOperation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6651usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_back_op_pass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_back_op_depth_fail(&mut self, p_member: crate::classes::rendering_device::StencilOperation,) { + type CallSig = ((), crate::classes::rendering_device::StencilOperation); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6652usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_back_op_depth_fail", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_back_op_depth_fail(&self,) -> crate::classes::rendering_device::StencilOperation { + type CallSig = (crate::classes::rendering_device::StencilOperation,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6653usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_back_op_depth_fail", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_back_op_compare(&mut self, p_member: crate::classes::rendering_device::CompareOperator,) { + type CallSig = ((), crate::classes::rendering_device::CompareOperator); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6654usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_back_op_compare", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_back_op_compare(&self,) -> crate::classes::rendering_device::CompareOperator { + type CallSig = (crate::classes::rendering_device::CompareOperator,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6655usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_back_op_compare", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_back_op_compare_mask(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6656usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_back_op_compare_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_back_op_compare_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6657usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_back_op_compare_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_back_op_write_mask(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6658usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_back_op_write_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_back_op_write_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6659usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_back_op_write_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_back_op_reference(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6660usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "set_back_op_reference", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_back_op_reference(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6661usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineDepthStencilState", "get_back_op_reference", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdPipelineDepthStencilState { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDPipelineDepthStencilState")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdPipelineDepthStencilState { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdPipelineDepthStencilState { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdPipelineDepthStencilState { + + } + impl crate::obj::cap::GodotDefault for RdPipelineDepthStencilState { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdPipelineDepthStencilState { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdPipelineDepthStencilState { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdPipelineDepthStencilState`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdPipelineDepthStencilState { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdPipelineDepthStencilState > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_multisample_state.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_multisample_state.rs new file mode 100644 index 0000000..42fe221 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_multisample_state.rs @@ -0,0 +1,289 @@ +#![doc = "Sidecar module for class [`RdPipelineMultisampleState`][crate::classes::RdPipelineMultisampleState].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDPipelineMultisampleState` enums](https://docs.godotengine.org/en/stable/classes/class_rdpipelinemultisamplestate.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDPipelineMultisampleState.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdPipelineMultisampleState`][crate::classes::IRdPipelineMultisampleState]: virtual methods\n\n\nSee also [Godot docs for `RDPipelineMultisampleState`](https://docs.godotengine.org/en/stable/classes/class_rdpipelinemultisamplestate.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdPipelineMultisampleState::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdPipelineMultisampleState { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdPipelineMultisampleState`][crate::classes::RdPipelineMultisampleState].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDPipelineMultisampleState` methods](https://docs.godotengine.org/en/stable/classes/class_rdpipelinemultisamplestate.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdPipelineMultisampleState: crate::obj::GodotClass < Base = RdPipelineMultisampleState > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdPipelineMultisampleState { + pub fn set_sample_count(&mut self, p_member: crate::classes::rendering_device::TextureSamples,) { + type CallSig = ((), crate::classes::rendering_device::TextureSamples); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6662usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "set_sample_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sample_count(&self,) -> crate::classes::rendering_device::TextureSamples { + type CallSig = (crate::classes::rendering_device::TextureSamples,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6663usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "get_sample_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_sample_shading(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6664usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "set_enable_sample_shading", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_sample_shading(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6665usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "get_enable_sample_shading", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_min_sample_shading(&mut self, p_member: f32,) { + type CallSig = ((), f32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6666usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "set_min_sample_shading", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_min_sample_shading(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6667usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "get_min_sample_shading", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_alpha_to_coverage(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6668usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "set_enable_alpha_to_coverage", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_alpha_to_coverage(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6669usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "get_enable_alpha_to_coverage", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_alpha_to_one(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6670usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "set_enable_alpha_to_one", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_alpha_to_one(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6671usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "get_enable_alpha_to_one", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sample_masks(&mut self, masks: &Array < i64 >,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Array < i64 > >); + let args = (RefArg::new(masks),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6672usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "set_sample_masks", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sample_masks(&self,) -> Array < i64 > { + type CallSig = (Array < i64 >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6673usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineMultisampleState", "get_sample_masks", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdPipelineMultisampleState { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDPipelineMultisampleState")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdPipelineMultisampleState { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdPipelineMultisampleState { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdPipelineMultisampleState { + + } + impl crate::obj::cap::GodotDefault for RdPipelineMultisampleState { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdPipelineMultisampleState { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdPipelineMultisampleState { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdPipelineMultisampleState`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdPipelineMultisampleState { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdPipelineMultisampleState > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_rasterization_state.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_rasterization_state.rs new file mode 100644 index 0000000..0a2a8b2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_rasterization_state.rs @@ -0,0 +1,369 @@ +#![doc = "Sidecar module for class [`RdPipelineRasterizationState`][crate::classes::RdPipelineRasterizationState].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDPipelineRasterizationState` enums](https://docs.godotengine.org/en/stable/classes/class_rdpipelinerasterizationstate.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDPipelineRasterizationState.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdPipelineRasterizationState`][crate::classes::IRdPipelineRasterizationState]: virtual methods\n\n\nSee also [Godot docs for `RDPipelineRasterizationState`](https://docs.godotengine.org/en/stable/classes/class_rdpipelinerasterizationstate.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdPipelineRasterizationState::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdPipelineRasterizationState { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdPipelineRasterizationState`][crate::classes::RdPipelineRasterizationState].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDPipelineRasterizationState` methods](https://docs.godotengine.org/en/stable/classes/class_rdpipelinerasterizationstate.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdPipelineRasterizationState: crate::obj::GodotClass < Base = RdPipelineRasterizationState > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdPipelineRasterizationState { + pub fn set_enable_depth_clamp(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6674usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "set_enable_depth_clamp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_depth_clamp(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6675usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "get_enable_depth_clamp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_discard_primitives(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6676usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "set_discard_primitives", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_discard_primitives(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6677usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "get_discard_primitives", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_wireframe(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6678usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "set_wireframe", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_wireframe(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6679usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "get_wireframe", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cull_mode(&mut self, p_member: crate::classes::rendering_device::PolygonCullMode,) { + type CallSig = ((), crate::classes::rendering_device::PolygonCullMode); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6680usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "set_cull_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cull_mode(&self,) -> crate::classes::rendering_device::PolygonCullMode { + type CallSig = (crate::classes::rendering_device::PolygonCullMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6681usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "get_cull_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_front_face(&mut self, p_member: crate::classes::rendering_device::PolygonFrontFace,) { + type CallSig = ((), crate::classes::rendering_device::PolygonFrontFace); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6682usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "set_front_face", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_front_face(&self,) -> crate::classes::rendering_device::PolygonFrontFace { + type CallSig = (crate::classes::rendering_device::PolygonFrontFace,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6683usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "get_front_face", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth_bias_enabled(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6684usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "set_depth_bias_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth_bias_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6685usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "get_depth_bias_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth_bias_constant_factor(&mut self, p_member: f32,) { + type CallSig = ((), f32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6686usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "set_depth_bias_constant_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth_bias_constant_factor(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6687usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "get_depth_bias_constant_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth_bias_clamp(&mut self, p_member: f32,) { + type CallSig = ((), f32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6688usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "set_depth_bias_clamp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth_bias_clamp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6689usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "get_depth_bias_clamp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth_bias_slope_factor(&mut self, p_member: f32,) { + type CallSig = ((), f32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6690usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "set_depth_bias_slope_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth_bias_slope_factor(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6691usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "get_depth_bias_slope_factor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_line_width(&mut self, p_member: f32,) { + type CallSig = ((), f32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6692usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "set_line_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_line_width(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6693usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "get_line_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_patch_control_points(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6694usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "set_patch_control_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_patch_control_points(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6695usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineRasterizationState", "get_patch_control_points", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdPipelineRasterizationState { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDPipelineRasterizationState")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdPipelineRasterizationState { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdPipelineRasterizationState { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdPipelineRasterizationState { + + } + impl crate::obj::cap::GodotDefault for RdPipelineRasterizationState { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdPipelineRasterizationState { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdPipelineRasterizationState { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdPipelineRasterizationState`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdPipelineRasterizationState { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdPipelineRasterizationState > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_specialization_constant.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_specialization_constant.rs new file mode 100644 index 0000000..8ddccf2 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_pipeline_specialization_constant.rs @@ -0,0 +1,225 @@ +#![doc = "Sidecar module for class [`RdPipelineSpecializationConstant`][crate::classes::RdPipelineSpecializationConstant].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDPipelineSpecializationConstant` enums](https://docs.godotengine.org/en/stable/classes/class_rdpipelinespecializationconstant.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDPipelineSpecializationConstant.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdPipelineSpecializationConstant`][crate::classes::IRdPipelineSpecializationConstant]: virtual methods\n\n\nSee also [Godot docs for `RDPipelineSpecializationConstant`](https://docs.godotengine.org/en/stable/classes/class_rdpipelinespecializationconstant.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdPipelineSpecializationConstant::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdPipelineSpecializationConstant { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdPipelineSpecializationConstant`][crate::classes::RdPipelineSpecializationConstant].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDPipelineSpecializationConstant` methods](https://docs.godotengine.org/en/stable/classes/class_rdpipelinespecializationconstant.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdPipelineSpecializationConstant: crate::obj::GodotClass < Base = RdPipelineSpecializationConstant > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdPipelineSpecializationConstant { + pub fn set_value(&mut self, value: &Variant,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >); + let args = (RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6696usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineSpecializationConstant", "set_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_value(&self,) -> Variant { + type CallSig = (Variant,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6697usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineSpecializationConstant", "get_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_constant_id(&mut self, constant_id: u32,) { + type CallSig = ((), u32); + let args = (constant_id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6698usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineSpecializationConstant", "set_constant_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_constant_id(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6699usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdPipelineSpecializationConstant", "get_constant_id", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdPipelineSpecializationConstant { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDPipelineSpecializationConstant")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdPipelineSpecializationConstant { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdPipelineSpecializationConstant { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdPipelineSpecializationConstant { + + } + impl crate::obj::cap::GodotDefault for RdPipelineSpecializationConstant { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdPipelineSpecializationConstant { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdPipelineSpecializationConstant { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdPipelineSpecializationConstant`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdPipelineSpecializationConstant { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdPipelineSpecializationConstant > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_sampler_state.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_sampler_state.rs new file mode 100644 index 0000000..c36fc2f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_sampler_state.rs @@ -0,0 +1,433 @@ +#![doc = "Sidecar module for class [`RdSamplerState`][crate::classes::RdSamplerState].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDSamplerState` enums](https://docs.godotengine.org/en/stable/classes/class_rdsamplerstate.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDSamplerState.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdSamplerState`][crate::classes::IRdSamplerState]: virtual methods\n\n\nSee also [Godot docs for `RDSamplerState`](https://docs.godotengine.org/en/stable/classes/class_rdsamplerstate.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdSamplerState::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdSamplerState { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdSamplerState`][crate::classes::RdSamplerState].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDSamplerState` methods](https://docs.godotengine.org/en/stable/classes/class_rdsamplerstate.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdSamplerState: crate::obj::GodotClass < Base = RdSamplerState > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdSamplerState { + pub fn set_mag_filter(&mut self, p_member: crate::classes::rendering_device::SamplerFilter,) { + type CallSig = ((), crate::classes::rendering_device::SamplerFilter); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6700usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_mag_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mag_filter(&self,) -> crate::classes::rendering_device::SamplerFilter { + type CallSig = (crate::classes::rendering_device::SamplerFilter,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6701usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_mag_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_min_filter(&mut self, p_member: crate::classes::rendering_device::SamplerFilter,) { + type CallSig = ((), crate::classes::rendering_device::SamplerFilter); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6702usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_min_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_min_filter(&self,) -> crate::classes::rendering_device::SamplerFilter { + type CallSig = (crate::classes::rendering_device::SamplerFilter,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6703usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_min_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mip_filter(&mut self, p_member: crate::classes::rendering_device::SamplerFilter,) { + type CallSig = ((), crate::classes::rendering_device::SamplerFilter); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6704usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_mip_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mip_filter(&self,) -> crate::classes::rendering_device::SamplerFilter { + type CallSig = (crate::classes::rendering_device::SamplerFilter,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6705usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_mip_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_repeat_u(&mut self, p_member: crate::classes::rendering_device::SamplerRepeatMode,) { + type CallSig = ((), crate::classes::rendering_device::SamplerRepeatMode); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6706usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_repeat_u", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_repeat_u(&self,) -> crate::classes::rendering_device::SamplerRepeatMode { + type CallSig = (crate::classes::rendering_device::SamplerRepeatMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6707usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_repeat_u", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_repeat_v(&mut self, p_member: crate::classes::rendering_device::SamplerRepeatMode,) { + type CallSig = ((), crate::classes::rendering_device::SamplerRepeatMode); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6708usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_repeat_v", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_repeat_v(&self,) -> crate::classes::rendering_device::SamplerRepeatMode { + type CallSig = (crate::classes::rendering_device::SamplerRepeatMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6709usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_repeat_v", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_repeat_w(&mut self, p_member: crate::classes::rendering_device::SamplerRepeatMode,) { + type CallSig = ((), crate::classes::rendering_device::SamplerRepeatMode); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6710usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_repeat_w", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_repeat_w(&self,) -> crate::classes::rendering_device::SamplerRepeatMode { + type CallSig = (crate::classes::rendering_device::SamplerRepeatMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6711usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_repeat_w", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lod_bias(&mut self, p_member: f32,) { + type CallSig = ((), f32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6712usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_lod_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_lod_bias(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6713usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_lod_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_anisotropy(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6714usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_use_anisotropy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_anisotropy(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6715usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_use_anisotropy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_anisotropy_max(&mut self, p_member: f32,) { + type CallSig = ((), f32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6716usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_anisotropy_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_anisotropy_max(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6717usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_anisotropy_max", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_compare(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6718usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_enable_compare", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_enable_compare(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6719usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_enable_compare", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_compare_op(&mut self, p_member: crate::classes::rendering_device::CompareOperator,) { + type CallSig = ((), crate::classes::rendering_device::CompareOperator); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6720usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_compare_op", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_compare_op(&self,) -> crate::classes::rendering_device::CompareOperator { + type CallSig = (crate::classes::rendering_device::CompareOperator,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6721usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_compare_op", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_min_lod(&mut self, p_member: f32,) { + type CallSig = ((), f32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6722usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_min_lod", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_min_lod(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6723usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_min_lod", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_lod(&mut self, p_member: f32,) { + type CallSig = ((), f32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6724usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_max_lod", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_lod(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6725usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_max_lod", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_border_color(&mut self, p_member: crate::classes::rendering_device::SamplerBorderColor,) { + type CallSig = ((), crate::classes::rendering_device::SamplerBorderColor); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6726usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_border_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_border_color(&self,) -> crate::classes::rendering_device::SamplerBorderColor { + type CallSig = (crate::classes::rendering_device::SamplerBorderColor,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6727usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_border_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_unnormalized_uvw(&mut self, p_member: bool,) { + type CallSig = ((), bool); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6728usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "set_unnormalized_uvw", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_unnormalized_uvw(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6729usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdSamplerState", "get_unnormalized_uvw", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdSamplerState { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDSamplerState")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdSamplerState { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdSamplerState { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdSamplerState { + + } + impl crate::obj::cap::GodotDefault for RdSamplerState { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdSamplerState { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdSamplerState { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdSamplerState`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdSamplerState { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdSamplerState > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_shader_file.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_shader_file.rs new file mode 100644 index 0000000..15d604f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_shader_file.rs @@ -0,0 +1,316 @@ +#![doc = "Sidecar module for class [`RdShaderFile`][crate::classes::RdShaderFile].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDShaderFile` enums](https://docs.godotengine.org/en/stable/classes/class_rdshaderfile.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDShaderFile.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`rd_shader_file`][crate::classes::rd_shader_file]: sidecar module with related enum/flag types\n* [`IRdShaderFile`][crate::classes::IRdShaderFile]: virtual methods\n\n\nSee also [Godot docs for `RDShaderFile`](https://docs.godotengine.org/en/stable/classes/class_rdshaderfile.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdShaderFile::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdShaderFile { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdShaderFile`][crate::classes::RdShaderFile].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDShaderFile` methods](https://docs.godotengine.org/en/stable/classes/class_rdshaderfile.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdShaderFile: crate::obj::GodotClass < Base = RdShaderFile > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl RdShaderFile { + pub(crate) fn set_bytecode_full(&mut self, bytecode: ObjectArg < crate::classes::RdShaderSpirv >, version: CowArg < StringName >,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::RdShaderSpirv >, CowArg < 'a0, StringName >); + let args = (bytecode, version,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6730usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderFile", "set_bytecode", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_bytecode_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_bytecode(&mut self, bytecode: impl AsObjectArg < crate::classes::RdShaderSpirv >,) { + self.set_bytecode_ex(bytecode,) . done() + } + #[inline] + pub fn set_bytecode_ex < 'a > (&'a mut self, bytecode: impl AsObjectArg < crate::classes::RdShaderSpirv >,) -> ExSetBytecode < 'a > { + ExSetBytecode::new(self, bytecode,) + } + pub(crate) fn get_spirv_full(&self, version: CowArg < StringName >,) -> Option < Gd < crate::classes::RdShaderSpirv > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::RdShaderSpirv > >, CowArg < 'a0, StringName >); + let args = (version,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6731usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderFile", "get_spirv", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_spirv_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_spirv(&self,) -> Option < Gd < crate::classes::RdShaderSpirv > > { + self.get_spirv_ex() . done() + } + #[inline] + pub fn get_spirv_ex < 'a > (&'a self,) -> ExGetSpirv < 'a > { + ExGetSpirv::new(self,) + } + pub fn get_version_list(&self,) -> Array < StringName > { + type CallSig = (Array < StringName >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6732usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderFile", "get_version_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_base_error(&mut self, error: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (error.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6733usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderFile", "set_base_error", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_base_error(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6734usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderFile", "get_base_error", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdShaderFile { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDShaderFile")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdShaderFile { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for RdShaderFile { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdShaderFile { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdShaderFile { + + } + impl crate::obj::cap::GodotDefault for RdShaderFile { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdShaderFile { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdShaderFile { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdShaderFile`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdShaderFile { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdShaderFile > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`RdShaderFile::set_bytecode_ex`][super::RdShaderFile::set_bytecode_ex]."] +#[must_use] +pub struct ExSetBytecode < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RdShaderFile, bytecode: ObjectCow < crate::classes::RdShaderSpirv >, version: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetBytecode < 'a > { + fn new(surround_object: &'a mut re_export::RdShaderFile, bytecode: impl AsObjectArg < crate::classes::RdShaderSpirv >,) -> Self { + let version = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, bytecode: bytecode.consume_arg(), version: CowArg::Owned(version), + } + } + #[inline] + pub fn version(self, version: impl AsArg < StringName > + 'a) -> Self { + Self { + version: version.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, bytecode, version, + } + = self; + re_export::RdShaderFile::set_bytecode_full(surround_object, bytecode.cow_as_object_arg(), version,) + } +} +#[doc = "Default-param extender for [`RdShaderFile::get_spirv_ex`][super::RdShaderFile::get_spirv_ex]."] +#[must_use] +pub struct ExGetSpirv < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RdShaderFile, version: CowArg < 'a, StringName >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetSpirv < 'a > { + fn new(surround_object: &'a re_export::RdShaderFile,) -> Self { + let version = StringName::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, version: CowArg::Owned(version), + } + } + #[inline] + pub fn version(self, version: impl AsArg < StringName > + 'a) -> Self { + Self { + version: version.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::RdShaderSpirv > > { + let Self { + _phantom, surround_object, version, + } + = self; + re_export::RdShaderFile::get_spirv_full(surround_object, version,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_shader_source.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_shader_source.rs new file mode 100644 index 0000000..64f2ce8 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_shader_source.rs @@ -0,0 +1,225 @@ +#![doc = "Sidecar module for class [`RdShaderSource`][crate::classes::RdShaderSource].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDShaderSource` enums](https://docs.godotengine.org/en/stable/classes/class_rdshadersource.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDShaderSource.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdShaderSource`][crate::classes::IRdShaderSource]: virtual methods\n\n\nSee also [Godot docs for `RDShaderSource`](https://docs.godotengine.org/en/stable/classes/class_rdshadersource.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdShaderSource::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdShaderSource { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdShaderSource`][crate::classes::RdShaderSource].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDShaderSource` methods](https://docs.godotengine.org/en/stable/classes/class_rdshadersource.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdShaderSource: crate::obj::GodotClass < Base = RdShaderSource > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdShaderSource { + pub fn set_stage_source(&mut self, stage: crate::classes::rendering_device::ShaderStage, source: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), crate::classes::rendering_device::ShaderStage, CowArg < 'a0, GString >); + let args = (stage, source.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6739usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderSource", "set_stage_source", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stage_source(&self, stage: crate::classes::rendering_device::ShaderStage,) -> GString { + type CallSig = (GString, crate::classes::rendering_device::ShaderStage); + let args = (stage,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6740usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderSource", "get_stage_source", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_language(&mut self, language: crate::classes::rendering_device::ShaderLanguage,) { + type CallSig = ((), crate::classes::rendering_device::ShaderLanguage); + let args = (language,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6741usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderSource", "set_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_language(&self,) -> crate::classes::rendering_device::ShaderLanguage { + type CallSig = (crate::classes::rendering_device::ShaderLanguage,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6742usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderSource", "get_language", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdShaderSource { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDShaderSource")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdShaderSource { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdShaderSource { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdShaderSource { + + } + impl crate::obj::cap::GodotDefault for RdShaderSource { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdShaderSource { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdShaderSource { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdShaderSource`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdShaderSource { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdShaderSource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_shader_spirv.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_shader_spirv.rs new file mode 100644 index 0000000..a4e7675 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_shader_spirv.rs @@ -0,0 +1,234 @@ +#![doc = "Sidecar module for class [`RdShaderSpirv`][crate::classes::RdShaderSpirv].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDShaderSPIRV` enums](https://docs.godotengine.org/en/stable/classes/class_rdshaderspirv.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDShaderSPIRV.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IRdShaderSpirv`][crate::classes::IRdShaderSpirv]: virtual methods\n\n\nSee also [Godot docs for `RDShaderSPIRV`](https://docs.godotengine.org/en/stable/classes/class_rdshaderspirv.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdShaderSpirv::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdShaderSpirv { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdShaderSpirv`][crate::classes::RdShaderSpirv].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDShaderSPIRV` methods](https://docs.godotengine.org/en/stable/classes/class_rdshaderspirv.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdShaderSpirv: crate::obj::GodotClass < Base = RdShaderSpirv > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl RdShaderSpirv { + pub fn set_stage_bytecode(&mut self, stage: crate::classes::rendering_device::ShaderStage, bytecode: &PackedByteArray,) { + type CallSig < 'a0, > = ((), crate::classes::rendering_device::ShaderStage, RefArg < 'a0, PackedByteArray >); + let args = (stage, RefArg::new(bytecode),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6735usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderSpirv", "set_stage_bytecode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stage_bytecode(&self, stage: crate::classes::rendering_device::ShaderStage,) -> PackedByteArray { + type CallSig = (PackedByteArray, crate::classes::rendering_device::ShaderStage); + let args = (stage,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6736usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderSpirv", "get_stage_bytecode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stage_compile_error(&mut self, stage: crate::classes::rendering_device::ShaderStage, compile_error: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), crate::classes::rendering_device::ShaderStage, CowArg < 'a0, GString >); + let args = (stage, compile_error.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6737usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderSpirv", "set_stage_compile_error", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stage_compile_error(&self, stage: crate::classes::rendering_device::ShaderStage,) -> GString { + type CallSig = (GString, crate::classes::rendering_device::ShaderStage); + let args = (stage,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6738usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdShaderSpirv", "get_stage_compile_error", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdShaderSpirv { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDShaderSPIRV")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdShaderSpirv { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for RdShaderSpirv { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdShaderSpirv { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdShaderSpirv { + + } + impl crate::obj::cap::GodotDefault for RdShaderSpirv { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdShaderSpirv { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdShaderSpirv { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdShaderSpirv`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdShaderSpirv { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdShaderSpirv > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_texture_format.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_texture_format.rs new file mode 100644 index 0000000..fba8fcc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_texture_format.rs @@ -0,0 +1,353 @@ +#![doc = "Sidecar module for class [`RdTextureFormat`][crate::classes::RdTextureFormat].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDTextureFormat` enums](https://docs.godotengine.org/en/stable/classes/class_rdtextureformat.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDTextureFormat.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdTextureFormat`][crate::classes::IRdTextureFormat]: virtual methods\n\n\nSee also [Godot docs for `RDTextureFormat`](https://docs.godotengine.org/en/stable/classes/class_rdtextureformat.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdTextureFormat::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdTextureFormat { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdTextureFormat`][crate::classes::RdTextureFormat].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDTextureFormat` methods](https://docs.godotengine.org/en/stable/classes/class_rdtextureformat.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdTextureFormat: crate::obj::GodotClass < Base = RdTextureFormat > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdTextureFormat { + pub fn set_format(&mut self, p_member: crate::classes::rendering_device::DataFormat,) { + type CallSig = ((), crate::classes::rendering_device::DataFormat); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6743usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "set_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_format(&self,) -> crate::classes::rendering_device::DataFormat { + type CallSig = (crate::classes::rendering_device::DataFormat,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6744usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_width(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6745usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "set_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_width(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6746usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "get_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_height(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6747usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_height(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6748usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "get_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_depth(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6749usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "set_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_depth(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6750usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "get_depth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_array_layers(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6751usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "set_array_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_array_layers(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6752usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "get_array_layers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mipmaps(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6753usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "set_mipmaps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mipmaps(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6754usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "get_mipmaps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_type(&mut self, p_member: crate::classes::rendering_device::TextureType,) { + type CallSig = ((), crate::classes::rendering_device::TextureType); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6755usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "set_texture_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_type(&self,) -> crate::classes::rendering_device::TextureType { + type CallSig = (crate::classes::rendering_device::TextureType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6756usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "get_texture_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_samples(&mut self, p_member: crate::classes::rendering_device::TextureSamples,) { + type CallSig = ((), crate::classes::rendering_device::TextureSamples); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6757usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "set_samples", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_samples(&self,) -> crate::classes::rendering_device::TextureSamples { + type CallSig = (crate::classes::rendering_device::TextureSamples,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6758usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "get_samples", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_usage_bits(&mut self, p_member: crate::classes::rendering_device::TextureUsageBits,) { + type CallSig = ((), crate::classes::rendering_device::TextureUsageBits); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6759usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "set_usage_bits", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_usage_bits(&self,) -> crate::classes::rendering_device::TextureUsageBits { + type CallSig = (crate::classes::rendering_device::TextureUsageBits,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6760usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "get_usage_bits", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_shareable_format(&mut self, format: crate::classes::rendering_device::DataFormat,) { + type CallSig = ((), crate::classes::rendering_device::DataFormat); + let args = (format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6761usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "add_shareable_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_shareable_format(&mut self, format: crate::classes::rendering_device::DataFormat,) { + type CallSig = ((), crate::classes::rendering_device::DataFormat); + let args = (format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6762usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureFormat", "remove_shareable_format", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdTextureFormat { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDTextureFormat")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdTextureFormat { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdTextureFormat { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdTextureFormat { + + } + impl crate::obj::cap::GodotDefault for RdTextureFormat { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdTextureFormat { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdTextureFormat { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdTextureFormat`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdTextureFormat { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdTextureFormat > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_texture_view.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_texture_view.rs new file mode 100644 index 0000000..c550e16 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_texture_view.rs @@ -0,0 +1,273 @@ +#![doc = "Sidecar module for class [`RdTextureView`][crate::classes::RdTextureView].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDTextureView` enums](https://docs.godotengine.org/en/stable/classes/class_rdtextureview.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDTextureView.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdTextureView`][crate::classes::IRdTextureView]: virtual methods\n\n\nSee also [Godot docs for `RDTextureView`](https://docs.godotengine.org/en/stable/classes/class_rdtextureview.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdTextureView::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdTextureView { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdTextureView`][crate::classes::RdTextureView].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDTextureView` methods](https://docs.godotengine.org/en/stable/classes/class_rdtextureview.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdTextureView: crate::obj::GodotClass < Base = RdTextureView > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdTextureView { + pub fn set_format_override(&mut self, p_member: crate::classes::rendering_device::DataFormat,) { + type CallSig = ((), crate::classes::rendering_device::DataFormat); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6763usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureView", "set_format_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_format_override(&self,) -> crate::classes::rendering_device::DataFormat { + type CallSig = (crate::classes::rendering_device::DataFormat,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6764usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureView", "get_format_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_swizzle_r(&mut self, p_member: crate::classes::rendering_device::TextureSwizzle,) { + type CallSig = ((), crate::classes::rendering_device::TextureSwizzle); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6765usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureView", "set_swizzle_r", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_swizzle_r(&self,) -> crate::classes::rendering_device::TextureSwizzle { + type CallSig = (crate::classes::rendering_device::TextureSwizzle,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6766usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureView", "get_swizzle_r", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_swizzle_g(&mut self, p_member: crate::classes::rendering_device::TextureSwizzle,) { + type CallSig = ((), crate::classes::rendering_device::TextureSwizzle); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6767usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureView", "set_swizzle_g", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_swizzle_g(&self,) -> crate::classes::rendering_device::TextureSwizzle { + type CallSig = (crate::classes::rendering_device::TextureSwizzle,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6768usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureView", "get_swizzle_g", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_swizzle_b(&mut self, p_member: crate::classes::rendering_device::TextureSwizzle,) { + type CallSig = ((), crate::classes::rendering_device::TextureSwizzle); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6769usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureView", "set_swizzle_b", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_swizzle_b(&self,) -> crate::classes::rendering_device::TextureSwizzle { + type CallSig = (crate::classes::rendering_device::TextureSwizzle,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6770usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureView", "get_swizzle_b", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_swizzle_a(&mut self, p_member: crate::classes::rendering_device::TextureSwizzle,) { + type CallSig = ((), crate::classes::rendering_device::TextureSwizzle); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6771usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureView", "set_swizzle_a", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_swizzle_a(&self,) -> crate::classes::rendering_device::TextureSwizzle { + type CallSig = (crate::classes::rendering_device::TextureSwizzle,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6772usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdTextureView", "get_swizzle_a", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdTextureView { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDTextureView")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdTextureView { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdTextureView { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdTextureView { + + } + impl crate::obj::cap::GodotDefault for RdTextureView { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdTextureView { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdTextureView { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdTextureView`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdTextureView { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdTextureView > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_uniform.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_uniform.rs new file mode 100644 index 0000000..fc4636f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_uniform.rs @@ -0,0 +1,249 @@ +#![doc = "Sidecar module for class [`RdUniform`][crate::classes::RdUniform].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDUniform` enums](https://docs.godotengine.org/en/stable/classes/class_rduniform.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDUniform.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdUniform`][crate::classes::IRdUniform]: virtual methods\n\n\nSee also [Godot docs for `RDUniform`](https://docs.godotengine.org/en/stable/classes/class_rduniform.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdUniform::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdUniform { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdUniform`][crate::classes::RdUniform].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDUniform` methods](https://docs.godotengine.org/en/stable/classes/class_rduniform.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdUniform: crate::obj::GodotClass < Base = RdUniform > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdUniform { + pub fn set_uniform_type(&mut self, p_member: crate::classes::rendering_device::UniformType,) { + type CallSig = ((), crate::classes::rendering_device::UniformType); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6773usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdUniform", "set_uniform_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_uniform_type(&self,) -> crate::classes::rendering_device::UniformType { + type CallSig = (crate::classes::rendering_device::UniformType,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6774usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdUniform", "get_uniform_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_binding(&mut self, p_member: i32,) { + type CallSig = ((), i32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6775usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdUniform", "set_binding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_binding(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6776usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdUniform", "get_binding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_id(&mut self, id: Rid,) { + type CallSig = ((), Rid); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6777usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdUniform", "add_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_ids(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6778usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdUniform", "clear_ids", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ids(&self,) -> Array < Rid > { + type CallSig = (Array < Rid >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6779usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdUniform", "get_ids", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdUniform { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDUniform")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdUniform { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdUniform { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdUniform { + + } + impl crate::obj::cap::GodotDefault for RdUniform { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdUniform { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdUniform { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdUniform`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdUniform { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdUniform > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_vertex_attribute.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_vertex_attribute.rs new file mode 100644 index 0000000..e2ea56b --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rd_vertex_attribute.rs @@ -0,0 +1,273 @@ +#![doc = "Sidecar module for class [`RdVertexAttribute`][crate::classes::RdVertexAttribute].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RDVertexAttribute` enums](https://docs.godotengine.org/en/stable/classes/class_rdvertexattribute.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RDVertexAttribute.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRdVertexAttribute`][crate::classes::IRdVertexAttribute]: virtual methods\n\n\nSee also [Godot docs for `RDVertexAttribute`](https://docs.godotengine.org/en/stable/classes/class_rdvertexattribute.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RdVertexAttribute::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RdVertexAttribute { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RdVertexAttribute`][crate::classes::RdVertexAttribute].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RDVertexAttribute` methods](https://docs.godotengine.org/en/stable/classes/class_rdvertexattribute.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRdVertexAttribute: crate::obj::GodotClass < Base = RdVertexAttribute > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RdVertexAttribute { + pub fn set_location(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6780usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdVertexAttribute", "set_location", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_location(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6781usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdVertexAttribute", "get_location", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_offset(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6782usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdVertexAttribute", "set_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_offset(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6783usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdVertexAttribute", "get_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_format(&mut self, p_member: crate::classes::rendering_device::DataFormat,) { + type CallSig = ((), crate::classes::rendering_device::DataFormat); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6784usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdVertexAttribute", "set_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_format(&self,) -> crate::classes::rendering_device::DataFormat { + type CallSig = (crate::classes::rendering_device::DataFormat,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6785usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdVertexAttribute", "get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_stride(&mut self, p_member: u32,) { + type CallSig = ((), u32); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6786usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdVertexAttribute", "set_stride", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_stride(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6787usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdVertexAttribute", "get_stride", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_frequency(&mut self, p_member: crate::classes::rendering_device::VertexFrequency,) { + type CallSig = ((), crate::classes::rendering_device::VertexFrequency); + let args = (p_member,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6788usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdVertexAttribute", "set_frequency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frequency(&self,) -> crate::classes::rendering_device::VertexFrequency { + type CallSig = (crate::classes::rendering_device::VertexFrequency,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6789usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RdVertexAttribute", "get_frequency", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RdVertexAttribute { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RDVertexAttribute")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RdVertexAttribute { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RdVertexAttribute { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RdVertexAttribute { + + } + impl crate::obj::cap::GodotDefault for RdVertexAttribute { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RdVertexAttribute { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RdVertexAttribute { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RdVertexAttribute`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RdVertexAttribute { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RdVertexAttribute > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rectangle_shape_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rectangle_shape_2d.rs new file mode 100644 index 0000000..6b780d5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rectangle_shape_2d.rs @@ -0,0 +1,224 @@ +#![doc = "Sidecar module for class [`RectangleShape2D`][crate::classes::RectangleShape2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RectangleShape2D` enums](https://docs.godotengine.org/en/stable/classes/class_rectangleshape2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RectangleShape2D.`\n\nInherits [`Shape2D`][crate::classes::Shape2D].\n\nRelated symbols:\n\n* [`IRectangleShape2D`][crate::classes::IRectangleShape2D]: virtual methods\n\n\nSee also [Godot docs for `RectangleShape2D`](https://docs.godotengine.org/en/stable/classes/class_rectangleshape2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RectangleShape2D::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RectangleShape2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RectangleShape2D`][crate::classes::RectangleShape2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RectangleShape2D` methods](https://docs.godotengine.org/en/stable/classes/class_rectangleshape2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRectangleShape2D: crate::obj::GodotClass < Base = RectangleShape2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl RectangleShape2D { + pub fn set_size(&mut self, size: Vector2,) { + type CallSig = ((), Vector2); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6887usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RectangleShape2D", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6888usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RectangleShape2D", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RectangleShape2D { + type Base = crate::classes::Shape2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RectangleShape2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RectangleShape2D { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Shape2D > for RectangleShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for RectangleShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RectangleShape2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RectangleShape2D { + + } + impl crate::obj::cap::GodotDefault for RectangleShape2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RectangleShape2D { + type Target = crate::classes::Shape2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RectangleShape2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RectangleShape2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RectangleShape2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RectangleShape2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Shape2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ref_counted.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ref_counted.rs new file mode 100644 index 0000000..2042ffa --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ref_counted.rs @@ -0,0 +1,219 @@ +#![doc = "Sidecar module for class [`RefCounted`][crate::classes::RefCounted].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RefCounted` enums](https://docs.godotengine.org/en/stable/classes/class_refcounted.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RefCounted.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IRefCounted`][crate::classes::IRefCounted]: virtual methods\n\n\nSee also [Godot docs for `RefCounted`](https://docs.godotengine.org/en/stable/classes/class_refcounted.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RefCounted::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RefCounted { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RefCounted`][crate::classes::RefCounted].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RefCounted` methods](https://docs.godotengine.org/en/stable/classes/class_refcounted.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRefCounted: crate::obj::GodotClass < Base = RefCounted > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RefCounted { + pub(crate) fn init_ref(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6889usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RefCounted", "init_ref", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn reference(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6890usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RefCounted", "reference", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn unreference(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6891usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RefCounted", "unreference", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_reference_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6892usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RefCounted", "get_reference_count", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RefCounted { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RefCounted")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RefCounted { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RefCounted { + + } + impl crate::obj::cap::GodotDefault for RefCounted { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RefCounted { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RefCounted { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RefCounted`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RefCounted { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reference_rect.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reference_rect.rs new file mode 100644 index 0000000..170da69 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reference_rect.rs @@ -0,0 +1,313 @@ +#![doc = "Sidecar module for class [`ReferenceRect`][crate::classes::ReferenceRect].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ReferenceRect` enums](https://docs.godotengine.org/en/stable/classes/class_referencerect.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ReferenceRect.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`IReferenceRect`][crate::classes::IReferenceRect]: virtual methods\n\n\nSee also [Godot docs for `ReferenceRect`](https://docs.godotengine.org/en/stable/classes/class_referencerect.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ReferenceRect::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ReferenceRect { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ReferenceRect`][crate::classes::ReferenceRect].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ReferenceRect` methods](https://docs.godotengine.org/en/stable/classes/class_referencerect.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IReferenceRect: crate::obj::GodotClass < Base = ReferenceRect > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ReferenceRect { + pub fn get_border_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6893usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReferenceRect", "get_border_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_border_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6894usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReferenceRect", "set_border_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_border_width(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6895usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReferenceRect", "get_border_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_border_width(&mut self, width: f32,) { + type CallSig = ((), f32); + let args = (width,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6896usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReferenceRect", "set_border_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_editor_only(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6897usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReferenceRect", "get_editor_only", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_editor_only(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6898usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReferenceRect", "set_editor_only", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ReferenceRect { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ReferenceRect")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ReferenceRect { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for ReferenceRect { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for ReferenceRect { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ReferenceRect { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ReferenceRect { + + } + impl crate::obj::cap::GodotDefault for ReferenceRect { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ReferenceRect { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ReferenceRect { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ReferenceRect`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ReferenceRect { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ReferenceRect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reflection_probe.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reflection_probe.rs new file mode 100644 index 0000000..8e341a5 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reflection_probe.rs @@ -0,0 +1,607 @@ +#![doc = "Sidecar module for class [`ReflectionProbe`][crate::classes::ReflectionProbe].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ReflectionProbe` enums](https://docs.godotengine.org/en/stable/classes/class_reflectionprobe.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ReflectionProbe.`\n\nInherits [`VisualInstance3D`][crate::classes::VisualInstance3D].\n\nRelated symbols:\n\n* [`reflection_probe`][crate::classes::reflection_probe]: sidecar module with related enum/flag types\n* [`IReflectionProbe`][crate::classes::IReflectionProbe]: virtual methods\n\n\nSee also [Godot docs for `ReflectionProbe`](https://docs.godotengine.org/en/stable/classes/class_reflectionprobe.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ReflectionProbe::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ReflectionProbe { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ReflectionProbe`][crate::classes::ReflectionProbe].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ReflectionProbe` methods](https://docs.godotengine.org/en/stable/classes/class_reflectionprobe.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IReflectionProbe: crate::obj::GodotClass < Base = ReflectionProbe > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ReflectionProbe { + pub fn set_intensity(&mut self, intensity: f32,) { + type CallSig = ((), f32); + let args = (intensity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6899usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_intensity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6900usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "get_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ambient_mode(&mut self, ambient: crate::classes::reflection_probe::AmbientMode,) { + type CallSig = ((), crate::classes::reflection_probe::AmbientMode); + let args = (ambient,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6901usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_ambient_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ambient_mode(&self,) -> crate::classes::reflection_probe::AmbientMode { + type CallSig = (crate::classes::reflection_probe::AmbientMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6902usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "get_ambient_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ambient_color(&mut self, ambient: Color,) { + type CallSig = ((), Color); + let args = (ambient,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6903usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_ambient_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ambient_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6904usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "get_ambient_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_ambient_color_energy(&mut self, ambient_energy: f32,) { + type CallSig = ((), f32); + let args = (ambient_energy,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6905usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_ambient_color_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_ambient_color_energy(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6906usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "get_ambient_color_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_distance(&mut self, max_distance: f32,) { + type CallSig = ((), f32); + let args = (max_distance,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6907usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_distance(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6908usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "get_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_mesh_lod_threshold(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6909usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_mesh_lod_threshold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mesh_lod_threshold(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6910usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "get_mesh_lod_threshold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_size(&mut self, size: Vector3,) { + type CallSig = ((), Vector3); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6911usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6912usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_origin_offset(&mut self, origin_offset: Vector3,) { + type CallSig = ((), Vector3); + let args = (origin_offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6913usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_origin_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_origin_offset(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6914usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "get_origin_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_as_interior(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6915usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_as_interior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_set_as_interior(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6916usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "is_set_as_interior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_box_projection(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6917usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_enable_box_projection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_box_projection_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6918usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "is_box_projection_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_enable_shadows(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6919usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_enable_shadows", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn are_shadows_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6920usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "are_shadows_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cull_mask(&mut self, layers: u32,) { + type CallSig = ((), u32); + let args = (layers,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6921usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cull_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6922usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "get_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_reflection_mask(&mut self, layers: u32,) { + type CallSig = ((), u32); + let args = (layers,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6923usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_reflection_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_reflection_mask(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6924usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "get_reflection_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_update_mode(&mut self, mode: crate::classes::reflection_probe::UpdateMode,) { + type CallSig = ((), crate::classes::reflection_probe::UpdateMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6925usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "set_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_update_mode(&self,) -> crate::classes::reflection_probe::UpdateMode { + type CallSig = (crate::classes::reflection_probe::UpdateMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6926usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ReflectionProbe", "get_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ReflectionProbe { + type Base = crate::classes::VisualInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ReflectionProbe")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ReflectionProbe { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for ReflectionProbe { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for ReflectionProbe { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ReflectionProbe { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ReflectionProbe { + + } + impl crate::obj::cap::GodotDefault for ReflectionProbe { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ReflectionProbe { + type Target = crate::classes::VisualInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ReflectionProbe { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ReflectionProbe`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ReflectionProbe { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ReflectionProbe > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct UpdateMode { + ord: i32 +} +impl UpdateMode { + #[doc(alias = "UPDATE_ONCE")] + #[doc = "Godot enumerator name: `UPDATE_ONCE`"] + pub const ONCE: UpdateMode = UpdateMode { + ord: 0i32 + }; + #[doc(alias = "UPDATE_ALWAYS")] + #[doc = "Godot enumerator name: `UPDATE_ALWAYS`"] + pub const ALWAYS: UpdateMode = UpdateMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for UpdateMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("UpdateMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for UpdateMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ONCE => "ONCE", Self::ALWAYS => "ALWAYS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ONCE => "UPDATE_ONCE", Self::ALWAYS => "UPDATE_ALWAYS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for UpdateMode { + type Via = i32; + +} +impl crate::meta::ToGodot for UpdateMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for UpdateMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct AmbientMode { + ord: i32 +} +impl AmbientMode { + #[doc(alias = "AMBIENT_DISABLED")] + #[doc = "Godot enumerator name: `AMBIENT_DISABLED`"] + pub const DISABLED: AmbientMode = AmbientMode { + ord: 0i32 + }; + #[doc(alias = "AMBIENT_ENVIRONMENT")] + #[doc = "Godot enumerator name: `AMBIENT_ENVIRONMENT`"] + pub const ENVIRONMENT: AmbientMode = AmbientMode { + ord: 1i32 + }; + #[doc(alias = "AMBIENT_COLOR")] + #[doc = "Godot enumerator name: `AMBIENT_COLOR`"] + pub const COLOR: AmbientMode = AmbientMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for AmbientMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("AmbientMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for AmbientMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ENVIRONMENT => "ENVIRONMENT", Self::COLOR => "COLOR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "AMBIENT_DISABLED", Self::ENVIRONMENT => "AMBIENT_ENVIRONMENT", Self::COLOR => "AMBIENT_COLOR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for AmbientMode { + type Via = i32; + +} +impl crate::meta::ToGodot for AmbientMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for AmbientMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reg_ex.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reg_ex.rs new file mode 100644 index 0000000..a7a63fd --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reg_ex.rs @@ -0,0 +1,412 @@ +#![doc = "Sidecar module for class [`RegEx`][crate::classes::RegEx].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RegEx` enums](https://docs.godotengine.org/en/stable/classes/class_regex.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RegEx.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`reg_ex`][crate::classes::reg_ex]: sidecar module with related enum/flag types\n* [`IRegEx`][crate::classes::IRegEx]: virtual methods\n\n\nSee also [Godot docs for `RegEx`](https://docs.godotengine.org/en/stable/classes/class_regex.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RegEx::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RegEx { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RegEx`][crate::classes::RegEx].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RegEx` methods](https://docs.godotengine.org/en/stable/classes/class_regex.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRegEx: crate::obj::GodotClass < Base = RegEx > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RegEx { + pub fn create_from_string(pattern: impl AsArg < GString >,) -> Option < Gd < crate::classes::RegEx > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::RegEx > >, CowArg < 'a0, GString >); + let args = (pattern.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6927usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegEx", "create_from_string", std::ptr::null_mut(), None, args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6928usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegEx", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compile(&mut self, pattern: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (pattern.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6929usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegEx", "compile", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn search_full(&self, subject: CowArg < GString >, offset: i32, end: i32,) -> Option < Gd < crate::classes::RegExMatch > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::RegExMatch > >, CowArg < 'a0, GString >, i32, i32); + let args = (subject, offset, end,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6930usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegEx", "search", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::search_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn search(&self, subject: impl AsArg < GString >,) -> Option < Gd < crate::classes::RegExMatch > > { + self.search_ex(subject,) . done() + } + #[inline] + pub fn search_ex < 'a > (&'a self, subject: impl AsArg < GString > + 'a,) -> ExSearch < 'a > { + ExSearch::new(self, subject,) + } + pub(crate) fn search_all_full(&self, subject: CowArg < GString >, offset: i32, end: i32,) -> Array < Gd < crate::classes::RegExMatch > > { + type CallSig < 'a0, > = (Array < Gd < crate::classes::RegExMatch > >, CowArg < 'a0, GString >, i32, i32); + let args = (subject, offset, end,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6931usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegEx", "search_all", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::search_all_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn search_all(&self, subject: impl AsArg < GString >,) -> Array < Gd < crate::classes::RegExMatch > > { + self.search_all_ex(subject,) . done() + } + #[inline] + pub fn search_all_ex < 'a > (&'a self, subject: impl AsArg < GString > + 'a,) -> ExSearchAll < 'a > { + ExSearchAll::new(self, subject,) + } + pub(crate) fn sub_full(&self, subject: CowArg < GString >, replacement: CowArg < GString >, all: bool, offset: i32, end: i32,) -> GString { + type CallSig < 'a0, 'a1, > = (GString, CowArg < 'a0, GString >, CowArg < 'a1, GString >, bool, i32, i32); + let args = (subject, replacement, all, offset, end,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6932usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegEx", "sub", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::sub_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn sub(&self, subject: impl AsArg < GString >, replacement: impl AsArg < GString >,) -> GString { + self.sub_ex(subject, replacement,) . done() + } + #[inline] + pub fn sub_ex < 'a > (&'a self, subject: impl AsArg < GString > + 'a, replacement: impl AsArg < GString > + 'a,) -> ExSub < 'a > { + ExSub::new(self, subject, replacement,) + } + pub fn is_valid(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6933usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegEx", "is_valid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_pattern(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6934usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegEx", "get_pattern", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_group_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6935usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegEx", "get_group_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_names(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6936usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegEx", "get_names", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RegEx { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RegEx")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RegEx { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RegEx { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RegEx { + + } + impl crate::obj::cap::GodotDefault for RegEx { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RegEx { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RegEx { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RegEx`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RegEx { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RegEx > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`RegEx::search_ex`][super::RegEx::search_ex]."] +#[must_use] +pub struct ExSearch < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RegEx, subject: CowArg < 'a, GString >, offset: i32, end: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSearch < 'a > { + fn new(surround_object: &'a re_export::RegEx, subject: impl AsArg < GString > + 'a,) -> Self { + let offset = 0i32; + let end = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, subject: subject.into_arg(), offset: offset, end: end, + } + } + #[inline] + pub fn offset(self, offset: i32) -> Self { + Self { + offset: offset, .. self + } + } + #[inline] + pub fn end(self, end: i32) -> Self { + Self { + end: end, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::RegExMatch > > { + let Self { + _phantom, surround_object, subject, offset, end, + } + = self; + re_export::RegEx::search_full(surround_object, subject, offset, end,) + } +} +#[doc = "Default-param extender for [`RegEx::search_all_ex`][super::RegEx::search_all_ex]."] +#[must_use] +pub struct ExSearchAll < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RegEx, subject: CowArg < 'a, GString >, offset: i32, end: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSearchAll < 'a > { + fn new(surround_object: &'a re_export::RegEx, subject: impl AsArg < GString > + 'a,) -> Self { + let offset = 0i32; + let end = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, subject: subject.into_arg(), offset: offset, end: end, + } + } + #[inline] + pub fn offset(self, offset: i32) -> Self { + Self { + offset: offset, .. self + } + } + #[inline] + pub fn end(self, end: i32) -> Self { + Self { + end: end, .. self + } + } + #[inline] + pub fn done(self) -> Array < Gd < crate::classes::RegExMatch > > { + let Self { + _phantom, surround_object, subject, offset, end, + } + = self; + re_export::RegEx::search_all_full(surround_object, subject, offset, end,) + } +} +#[doc = "Default-param extender for [`RegEx::sub_ex`][super::RegEx::sub_ex]."] +#[must_use] +pub struct ExSub < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RegEx, subject: CowArg < 'a, GString >, replacement: CowArg < 'a, GString >, all: bool, offset: i32, end: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSub < 'a > { + fn new(surround_object: &'a re_export::RegEx, subject: impl AsArg < GString > + 'a, replacement: impl AsArg < GString > + 'a,) -> Self { + let all = false; + let offset = 0i32; + let end = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, subject: subject.into_arg(), replacement: replacement.into_arg(), all: all, offset: offset, end: end, + } + } + #[inline] + pub fn all(self, all: bool) -> Self { + Self { + all: all, .. self + } + } + #[inline] + pub fn offset(self, offset: i32) -> Self { + Self { + offset: offset, .. self + } + } + #[inline] + pub fn end(self, end: i32) -> Self { + Self { + end: end, .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, subject, replacement, all, offset, end, + } + = self; + re_export::RegEx::sub_full(surround_object, subject, replacement, all, offset, end,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reg_ex_match.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reg_ex_match.rs new file mode 100644 index 0000000..395d6bf --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/reg_ex_match.rs @@ -0,0 +1,360 @@ +#![doc = "Sidecar module for class [`RegExMatch`][crate::classes::RegExMatch].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RegExMatch` enums](https://docs.godotengine.org/en/stable/classes/class_regexmatch.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RegExMatch.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`reg_ex_match`][crate::classes::reg_ex_match]: sidecar module with related enum/flag types\n* [`IRegExMatch`][crate::classes::IRegExMatch]: virtual methods\n\n\nSee also [Godot docs for `RegExMatch`](https://docs.godotengine.org/en/stable/classes/class_regexmatch.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RegExMatch::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RegExMatch { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RegExMatch`][crate::classes::RegExMatch].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RegExMatch` methods](https://docs.godotengine.org/en/stable/classes/class_regexmatch.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRegExMatch: crate::obj::GodotClass < Base = RegExMatch > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RegExMatch { + pub fn get_subject(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6937usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegExMatch", "get_subject", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_group_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6938usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegExMatch", "get_group_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_names(&self,) -> Dictionary { + type CallSig = (Dictionary,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6939usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegExMatch", "get_names", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_strings(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6940usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegExMatch", "get_strings", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_string_full(&self, name: RefArg < Variant >,) -> GString { + type CallSig < 'a0, > = (GString, RefArg < 'a0, Variant >); + let args = (name,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6941usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegExMatch", "get_string", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_string_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_string(&self,) -> GString { + self.get_string_ex() . done() + } + #[inline] + pub fn get_string_ex < 'a > (&'a self,) -> ExGetString < 'a > { + ExGetString::new(self,) + } + pub(crate) fn get_start_full(&self, name: RefArg < Variant >,) -> i32 { + type CallSig < 'a0, > = (i32, RefArg < 'a0, Variant >); + let args = (name,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6942usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegExMatch", "get_start", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_start_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_start(&self,) -> i32 { + self.get_start_ex() . done() + } + #[inline] + pub fn get_start_ex < 'a > (&'a self,) -> ExGetStart < 'a > { + ExGetStart::new(self,) + } + pub(crate) fn get_end_full(&self, name: RefArg < Variant >,) -> i32 { + type CallSig < 'a0, > = (i32, RefArg < 'a0, Variant >); + let args = (name,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6943usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RegExMatch", "get_end", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_end_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_end(&self,) -> i32 { + self.get_end_ex() . done() + } + #[inline] + pub fn get_end_ex < 'a > (&'a self,) -> ExGetEnd < 'a > { + ExGetEnd::new(self,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RegExMatch { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RegExMatch")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RegExMatch { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RegExMatch { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RegExMatch { + + } + impl crate::obj::cap::GodotDefault for RegExMatch { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RegExMatch { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RegExMatch { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RegExMatch`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RegExMatch { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RegExMatch > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`RegExMatch::get_string_ex`][super::RegExMatch::get_string_ex]."] +#[must_use] +pub struct ExGetString < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RegExMatch, name: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetString < 'a > { + fn new(surround_object: &'a re_export::RegExMatch,) -> Self { + let name = Variant::from(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: CowArg::Owned(name), + } + } + #[inline] + pub fn name(self, name: &'a Variant) -> Self { + Self { + name: CowArg::Borrowed(name), .. self + } + } + #[inline] + pub fn done(self) -> GString { + let Self { + _phantom, surround_object, name, + } + = self; + re_export::RegExMatch::get_string_full(surround_object, name.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`RegExMatch::get_start_ex`][super::RegExMatch::get_start_ex]."] +#[must_use] +pub struct ExGetStart < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RegExMatch, name: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetStart < 'a > { + fn new(surround_object: &'a re_export::RegExMatch,) -> Self { + let name = Variant::from(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: CowArg::Owned(name), + } + } + #[inline] + pub fn name(self, name: &'a Variant) -> Self { + Self { + name: CowArg::Borrowed(name), .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, name, + } + = self; + re_export::RegExMatch::get_start_full(surround_object, name.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`RegExMatch::get_end_ex`][super::RegExMatch::get_end_ex]."] +#[must_use] +pub struct ExGetEnd < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RegExMatch, name: CowArg < 'a, Variant >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetEnd < 'a > { + fn new(surround_object: &'a re_export::RegExMatch,) -> Self { + let name = Variant::from(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, name: CowArg::Owned(name), + } + } + #[inline] + pub fn name(self, name: &'a Variant) -> Self { + Self { + name: CowArg::Borrowed(name), .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, name, + } + = self; + re_export::RegExMatch::get_end_full(surround_object, name.cow_as_arg(),) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/remote_transform_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/remote_transform_2d.rs new file mode 100644 index 0000000..5885310 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/remote_transform_2d.rs @@ -0,0 +1,326 @@ +#![doc = "Sidecar module for class [`RemoteTransform2D`][crate::classes::RemoteTransform2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RemoteTransform2D` enums](https://docs.godotengine.org/en/stable/classes/class_remotetransform2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RemoteTransform2D.`\n\nInherits [`Node2D`][crate::classes::Node2D].\n\nRelated symbols:\n\n* [`IRemoteTransform2D`][crate::classes::IRemoteTransform2D]: virtual methods\n\n\nSee also [Godot docs for `RemoteTransform2D`](https://docs.godotengine.org/en/stable/classes/class_remotetransform2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RemoteTransform2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RemoteTransform2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RemoteTransform2D`][crate::classes::RemoteTransform2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RemoteTransform2D` methods](https://docs.godotengine.org/en/stable/classes/class_remotetransform2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRemoteTransform2D: crate::obj::GodotClass < Base = RemoteTransform2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl RemoteTransform2D { + pub fn set_remote_node(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6944usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform2D", "set_remote_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_remote_node(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6945usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform2D", "get_remote_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_update_cache(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6946usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform2D", "force_update_cache", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_global_coordinates(&mut self, use_global_coordinates: bool,) { + type CallSig = ((), bool); + let args = (use_global_coordinates,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6947usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform2D", "set_use_global_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_global_coordinates(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6948usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform2D", "get_use_global_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_update_position(&mut self, update_remote_position: bool,) { + type CallSig = ((), bool); + let args = (update_remote_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6949usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform2D", "set_update_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_update_position(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6950usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform2D", "get_update_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_update_rotation(&mut self, update_remote_rotation: bool,) { + type CallSig = ((), bool); + let args = (update_remote_rotation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6951usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform2D", "set_update_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_update_rotation(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6952usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform2D", "get_update_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_update_scale(&mut self, update_remote_scale: bool,) { + type CallSig = ((), bool); + let args = (update_remote_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6953usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform2D", "set_update_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_update_scale(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6954usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform2D", "get_update_scale", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RemoteTransform2D { + type Base = crate::classes::Node2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RemoteTransform2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RemoteTransform2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for RemoteTransform2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for RemoteTransform2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for RemoteTransform2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RemoteTransform2D { + + } + impl crate::obj::cap::GodotDefault for RemoteTransform2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RemoteTransform2D { + type Target = crate::classes::Node2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RemoteTransform2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RemoteTransform2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RemoteTransform2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RemoteTransform2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/remote_transform_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/remote_transform_3d.rs new file mode 100644 index 0000000..9867ccc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/remote_transform_3d.rs @@ -0,0 +1,317 @@ +#![doc = "Sidecar module for class [`RemoteTransform3D`][crate::classes::RemoteTransform3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RemoteTransform3D` enums](https://docs.godotengine.org/en/stable/classes/class_remotetransform3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RemoteTransform3D.`\n\nInherits [`Node3D`][crate::classes::Node3D].\n\nRelated symbols:\n\n* [`IRemoteTransform3D`][crate::classes::IRemoteTransform3D]: virtual methods\n\n\nSee also [Godot docs for `RemoteTransform3D`](https://docs.godotengine.org/en/stable/classes/class_remotetransform3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RemoteTransform3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RemoteTransform3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RemoteTransform3D`][crate::classes::RemoteTransform3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RemoteTransform3D` methods](https://docs.godotengine.org/en/stable/classes/class_remotetransform3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRemoteTransform3D: crate::obj::GodotClass < Base = RemoteTransform3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl RemoteTransform3D { + pub fn set_remote_node(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6955usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform3D", "set_remote_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_remote_node(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6956usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform3D", "get_remote_node", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_update_cache(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6957usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform3D", "force_update_cache", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_global_coordinates(&mut self, use_global_coordinates: bool,) { + type CallSig = ((), bool); + let args = (use_global_coordinates,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6958usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform3D", "set_use_global_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_global_coordinates(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6959usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform3D", "get_use_global_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_update_position(&mut self, update_remote_position: bool,) { + type CallSig = ((), bool); + let args = (update_remote_position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6960usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform3D", "set_update_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_update_position(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6961usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform3D", "get_update_position", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_update_rotation(&mut self, update_remote_rotation: bool,) { + type CallSig = ((), bool); + let args = (update_remote_rotation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6962usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform3D", "set_update_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_update_rotation(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6963usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform3D", "get_update_rotation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_update_scale(&mut self, update_remote_scale: bool,) { + type CallSig = ((), bool); + let args = (update_remote_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6964usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform3D", "set_update_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_update_scale(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6965usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RemoteTransform3D", "get_update_scale", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RemoteTransform3D { + type Base = crate::classes::Node3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RemoteTransform3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RemoteTransform3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for RemoteTransform3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for RemoteTransform3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RemoteTransform3D { + + } + impl crate::obj::cap::GodotDefault for RemoteTransform3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RemoteTransform3D { + type Target = crate::classes::Node3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RemoteTransform3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RemoteTransform3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RemoteTransform3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RemoteTransform3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_data.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_data.rs new file mode 100644 index 0000000..fd80094 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_data.rs @@ -0,0 +1,214 @@ +#![doc = "Sidecar module for class [`RenderData`][crate::classes::RenderData].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderData` enums](https://docs.godotengine.org/en/stable/classes/class_renderdata.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderData.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IRenderData`][crate::classes::IRenderData]: virtual methods\n\n\nSee also [Godot docs for `RenderData`](https://docs.godotengine.org/en/stable/classes/class_renderdata.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderData { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderData`][crate::classes::RenderData].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderData` methods](https://docs.godotengine.org/en/stable/classes/class_renderdata.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderData: crate::obj::GodotClass < Base = RenderData > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RenderData { + pub fn get_render_scene_buffers(&self,) -> Option < Gd < crate::classes::RenderSceneBuffers > > { + type CallSig = (Option < Gd < crate::classes::RenderSceneBuffers > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6966usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderData", "get_render_scene_buffers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_render_scene_data(&self,) -> Option < Gd < crate::classes::RenderSceneData > > { + type CallSig = (Option < Gd < crate::classes::RenderSceneData > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6967usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderData", "get_render_scene_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_environment(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6968usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderData", "get_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_camera_attributes(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6969usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderData", "get_camera_attributes", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RenderData { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderData")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RenderData { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderData { + + } + impl std::ops::Deref for RenderData { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderData { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderData`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderData { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderData > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_data_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_data_extension.rs new file mode 100644 index 0000000..e1fc674 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_data_extension.rs @@ -0,0 +1,205 @@ +#![doc = "Sidecar module for class [`RenderDataExtension`][crate::classes::RenderDataExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderDataExtension` enums](https://docs.godotengine.org/en/stable/classes/class_renderdataextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderDataExtension.`\n\nInherits [`RenderData`][crate::classes::RenderData].\n\nRelated symbols:\n\n* [`IRenderDataExtension`][crate::classes::IRenderDataExtension]: virtual methods\n\n\nSee also [Godot docs for `RenderDataExtension`](https://docs.godotengine.org/en/stable/classes/class_renderdataextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RenderDataExtension::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderDataExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderDataExtension`][crate::classes::RenderDataExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderDataExtension` methods](https://docs.godotengine.org/en/stable/classes/class_renderdataextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderDataExtension: crate::obj::GodotClass < Base = RenderDataExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_render_scene_buffers(&self,) -> Option < Gd < crate::classes::RenderSceneBuffers > > { + unimplemented !() + } + fn get_render_scene_data(&self,) -> Option < Gd < crate::classes::RenderSceneData > > { + unimplemented !() + } + fn get_environment(&self,) -> Rid { + unimplemented !() + } + fn get_camera_attributes(&self,) -> Rid { + unimplemented !() + } + } + impl RenderDataExtension { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RenderDataExtension { + type Base = crate::classes::RenderData; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderDataExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RenderDataExtension { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RenderData > for RenderDataExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderDataExtension { + + } + impl crate::obj::cap::GodotDefault for RenderDataExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RenderDataExtension { + type Target = crate::classes::RenderData; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderDataExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderDataExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderDataExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderDataExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderData > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_data_rd.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_data_rd.rs new file mode 100644 index 0000000..5399d69 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_data_rd.rs @@ -0,0 +1,193 @@ +#![doc = "Sidecar module for class [`RenderDataRd`][crate::classes::RenderDataRd].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderDataRD` enums](https://docs.godotengine.org/en/stable/classes/class_renderdatard.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderDataRD.`\n\nInherits [`RenderData`][crate::classes::RenderData].\n\nRelated symbols:\n\n* [`IRenderDataRd`][crate::classes::IRenderDataRd]: virtual methods\n\n\nSee also [Godot docs for `RenderDataRD`](https://docs.godotengine.org/en/stable/classes/class_renderdatard.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RenderDataRd::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderDataRd { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderDataRd`][crate::classes::RenderDataRd].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderDataRD` methods](https://docs.godotengine.org/en/stable/classes/class_renderdatard.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderDataRd: crate::obj::GodotClass < Base = RenderDataRd > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RenderDataRd { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RenderDataRd { + type Base = crate::classes::RenderData; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderDataRD")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RenderDataRd { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RenderData > for RenderDataRd { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderDataRd { + + } + impl crate::obj::cap::GodotDefault for RenderDataRd { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RenderDataRd { + type Target = crate::classes::RenderData; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderDataRd { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderDataRd`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderDataRd { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderDataRd > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderData > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers.rs new file mode 100644 index 0000000..fd0f8cc --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers.rs @@ -0,0 +1,196 @@ +#![doc = "Sidecar module for class [`RenderSceneBuffers`][crate::classes::RenderSceneBuffers].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderSceneBuffers` enums](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffers.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderSceneBuffers.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRenderSceneBuffers`][crate::classes::IRenderSceneBuffers]: virtual methods\n\n\nSee also [Godot docs for `RenderSceneBuffers`](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffers.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderSceneBuffers { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderSceneBuffers`][crate::classes::RenderSceneBuffers].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderSceneBuffers` methods](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffers.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderSceneBuffers: crate::obj::GodotClass < Base = RenderSceneBuffers > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RenderSceneBuffers { + pub fn configure(&mut self, config: impl AsObjectArg < crate::classes::RenderSceneBuffersConfiguration >,) { + type CallSig = ((), ObjectArg < crate::classes::RenderSceneBuffersConfiguration >); + let args = (config.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6970usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffers", "configure", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RenderSceneBuffers { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderSceneBuffers")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RenderSceneBuffers { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RenderSceneBuffers { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderSceneBuffers { + + } + impl std::ops::Deref for RenderSceneBuffers { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderSceneBuffers { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderSceneBuffers`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderSceneBuffers { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderSceneBuffers > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers_configuration.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers_configuration.rs new file mode 100644 index 0000000..1c660ad --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers_configuration.rs @@ -0,0 +1,337 @@ +#![doc = "Sidecar module for class [`RenderSceneBuffersConfiguration`][crate::classes::RenderSceneBuffersConfiguration].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderSceneBuffersConfiguration` enums](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffersconfiguration.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderSceneBuffersConfiguration.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IRenderSceneBuffersConfiguration`][crate::classes::IRenderSceneBuffersConfiguration]: virtual methods\n\n\nSee also [Godot docs for `RenderSceneBuffersConfiguration`](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffersconfiguration.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RenderSceneBuffersConfiguration::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderSceneBuffersConfiguration { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderSceneBuffersConfiguration`][crate::classes::RenderSceneBuffersConfiguration].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderSceneBuffersConfiguration` methods](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffersconfiguration.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderSceneBuffersConfiguration: crate::obj::GodotClass < Base = RenderSceneBuffersConfiguration > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RenderSceneBuffersConfiguration { + pub fn get_render_target(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6971usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "get_render_target", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_render_target(&mut self, render_target: Rid,) { + type CallSig = ((), Rid); + let args = (render_target,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6972usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "set_render_target", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_internal_size(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6973usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "get_internal_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_internal_size(&mut self, internal_size: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (internal_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6974usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "set_internal_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_target_size(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6975usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "get_target_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_target_size(&mut self, target_size: Vector2i,) { + type CallSig = ((), Vector2i); + let args = (target_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6976usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "set_target_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_view_count(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6977usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "get_view_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_view_count(&mut self, view_count: u32,) { + type CallSig = ((), u32); + let args = (view_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6978usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "set_view_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scaling_3d_mode(&self,) -> crate::classes::rendering_server::ViewportScaling3DMode { + type CallSig = (crate::classes::rendering_server::ViewportScaling3DMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6979usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "get_scaling_3d_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scaling_3d_mode(&mut self, scaling_3d_mode: crate::classes::rendering_server::ViewportScaling3DMode,) { + type CallSig = ((), crate::classes::rendering_server::ViewportScaling3DMode); + let args = (scaling_3d_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6980usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "set_scaling_3d_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_msaa_3d(&self,) -> crate::classes::rendering_server::ViewportMsaa { + type CallSig = (crate::classes::rendering_server::ViewportMsaa,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6981usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "get_msaa_3d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_msaa_3d(&mut self, msaa_3d: crate::classes::rendering_server::ViewportMsaa,) { + type CallSig = ((), crate::classes::rendering_server::ViewportMsaa); + let args = (msaa_3d,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6982usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "set_msaa_3d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_screen_space_aa(&self,) -> crate::classes::rendering_server::ViewportScreenSpaceAa { + type CallSig = (crate::classes::rendering_server::ViewportScreenSpaceAa,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6983usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "get_screen_space_aa", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_screen_space_aa(&mut self, screen_space_aa: crate::classes::rendering_server::ViewportScreenSpaceAa,) { + type CallSig = ((), crate::classes::rendering_server::ViewportScreenSpaceAa); + let args = (screen_space_aa,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6984usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "set_screen_space_aa", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fsr_sharpness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6985usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "get_fsr_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fsr_sharpness(&mut self, fsr_sharpness: f32,) { + type CallSig = ((), f32); + let args = (fsr_sharpness,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6986usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "set_fsr_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_mipmap_bias(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6987usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "get_texture_mipmap_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_texture_mipmap_bias(&mut self, texture_mipmap_bias: f32,) { + type CallSig = ((), f32); + let args = (texture_mipmap_bias,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6988usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersConfiguration", "set_texture_mipmap_bias", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RenderSceneBuffersConfiguration { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderSceneBuffersConfiguration")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RenderSceneBuffersConfiguration { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RenderSceneBuffersConfiguration { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderSceneBuffersConfiguration { + + } + impl crate::obj::cap::GodotDefault for RenderSceneBuffersConfiguration { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RenderSceneBuffersConfiguration { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderSceneBuffersConfiguration { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderSceneBuffersConfiguration`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderSceneBuffersConfiguration { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderSceneBuffersConfiguration > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers_extension.rs new file mode 100644 index 0000000..3804e96 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers_extension.rs @@ -0,0 +1,211 @@ +#![doc = "Sidecar module for class [`RenderSceneBuffersExtension`][crate::classes::RenderSceneBuffersExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderSceneBuffersExtension` enums](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffersextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderSceneBuffersExtension.`\n\nInherits [`RenderSceneBuffers`][crate::classes::RenderSceneBuffers].\n\nRelated symbols:\n\n* [`IRenderSceneBuffersExtension`][crate::classes::IRenderSceneBuffersExtension]: virtual methods\n\n\nSee also [Godot docs for `RenderSceneBuffersExtension`](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffersextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RenderSceneBuffersExtension::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderSceneBuffersExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderSceneBuffersExtension`][crate::classes::RenderSceneBuffersExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderSceneBuffersExtension` methods](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffersextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderSceneBuffersExtension: crate::obj::GodotClass < Base = RenderSceneBuffersExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn configure(&mut self, config: Option < Gd < crate::classes::RenderSceneBuffersConfiguration > >,) { + unimplemented !() + } + fn set_fsr_sharpness(&mut self, fsr_sharpness: f32,) { + unimplemented !() + } + fn set_texture_mipmap_bias(&mut self, texture_mipmap_bias: f32,) { + unimplemented !() + } + fn set_use_debanding(&mut self, use_debanding: bool,) { + unimplemented !() + } + } + impl RenderSceneBuffersExtension { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RenderSceneBuffersExtension { + type Base = crate::classes::RenderSceneBuffers; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderSceneBuffersExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RenderSceneBuffersExtension { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RenderSceneBuffers > for RenderSceneBuffersExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RenderSceneBuffersExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderSceneBuffersExtension { + + } + impl crate::obj::cap::GodotDefault for RenderSceneBuffersExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RenderSceneBuffersExtension { + type Target = crate::classes::RenderSceneBuffers; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderSceneBuffersExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderSceneBuffersExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderSceneBuffersExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderSceneBuffersExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderSceneBuffers > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers_rd.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers_rd.rs new file mode 100644 index 0000000..4660c34 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_buffers_rd.rs @@ -0,0 +1,637 @@ +#![doc = "Sidecar module for class [`RenderSceneBuffersRd`][crate::classes::RenderSceneBuffersRd].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderSceneBuffersRD` enums](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffersrd.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderSceneBuffersRD.`\n\nInherits [`RenderSceneBuffers`][crate::classes::RenderSceneBuffers].\n\nRelated symbols:\n\n* [`render_scene_buffers_rd`][crate::classes::render_scene_buffers_rd]: sidecar module with related enum/flag types\n* [`IRenderSceneBuffersRd`][crate::classes::IRenderSceneBuffersRd]: virtual methods\n\n\nSee also [Godot docs for `RenderSceneBuffersRD`](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffersrd.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RenderSceneBuffersRd::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderSceneBuffersRd { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderSceneBuffersRd`][crate::classes::RenderSceneBuffersRd].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderSceneBuffersRD` methods](https://docs.godotengine.org/en/stable/classes/class_renderscenebuffersrd.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderSceneBuffersRd: crate::obj::GodotClass < Base = RenderSceneBuffersRd > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RenderSceneBuffersRd { + pub fn has_texture(&self, context: impl AsArg < StringName >, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (context.into_arg(), name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6989usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "has_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_texture(&mut self, context: impl AsArg < StringName >, name: impl AsArg < StringName >, data_format: crate::classes::rendering_device::DataFormat, usage_bits: u32, texture_samples: crate::classes::rendering_device::TextureSamples, size: Vector2i, layers: u32, mipmaps: u32, unique: bool,) -> Rid { + type CallSig < 'a0, 'a1, > = (Rid, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, crate::classes::rendering_device::DataFormat, u32, crate::classes::rendering_device::TextureSamples, Vector2i, u32, u32, bool); + let args = (context.into_arg(), name.into_arg(), data_format, usage_bits, texture_samples, size, layers, mipmaps, unique,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6990usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "create_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_texture_from_format(&mut self, context: impl AsArg < StringName >, name: impl AsArg < StringName >, format: impl AsObjectArg < crate::classes::RdTextureFormat >, view: impl AsObjectArg < crate::classes::RdTextureView >, unique: bool,) -> Rid { + type CallSig < 'a0, 'a1, > = (Rid, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, ObjectArg < crate::classes::RdTextureFormat >, ObjectArg < crate::classes::RdTextureView >, bool); + let args = (context.into_arg(), name.into_arg(), format.as_object_arg(), view.as_object_arg(), unique,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6991usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "create_texture_from_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_texture_view(&mut self, context: impl AsArg < StringName >, name: impl AsArg < StringName >, view_name: impl AsArg < StringName >, view: impl AsObjectArg < crate::classes::RdTextureView >,) -> Rid { + type CallSig < 'a0, 'a1, 'a2, > = (Rid, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, CowArg < 'a2, StringName >, ObjectArg < crate::classes::RdTextureView >); + let args = (context.into_arg(), name.into_arg(), view_name.into_arg(), view.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6992usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "create_texture_view", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture(&self, context: impl AsArg < StringName >, name: impl AsArg < StringName >,) -> Rid { + type CallSig < 'a0, 'a1, > = (Rid, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (context.into_arg(), name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6993usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_format(&self, context: impl AsArg < StringName >, name: impl AsArg < StringName >,) -> Option < Gd < crate::classes::RdTextureFormat > > { + type CallSig < 'a0, 'a1, > = (Option < Gd < crate::classes::RdTextureFormat > >, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (context.into_arg(), name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6994usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_texture_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_slice(&mut self, context: impl AsArg < StringName >, name: impl AsArg < StringName >, layer: u32, mipmap: u32, layers: u32, mipmaps: u32,) -> Rid { + type CallSig < 'a0, 'a1, > = (Rid, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, u32, u32, u32, u32); + let args = (context.into_arg(), name.into_arg(), layer, mipmap, layers, mipmaps,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6995usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_texture_slice", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_slice_view(&mut self, context: impl AsArg < StringName >, name: impl AsArg < StringName >, layer: u32, mipmap: u32, layers: u32, mipmaps: u32, view: impl AsObjectArg < crate::classes::RdTextureView >,) -> Rid { + type CallSig < 'a0, 'a1, > = (Rid, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, u32, u32, u32, u32, ObjectArg < crate::classes::RdTextureView >); + let args = (context.into_arg(), name.into_arg(), layer, mipmap, layers, mipmaps, view.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6996usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_texture_slice_view", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_slice_size(&mut self, context: impl AsArg < StringName >, name: impl AsArg < StringName >, mipmap: u32,) -> Vector2i { + type CallSig < 'a0, 'a1, > = (Vector2i, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >, u32); + let args = (context.into_arg(), name.into_arg(), mipmap,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6997usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_texture_slice_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear_context(&mut self, context: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (context.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6998usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "clear_context", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_color_texture_full(&mut self, msaa: bool,) -> Rid { + type CallSig = (Rid, bool); + let args = (msaa,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(6999usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_color_texture", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_color_texture_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_color_texture(&mut self,) -> Rid { + self.get_color_texture_ex() . done() + } + #[inline] + pub fn get_color_texture_ex < 'a > (&'a mut self,) -> ExGetColorTexture < 'a > { + ExGetColorTexture::new(self,) + } + pub(crate) fn get_color_layer_full(&mut self, layer: u32, msaa: bool,) -> Rid { + type CallSig = (Rid, u32, bool); + let args = (layer, msaa,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7000usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_color_layer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_color_layer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_color_layer(&mut self, layer: u32,) -> Rid { + self.get_color_layer_ex(layer,) . done() + } + #[inline] + pub fn get_color_layer_ex < 'a > (&'a mut self, layer: u32,) -> ExGetColorLayer < 'a > { + ExGetColorLayer::new(self, layer,) + } + pub(crate) fn get_depth_texture_full(&mut self, msaa: bool,) -> Rid { + type CallSig = (Rid, bool); + let args = (msaa,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7001usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_depth_texture", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_depth_texture_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_depth_texture(&mut self,) -> Rid { + self.get_depth_texture_ex() . done() + } + #[inline] + pub fn get_depth_texture_ex < 'a > (&'a mut self,) -> ExGetDepthTexture < 'a > { + ExGetDepthTexture::new(self,) + } + pub(crate) fn get_depth_layer_full(&mut self, layer: u32, msaa: bool,) -> Rid { + type CallSig = (Rid, u32, bool); + let args = (layer, msaa,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7002usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_depth_layer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_depth_layer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_depth_layer(&mut self, layer: u32,) -> Rid { + self.get_depth_layer_ex(layer,) . done() + } + #[inline] + pub fn get_depth_layer_ex < 'a > (&'a mut self, layer: u32,) -> ExGetDepthLayer < 'a > { + ExGetDepthLayer::new(self, layer,) + } + pub(crate) fn get_velocity_texture_full(&mut self, msaa: bool,) -> Rid { + type CallSig = (Rid, bool); + let args = (msaa,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7003usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_velocity_texture", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_velocity_texture_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_velocity_texture(&mut self,) -> Rid { + self.get_velocity_texture_ex() . done() + } + #[inline] + pub fn get_velocity_texture_ex < 'a > (&'a mut self,) -> ExGetVelocityTexture < 'a > { + ExGetVelocityTexture::new(self,) + } + pub(crate) fn get_velocity_layer_full(&mut self, layer: u32, msaa: bool,) -> Rid { + type CallSig = (Rid, u32, bool); + let args = (layer, msaa,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7004usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_velocity_layer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_velocity_layer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_velocity_layer(&mut self, layer: u32,) -> Rid { + self.get_velocity_layer_ex(layer,) . done() + } + #[inline] + pub fn get_velocity_layer_ex < 'a > (&'a mut self, layer: u32,) -> ExGetVelocityLayer < 'a > { + ExGetVelocityLayer::new(self, layer,) + } + pub fn get_render_target(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7005usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_render_target", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_view_count(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7006usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_view_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_internal_size(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7007usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_internal_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_target_size(&self,) -> Vector2i { + type CallSig = (Vector2i,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7008usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_target_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scaling_3d_mode(&self,) -> crate::classes::rendering_server::ViewportScaling3DMode { + type CallSig = (crate::classes::rendering_server::ViewportScaling3DMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7009usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_scaling_3d_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_fsr_sharpness(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7010usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_fsr_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_msaa_3d(&self,) -> crate::classes::rendering_server::ViewportMsaa { + type CallSig = (crate::classes::rendering_server::ViewportMsaa,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7011usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_msaa_3d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_texture_samples(&self,) -> crate::classes::rendering_device::TextureSamples { + type CallSig = (crate::classes::rendering_device::TextureSamples,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7012usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_texture_samples", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_screen_space_aa(&self,) -> crate::classes::rendering_server::ViewportScreenSpaceAa { + type CallSig = (crate::classes::rendering_server::ViewportScreenSpaceAa,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7013usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_screen_space_aa", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_taa(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7014usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_use_taa", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_use_debanding(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7015usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneBuffersRd", "get_use_debanding", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RenderSceneBuffersRd { + type Base = crate::classes::RenderSceneBuffers; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderSceneBuffersRD")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RenderSceneBuffersRd { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RenderSceneBuffers > for RenderSceneBuffersRd { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RenderSceneBuffersRd { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderSceneBuffersRd { + + } + impl crate::obj::cap::GodotDefault for RenderSceneBuffersRd { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RenderSceneBuffersRd { + type Target = crate::classes::RenderSceneBuffers; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderSceneBuffersRd { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderSceneBuffersRd`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderSceneBuffersRd { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderSceneBuffersRd > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderSceneBuffers > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`RenderSceneBuffersRd::get_color_texture_ex`][super::RenderSceneBuffersRd::get_color_texture_ex]."] +#[must_use] +pub struct ExGetColorTexture < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderSceneBuffersRd, msaa: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetColorTexture < 'a > { + fn new(surround_object: &'a mut re_export::RenderSceneBuffersRd,) -> Self { + let msaa = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, msaa: msaa, + } + } + #[inline] + pub fn msaa(self, msaa: bool) -> Self { + Self { + msaa: msaa, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, msaa, + } + = self; + re_export::RenderSceneBuffersRd::get_color_texture_full(surround_object, msaa,) + } +} +#[doc = "Default-param extender for [`RenderSceneBuffersRd::get_color_layer_ex`][super::RenderSceneBuffersRd::get_color_layer_ex]."] +#[must_use] +pub struct ExGetColorLayer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderSceneBuffersRd, layer: u32, msaa: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetColorLayer < 'a > { + fn new(surround_object: &'a mut re_export::RenderSceneBuffersRd, layer: u32,) -> Self { + let msaa = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, layer: layer, msaa: msaa, + } + } + #[inline] + pub fn msaa(self, msaa: bool) -> Self { + Self { + msaa: msaa, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, layer, msaa, + } + = self; + re_export::RenderSceneBuffersRd::get_color_layer_full(surround_object, layer, msaa,) + } +} +#[doc = "Default-param extender for [`RenderSceneBuffersRd::get_depth_texture_ex`][super::RenderSceneBuffersRd::get_depth_texture_ex]."] +#[must_use] +pub struct ExGetDepthTexture < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderSceneBuffersRd, msaa: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetDepthTexture < 'a > { + fn new(surround_object: &'a mut re_export::RenderSceneBuffersRd,) -> Self { + let msaa = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, msaa: msaa, + } + } + #[inline] + pub fn msaa(self, msaa: bool) -> Self { + Self { + msaa: msaa, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, msaa, + } + = self; + re_export::RenderSceneBuffersRd::get_depth_texture_full(surround_object, msaa,) + } +} +#[doc = "Default-param extender for [`RenderSceneBuffersRd::get_depth_layer_ex`][super::RenderSceneBuffersRd::get_depth_layer_ex]."] +#[must_use] +pub struct ExGetDepthLayer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderSceneBuffersRd, layer: u32, msaa: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetDepthLayer < 'a > { + fn new(surround_object: &'a mut re_export::RenderSceneBuffersRd, layer: u32,) -> Self { + let msaa = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, layer: layer, msaa: msaa, + } + } + #[inline] + pub fn msaa(self, msaa: bool) -> Self { + Self { + msaa: msaa, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, layer, msaa, + } + = self; + re_export::RenderSceneBuffersRd::get_depth_layer_full(surround_object, layer, msaa,) + } +} +#[doc = "Default-param extender for [`RenderSceneBuffersRd::get_velocity_texture_ex`][super::RenderSceneBuffersRd::get_velocity_texture_ex]."] +#[must_use] +pub struct ExGetVelocityTexture < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderSceneBuffersRd, msaa: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetVelocityTexture < 'a > { + fn new(surround_object: &'a mut re_export::RenderSceneBuffersRd,) -> Self { + let msaa = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, msaa: msaa, + } + } + #[inline] + pub fn msaa(self, msaa: bool) -> Self { + Self { + msaa: msaa, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, msaa, + } + = self; + re_export::RenderSceneBuffersRd::get_velocity_texture_full(surround_object, msaa,) + } +} +#[doc = "Default-param extender for [`RenderSceneBuffersRd::get_velocity_layer_ex`][super::RenderSceneBuffersRd::get_velocity_layer_ex]."] +#[must_use] +pub struct ExGetVelocityLayer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderSceneBuffersRd, layer: u32, msaa: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetVelocityLayer < 'a > { + fn new(surround_object: &'a mut re_export::RenderSceneBuffersRd, layer: u32,) -> Self { + let msaa = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, layer: layer, msaa: msaa, + } + } + #[inline] + pub fn msaa(self, msaa: bool) -> Self { + Self { + msaa: msaa, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, layer, msaa, + } + = self; + re_export::RenderSceneBuffersRd::get_velocity_layer_full(surround_object, layer, msaa,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_data.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_data.rs new file mode 100644 index 0000000..ebd4ded --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_data.rs @@ -0,0 +1,230 @@ +#![doc = "Sidecar module for class [`RenderSceneData`][crate::classes::RenderSceneData].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderSceneData` enums](https://docs.godotengine.org/en/stable/classes/class_renderscenedata.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderSceneData.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IRenderSceneData`][crate::classes::IRenderSceneData]: virtual methods\n\n\nSee also [Godot docs for `RenderSceneData`](https://docs.godotengine.org/en/stable/classes/class_renderscenedata.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderSceneData { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderSceneData`][crate::classes::RenderSceneData].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderSceneData` methods](https://docs.godotengine.org/en/stable/classes/class_renderscenedata.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderSceneData: crate::obj::GodotClass < Base = RenderSceneData > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RenderSceneData { + pub fn get_cam_transform(&self,) -> Transform3D { + type CallSig = (Transform3D,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7016usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneData", "get_cam_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cam_projection(&self,) -> Projection { + type CallSig = (Projection,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7017usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneData", "get_cam_projection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_view_count(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7018usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneData", "get_view_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_view_eye_offset(&self, view: u32,) -> Vector3 { + type CallSig = (Vector3, u32); + let args = (view,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7019usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneData", "get_view_eye_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_view_projection(&self, view: u32,) -> Projection { + type CallSig = (Projection, u32); + let args = (view,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7020usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneData", "get_view_projection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_uniform_buffer(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7021usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderSceneData", "get_uniform_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RenderSceneData { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderSceneData")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RenderSceneData { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderSceneData { + + } + impl std::ops::Deref for RenderSceneData { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderSceneData { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderSceneData`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderSceneData { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderSceneData > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_data_extension.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_data_extension.rs new file mode 100644 index 0000000..6284f4f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_data_extension.rs @@ -0,0 +1,211 @@ +#![doc = "Sidecar module for class [`RenderSceneDataExtension`][crate::classes::RenderSceneDataExtension].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderSceneDataExtension` enums](https://docs.godotengine.org/en/stable/classes/class_renderscenedataextension.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderSceneDataExtension.`\n\nInherits [`RenderSceneData`][crate::classes::RenderSceneData].\n\nRelated symbols:\n\n* [`IRenderSceneDataExtension`][crate::classes::IRenderSceneDataExtension]: virtual methods\n\n\nSee also [Godot docs for `RenderSceneDataExtension`](https://docs.godotengine.org/en/stable/classes/class_renderscenedataextension.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RenderSceneDataExtension::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderSceneDataExtension { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderSceneDataExtension`][crate::classes::RenderSceneDataExtension].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderSceneDataExtension` methods](https://docs.godotengine.org/en/stable/classes/class_renderscenedataextension.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderSceneDataExtension: crate::obj::GodotClass < Base = RenderSceneDataExtension > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_cam_transform(&self,) -> Transform3D { + unimplemented !() + } + fn get_cam_projection(&self,) -> Projection { + unimplemented !() + } + fn get_view_count(&self,) -> u32 { + unimplemented !() + } + fn get_view_eye_offset(&self, view: u32,) -> Vector3 { + unimplemented !() + } + fn get_view_projection(&self, view: u32,) -> Projection { + unimplemented !() + } + fn get_uniform_buffer(&self,) -> Rid { + unimplemented !() + } + } + impl RenderSceneDataExtension { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RenderSceneDataExtension { + type Base = crate::classes::RenderSceneData; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderSceneDataExtension")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RenderSceneDataExtension { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RenderSceneData > for RenderSceneDataExtension { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderSceneDataExtension { + + } + impl crate::obj::cap::GodotDefault for RenderSceneDataExtension { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RenderSceneDataExtension { + type Target = crate::classes::RenderSceneData; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderSceneDataExtension { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderSceneDataExtension`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderSceneDataExtension { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderSceneDataExtension > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderSceneData > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_data_rd.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_data_rd.rs new file mode 100644 index 0000000..ecc2d09 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/render_scene_data_rd.rs @@ -0,0 +1,193 @@ +#![doc = "Sidecar module for class [`RenderSceneDataRd`][crate::classes::RenderSceneDataRd].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderSceneDataRD` enums](https://docs.godotengine.org/en/stable/classes/class_renderscenedatard.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderSceneDataRD.`\n\nInherits [`RenderSceneData`][crate::classes::RenderSceneData].\n\nRelated symbols:\n\n* [`IRenderSceneDataRd`][crate::classes::IRenderSceneDataRd]: virtual methods\n\n\nSee also [Godot docs for `RenderSceneDataRD`](https://docs.godotengine.org/en/stable/classes/class_renderscenedatard.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RenderSceneDataRd::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderSceneDataRd { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderSceneDataRd`][crate::classes::RenderSceneDataRd].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderSceneDataRD` methods](https://docs.godotengine.org/en/stable/classes/class_renderscenedatard.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderSceneDataRd: crate::obj::GodotClass < Base = RenderSceneDataRd > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RenderSceneDataRd { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RenderSceneDataRd { + type Base = crate::classes::RenderSceneData; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderSceneDataRD")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RenderSceneDataRd { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RenderSceneData > for RenderSceneDataRd { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderSceneDataRd { + + } + impl crate::obj::cap::GodotDefault for RenderSceneDataRd { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RenderSceneDataRd { + type Target = crate::classes::RenderSceneData; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderSceneDataRd { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderSceneDataRd`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderSceneDataRd { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderSceneDataRd > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderSceneData > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rendering_device.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rendering_device.rs new file mode 100644 index 0000000..0d02e89 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rendering_device.rs @@ -0,0 +1,6618 @@ +#![doc = "Sidecar module for class [`RenderingDevice`][crate::classes::RenderingDevice].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderingDevice` enums](https://docs.godotengine.org/en/stable/classes/class_renderingdevice.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderingDevice.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`rendering_device`][crate::classes::rendering_device]: sidecar module with related enum/flag types\n* [`IRenderingDevice`][crate::classes::IRenderingDevice]: virtual methods\n\n\nSee also [Godot docs for `RenderingDevice`](https://docs.godotengine.org/en/stable/classes/class_renderingdevice.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderingDevice { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderingDevice`][crate::classes::RenderingDevice].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderingDevice` methods](https://docs.godotengine.org/en/stable/classes/class_renderingdevice.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderingDevice: crate::obj::GodotClass < Base = RenderingDevice > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RenderingDevice { + pub(crate) fn texture_create_full(&mut self, format: ObjectArg < crate::classes::RdTextureFormat >, view: ObjectArg < crate::classes::RdTextureView >, data: RefArg < Array < PackedByteArray > >,) -> Rid { + type CallSig < 'a0, > = (Rid, ObjectArg < crate::classes::RdTextureFormat >, ObjectArg < crate::classes::RdTextureView >, RefArg < 'a0, Array < PackedByteArray > >); + let args = (format, view, data,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7022usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::texture_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn texture_create(&mut self, format: impl AsObjectArg < crate::classes::RdTextureFormat >, view: impl AsObjectArg < crate::classes::RdTextureView >,) -> Rid { + self.texture_create_ex(format, view,) . done() + } + #[inline] + pub fn texture_create_ex < 'a > (&'a mut self, format: impl AsObjectArg < crate::classes::RdTextureFormat >, view: impl AsObjectArg < crate::classes::RdTextureView >,) -> ExTextureCreate < 'a > { + ExTextureCreate::new(self, format, view,) + } + pub fn texture_create_shared(&mut self, view: impl AsObjectArg < crate::classes::RdTextureView >, with_texture: Rid,) -> Rid { + type CallSig = (Rid, ObjectArg < crate::classes::RdTextureView >, Rid); + let args = (view.as_object_arg(), with_texture,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7023usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_create_shared", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn texture_create_shared_from_slice_full(&mut self, view: ObjectArg < crate::classes::RdTextureView >, with_texture: Rid, layer: u32, mipmap: u32, mipmaps: u32, slice_type: crate::classes::rendering_device::TextureSliceType,) -> Rid { + type CallSig = (Rid, ObjectArg < crate::classes::RdTextureView >, Rid, u32, u32, u32, crate::classes::rendering_device::TextureSliceType); + let args = (view, with_texture, layer, mipmap, mipmaps, slice_type,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7024usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_create_shared_from_slice", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::texture_create_shared_from_slice_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn texture_create_shared_from_slice(&mut self, view: impl AsObjectArg < crate::classes::RdTextureView >, with_texture: Rid, layer: u32, mipmap: u32,) -> Rid { + self.texture_create_shared_from_slice_ex(view, with_texture, layer, mipmap,) . done() + } + #[inline] + pub fn texture_create_shared_from_slice_ex < 'a > (&'a mut self, view: impl AsObjectArg < crate::classes::RdTextureView >, with_texture: Rid, layer: u32, mipmap: u32,) -> ExTextureCreateSharedFromSlice < 'a > { + ExTextureCreateSharedFromSlice::new(self, view, with_texture, layer, mipmap,) + } + pub fn texture_create_from_extension(&mut self, type_: crate::classes::rendering_device::TextureType, format: crate::classes::rendering_device::DataFormat, samples: crate::classes::rendering_device::TextureSamples, usage_flags: crate::classes::rendering_device::TextureUsageBits, image: u64, width: u64, height: u64, depth: u64, layers: u64,) -> Rid { + type CallSig = (Rid, crate::classes::rendering_device::TextureType, crate::classes::rendering_device::DataFormat, crate::classes::rendering_device::TextureSamples, crate::classes::rendering_device::TextureUsageBits, u64, u64, u64, u64, u64); + let args = (type_, format, samples, usage_flags, image, width, height, depth, layers,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7025usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_create_from_extension", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_update(&mut self, texture: Rid, layer: u32, data: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, Rid, u32, RefArg < 'a0, PackedByteArray >); + let args = (texture, layer, RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7026usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_get_data(&mut self, texture: Rid, layer: u32,) -> PackedByteArray { + type CallSig = (PackedByteArray, Rid, u32); + let args = (texture, layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7027usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_get_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_is_format_supported_for_usage(&self, format: crate::classes::rendering_device::DataFormat, usage_flags: crate::classes::rendering_device::TextureUsageBits,) -> bool { + type CallSig = (bool, crate::classes::rendering_device::DataFormat, crate::classes::rendering_device::TextureUsageBits); + let args = (format, usage_flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7028usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_is_format_supported_for_usage", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_is_shared(&mut self, texture: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (texture,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7029usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_is_shared", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_is_valid(&mut self, texture: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (texture,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7030usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_is_valid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_copy(&mut self, from_texture: Rid, to_texture: Rid, from_pos: Vector3, to_pos: Vector3, size: Vector3, src_mipmap: u32, dst_mipmap: u32, src_layer: u32, dst_layer: u32,) -> crate::global::Error { + type CallSig = (crate::global::Error, Rid, Rid, Vector3, Vector3, Vector3, u32, u32, u32, u32); + let args = (from_texture, to_texture, from_pos, to_pos, size, src_mipmap, dst_mipmap, src_layer, dst_layer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7031usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_copy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_clear(&mut self, texture: Rid, color: Color, base_mipmap: u32, mipmap_count: u32, base_layer: u32, layer_count: u32,) -> crate::global::Error { + type CallSig = (crate::global::Error, Rid, Color, u32, u32, u32, u32); + let args = (texture, color, base_mipmap, mipmap_count, base_layer, layer_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7032usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_resolve_multisample(&mut self, from_texture: Rid, to_texture: Rid,) -> crate::global::Error { + type CallSig = (crate::global::Error, Rid, Rid); + let args = (from_texture, to_texture,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7033usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_resolve_multisample", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_get_format(&mut self, texture: Rid,) -> Option < Gd < crate::classes::RdTextureFormat > > { + type CallSig = (Option < Gd < crate::classes::RdTextureFormat > >, Rid); + let args = (texture,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7034usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_get_native_handle(&mut self, texture: Rid,) -> u64 { + type CallSig = (u64, Rid); + let args = (texture,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7035usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_get_native_handle", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn framebuffer_format_create_full(&mut self, attachments: RefArg < Array < Gd < crate::classes::RdAttachmentFormat > > >, view_count: u32,) -> i64 { + type CallSig < 'a0, > = (i64, RefArg < 'a0, Array < Gd < crate::classes::RdAttachmentFormat > > >, u32); + let args = (attachments, view_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7036usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "framebuffer_format_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::framebuffer_format_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn framebuffer_format_create(&mut self, attachments: &Array < Gd < crate::classes::RdAttachmentFormat > >,) -> i64 { + self.framebuffer_format_create_ex(attachments,) . done() + } + #[inline] + pub fn framebuffer_format_create_ex < 'a > (&'a mut self, attachments: &'a Array < Gd < crate::classes::RdAttachmentFormat > >,) -> ExFramebufferFormatCreate < 'a > { + ExFramebufferFormatCreate::new(self, attachments,) + } + pub(crate) fn framebuffer_format_create_multipass_full(&mut self, attachments: RefArg < Array < Gd < crate::classes::RdAttachmentFormat > > >, passes: RefArg < Array < Gd < crate::classes::RdFramebufferPass > > >, view_count: u32,) -> i64 { + type CallSig < 'a0, 'a1, > = (i64, RefArg < 'a0, Array < Gd < crate::classes::RdAttachmentFormat > > >, RefArg < 'a1, Array < Gd < crate::classes::RdFramebufferPass > > >, u32); + let args = (attachments, passes, view_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7037usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "framebuffer_format_create_multipass", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::framebuffer_format_create_multipass_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn framebuffer_format_create_multipass(&mut self, attachments: &Array < Gd < crate::classes::RdAttachmentFormat > >, passes: &Array < Gd < crate::classes::RdFramebufferPass > >,) -> i64 { + self.framebuffer_format_create_multipass_ex(attachments, passes,) . done() + } + #[inline] + pub fn framebuffer_format_create_multipass_ex < 'a > (&'a mut self, attachments: &'a Array < Gd < crate::classes::RdAttachmentFormat > >, passes: &'a Array < Gd < crate::classes::RdFramebufferPass > >,) -> ExFramebufferFormatCreateMultipass < 'a > { + ExFramebufferFormatCreateMultipass::new(self, attachments, passes,) + } + pub(crate) fn framebuffer_format_create_empty_full(&mut self, samples: crate::classes::rendering_device::TextureSamples,) -> i64 { + type CallSig = (i64, crate::classes::rendering_device::TextureSamples); + let args = (samples,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7038usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "framebuffer_format_create_empty", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::framebuffer_format_create_empty_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn framebuffer_format_create_empty(&mut self,) -> i64 { + self.framebuffer_format_create_empty_ex() . done() + } + #[inline] + pub fn framebuffer_format_create_empty_ex < 'a > (&'a mut self,) -> ExFramebufferFormatCreateEmpty < 'a > { + ExFramebufferFormatCreateEmpty::new(self,) + } + pub(crate) fn framebuffer_format_get_texture_samples_full(&mut self, format: i64, render_pass: u32,) -> crate::classes::rendering_device::TextureSamples { + type CallSig = (crate::classes::rendering_device::TextureSamples, i64, u32); + let args = (format, render_pass,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7039usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "framebuffer_format_get_texture_samples", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::framebuffer_format_get_texture_samples_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn framebuffer_format_get_texture_samples(&mut self, format: i64,) -> crate::classes::rendering_device::TextureSamples { + self.framebuffer_format_get_texture_samples_ex(format,) . done() + } + #[inline] + pub fn framebuffer_format_get_texture_samples_ex < 'a > (&'a mut self, format: i64,) -> ExFramebufferFormatGetTextureSamples < 'a > { + ExFramebufferFormatGetTextureSamples::new(self, format,) + } + pub(crate) fn framebuffer_create_full(&mut self, textures: RefArg < Array < Rid > >, validate_with_format: i64, view_count: u32,) -> Rid { + type CallSig < 'a0, > = (Rid, RefArg < 'a0, Array < Rid > >, i64, u32); + let args = (textures, validate_with_format, view_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7040usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "framebuffer_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::framebuffer_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn framebuffer_create(&mut self, textures: &Array < Rid >,) -> Rid { + self.framebuffer_create_ex(textures,) . done() + } + #[inline] + pub fn framebuffer_create_ex < 'a > (&'a mut self, textures: &'a Array < Rid >,) -> ExFramebufferCreate < 'a > { + ExFramebufferCreate::new(self, textures,) + } + pub(crate) fn framebuffer_create_multipass_full(&mut self, textures: RefArg < Array < Rid > >, passes: RefArg < Array < Gd < crate::classes::RdFramebufferPass > > >, validate_with_format: i64, view_count: u32,) -> Rid { + type CallSig < 'a0, 'a1, > = (Rid, RefArg < 'a0, Array < Rid > >, RefArg < 'a1, Array < Gd < crate::classes::RdFramebufferPass > > >, i64, u32); + let args = (textures, passes, validate_with_format, view_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7041usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "framebuffer_create_multipass", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::framebuffer_create_multipass_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn framebuffer_create_multipass(&mut self, textures: &Array < Rid >, passes: &Array < Gd < crate::classes::RdFramebufferPass > >,) -> Rid { + self.framebuffer_create_multipass_ex(textures, passes,) . done() + } + #[inline] + pub fn framebuffer_create_multipass_ex < 'a > (&'a mut self, textures: &'a Array < Rid >, passes: &'a Array < Gd < crate::classes::RdFramebufferPass > >,) -> ExFramebufferCreateMultipass < 'a > { + ExFramebufferCreateMultipass::new(self, textures, passes,) + } + pub(crate) fn framebuffer_create_empty_full(&mut self, size: Vector2i, samples: crate::classes::rendering_device::TextureSamples, validate_with_format: i64,) -> Rid { + type CallSig = (Rid, Vector2i, crate::classes::rendering_device::TextureSamples, i64); + let args = (size, samples, validate_with_format,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7042usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "framebuffer_create_empty", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::framebuffer_create_empty_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn framebuffer_create_empty(&mut self, size: Vector2i,) -> Rid { + self.framebuffer_create_empty_ex(size,) . done() + } + #[inline] + pub fn framebuffer_create_empty_ex < 'a > (&'a mut self, size: Vector2i,) -> ExFramebufferCreateEmpty < 'a > { + ExFramebufferCreateEmpty::new(self, size,) + } + pub fn framebuffer_get_format(&mut self, framebuffer: Rid,) -> i64 { + type CallSig = (i64, Rid); + let args = (framebuffer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7043usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "framebuffer_get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn framebuffer_is_valid(&self, framebuffer: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (framebuffer,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7044usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "framebuffer_is_valid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sampler_create(&mut self, state: impl AsObjectArg < crate::classes::RdSamplerState >,) -> Rid { + type CallSig = (Rid, ObjectArg < crate::classes::RdSamplerState >); + let args = (state.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7045usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "sampler_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sampler_is_format_supported_for_filter(&self, format: crate::classes::rendering_device::DataFormat, sampler_filter: crate::classes::rendering_device::SamplerFilter,) -> bool { + type CallSig = (bool, crate::classes::rendering_device::DataFormat, crate::classes::rendering_device::SamplerFilter); + let args = (format, sampler_filter,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7046usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "sampler_is_format_supported_for_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn vertex_buffer_create_full(&mut self, size_bytes: u32, data: RefArg < PackedByteArray >, use_as_storage: bool,) -> Rid { + type CallSig < 'a0, > = (Rid, u32, RefArg < 'a0, PackedByteArray >, bool); + let args = (size_bytes, data, use_as_storage,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7047usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "vertex_buffer_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::vertex_buffer_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn vertex_buffer_create(&mut self, size_bytes: u32,) -> Rid { + self.vertex_buffer_create_ex(size_bytes,) . done() + } + #[inline] + pub fn vertex_buffer_create_ex < 'a > (&'a mut self, size_bytes: u32,) -> ExVertexBufferCreate < 'a > { + ExVertexBufferCreate::new(self, size_bytes,) + } + pub fn vertex_format_create(&mut self, vertex_descriptions: &Array < Gd < crate::classes::RdVertexAttribute > >,) -> i64 { + type CallSig < 'a0, > = (i64, RefArg < 'a0, Array < Gd < crate::classes::RdVertexAttribute > > >); + let args = (RefArg::new(vertex_descriptions),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7048usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "vertex_format_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn vertex_array_create_full(&mut self, vertex_count: u32, vertex_format: i64, src_buffers: RefArg < Array < Rid > >, offsets: RefArg < PackedInt64Array >,) -> Rid { + type CallSig < 'a0, 'a1, > = (Rid, u32, i64, RefArg < 'a0, Array < Rid > >, RefArg < 'a1, PackedInt64Array >); + let args = (vertex_count, vertex_format, src_buffers, offsets,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7049usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "vertex_array_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::vertex_array_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn vertex_array_create(&mut self, vertex_count: u32, vertex_format: i64, src_buffers: &Array < Rid >,) -> Rid { + self.vertex_array_create_ex(vertex_count, vertex_format, src_buffers,) . done() + } + #[inline] + pub fn vertex_array_create_ex < 'a > (&'a mut self, vertex_count: u32, vertex_format: i64, src_buffers: &'a Array < Rid >,) -> ExVertexArrayCreate < 'a > { + ExVertexArrayCreate::new(self, vertex_count, vertex_format, src_buffers,) + } + pub(crate) fn index_buffer_create_full(&mut self, size_indices: u32, format: crate::classes::rendering_device::IndexBufferFormat, data: RefArg < PackedByteArray >, use_restart_indices: bool,) -> Rid { + type CallSig < 'a0, > = (Rid, u32, crate::classes::rendering_device::IndexBufferFormat, RefArg < 'a0, PackedByteArray >, bool); + let args = (size_indices, format, data, use_restart_indices,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7050usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "index_buffer_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::index_buffer_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn index_buffer_create(&mut self, size_indices: u32, format: crate::classes::rendering_device::IndexBufferFormat,) -> Rid { + self.index_buffer_create_ex(size_indices, format,) . done() + } + #[inline] + pub fn index_buffer_create_ex < 'a > (&'a mut self, size_indices: u32, format: crate::classes::rendering_device::IndexBufferFormat,) -> ExIndexBufferCreate < 'a > { + ExIndexBufferCreate::new(self, size_indices, format,) + } + pub fn index_array_create(&mut self, index_buffer: Rid, index_offset: u32, index_count: u32,) -> Rid { + type CallSig = (Rid, Rid, u32, u32); + let args = (index_buffer, index_offset, index_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7051usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "index_array_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn shader_compile_spirv_from_source_full(&mut self, shader_source: ObjectArg < crate::classes::RdShaderSource >, allow_cache: bool,) -> Option < Gd < crate::classes::RdShaderSpirv > > { + type CallSig = (Option < Gd < crate::classes::RdShaderSpirv > >, ObjectArg < crate::classes::RdShaderSource >, bool); + let args = (shader_source, allow_cache,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7052usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "shader_compile_spirv_from_source", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::shader_compile_spirv_from_source_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn shader_compile_spirv_from_source(&mut self, shader_source: impl AsObjectArg < crate::classes::RdShaderSource >,) -> Option < Gd < crate::classes::RdShaderSpirv > > { + self.shader_compile_spirv_from_source_ex(shader_source,) . done() + } + #[inline] + pub fn shader_compile_spirv_from_source_ex < 'a > (&'a mut self, shader_source: impl AsObjectArg < crate::classes::RdShaderSource >,) -> ExShaderCompileSpirvFromSource < 'a > { + ExShaderCompileSpirvFromSource::new(self, shader_source,) + } + pub(crate) fn shader_compile_binary_from_spirv_full(&mut self, spirv_data: ObjectArg < crate::classes::RdShaderSpirv >, name: CowArg < GString >,) -> PackedByteArray { + type CallSig < 'a0, > = (PackedByteArray, ObjectArg < crate::classes::RdShaderSpirv >, CowArg < 'a0, GString >); + let args = (spirv_data, name,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7053usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "shader_compile_binary_from_spirv", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::shader_compile_binary_from_spirv_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn shader_compile_binary_from_spirv(&mut self, spirv_data: impl AsObjectArg < crate::classes::RdShaderSpirv >,) -> PackedByteArray { + self.shader_compile_binary_from_spirv_ex(spirv_data,) . done() + } + #[inline] + pub fn shader_compile_binary_from_spirv_ex < 'a > (&'a mut self, spirv_data: impl AsObjectArg < crate::classes::RdShaderSpirv >,) -> ExShaderCompileBinaryFromSpirv < 'a > { + ExShaderCompileBinaryFromSpirv::new(self, spirv_data,) + } + pub(crate) fn shader_create_from_spirv_full(&mut self, spirv_data: ObjectArg < crate::classes::RdShaderSpirv >, name: CowArg < GString >,) -> Rid { + type CallSig < 'a0, > = (Rid, ObjectArg < crate::classes::RdShaderSpirv >, CowArg < 'a0, GString >); + let args = (spirv_data, name,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7054usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "shader_create_from_spirv", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::shader_create_from_spirv_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn shader_create_from_spirv(&mut self, spirv_data: impl AsObjectArg < crate::classes::RdShaderSpirv >,) -> Rid { + self.shader_create_from_spirv_ex(spirv_data,) . done() + } + #[inline] + pub fn shader_create_from_spirv_ex < 'a > (&'a mut self, spirv_data: impl AsObjectArg < crate::classes::RdShaderSpirv >,) -> ExShaderCreateFromSpirv < 'a > { + ExShaderCreateFromSpirv::new(self, spirv_data,) + } + pub(crate) fn shader_create_from_bytecode_full(&mut self, binary_data: RefArg < PackedByteArray >, placeholder_rid: Rid,) -> Rid { + type CallSig < 'a0, > = (Rid, RefArg < 'a0, PackedByteArray >, Rid); + let args = (binary_data, placeholder_rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7055usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "shader_create_from_bytecode", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::shader_create_from_bytecode_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn shader_create_from_bytecode(&mut self, binary_data: &PackedByteArray,) -> Rid { + self.shader_create_from_bytecode_ex(binary_data,) . done() + } + #[inline] + pub fn shader_create_from_bytecode_ex < 'a > (&'a mut self, binary_data: &'a PackedByteArray,) -> ExShaderCreateFromBytecode < 'a > { + ExShaderCreateFromBytecode::new(self, binary_data,) + } + pub fn shader_create_placeholder(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7056usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "shader_create_placeholder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shader_get_vertex_input_attribute_mask(&mut self, shader: Rid,) -> u64 { + type CallSig = (u64, Rid); + let args = (shader,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7057usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "shader_get_vertex_input_attribute_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn uniform_buffer_create_full(&mut self, size_bytes: u32, data: RefArg < PackedByteArray >,) -> Rid { + type CallSig < 'a0, > = (Rid, u32, RefArg < 'a0, PackedByteArray >); + let args = (size_bytes, data,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7058usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "uniform_buffer_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::uniform_buffer_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn uniform_buffer_create(&mut self, size_bytes: u32,) -> Rid { + self.uniform_buffer_create_ex(size_bytes,) . done() + } + #[inline] + pub fn uniform_buffer_create_ex < 'a > (&'a mut self, size_bytes: u32,) -> ExUniformBufferCreate < 'a > { + ExUniformBufferCreate::new(self, size_bytes,) + } + pub(crate) fn storage_buffer_create_full(&mut self, size_bytes: u32, data: RefArg < PackedByteArray >, usage: crate::classes::rendering_device::StorageBufferUsage,) -> Rid { + type CallSig < 'a0, > = (Rid, u32, RefArg < 'a0, PackedByteArray >, crate::classes::rendering_device::StorageBufferUsage); + let args = (size_bytes, data, usage,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7059usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "storage_buffer_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::storage_buffer_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn storage_buffer_create(&mut self, size_bytes: u32,) -> Rid { + self.storage_buffer_create_ex(size_bytes,) . done() + } + #[inline] + pub fn storage_buffer_create_ex < 'a > (&'a mut self, size_bytes: u32,) -> ExStorageBufferCreate < 'a > { + ExStorageBufferCreate::new(self, size_bytes,) + } + pub(crate) fn texture_buffer_create_full(&mut self, size_bytes: u32, format: crate::classes::rendering_device::DataFormat, data: RefArg < PackedByteArray >,) -> Rid { + type CallSig < 'a0, > = (Rid, u32, crate::classes::rendering_device::DataFormat, RefArg < 'a0, PackedByteArray >); + let args = (size_bytes, format, data,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7060usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "texture_buffer_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::texture_buffer_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn texture_buffer_create(&mut self, size_bytes: u32, format: crate::classes::rendering_device::DataFormat,) -> Rid { + self.texture_buffer_create_ex(size_bytes, format,) . done() + } + #[inline] + pub fn texture_buffer_create_ex < 'a > (&'a mut self, size_bytes: u32, format: crate::classes::rendering_device::DataFormat,) -> ExTextureBufferCreate < 'a > { + ExTextureBufferCreate::new(self, size_bytes, format,) + } + pub fn uniform_set_create(&mut self, uniforms: &Array < Gd < crate::classes::RdUniform > >, shader: Rid, shader_set: u32,) -> Rid { + type CallSig < 'a0, > = (Rid, RefArg < 'a0, Array < Gd < crate::classes::RdUniform > > >, Rid, u32); + let args = (RefArg::new(uniforms), shader, shader_set,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7061usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "uniform_set_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn uniform_set_is_valid(&mut self, uniform_set: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (uniform_set,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7062usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "uniform_set_is_valid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn buffer_copy(&mut self, src_buffer: Rid, dst_buffer: Rid, src_offset: u32, dst_offset: u32, size: u32,) -> crate::global::Error { + type CallSig = (crate::global::Error, Rid, Rid, u32, u32, u32); + let args = (src_buffer, dst_buffer, src_offset, dst_offset, size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7063usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "buffer_copy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn buffer_update(&mut self, buffer: Rid, offset: u32, size_bytes: u32, data: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, Rid, u32, u32, RefArg < 'a0, PackedByteArray >); + let args = (buffer, offset, size_bytes, RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7064usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "buffer_update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn buffer_clear(&mut self, buffer: Rid, offset: u32, size_bytes: u32,) -> crate::global::Error { + type CallSig = (crate::global::Error, Rid, u32, u32); + let args = (buffer, offset, size_bytes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7065usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "buffer_clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn buffer_get_data_full(&mut self, buffer: Rid, offset_bytes: u32, size_bytes: u32,) -> PackedByteArray { + type CallSig = (PackedByteArray, Rid, u32, u32); + let args = (buffer, offset_bytes, size_bytes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7066usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "buffer_get_data", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::buffer_get_data_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn buffer_get_data(&mut self, buffer: Rid,) -> PackedByteArray { + self.buffer_get_data_ex(buffer,) . done() + } + #[inline] + pub fn buffer_get_data_ex < 'a > (&'a mut self, buffer: Rid,) -> ExBufferGetData < 'a > { + ExBufferGetData::new(self, buffer,) + } + pub(crate) fn render_pipeline_create_full(&mut self, shader: Rid, framebuffer_format: i64, vertex_format: i64, primitive: crate::classes::rendering_device::RenderPrimitive, rasterization_state: ObjectArg < crate::classes::RdPipelineRasterizationState >, multisample_state: ObjectArg < crate::classes::RdPipelineMultisampleState >, stencil_state: ObjectArg < crate::classes::RdPipelineDepthStencilState >, color_blend_state: ObjectArg < crate::classes::RdPipelineColorBlendState >, dynamic_state_flags: crate::classes::rendering_device::PipelineDynamicStateFlags, for_render_pass: u32, specialization_constants: RefArg < Array < Gd < crate::classes::RdPipelineSpecializationConstant > > >,) -> Rid { + type CallSig < 'a0, > = (Rid, Rid, i64, i64, crate::classes::rendering_device::RenderPrimitive, ObjectArg < crate::classes::RdPipelineRasterizationState >, ObjectArg < crate::classes::RdPipelineMultisampleState >, ObjectArg < crate::classes::RdPipelineDepthStencilState >, ObjectArg < crate::classes::RdPipelineColorBlendState >, crate::classes::rendering_device::PipelineDynamicStateFlags, u32, RefArg < 'a0, Array < Gd < crate::classes::RdPipelineSpecializationConstant > > >); + let args = (shader, framebuffer_format, vertex_format, primitive, rasterization_state, multisample_state, stencil_state, color_blend_state, dynamic_state_flags, for_render_pass, specialization_constants,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7067usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "render_pipeline_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::render_pipeline_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn render_pipeline_create(&mut self, shader: Rid, framebuffer_format: i64, vertex_format: i64, primitive: crate::classes::rendering_device::RenderPrimitive, rasterization_state: impl AsObjectArg < crate::classes::RdPipelineRasterizationState >, multisample_state: impl AsObjectArg < crate::classes::RdPipelineMultisampleState >, stencil_state: impl AsObjectArg < crate::classes::RdPipelineDepthStencilState >, color_blend_state: impl AsObjectArg < crate::classes::RdPipelineColorBlendState >,) -> Rid { + self.render_pipeline_create_ex(shader, framebuffer_format, vertex_format, primitive, rasterization_state, multisample_state, stencil_state, color_blend_state,) . done() + } + #[inline] + pub fn render_pipeline_create_ex < 'a > (&'a mut self, shader: Rid, framebuffer_format: i64, vertex_format: i64, primitive: crate::classes::rendering_device::RenderPrimitive, rasterization_state: impl AsObjectArg < crate::classes::RdPipelineRasterizationState >, multisample_state: impl AsObjectArg < crate::classes::RdPipelineMultisampleState >, stencil_state: impl AsObjectArg < crate::classes::RdPipelineDepthStencilState >, color_blend_state: impl AsObjectArg < crate::classes::RdPipelineColorBlendState >,) -> ExRenderPipelineCreate < 'a > { + ExRenderPipelineCreate::new(self, shader, framebuffer_format, vertex_format, primitive, rasterization_state, multisample_state, stencil_state, color_blend_state,) + } + pub fn render_pipeline_is_valid(&mut self, render_pipeline: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (render_pipeline,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7068usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "render_pipeline_is_valid", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn compute_pipeline_create_full(&mut self, shader: Rid, specialization_constants: RefArg < Array < Gd < crate::classes::RdPipelineSpecializationConstant > > >,) -> Rid { + type CallSig < 'a0, > = (Rid, Rid, RefArg < 'a0, Array < Gd < crate::classes::RdPipelineSpecializationConstant > > >); + let args = (shader, specialization_constants,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7069usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "compute_pipeline_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::compute_pipeline_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn compute_pipeline_create(&mut self, shader: Rid,) -> Rid { + self.compute_pipeline_create_ex(shader,) . done() + } + #[inline] + pub fn compute_pipeline_create_ex < 'a > (&'a mut self, shader: Rid,) -> ExComputePipelineCreate < 'a > { + ExComputePipelineCreate::new(self, shader,) + } + pub fn compute_pipeline_is_valid(&mut self, compute_pipeline: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (compute_pipeline,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7070usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "compute_pipeline_is_valid", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn screen_get_width_full(&self, screen: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7071usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "screen_get_width", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_get_width_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_get_width(&self,) -> i32 { + self.screen_get_width_ex() . done() + } + #[inline] + pub fn screen_get_width_ex < 'a > (&'a self,) -> ExScreenGetWidth < 'a > { + ExScreenGetWidth::new(self,) + } + pub(crate) fn screen_get_height_full(&self, screen: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7072usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "screen_get_height", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_get_height_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_get_height(&self,) -> i32 { + self.screen_get_height_ex() . done() + } + #[inline] + pub fn screen_get_height_ex < 'a > (&'a self,) -> ExScreenGetHeight < 'a > { + ExScreenGetHeight::new(self,) + } + pub(crate) fn screen_get_framebuffer_format_full(&self, screen: i32,) -> i64 { + type CallSig = (i64, i32); + let args = (screen,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7073usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "screen_get_framebuffer_format", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::screen_get_framebuffer_format_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn screen_get_framebuffer_format(&self,) -> i64 { + self.screen_get_framebuffer_format_ex() . done() + } + #[inline] + pub fn screen_get_framebuffer_format_ex < 'a > (&'a self,) -> ExScreenGetFramebufferFormat < 'a > { + ExScreenGetFramebufferFormat::new(self,) + } + pub(crate) fn draw_list_begin_for_screen_full(&mut self, screen: i32, clear_color: Color,) -> i64 { + type CallSig = (i64, i32, Color); + let args = (screen, clear_color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7074usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_begin_for_screen", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_list_begin_for_screen_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_list_begin_for_screen(&mut self,) -> i64 { + self.draw_list_begin_for_screen_ex() . done() + } + #[inline] + pub fn draw_list_begin_for_screen_ex < 'a > (&'a mut self,) -> ExDrawListBeginForScreen < 'a > { + ExDrawListBeginForScreen::new(self,) + } + pub(crate) fn draw_list_begin_full(&mut self, framebuffer: Rid, initial_color_action: crate::classes::rendering_device::InitialAction, final_color_action: crate::classes::rendering_device::FinalAction, initial_depth_action: crate::classes::rendering_device::InitialAction, final_depth_action: crate::classes::rendering_device::FinalAction, clear_color_values: RefArg < PackedColorArray >, clear_depth: f32, clear_stencil: u32, region: Rect2,) -> i64 { + type CallSig < 'a0, > = (i64, Rid, crate::classes::rendering_device::InitialAction, crate::classes::rendering_device::FinalAction, crate::classes::rendering_device::InitialAction, crate::classes::rendering_device::FinalAction, RefArg < 'a0, PackedColorArray >, f32, u32, Rect2); + let args = (framebuffer, initial_color_action, final_color_action, initial_depth_action, final_depth_action, clear_color_values, clear_depth, clear_stencil, region,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7075usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_begin", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_list_begin_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_list_begin(&mut self, framebuffer: Rid, initial_color_action: crate::classes::rendering_device::InitialAction, final_color_action: crate::classes::rendering_device::FinalAction, initial_depth_action: crate::classes::rendering_device::InitialAction, final_depth_action: crate::classes::rendering_device::FinalAction,) -> i64 { + self.draw_list_begin_ex(framebuffer, initial_color_action, final_color_action, initial_depth_action, final_depth_action,) . done() + } + #[inline] + pub fn draw_list_begin_ex < 'a > (&'a mut self, framebuffer: Rid, initial_color_action: crate::classes::rendering_device::InitialAction, final_color_action: crate::classes::rendering_device::FinalAction, initial_depth_action: crate::classes::rendering_device::InitialAction, final_depth_action: crate::classes::rendering_device::FinalAction,) -> ExDrawListBegin < 'a > { + ExDrawListBegin::new(self, framebuffer, initial_color_action, final_color_action, initial_depth_action, final_depth_action,) + } + pub(crate) fn draw_list_begin_split_full(&mut self, framebuffer: Rid, splits: u32, initial_color_action: crate::classes::rendering_device::InitialAction, final_color_action: crate::classes::rendering_device::FinalAction, initial_depth_action: crate::classes::rendering_device::InitialAction, final_depth_action: crate::classes::rendering_device::FinalAction, clear_color_values: RefArg < PackedColorArray >, clear_depth: f32, clear_stencil: u32, region: Rect2, storage_textures: RefArg < Array < Rid > >,) -> PackedInt64Array { + type CallSig < 'a0, 'a1, > = (PackedInt64Array, Rid, u32, crate::classes::rendering_device::InitialAction, crate::classes::rendering_device::FinalAction, crate::classes::rendering_device::InitialAction, crate::classes::rendering_device::FinalAction, RefArg < 'a0, PackedColorArray >, f32, u32, Rect2, RefArg < 'a1, Array < Rid > >); + let args = (framebuffer, splits, initial_color_action, final_color_action, initial_depth_action, final_depth_action, clear_color_values, clear_depth, clear_stencil, region, storage_textures,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7076usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_begin_split", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_list_begin_split_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_list_begin_split(&mut self, framebuffer: Rid, splits: u32, initial_color_action: crate::classes::rendering_device::InitialAction, final_color_action: crate::classes::rendering_device::FinalAction, initial_depth_action: crate::classes::rendering_device::InitialAction, final_depth_action: crate::classes::rendering_device::FinalAction,) -> PackedInt64Array { + self.draw_list_begin_split_ex(framebuffer, splits, initial_color_action, final_color_action, initial_depth_action, final_depth_action,) . done() + } + #[inline] + pub fn draw_list_begin_split_ex < 'a > (&'a mut self, framebuffer: Rid, splits: u32, initial_color_action: crate::classes::rendering_device::InitialAction, final_color_action: crate::classes::rendering_device::FinalAction, initial_depth_action: crate::classes::rendering_device::InitialAction, final_depth_action: crate::classes::rendering_device::FinalAction,) -> ExDrawListBeginSplit < 'a > { + ExDrawListBeginSplit::new(self, framebuffer, splits, initial_color_action, final_color_action, initial_depth_action, final_depth_action,) + } + pub fn draw_list_set_blend_constants(&mut self, draw_list: i64, color: Color,) { + type CallSig = ((), i64, Color); + let args = (draw_list, color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7077usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_set_blend_constants", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn draw_list_bind_render_pipeline(&mut self, draw_list: i64, render_pipeline: Rid,) { + type CallSig = ((), i64, Rid); + let args = (draw_list, render_pipeline,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7078usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_bind_render_pipeline", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn draw_list_bind_uniform_set(&mut self, draw_list: i64, uniform_set: Rid, set_index: u32,) { + type CallSig = ((), i64, Rid, u32); + let args = (draw_list, uniform_set, set_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7079usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_bind_uniform_set", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn draw_list_bind_vertex_array(&mut self, draw_list: i64, vertex_array: Rid,) { + type CallSig = ((), i64, Rid); + let args = (draw_list, vertex_array,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7080usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_bind_vertex_array", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn draw_list_bind_index_array(&mut self, draw_list: i64, index_array: Rid,) { + type CallSig = ((), i64, Rid); + let args = (draw_list, index_array,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7081usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_bind_index_array", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn draw_list_set_push_constant(&mut self, draw_list: i64, buffer: &PackedByteArray, size_bytes: u32,) { + type CallSig < 'a0, > = ((), i64, RefArg < 'a0, PackedByteArray >, u32); + let args = (draw_list, RefArg::new(buffer), size_bytes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7082usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_set_push_constant", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn draw_list_draw_full(&mut self, draw_list: i64, use_indices: bool, instances: u32, procedural_vertex_count: u32,) { + type CallSig = ((), i64, bool, u32, u32); + let args = (draw_list, use_indices, instances, procedural_vertex_count,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7083usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_draw", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_list_draw_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_list_draw(&mut self, draw_list: i64, use_indices: bool, instances: u32,) { + self.draw_list_draw_ex(draw_list, use_indices, instances,) . done() + } + #[inline] + pub fn draw_list_draw_ex < 'a > (&'a mut self, draw_list: i64, use_indices: bool, instances: u32,) -> ExDrawListDraw < 'a > { + ExDrawListDraw::new(self, draw_list, use_indices, instances,) + } + pub(crate) fn draw_list_enable_scissor_full(&mut self, draw_list: i64, rect: Rect2,) { + type CallSig = ((), i64, Rect2); + let args = (draw_list, rect,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7084usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_enable_scissor", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::draw_list_enable_scissor_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn draw_list_enable_scissor(&mut self, draw_list: i64,) { + self.draw_list_enable_scissor_ex(draw_list,) . done() + } + #[inline] + pub fn draw_list_enable_scissor_ex < 'a > (&'a mut self, draw_list: i64,) -> ExDrawListEnableScissor < 'a > { + ExDrawListEnableScissor::new(self, draw_list,) + } + pub fn draw_list_disable_scissor(&mut self, draw_list: i64,) { + type CallSig = ((), i64); + let args = (draw_list,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7085usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_disable_scissor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn draw_list_switch_to_next_pass(&mut self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7086usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_switch_to_next_pass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn draw_list_switch_to_next_pass_split(&mut self, splits: u32,) -> PackedInt64Array { + type CallSig = (PackedInt64Array, u32); + let args = (splits,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7087usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_switch_to_next_pass_split", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn draw_list_end(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7088usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_list_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compute_list_begin(&mut self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7089usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "compute_list_begin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compute_list_bind_compute_pipeline(&mut self, compute_list: i64, compute_pipeline: Rid,) { + type CallSig = ((), i64, Rid); + let args = (compute_list, compute_pipeline,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7090usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "compute_list_bind_compute_pipeline", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compute_list_set_push_constant(&mut self, compute_list: i64, buffer: &PackedByteArray, size_bytes: u32,) { + type CallSig < 'a0, > = ((), i64, RefArg < 'a0, PackedByteArray >, u32); + let args = (compute_list, RefArg::new(buffer), size_bytes,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7091usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "compute_list_set_push_constant", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compute_list_bind_uniform_set(&mut self, compute_list: i64, uniform_set: Rid, set_index: u32,) { + type CallSig = ((), i64, Rid, u32); + let args = (compute_list, uniform_set, set_index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7092usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "compute_list_bind_uniform_set", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compute_list_dispatch(&mut self, compute_list: i64, x_groups: u32, y_groups: u32, z_groups: u32,) { + type CallSig = ((), i64, u32, u32, u32); + let args = (compute_list, x_groups, y_groups, z_groups,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7093usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "compute_list_dispatch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compute_list_dispatch_indirect(&mut self, compute_list: i64, buffer: Rid, offset: u32,) { + type CallSig = ((), i64, Rid, u32); + let args = (compute_list, buffer, offset,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7094usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "compute_list_dispatch_indirect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compute_list_add_barrier(&mut self, compute_list: i64,) { + type CallSig = ((), i64); + let args = (compute_list,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7095usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "compute_list_add_barrier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compute_list_end(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7096usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "compute_list_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn free_rid(&mut self, rid: Rid,) { + type CallSig = ((), Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7097usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "free_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn capture_timestamp(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7098usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "capture_timestamp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_captured_timestamps_count(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7099usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "get_captured_timestamps_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_captured_timestamps_frame(&self,) -> u64 { + type CallSig = (u64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7100usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "get_captured_timestamps_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_captured_timestamp_gpu_time(&self, index: u32,) -> u64 { + type CallSig = (u64, u32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7101usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "get_captured_timestamp_gpu_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_captured_timestamp_cpu_time(&self, index: u32,) -> u64 { + type CallSig = (u64, u32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7102usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "get_captured_timestamp_cpu_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_captured_timestamp_name(&self, index: u32,) -> GString { + type CallSig = (GString, u32); + let args = (index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7103usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "get_captured_timestamp_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn limit_get(&self, limit: crate::classes::rendering_device::Limit,) -> u64 { + type CallSig = (u64, crate::classes::rendering_device::Limit); + let args = (limit,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7104usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "limit_get", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frame_delay(&self,) -> u32 { + type CallSig = (u32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7105usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "get_frame_delay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn submit(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7106usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "submit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sync(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7107usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "sync", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn barrier_full(&mut self, from: crate::classes::rendering_device::BarrierMask, to: crate::classes::rendering_device::BarrierMask,) { + type CallSig = ((), crate::classes::rendering_device::BarrierMask, crate::classes::rendering_device::BarrierMask); + let args = (from, to,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7108usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "barrier", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::barrier_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn barrier(&mut self,) { + self.barrier_ex() . done() + } + #[inline] + pub fn barrier_ex < 'a > (&'a mut self,) -> ExBarrier < 'a > { + ExBarrier::new(self,) + } + pub fn full_barrier(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7109usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "full_barrier", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_local_device(&mut self,) -> Option < Gd < crate::classes::RenderingDevice > > { + type CallSig = (Option < Gd < crate::classes::RenderingDevice > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7110usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "create_local_device", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_resource_name(&mut self, id: Rid, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), Rid, CowArg < 'a0, GString >); + let args = (id, name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7111usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "set_resource_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn draw_command_begin_label(&mut self, name: impl AsArg < GString >, color: Color,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, Color); + let args = (name.into_arg(), color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7112usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_command_begin_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn draw_command_insert_label(&mut self, name: impl AsArg < GString >, color: Color,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, Color); + let args = (name.into_arg(), color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7113usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_command_insert_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn draw_command_end_label(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7114usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "draw_command_end_label", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_device_vendor_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7115usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "get_device_vendor_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_device_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7116usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "get_device_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_device_pipeline_cache_uuid(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7117usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "get_device_pipeline_cache_uuid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_memory_usage(&self, type_: crate::classes::rendering_device::MemoryType,) -> u64 { + type CallSig = (u64, crate::classes::rendering_device::MemoryType); + let args = (type_,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7118usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "get_memory_usage", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_driver_resource(&mut self, resource: crate::classes::rendering_device::DriverResource, rid: Rid, index: u64,) -> u64 { + type CallSig = (u64, crate::classes::rendering_device::DriverResource, Rid, u64); + let args = (resource, rid, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7119usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingDevice", "get_driver_resource", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const INVALID_ID: i32 = - 1i32; + pub const INVALID_FORMAT_ID: i32 = - 1i32; + + } + impl crate::obj::GodotClass for RenderingDevice { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderingDevice")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RenderingDevice { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderingDevice { + + } + impl std::ops::Deref for RenderingDevice { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderingDevice { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderingDevice`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderingDevice { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderingDevice > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`RenderingDevice::texture_create_ex`][super::RenderingDevice::texture_create_ex]."] +#[must_use] +pub struct ExTextureCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, format: ObjectCow < crate::classes::RdTextureFormat >, view: ObjectCow < crate::classes::RdTextureView >, data: CowArg < 'a, Array < PackedByteArray > >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTextureCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, format: impl AsObjectArg < crate::classes::RdTextureFormat >, view: impl AsObjectArg < crate::classes::RdTextureView >,) -> Self { + let data = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, format: format.consume_arg(), view: view.consume_arg(), data: CowArg::Owned(data), + } + } + #[inline] + pub fn data(self, data: &'a Array < PackedByteArray >) -> Self { + Self { + data: CowArg::Borrowed(data), .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, format, view, data, + } + = self; + re_export::RenderingDevice::texture_create_full(surround_object, format.cow_as_object_arg(), view.cow_as_object_arg(), data.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`RenderingDevice::texture_create_shared_from_slice_ex`][super::RenderingDevice::texture_create_shared_from_slice_ex]."] +#[must_use] +pub struct ExTextureCreateSharedFromSlice < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, view: ObjectCow < crate::classes::RdTextureView >, with_texture: Rid, layer: u32, mipmap: u32, mipmaps: u32, slice_type: crate::classes::rendering_device::TextureSliceType, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTextureCreateSharedFromSlice < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, view: impl AsObjectArg < crate::classes::RdTextureView >, with_texture: Rid, layer: u32, mipmap: u32,) -> Self { + let mipmaps = 1u32; + let slice_type = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, view: view.consume_arg(), with_texture: with_texture, layer: layer, mipmap: mipmap, mipmaps: mipmaps, slice_type: slice_type, + } + } + #[inline] + pub fn mipmaps(self, mipmaps: u32) -> Self { + Self { + mipmaps: mipmaps, .. self + } + } + #[inline] + pub fn slice_type(self, slice_type: crate::classes::rendering_device::TextureSliceType) -> Self { + Self { + slice_type: slice_type, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, view, with_texture, layer, mipmap, mipmaps, slice_type, + } + = self; + re_export::RenderingDevice::texture_create_shared_from_slice_full(surround_object, view.cow_as_object_arg(), with_texture, layer, mipmap, mipmaps, slice_type,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::framebuffer_format_create_ex`][super::RenderingDevice::framebuffer_format_create_ex]."] +#[must_use] +pub struct ExFramebufferFormatCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, attachments: CowArg < 'a, Array < Gd < crate::classes::RdAttachmentFormat > > >, view_count: u32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFramebufferFormatCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, attachments: &'a Array < Gd < crate::classes::RdAttachmentFormat > >,) -> Self { + let view_count = 1u32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, attachments: CowArg::Borrowed(attachments), view_count: view_count, + } + } + #[inline] + pub fn view_count(self, view_count: u32) -> Self { + Self { + view_count: view_count, .. self + } + } + #[inline] + pub fn done(self) -> i64 { + let Self { + _phantom, surround_object, attachments, view_count, + } + = self; + re_export::RenderingDevice::framebuffer_format_create_full(surround_object, attachments.cow_as_arg(), view_count,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::framebuffer_format_create_multipass_ex`][super::RenderingDevice::framebuffer_format_create_multipass_ex]."] +#[must_use] +pub struct ExFramebufferFormatCreateMultipass < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, attachments: CowArg < 'a, Array < Gd < crate::classes::RdAttachmentFormat > > >, passes: CowArg < 'a, Array < Gd < crate::classes::RdFramebufferPass > > >, view_count: u32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFramebufferFormatCreateMultipass < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, attachments: &'a Array < Gd < crate::classes::RdAttachmentFormat > >, passes: &'a Array < Gd < crate::classes::RdFramebufferPass > >,) -> Self { + let view_count = 1u32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, attachments: CowArg::Borrowed(attachments), passes: CowArg::Borrowed(passes), view_count: view_count, + } + } + #[inline] + pub fn view_count(self, view_count: u32) -> Self { + Self { + view_count: view_count, .. self + } + } + #[inline] + pub fn done(self) -> i64 { + let Self { + _phantom, surround_object, attachments, passes, view_count, + } + = self; + re_export::RenderingDevice::framebuffer_format_create_multipass_full(surround_object, attachments.cow_as_arg(), passes.cow_as_arg(), view_count,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::framebuffer_format_create_empty_ex`][super::RenderingDevice::framebuffer_format_create_empty_ex]."] +#[must_use] +pub struct ExFramebufferFormatCreateEmpty < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, samples: crate::classes::rendering_device::TextureSamples, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFramebufferFormatCreateEmpty < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice,) -> Self { + let samples = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, samples: samples, + } + } + #[inline] + pub fn samples(self, samples: crate::classes::rendering_device::TextureSamples) -> Self { + Self { + samples: samples, .. self + } + } + #[inline] + pub fn done(self) -> i64 { + let Self { + _phantom, surround_object, samples, + } + = self; + re_export::RenderingDevice::framebuffer_format_create_empty_full(surround_object, samples,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::framebuffer_format_get_texture_samples_ex`][super::RenderingDevice::framebuffer_format_get_texture_samples_ex]."] +#[must_use] +pub struct ExFramebufferFormatGetTextureSamples < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, format: i64, render_pass: u32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFramebufferFormatGetTextureSamples < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, format: i64,) -> Self { + let render_pass = 0u32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, format: format, render_pass: render_pass, + } + } + #[inline] + pub fn render_pass(self, render_pass: u32) -> Self { + Self { + render_pass: render_pass, .. self + } + } + #[inline] + pub fn done(self) -> crate::classes::rendering_device::TextureSamples { + let Self { + _phantom, surround_object, format, render_pass, + } + = self; + re_export::RenderingDevice::framebuffer_format_get_texture_samples_full(surround_object, format, render_pass,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::framebuffer_create_ex`][super::RenderingDevice::framebuffer_create_ex]."] +#[must_use] +pub struct ExFramebufferCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, textures: CowArg < 'a, Array < Rid > >, validate_with_format: i64, view_count: u32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFramebufferCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, textures: &'a Array < Rid >,) -> Self { + let validate_with_format = - 1i64; + let view_count = 1u32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, textures: CowArg::Borrowed(textures), validate_with_format: validate_with_format, view_count: view_count, + } + } + #[inline] + pub fn validate_with_format(self, validate_with_format: i64) -> Self { + Self { + validate_with_format: validate_with_format, .. self + } + } + #[inline] + pub fn view_count(self, view_count: u32) -> Self { + Self { + view_count: view_count, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, textures, validate_with_format, view_count, + } + = self; + re_export::RenderingDevice::framebuffer_create_full(surround_object, textures.cow_as_arg(), validate_with_format, view_count,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::framebuffer_create_multipass_ex`][super::RenderingDevice::framebuffer_create_multipass_ex]."] +#[must_use] +pub struct ExFramebufferCreateMultipass < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, textures: CowArg < 'a, Array < Rid > >, passes: CowArg < 'a, Array < Gd < crate::classes::RdFramebufferPass > > >, validate_with_format: i64, view_count: u32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFramebufferCreateMultipass < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, textures: &'a Array < Rid >, passes: &'a Array < Gd < crate::classes::RdFramebufferPass > >,) -> Self { + let validate_with_format = - 1i64; + let view_count = 1u32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, textures: CowArg::Borrowed(textures), passes: CowArg::Borrowed(passes), validate_with_format: validate_with_format, view_count: view_count, + } + } + #[inline] + pub fn validate_with_format(self, validate_with_format: i64) -> Self { + Self { + validate_with_format: validate_with_format, .. self + } + } + #[inline] + pub fn view_count(self, view_count: u32) -> Self { + Self { + view_count: view_count, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, textures, passes, validate_with_format, view_count, + } + = self; + re_export::RenderingDevice::framebuffer_create_multipass_full(surround_object, textures.cow_as_arg(), passes.cow_as_arg(), validate_with_format, view_count,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::framebuffer_create_empty_ex`][super::RenderingDevice::framebuffer_create_empty_ex]."] +#[must_use] +pub struct ExFramebufferCreateEmpty < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, size: Vector2i, samples: crate::classes::rendering_device::TextureSamples, validate_with_format: i64, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExFramebufferCreateEmpty < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, size: Vector2i,) -> Self { + let samples = crate::obj::EngineEnum::from_ord(0); + let validate_with_format = - 1i64; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, size: size, samples: samples, validate_with_format: validate_with_format, + } + } + #[inline] + pub fn samples(self, samples: crate::classes::rendering_device::TextureSamples) -> Self { + Self { + samples: samples, .. self + } + } + #[inline] + pub fn validate_with_format(self, validate_with_format: i64) -> Self { + Self { + validate_with_format: validate_with_format, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, size, samples, validate_with_format, + } + = self; + re_export::RenderingDevice::framebuffer_create_empty_full(surround_object, size, samples, validate_with_format,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::vertex_buffer_create_ex`][super::RenderingDevice::vertex_buffer_create_ex]."] +#[must_use] +pub struct ExVertexBufferCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, size_bytes: u32, data: CowArg < 'a, PackedByteArray >, use_as_storage: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExVertexBufferCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, size_bytes: u32,) -> Self { + let data = PackedByteArray::new(); + let use_as_storage = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, size_bytes: size_bytes, data: CowArg::Owned(data), use_as_storage: use_as_storage, + } + } + #[inline] + pub fn data(self, data: &'a PackedByteArray) -> Self { + Self { + data: CowArg::Borrowed(data), .. self + } + } + #[inline] + pub fn use_as_storage(self, use_as_storage: bool) -> Self { + Self { + use_as_storage: use_as_storage, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, size_bytes, data, use_as_storage, + } + = self; + re_export::RenderingDevice::vertex_buffer_create_full(surround_object, size_bytes, data.cow_as_arg(), use_as_storage,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::vertex_array_create_ex`][super::RenderingDevice::vertex_array_create_ex]."] +#[must_use] +pub struct ExVertexArrayCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, vertex_count: u32, vertex_format: i64, src_buffers: CowArg < 'a, Array < Rid > >, offsets: CowArg < 'a, PackedInt64Array >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExVertexArrayCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, vertex_count: u32, vertex_format: i64, src_buffers: &'a Array < Rid >,) -> Self { + let offsets = PackedInt64Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, vertex_count: vertex_count, vertex_format: vertex_format, src_buffers: CowArg::Borrowed(src_buffers), offsets: CowArg::Owned(offsets), + } + } + #[inline] + pub fn offsets(self, offsets: &'a PackedInt64Array) -> Self { + Self { + offsets: CowArg::Borrowed(offsets), .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, vertex_count, vertex_format, src_buffers, offsets, + } + = self; + re_export::RenderingDevice::vertex_array_create_full(surround_object, vertex_count, vertex_format, src_buffers.cow_as_arg(), offsets.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`RenderingDevice::index_buffer_create_ex`][super::RenderingDevice::index_buffer_create_ex]."] +#[must_use] +pub struct ExIndexBufferCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, size_indices: u32, format: crate::classes::rendering_device::IndexBufferFormat, data: CowArg < 'a, PackedByteArray >, use_restart_indices: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExIndexBufferCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, size_indices: u32, format: crate::classes::rendering_device::IndexBufferFormat,) -> Self { + let data = PackedByteArray::new(); + let use_restart_indices = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, size_indices: size_indices, format: format, data: CowArg::Owned(data), use_restart_indices: use_restart_indices, + } + } + #[inline] + pub fn data(self, data: &'a PackedByteArray) -> Self { + Self { + data: CowArg::Borrowed(data), .. self + } + } + #[inline] + pub fn use_restart_indices(self, use_restart_indices: bool) -> Self { + Self { + use_restart_indices: use_restart_indices, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, size_indices, format, data, use_restart_indices, + } + = self; + re_export::RenderingDevice::index_buffer_create_full(surround_object, size_indices, format, data.cow_as_arg(), use_restart_indices,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::shader_compile_spirv_from_source_ex`][super::RenderingDevice::shader_compile_spirv_from_source_ex]."] +#[must_use] +pub struct ExShaderCompileSpirvFromSource < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, shader_source: ObjectCow < crate::classes::RdShaderSource >, allow_cache: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExShaderCompileSpirvFromSource < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, shader_source: impl AsObjectArg < crate::classes::RdShaderSource >,) -> Self { + let allow_cache = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, shader_source: shader_source.consume_arg(), allow_cache: allow_cache, + } + } + #[inline] + pub fn allow_cache(self, allow_cache: bool) -> Self { + Self { + allow_cache: allow_cache, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::RdShaderSpirv > > { + let Self { + _phantom, surround_object, shader_source, allow_cache, + } + = self; + re_export::RenderingDevice::shader_compile_spirv_from_source_full(surround_object, shader_source.cow_as_object_arg(), allow_cache,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::shader_compile_binary_from_spirv_ex`][super::RenderingDevice::shader_compile_binary_from_spirv_ex]."] +#[must_use] +pub struct ExShaderCompileBinaryFromSpirv < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, spirv_data: ObjectCow < crate::classes::RdShaderSpirv >, name: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExShaderCompileBinaryFromSpirv < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, spirv_data: impl AsObjectArg < crate::classes::RdShaderSpirv >,) -> Self { + let name = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, spirv_data: spirv_data.consume_arg(), name: CowArg::Owned(name), + } + } + #[inline] + pub fn name(self, name: impl AsArg < GString > + 'a) -> Self { + Self { + name: name.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> PackedByteArray { + let Self { + _phantom, surround_object, spirv_data, name, + } + = self; + re_export::RenderingDevice::shader_compile_binary_from_spirv_full(surround_object, spirv_data.cow_as_object_arg(), name,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::shader_create_from_spirv_ex`][super::RenderingDevice::shader_create_from_spirv_ex]."] +#[must_use] +pub struct ExShaderCreateFromSpirv < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, spirv_data: ObjectCow < crate::classes::RdShaderSpirv >, name: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExShaderCreateFromSpirv < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, spirv_data: impl AsObjectArg < crate::classes::RdShaderSpirv >,) -> Self { + let name = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, spirv_data: spirv_data.consume_arg(), name: CowArg::Owned(name), + } + } + #[inline] + pub fn name(self, name: impl AsArg < GString > + 'a) -> Self { + Self { + name: name.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, spirv_data, name, + } + = self; + re_export::RenderingDevice::shader_create_from_spirv_full(surround_object, spirv_data.cow_as_object_arg(), name,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::shader_create_from_bytecode_ex`][super::RenderingDevice::shader_create_from_bytecode_ex]."] +#[must_use] +pub struct ExShaderCreateFromBytecode < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, binary_data: CowArg < 'a, PackedByteArray >, placeholder_rid: Rid, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExShaderCreateFromBytecode < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, binary_data: &'a PackedByteArray,) -> Self { + let placeholder_rid = Rid::Invalid; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, binary_data: CowArg::Borrowed(binary_data), placeholder_rid: placeholder_rid, + } + } + #[inline] + pub fn placeholder_rid(self, placeholder_rid: Rid) -> Self { + Self { + placeholder_rid: placeholder_rid, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, binary_data, placeholder_rid, + } + = self; + re_export::RenderingDevice::shader_create_from_bytecode_full(surround_object, binary_data.cow_as_arg(), placeholder_rid,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::uniform_buffer_create_ex`][super::RenderingDevice::uniform_buffer_create_ex]."] +#[must_use] +pub struct ExUniformBufferCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, size_bytes: u32, data: CowArg < 'a, PackedByteArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExUniformBufferCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, size_bytes: u32,) -> Self { + let data = PackedByteArray::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, size_bytes: size_bytes, data: CowArg::Owned(data), + } + } + #[inline] + pub fn data(self, data: &'a PackedByteArray) -> Self { + Self { + data: CowArg::Borrowed(data), .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, size_bytes, data, + } + = self; + re_export::RenderingDevice::uniform_buffer_create_full(surround_object, size_bytes, data.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`RenderingDevice::storage_buffer_create_ex`][super::RenderingDevice::storage_buffer_create_ex]."] +#[must_use] +pub struct ExStorageBufferCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, size_bytes: u32, data: CowArg < 'a, PackedByteArray >, usage: crate::classes::rendering_device::StorageBufferUsage, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExStorageBufferCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, size_bytes: u32,) -> Self { + let data = PackedByteArray::new(); + let usage = crate::obj::EngineBitfield::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, size_bytes: size_bytes, data: CowArg::Owned(data), usage: usage, + } + } + #[inline] + pub fn data(self, data: &'a PackedByteArray) -> Self { + Self { + data: CowArg::Borrowed(data), .. self + } + } + #[inline] + pub fn usage(self, usage: crate::classes::rendering_device::StorageBufferUsage) -> Self { + Self { + usage: usage, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, size_bytes, data, usage, + } + = self; + re_export::RenderingDevice::storage_buffer_create_full(surround_object, size_bytes, data.cow_as_arg(), usage,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::texture_buffer_create_ex`][super::RenderingDevice::texture_buffer_create_ex]."] +#[must_use] +pub struct ExTextureBufferCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, size_bytes: u32, format: crate::classes::rendering_device::DataFormat, data: CowArg < 'a, PackedByteArray >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTextureBufferCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, size_bytes: u32, format: crate::classes::rendering_device::DataFormat,) -> Self { + let data = PackedByteArray::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, size_bytes: size_bytes, format: format, data: CowArg::Owned(data), + } + } + #[inline] + pub fn data(self, data: &'a PackedByteArray) -> Self { + Self { + data: CowArg::Borrowed(data), .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, size_bytes, format, data, + } + = self; + re_export::RenderingDevice::texture_buffer_create_full(surround_object, size_bytes, format, data.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`RenderingDevice::buffer_get_data_ex`][super::RenderingDevice::buffer_get_data_ex]."] +#[must_use] +pub struct ExBufferGetData < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, buffer: Rid, offset_bytes: u32, size_bytes: u32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBufferGetData < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, buffer: Rid,) -> Self { + let offset_bytes = 0u32; + let size_bytes = 0u32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, buffer: buffer, offset_bytes: offset_bytes, size_bytes: size_bytes, + } + } + #[inline] + pub fn offset_bytes(self, offset_bytes: u32) -> Self { + Self { + offset_bytes: offset_bytes, .. self + } + } + #[inline] + pub fn size_bytes(self, size_bytes: u32) -> Self { + Self { + size_bytes: size_bytes, .. self + } + } + #[inline] + pub fn done(self) -> PackedByteArray { + let Self { + _phantom, surround_object, buffer, offset_bytes, size_bytes, + } + = self; + re_export::RenderingDevice::buffer_get_data_full(surround_object, buffer, offset_bytes, size_bytes,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::render_pipeline_create_ex`][super::RenderingDevice::render_pipeline_create_ex]."] +#[must_use] +pub struct ExRenderPipelineCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, shader: Rid, framebuffer_format: i64, vertex_format: i64, primitive: crate::classes::rendering_device::RenderPrimitive, rasterization_state: ObjectCow < crate::classes::RdPipelineRasterizationState >, multisample_state: ObjectCow < crate::classes::RdPipelineMultisampleState >, stencil_state: ObjectCow < crate::classes::RdPipelineDepthStencilState >, color_blend_state: ObjectCow < crate::classes::RdPipelineColorBlendState >, dynamic_state_flags: crate::classes::rendering_device::PipelineDynamicStateFlags, for_render_pass: u32, specialization_constants: CowArg < 'a, Array < Gd < crate::classes::RdPipelineSpecializationConstant > > >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExRenderPipelineCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, shader: Rid, framebuffer_format: i64, vertex_format: i64, primitive: crate::classes::rendering_device::RenderPrimitive, rasterization_state: impl AsObjectArg < crate::classes::RdPipelineRasterizationState >, multisample_state: impl AsObjectArg < crate::classes::RdPipelineMultisampleState >, stencil_state: impl AsObjectArg < crate::classes::RdPipelineDepthStencilState >, color_blend_state: impl AsObjectArg < crate::classes::RdPipelineColorBlendState >,) -> Self { + let dynamic_state_flags = crate::obj::EngineBitfield::from_ord(0); + let for_render_pass = 0u32; + let specialization_constants = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, shader: shader, framebuffer_format: framebuffer_format, vertex_format: vertex_format, primitive: primitive, rasterization_state: rasterization_state.consume_arg(), multisample_state: multisample_state.consume_arg(), stencil_state: stencil_state.consume_arg(), color_blend_state: color_blend_state.consume_arg(), dynamic_state_flags: dynamic_state_flags, for_render_pass: for_render_pass, specialization_constants: CowArg::Owned(specialization_constants), + } + } + #[inline] + pub fn dynamic_state_flags(self, dynamic_state_flags: crate::classes::rendering_device::PipelineDynamicStateFlags) -> Self { + Self { + dynamic_state_flags: dynamic_state_flags, .. self + } + } + #[inline] + pub fn for_render_pass(self, for_render_pass: u32) -> Self { + Self { + for_render_pass: for_render_pass, .. self + } + } + #[inline] + pub fn specialization_constants(self, specialization_constants: &'a Array < Gd < crate::classes::RdPipelineSpecializationConstant > >) -> Self { + Self { + specialization_constants: CowArg::Borrowed(specialization_constants), .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, shader, framebuffer_format, vertex_format, primitive, rasterization_state, multisample_state, stencil_state, color_blend_state, dynamic_state_flags, for_render_pass, specialization_constants, + } + = self; + re_export::RenderingDevice::render_pipeline_create_full(surround_object, shader, framebuffer_format, vertex_format, primitive, rasterization_state.cow_as_object_arg(), multisample_state.cow_as_object_arg(), stencil_state.cow_as_object_arg(), color_blend_state.cow_as_object_arg(), dynamic_state_flags, for_render_pass, specialization_constants.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`RenderingDevice::compute_pipeline_create_ex`][super::RenderingDevice::compute_pipeline_create_ex]."] +#[must_use] +pub struct ExComputePipelineCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, shader: Rid, specialization_constants: CowArg < 'a, Array < Gd < crate::classes::RdPipelineSpecializationConstant > > >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExComputePipelineCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, shader: Rid,) -> Self { + let specialization_constants = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, shader: shader, specialization_constants: CowArg::Owned(specialization_constants), + } + } + #[inline] + pub fn specialization_constants(self, specialization_constants: &'a Array < Gd < crate::classes::RdPipelineSpecializationConstant > >) -> Self { + Self { + specialization_constants: CowArg::Borrowed(specialization_constants), .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, shader, specialization_constants, + } + = self; + re_export::RenderingDevice::compute_pipeline_create_full(surround_object, shader, specialization_constants.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`RenderingDevice::screen_get_width_ex`][super::RenderingDevice::screen_get_width_ex]."] +#[must_use] +pub struct ExScreenGetWidth < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RenderingDevice, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenGetWidth < 'a > { + fn new(surround_object: &'a re_export::RenderingDevice,) -> Self { + let screen = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, screen, + } + = self; + re_export::RenderingDevice::screen_get_width_full(surround_object, screen,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::screen_get_height_ex`][super::RenderingDevice::screen_get_height_ex]."] +#[must_use] +pub struct ExScreenGetHeight < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RenderingDevice, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenGetHeight < 'a > { + fn new(surround_object: &'a re_export::RenderingDevice,) -> Self { + let screen = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) -> i32 { + let Self { + _phantom, surround_object, screen, + } + = self; + re_export::RenderingDevice::screen_get_height_full(surround_object, screen,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::screen_get_framebuffer_format_ex`][super::RenderingDevice::screen_get_framebuffer_format_ex]."] +#[must_use] +pub struct ExScreenGetFramebufferFormat < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RenderingDevice, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExScreenGetFramebufferFormat < 'a > { + fn new(surround_object: &'a re_export::RenderingDevice,) -> Self { + let screen = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) -> i64 { + let Self { + _phantom, surround_object, screen, + } + = self; + re_export::RenderingDevice::screen_get_framebuffer_format_full(surround_object, screen,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::draw_list_begin_for_screen_ex`][super::RenderingDevice::draw_list_begin_for_screen_ex]."] +#[must_use] +pub struct ExDrawListBeginForScreen < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, screen: i32, clear_color: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawListBeginForScreen < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice,) -> Self { + let screen = 0i32; + let clear_color = Color::from_rgba(0 as _, 0 as _, 0 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, screen: screen, clear_color: clear_color, + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn clear_color(self, clear_color: Color) -> Self { + Self { + clear_color: clear_color, .. self + } + } + #[inline] + pub fn done(self) -> i64 { + let Self { + _phantom, surround_object, screen, clear_color, + } + = self; + re_export::RenderingDevice::draw_list_begin_for_screen_full(surround_object, screen, clear_color,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::draw_list_begin_ex`][super::RenderingDevice::draw_list_begin_ex]."] +#[must_use] +pub struct ExDrawListBegin < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, framebuffer: Rid, initial_color_action: crate::classes::rendering_device::InitialAction, final_color_action: crate::classes::rendering_device::FinalAction, initial_depth_action: crate::classes::rendering_device::InitialAction, final_depth_action: crate::classes::rendering_device::FinalAction, clear_color_values: CowArg < 'a, PackedColorArray >, clear_depth: f32, clear_stencil: u32, region: Rect2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawListBegin < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, framebuffer: Rid, initial_color_action: crate::classes::rendering_device::InitialAction, final_color_action: crate::classes::rendering_device::FinalAction, initial_depth_action: crate::classes::rendering_device::InitialAction, final_depth_action: crate::classes::rendering_device::FinalAction,) -> Self { + let clear_color_values = PackedColorArray::new(); + let clear_depth = 1f32; + let clear_stencil = 0u32; + let region = Rect2::from_components(0 as _, 0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, framebuffer: framebuffer, initial_color_action: initial_color_action, final_color_action: final_color_action, initial_depth_action: initial_depth_action, final_depth_action: final_depth_action, clear_color_values: CowArg::Owned(clear_color_values), clear_depth: clear_depth, clear_stencil: clear_stencil, region: region, + } + } + #[inline] + pub fn clear_color_values(self, clear_color_values: &'a PackedColorArray) -> Self { + Self { + clear_color_values: CowArg::Borrowed(clear_color_values), .. self + } + } + #[inline] + pub fn clear_depth(self, clear_depth: f32) -> Self { + Self { + clear_depth: clear_depth, .. self + } + } + #[inline] + pub fn clear_stencil(self, clear_stencil: u32) -> Self { + Self { + clear_stencil: clear_stencil, .. self + } + } + #[inline] + pub fn region(self, region: Rect2) -> Self { + Self { + region: region, .. self + } + } + #[inline] + pub fn done(self) -> i64 { + let Self { + _phantom, surround_object, framebuffer, initial_color_action, final_color_action, initial_depth_action, final_depth_action, clear_color_values, clear_depth, clear_stencil, region, + } + = self; + re_export::RenderingDevice::draw_list_begin_full(surround_object, framebuffer, initial_color_action, final_color_action, initial_depth_action, final_depth_action, clear_color_values.cow_as_arg(), clear_depth, clear_stencil, region,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::draw_list_begin_split_ex`][super::RenderingDevice::draw_list_begin_split_ex]."] +#[must_use] +pub struct ExDrawListBeginSplit < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, framebuffer: Rid, splits: u32, initial_color_action: crate::classes::rendering_device::InitialAction, final_color_action: crate::classes::rendering_device::FinalAction, initial_depth_action: crate::classes::rendering_device::InitialAction, final_depth_action: crate::classes::rendering_device::FinalAction, clear_color_values: CowArg < 'a, PackedColorArray >, clear_depth: f32, clear_stencil: u32, region: Rect2, storage_textures: CowArg < 'a, Array < Rid > >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawListBeginSplit < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, framebuffer: Rid, splits: u32, initial_color_action: crate::classes::rendering_device::InitialAction, final_color_action: crate::classes::rendering_device::FinalAction, initial_depth_action: crate::classes::rendering_device::InitialAction, final_depth_action: crate::classes::rendering_device::FinalAction,) -> Self { + let clear_color_values = PackedColorArray::new(); + let clear_depth = 1f32; + let clear_stencil = 0u32; + let region = Rect2::from_components(0 as _, 0 as _, 0 as _, 0 as _); + let storage_textures = Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, framebuffer: framebuffer, splits: splits, initial_color_action: initial_color_action, final_color_action: final_color_action, initial_depth_action: initial_depth_action, final_depth_action: final_depth_action, clear_color_values: CowArg::Owned(clear_color_values), clear_depth: clear_depth, clear_stencil: clear_stencil, region: region, storage_textures: CowArg::Owned(storage_textures), + } + } + #[inline] + pub fn clear_color_values(self, clear_color_values: &'a PackedColorArray) -> Self { + Self { + clear_color_values: CowArg::Borrowed(clear_color_values), .. self + } + } + #[inline] + pub fn clear_depth(self, clear_depth: f32) -> Self { + Self { + clear_depth: clear_depth, .. self + } + } + #[inline] + pub fn clear_stencil(self, clear_stencil: u32) -> Self { + Self { + clear_stencil: clear_stencil, .. self + } + } + #[inline] + pub fn region(self, region: Rect2) -> Self { + Self { + region: region, .. self + } + } + #[inline] + pub fn storage_textures(self, storage_textures: &'a Array < Rid >) -> Self { + Self { + storage_textures: CowArg::Borrowed(storage_textures), .. self + } + } + #[inline] + pub fn done(self) -> PackedInt64Array { + let Self { + _phantom, surround_object, framebuffer, splits, initial_color_action, final_color_action, initial_depth_action, final_depth_action, clear_color_values, clear_depth, clear_stencil, region, storage_textures, + } + = self; + re_export::RenderingDevice::draw_list_begin_split_full(surround_object, framebuffer, splits, initial_color_action, final_color_action, initial_depth_action, final_depth_action, clear_color_values.cow_as_arg(), clear_depth, clear_stencil, region, storage_textures.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`RenderingDevice::draw_list_draw_ex`][super::RenderingDevice::draw_list_draw_ex]."] +#[must_use] +pub struct ExDrawListDraw < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, draw_list: i64, use_indices: bool, instances: u32, procedural_vertex_count: u32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawListDraw < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, draw_list: i64, use_indices: bool, instances: u32,) -> Self { + let procedural_vertex_count = 0u32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, draw_list: draw_list, use_indices: use_indices, instances: instances, procedural_vertex_count: procedural_vertex_count, + } + } + #[inline] + pub fn procedural_vertex_count(self, procedural_vertex_count: u32) -> Self { + Self { + procedural_vertex_count: procedural_vertex_count, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, draw_list, use_indices, instances, procedural_vertex_count, + } + = self; + re_export::RenderingDevice::draw_list_draw_full(surround_object, draw_list, use_indices, instances, procedural_vertex_count,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::draw_list_enable_scissor_ex`][super::RenderingDevice::draw_list_enable_scissor_ex]."] +#[must_use] +pub struct ExDrawListEnableScissor < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, draw_list: i64, rect: Rect2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDrawListEnableScissor < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice, draw_list: i64,) -> Self { + let rect = Rect2::from_components(0 as _, 0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, draw_list: draw_list, rect: rect, + } + } + #[inline] + pub fn rect(self, rect: Rect2) -> Self { + Self { + rect: rect, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, draw_list, rect, + } + = self; + re_export::RenderingDevice::draw_list_enable_scissor_full(surround_object, draw_list, rect,) + } +} +#[doc = "Default-param extender for [`RenderingDevice::barrier_ex`][super::RenderingDevice::barrier_ex]."] +#[must_use] +pub struct ExBarrier < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingDevice, from: crate::classes::rendering_device::BarrierMask, to: crate::classes::rendering_device::BarrierMask, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExBarrier < 'a > { + fn new(surround_object: &'a mut re_export::RenderingDevice,) -> Self { + let from = crate::obj::EngineBitfield::from_ord(32767); + let to = crate::obj::EngineBitfield::from_ord(32767); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from: from, to: to, + } + } + #[inline] + pub fn from(self, from: crate::classes::rendering_device::BarrierMask) -> Self { + Self { + from: from, .. self + } + } + #[inline] + pub fn to(self, to: crate::classes::rendering_device::BarrierMask) -> Self { + Self { + to: to, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, from, to, + } + = self; + re_export::RenderingDevice::barrier_full(surround_object, from, to,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DeviceType { + ord: i32 +} +impl DeviceType { + #[doc(alias = "DEVICE_TYPE_OTHER")] + #[doc = "Godot enumerator name: `DEVICE_TYPE_OTHER`"] + pub const OTHER: DeviceType = DeviceType { + ord: 0i32 + }; + #[doc(alias = "DEVICE_TYPE_INTEGRATED_GPU")] + #[doc = "Godot enumerator name: `DEVICE_TYPE_INTEGRATED_GPU`"] + pub const INTEGRATED_GPU: DeviceType = DeviceType { + ord: 1i32 + }; + #[doc(alias = "DEVICE_TYPE_DISCRETE_GPU")] + #[doc = "Godot enumerator name: `DEVICE_TYPE_DISCRETE_GPU`"] + pub const DISCRETE_GPU: DeviceType = DeviceType { + ord: 2i32 + }; + #[doc(alias = "DEVICE_TYPE_VIRTUAL_GPU")] + #[doc = "Godot enumerator name: `DEVICE_TYPE_VIRTUAL_GPU`"] + pub const VIRTUAL_GPU: DeviceType = DeviceType { + ord: 3i32 + }; + #[doc(alias = "DEVICE_TYPE_CPU")] + #[doc = "Godot enumerator name: `DEVICE_TYPE_CPU`"] + pub const CPU: DeviceType = DeviceType { + ord: 4i32 + }; + #[doc(alias = "DEVICE_TYPE_MAX")] + #[doc = "Godot enumerator name: `DEVICE_TYPE_MAX`"] + pub const MAX: DeviceType = DeviceType { + ord: 5i32 + }; + +} +impl std::fmt::Debug for DeviceType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DeviceType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DeviceType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OTHER => "OTHER", Self::INTEGRATED_GPU => "INTEGRATED_GPU", Self::DISCRETE_GPU => "DISCRETE_GPU", Self::VIRTUAL_GPU => "VIRTUAL_GPU", Self::CPU => "CPU", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OTHER => "DEVICE_TYPE_OTHER", Self::INTEGRATED_GPU => "DEVICE_TYPE_INTEGRATED_GPU", Self::DISCRETE_GPU => "DEVICE_TYPE_DISCRETE_GPU", Self::VIRTUAL_GPU => "DEVICE_TYPE_VIRTUAL_GPU", Self::CPU => "DEVICE_TYPE_CPU", Self::MAX => "DEVICE_TYPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for DeviceType { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for DeviceType { + type Via = i32; + +} +impl crate::meta::ToGodot for DeviceType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DeviceType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DriverResource { + ord: i32 +} +impl DriverResource { + #[doc(alias = "DRIVER_RESOURCE_LOGICAL_DEVICE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_LOGICAL_DEVICE`"] + pub const LOGICAL_DEVICE: DriverResource = DriverResource { + ord: 0i32 + }; + #[doc(alias = "DRIVER_RESOURCE_PHYSICAL_DEVICE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_PHYSICAL_DEVICE`"] + pub const PHYSICAL_DEVICE: DriverResource = DriverResource { + ord: 1i32 + }; + #[doc(alias = "DRIVER_RESOURCE_TOPMOST_OBJECT")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_TOPMOST_OBJECT`"] + pub const TOPMOST_OBJECT: DriverResource = DriverResource { + ord: 2i32 + }; + #[doc(alias = "DRIVER_RESOURCE_COMMAND_QUEUE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_COMMAND_QUEUE`"] + pub const COMMAND_QUEUE: DriverResource = DriverResource { + ord: 3i32 + }; + #[doc(alias = "DRIVER_RESOURCE_QUEUE_FAMILY")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_QUEUE_FAMILY`"] + pub const QUEUE_FAMILY: DriverResource = DriverResource { + ord: 4i32 + }; + #[doc(alias = "DRIVER_RESOURCE_TEXTURE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_TEXTURE`"] + pub const TEXTURE: DriverResource = DriverResource { + ord: 5i32 + }; + #[doc(alias = "DRIVER_RESOURCE_TEXTURE_VIEW")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_TEXTURE_VIEW`"] + pub const TEXTURE_VIEW: DriverResource = DriverResource { + ord: 6i32 + }; + #[doc(alias = "DRIVER_RESOURCE_TEXTURE_DATA_FORMAT")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_TEXTURE_DATA_FORMAT`"] + pub const TEXTURE_DATA_FORMAT: DriverResource = DriverResource { + ord: 7i32 + }; + #[doc(alias = "DRIVER_RESOURCE_SAMPLER")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_SAMPLER`"] + pub const SAMPLER: DriverResource = DriverResource { + ord: 8i32 + }; + #[doc(alias = "DRIVER_RESOURCE_UNIFORM_SET")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_UNIFORM_SET`"] + pub const UNIFORM_SET: DriverResource = DriverResource { + ord: 9i32 + }; + #[doc(alias = "DRIVER_RESOURCE_BUFFER")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_BUFFER`"] + pub const BUFFER: DriverResource = DriverResource { + ord: 10i32 + }; + #[doc(alias = "DRIVER_RESOURCE_COMPUTE_PIPELINE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_COMPUTE_PIPELINE`"] + pub const COMPUTE_PIPELINE: DriverResource = DriverResource { + ord: 11i32 + }; + #[doc(alias = "DRIVER_RESOURCE_RENDER_PIPELINE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_RENDER_PIPELINE`"] + pub const RENDER_PIPELINE: DriverResource = DriverResource { + ord: 12i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_DEVICE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_DEVICE`"] + pub const VULKAN_DEVICE: DriverResource = DriverResource { + ord: 0i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_PHYSICAL_DEVICE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_PHYSICAL_DEVICE`"] + pub const VULKAN_PHYSICAL_DEVICE: DriverResource = DriverResource { + ord: 1i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_INSTANCE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_INSTANCE`"] + pub const VULKAN_INSTANCE: DriverResource = DriverResource { + ord: 2i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_QUEUE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_QUEUE`"] + pub const VULKAN_QUEUE: DriverResource = DriverResource { + ord: 3i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_QUEUE_FAMILY_INDEX")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_QUEUE_FAMILY_INDEX`"] + pub const VULKAN_QUEUE_FAMILY_INDEX: DriverResource = DriverResource { + ord: 4i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_IMAGE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_IMAGE`"] + pub const VULKAN_IMAGE: DriverResource = DriverResource { + ord: 5i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_IMAGE_VIEW")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_IMAGE_VIEW`"] + pub const VULKAN_IMAGE_VIEW: DriverResource = DriverResource { + ord: 6i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_IMAGE_NATIVE_TEXTURE_FORMAT")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_IMAGE_NATIVE_TEXTURE_FORMAT`"] + pub const VULKAN_IMAGE_NATIVE_TEXTURE_FORMAT: DriverResource = DriverResource { + ord: 7i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_SAMPLER")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_SAMPLER`"] + pub const VULKAN_SAMPLER: DriverResource = DriverResource { + ord: 8i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_DESCRIPTOR_SET")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_DESCRIPTOR_SET`"] + pub const VULKAN_DESCRIPTOR_SET: DriverResource = DriverResource { + ord: 9i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_BUFFER")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_BUFFER`"] + pub const VULKAN_BUFFER: DriverResource = DriverResource { + ord: 10i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_COMPUTE_PIPELINE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_COMPUTE_PIPELINE`"] + pub const VULKAN_COMPUTE_PIPELINE: DriverResource = DriverResource { + ord: 11i32 + }; + #[doc(alias = "DRIVER_RESOURCE_VULKAN_RENDER_PIPELINE")] + #[doc = "Godot enumerator name: `DRIVER_RESOURCE_VULKAN_RENDER_PIPELINE`"] + pub const VULKAN_RENDER_PIPELINE: DriverResource = DriverResource { + ord: 12i32 + }; + +} +impl std::fmt::Debug for DriverResource { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DriverResource") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DriverResource { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOGICAL_DEVICE => "LOGICAL_DEVICE", Self::PHYSICAL_DEVICE => "PHYSICAL_DEVICE", Self::TOPMOST_OBJECT => "TOPMOST_OBJECT", Self::COMMAND_QUEUE => "COMMAND_QUEUE", Self::QUEUE_FAMILY => "QUEUE_FAMILY", Self::TEXTURE => "TEXTURE", Self::TEXTURE_VIEW => "TEXTURE_VIEW", Self::TEXTURE_DATA_FORMAT => "TEXTURE_DATA_FORMAT", Self::SAMPLER => "SAMPLER", Self::UNIFORM_SET => "UNIFORM_SET", Self::BUFFER => "BUFFER", Self::COMPUTE_PIPELINE => "COMPUTE_PIPELINE", Self::RENDER_PIPELINE => "RENDER_PIPELINE", Self::VULKAN_DEVICE => "VULKAN_DEVICE", Self::VULKAN_PHYSICAL_DEVICE => "VULKAN_PHYSICAL_DEVICE", Self::VULKAN_INSTANCE => "VULKAN_INSTANCE", Self::VULKAN_QUEUE => "VULKAN_QUEUE", Self::VULKAN_QUEUE_FAMILY_INDEX => "VULKAN_QUEUE_FAMILY_INDEX", Self::VULKAN_IMAGE => "VULKAN_IMAGE", Self::VULKAN_IMAGE_VIEW => "VULKAN_IMAGE_VIEW", Self::VULKAN_IMAGE_NATIVE_TEXTURE_FORMAT => "VULKAN_IMAGE_NATIVE_TEXTURE_FORMAT", Self::VULKAN_SAMPLER => "VULKAN_SAMPLER", Self::VULKAN_DESCRIPTOR_SET => "VULKAN_DESCRIPTOR_SET", Self::VULKAN_BUFFER => "VULKAN_BUFFER", Self::VULKAN_COMPUTE_PIPELINE => "VULKAN_COMPUTE_PIPELINE", Self::VULKAN_RENDER_PIPELINE => "VULKAN_RENDER_PIPELINE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOGICAL_DEVICE => "DRIVER_RESOURCE_LOGICAL_DEVICE", Self::PHYSICAL_DEVICE => "DRIVER_RESOURCE_PHYSICAL_DEVICE", Self::TOPMOST_OBJECT => "DRIVER_RESOURCE_TOPMOST_OBJECT", Self::COMMAND_QUEUE => "DRIVER_RESOURCE_COMMAND_QUEUE", Self::QUEUE_FAMILY => "DRIVER_RESOURCE_QUEUE_FAMILY", Self::TEXTURE => "DRIVER_RESOURCE_TEXTURE", Self::TEXTURE_VIEW => "DRIVER_RESOURCE_TEXTURE_VIEW", Self::TEXTURE_DATA_FORMAT => "DRIVER_RESOURCE_TEXTURE_DATA_FORMAT", Self::SAMPLER => "DRIVER_RESOURCE_SAMPLER", Self::UNIFORM_SET => "DRIVER_RESOURCE_UNIFORM_SET", Self::BUFFER => "DRIVER_RESOURCE_BUFFER", Self::COMPUTE_PIPELINE => "DRIVER_RESOURCE_COMPUTE_PIPELINE", Self::RENDER_PIPELINE => "DRIVER_RESOURCE_RENDER_PIPELINE", Self::VULKAN_DEVICE => "DRIVER_RESOURCE_VULKAN_DEVICE", Self::VULKAN_PHYSICAL_DEVICE => "DRIVER_RESOURCE_VULKAN_PHYSICAL_DEVICE", Self::VULKAN_INSTANCE => "DRIVER_RESOURCE_VULKAN_INSTANCE", Self::VULKAN_QUEUE => "DRIVER_RESOURCE_VULKAN_QUEUE", Self::VULKAN_QUEUE_FAMILY_INDEX => "DRIVER_RESOURCE_VULKAN_QUEUE_FAMILY_INDEX", Self::VULKAN_IMAGE => "DRIVER_RESOURCE_VULKAN_IMAGE", Self::VULKAN_IMAGE_VIEW => "DRIVER_RESOURCE_VULKAN_IMAGE_VIEW", Self::VULKAN_IMAGE_NATIVE_TEXTURE_FORMAT => "DRIVER_RESOURCE_VULKAN_IMAGE_NATIVE_TEXTURE_FORMAT", Self::VULKAN_SAMPLER => "DRIVER_RESOURCE_VULKAN_SAMPLER", Self::VULKAN_DESCRIPTOR_SET => "DRIVER_RESOURCE_VULKAN_DESCRIPTOR_SET", Self::VULKAN_BUFFER => "DRIVER_RESOURCE_VULKAN_BUFFER", Self::VULKAN_COMPUTE_PIPELINE => "DRIVER_RESOURCE_VULKAN_COMPUTE_PIPELINE", Self::VULKAN_RENDER_PIPELINE => "DRIVER_RESOURCE_VULKAN_RENDER_PIPELINE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DriverResource { + type Via = i32; + +} +impl crate::meta::ToGodot for DriverResource { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DriverResource { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DataFormat { + ord: i32 +} +impl DataFormat { + #[doc(alias = "DATA_FORMAT_R4G4_UNORM_PACK8")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R4G4_UNORM_PACK8`"] + pub const R4G4_UNORM_PACK8: DataFormat = DataFormat { + ord: 0i32 + }; + #[doc(alias = "DATA_FORMAT_R4G4B4A4_UNORM_PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R4G4B4A4_UNORM_PACK16`"] + pub const R4G4B4A4_UNORM_PACK16: DataFormat = DataFormat { + ord: 1i32 + }; + #[doc(alias = "DATA_FORMAT_B4G4R4A4_UNORM_PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B4G4R4A4_UNORM_PACK16`"] + pub const B4G4R4A4_UNORM_PACK16: DataFormat = DataFormat { + ord: 2i32 + }; + #[doc(alias = "DATA_FORMAT_R5G6B5_UNORM_PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R5G6B5_UNORM_PACK16`"] + pub const R5G6B5_UNORM_PACK16: DataFormat = DataFormat { + ord: 3i32 + }; + #[doc(alias = "DATA_FORMAT_B5G6R5_UNORM_PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B5G6R5_UNORM_PACK16`"] + pub const B5G6R5_UNORM_PACK16: DataFormat = DataFormat { + ord: 4i32 + }; + #[doc(alias = "DATA_FORMAT_R5G5B5A1_UNORM_PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R5G5B5A1_UNORM_PACK16`"] + pub const R5G5B5A1_UNORM_PACK16: DataFormat = DataFormat { + ord: 5i32 + }; + #[doc(alias = "DATA_FORMAT_B5G5R5A1_UNORM_PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B5G5R5A1_UNORM_PACK16`"] + pub const B5G5R5A1_UNORM_PACK16: DataFormat = DataFormat { + ord: 6i32 + }; + #[doc(alias = "DATA_FORMAT_A1R5G5B5_UNORM_PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A1R5G5B5_UNORM_PACK16`"] + pub const A1R5G5B5_UNORM_PACK16: DataFormat = DataFormat { + ord: 7i32 + }; + #[doc(alias = "DATA_FORMAT_R8_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8_UNORM`"] + pub const R8_UNORM: DataFormat = DataFormat { + ord: 8i32 + }; + #[doc(alias = "DATA_FORMAT_R8_SNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8_SNORM`"] + pub const R8_SNORM: DataFormat = DataFormat { + ord: 9i32 + }; + #[doc(alias = "DATA_FORMAT_R8_USCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8_USCALED`"] + pub const R8_USCALED: DataFormat = DataFormat { + ord: 10i32 + }; + #[doc(alias = "DATA_FORMAT_R8_SSCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8_SSCALED`"] + pub const R8_SSCALED: DataFormat = DataFormat { + ord: 11i32 + }; + #[doc(alias = "DATA_FORMAT_R8_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8_UINT`"] + pub const R8_UINT: DataFormat = DataFormat { + ord: 12i32 + }; + #[doc(alias = "DATA_FORMAT_R8_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8_SINT`"] + pub const R8_SINT: DataFormat = DataFormat { + ord: 13i32 + }; + #[doc(alias = "DATA_FORMAT_R8_SRGB")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8_SRGB`"] + pub const R8_SRGB: DataFormat = DataFormat { + ord: 14i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8_UNORM`"] + pub const R8G8_UNORM: DataFormat = DataFormat { + ord: 15i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8_SNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8_SNORM`"] + pub const R8G8_SNORM: DataFormat = DataFormat { + ord: 16i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8_USCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8_USCALED`"] + pub const R8G8_USCALED: DataFormat = DataFormat { + ord: 17i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8_SSCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8_SSCALED`"] + pub const R8G8_SSCALED: DataFormat = DataFormat { + ord: 18i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8_UINT`"] + pub const R8G8_UINT: DataFormat = DataFormat { + ord: 19i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8_SINT`"] + pub const R8G8_SINT: DataFormat = DataFormat { + ord: 20i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8_SRGB")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8_SRGB`"] + pub const R8G8_SRGB: DataFormat = DataFormat { + ord: 21i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8_UNORM`"] + pub const R8G8B8_UNORM: DataFormat = DataFormat { + ord: 22i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8_SNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8_SNORM`"] + pub const R8G8B8_SNORM: DataFormat = DataFormat { + ord: 23i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8_USCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8_USCALED`"] + pub const R8G8B8_USCALED: DataFormat = DataFormat { + ord: 24i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8_SSCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8_SSCALED`"] + pub const R8G8B8_SSCALED: DataFormat = DataFormat { + ord: 25i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8_UINT`"] + pub const R8G8B8_UINT: DataFormat = DataFormat { + ord: 26i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8_SINT`"] + pub const R8G8B8_SINT: DataFormat = DataFormat { + ord: 27i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8_SRGB")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8_SRGB`"] + pub const R8G8B8_SRGB: DataFormat = DataFormat { + ord: 28i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8_UNORM`"] + pub const B8G8R8_UNORM: DataFormat = DataFormat { + ord: 29i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8_SNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8_SNORM`"] + pub const B8G8R8_SNORM: DataFormat = DataFormat { + ord: 30i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8_USCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8_USCALED`"] + pub const B8G8R8_USCALED: DataFormat = DataFormat { + ord: 31i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8_SSCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8_SSCALED`"] + pub const B8G8R8_SSCALED: DataFormat = DataFormat { + ord: 32i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8_UINT`"] + pub const B8G8R8_UINT: DataFormat = DataFormat { + ord: 33i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8_SINT`"] + pub const B8G8R8_SINT: DataFormat = DataFormat { + ord: 34i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8_SRGB")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8_SRGB`"] + pub const B8G8R8_SRGB: DataFormat = DataFormat { + ord: 35i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8A8_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8A8_UNORM`"] + pub const R8G8B8A8_UNORM: DataFormat = DataFormat { + ord: 36i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8A8_SNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8A8_SNORM`"] + pub const R8G8B8A8_SNORM: DataFormat = DataFormat { + ord: 37i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8A8_USCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8A8_USCALED`"] + pub const R8G8B8A8_USCALED: DataFormat = DataFormat { + ord: 38i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8A8_SSCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8A8_SSCALED`"] + pub const R8G8B8A8_SSCALED: DataFormat = DataFormat { + ord: 39i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8A8_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8A8_UINT`"] + pub const R8G8B8A8_UINT: DataFormat = DataFormat { + ord: 40i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8A8_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8A8_SINT`"] + pub const R8G8B8A8_SINT: DataFormat = DataFormat { + ord: 41i32 + }; + #[doc(alias = "DATA_FORMAT_R8G8B8A8_SRGB")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R8G8B8A8_SRGB`"] + pub const R8G8B8A8_SRGB: DataFormat = DataFormat { + ord: 42i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8A8_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8A8_UNORM`"] + pub const B8G8R8A8_UNORM: DataFormat = DataFormat { + ord: 43i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8A8_SNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8A8_SNORM`"] + pub const B8G8R8A8_SNORM: DataFormat = DataFormat { + ord: 44i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8A8_USCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8A8_USCALED`"] + pub const B8G8R8A8_USCALED: DataFormat = DataFormat { + ord: 45i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8A8_SSCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8A8_SSCALED`"] + pub const B8G8R8A8_SSCALED: DataFormat = DataFormat { + ord: 46i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8A8_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8A8_UINT`"] + pub const B8G8R8A8_UINT: DataFormat = DataFormat { + ord: 47i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8A8_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8A8_SINT`"] + pub const B8G8R8A8_SINT: DataFormat = DataFormat { + ord: 48i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8A8_SRGB")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8A8_SRGB`"] + pub const B8G8R8A8_SRGB: DataFormat = DataFormat { + ord: 49i32 + }; + #[doc(alias = "DATA_FORMAT_A8B8G8R8_UNORM_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A8B8G8R8_UNORM_PACK32`"] + pub const A8B8G8R8_UNORM_PACK32: DataFormat = DataFormat { + ord: 50i32 + }; + #[doc(alias = "DATA_FORMAT_A8B8G8R8_SNORM_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A8B8G8R8_SNORM_PACK32`"] + pub const A8B8G8R8_SNORM_PACK32: DataFormat = DataFormat { + ord: 51i32 + }; + #[doc(alias = "DATA_FORMAT_A8B8G8R8_USCALED_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A8B8G8R8_USCALED_PACK32`"] + pub const A8B8G8R8_USCALED_PACK32: DataFormat = DataFormat { + ord: 52i32 + }; + #[doc(alias = "DATA_FORMAT_A8B8G8R8_SSCALED_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A8B8G8R8_SSCALED_PACK32`"] + pub const A8B8G8R8_SSCALED_PACK32: DataFormat = DataFormat { + ord: 53i32 + }; + #[doc(alias = "DATA_FORMAT_A8B8G8R8_UINT_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A8B8G8R8_UINT_PACK32`"] + pub const A8B8G8R8_UINT_PACK32: DataFormat = DataFormat { + ord: 54i32 + }; + #[doc(alias = "DATA_FORMAT_A8B8G8R8_SINT_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A8B8G8R8_SINT_PACK32`"] + pub const A8B8G8R8_SINT_PACK32: DataFormat = DataFormat { + ord: 55i32 + }; + #[doc(alias = "DATA_FORMAT_A8B8G8R8_SRGB_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A8B8G8R8_SRGB_PACK32`"] + pub const A8B8G8R8_SRGB_PACK32: DataFormat = DataFormat { + ord: 56i32 + }; + #[doc(alias = "DATA_FORMAT_A2R10G10B10_UNORM_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2R10G10B10_UNORM_PACK32`"] + pub const A2R10G10B10_UNORM_PACK32: DataFormat = DataFormat { + ord: 57i32 + }; + #[doc(alias = "DATA_FORMAT_A2R10G10B10_SNORM_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2R10G10B10_SNORM_PACK32`"] + pub const A2R10G10B10_SNORM_PACK32: DataFormat = DataFormat { + ord: 58i32 + }; + #[doc(alias = "DATA_FORMAT_A2R10G10B10_USCALED_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2R10G10B10_USCALED_PACK32`"] + pub const A2R10G10B10_USCALED_PACK32: DataFormat = DataFormat { + ord: 59i32 + }; + #[doc(alias = "DATA_FORMAT_A2R10G10B10_SSCALED_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2R10G10B10_SSCALED_PACK32`"] + pub const A2R10G10B10_SSCALED_PACK32: DataFormat = DataFormat { + ord: 60i32 + }; + #[doc(alias = "DATA_FORMAT_A2R10G10B10_UINT_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2R10G10B10_UINT_PACK32`"] + pub const A2R10G10B10_UINT_PACK32: DataFormat = DataFormat { + ord: 61i32 + }; + #[doc(alias = "DATA_FORMAT_A2R10G10B10_SINT_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2R10G10B10_SINT_PACK32`"] + pub const A2R10G10B10_SINT_PACK32: DataFormat = DataFormat { + ord: 62i32 + }; + #[doc(alias = "DATA_FORMAT_A2B10G10R10_UNORM_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2B10G10R10_UNORM_PACK32`"] + pub const A2B10G10R10_UNORM_PACK32: DataFormat = DataFormat { + ord: 63i32 + }; + #[doc(alias = "DATA_FORMAT_A2B10G10R10_SNORM_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2B10G10R10_SNORM_PACK32`"] + pub const A2B10G10R10_SNORM_PACK32: DataFormat = DataFormat { + ord: 64i32 + }; + #[doc(alias = "DATA_FORMAT_A2B10G10R10_USCALED_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2B10G10R10_USCALED_PACK32`"] + pub const A2B10G10R10_USCALED_PACK32: DataFormat = DataFormat { + ord: 65i32 + }; + #[doc(alias = "DATA_FORMAT_A2B10G10R10_SSCALED_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2B10G10R10_SSCALED_PACK32`"] + pub const A2B10G10R10_SSCALED_PACK32: DataFormat = DataFormat { + ord: 66i32 + }; + #[doc(alias = "DATA_FORMAT_A2B10G10R10_UINT_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2B10G10R10_UINT_PACK32`"] + pub const A2B10G10R10_UINT_PACK32: DataFormat = DataFormat { + ord: 67i32 + }; + #[doc(alias = "DATA_FORMAT_A2B10G10R10_SINT_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_A2B10G10R10_SINT_PACK32`"] + pub const A2B10G10R10_SINT_PACK32: DataFormat = DataFormat { + ord: 68i32 + }; + #[doc(alias = "DATA_FORMAT_R16_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16_UNORM`"] + pub const R16_UNORM: DataFormat = DataFormat { + ord: 69i32 + }; + #[doc(alias = "DATA_FORMAT_R16_SNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16_SNORM`"] + pub const R16_SNORM: DataFormat = DataFormat { + ord: 70i32 + }; + #[doc(alias = "DATA_FORMAT_R16_USCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16_USCALED`"] + pub const R16_USCALED: DataFormat = DataFormat { + ord: 71i32 + }; + #[doc(alias = "DATA_FORMAT_R16_SSCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16_SSCALED`"] + pub const R16_SSCALED: DataFormat = DataFormat { + ord: 72i32 + }; + #[doc(alias = "DATA_FORMAT_R16_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16_UINT`"] + pub const R16_UINT: DataFormat = DataFormat { + ord: 73i32 + }; + #[doc(alias = "DATA_FORMAT_R16_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16_SINT`"] + pub const R16_SINT: DataFormat = DataFormat { + ord: 74i32 + }; + #[doc(alias = "DATA_FORMAT_R16_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16_SFLOAT`"] + pub const R16_SFLOAT: DataFormat = DataFormat { + ord: 75i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16_UNORM`"] + pub const R16G16_UNORM: DataFormat = DataFormat { + ord: 76i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16_SNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16_SNORM`"] + pub const R16G16_SNORM: DataFormat = DataFormat { + ord: 77i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16_USCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16_USCALED`"] + pub const R16G16_USCALED: DataFormat = DataFormat { + ord: 78i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16_SSCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16_SSCALED`"] + pub const R16G16_SSCALED: DataFormat = DataFormat { + ord: 79i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16_UINT`"] + pub const R16G16_UINT: DataFormat = DataFormat { + ord: 80i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16_SINT`"] + pub const R16G16_SINT: DataFormat = DataFormat { + ord: 81i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16_SFLOAT`"] + pub const R16G16_SFLOAT: DataFormat = DataFormat { + ord: 82i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16_UNORM`"] + pub const R16G16B16_UNORM: DataFormat = DataFormat { + ord: 83i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16_SNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16_SNORM`"] + pub const R16G16B16_SNORM: DataFormat = DataFormat { + ord: 84i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16_USCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16_USCALED`"] + pub const R16G16B16_USCALED: DataFormat = DataFormat { + ord: 85i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16_SSCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16_SSCALED`"] + pub const R16G16B16_SSCALED: DataFormat = DataFormat { + ord: 86i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16_UINT`"] + pub const R16G16B16_UINT: DataFormat = DataFormat { + ord: 87i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16_SINT`"] + pub const R16G16B16_SINT: DataFormat = DataFormat { + ord: 88i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16_SFLOAT`"] + pub const R16G16B16_SFLOAT: DataFormat = DataFormat { + ord: 89i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16A16_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16A16_UNORM`"] + pub const R16G16B16A16_UNORM: DataFormat = DataFormat { + ord: 90i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16A16_SNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16A16_SNORM`"] + pub const R16G16B16A16_SNORM: DataFormat = DataFormat { + ord: 91i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16A16_USCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16A16_USCALED`"] + pub const R16G16B16A16_USCALED: DataFormat = DataFormat { + ord: 92i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16A16_SSCALED")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16A16_SSCALED`"] + pub const R16G16B16A16_SSCALED: DataFormat = DataFormat { + ord: 93i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16A16_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16A16_UINT`"] + pub const R16G16B16A16_UINT: DataFormat = DataFormat { + ord: 94i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16A16_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16A16_SINT`"] + pub const R16G16B16A16_SINT: DataFormat = DataFormat { + ord: 95i32 + }; + #[doc(alias = "DATA_FORMAT_R16G16B16A16_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R16G16B16A16_SFLOAT`"] + pub const R16G16B16A16_SFLOAT: DataFormat = DataFormat { + ord: 96i32 + }; + #[doc(alias = "DATA_FORMAT_R32_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32_UINT`"] + pub const R32_UINT: DataFormat = DataFormat { + ord: 97i32 + }; + #[doc(alias = "DATA_FORMAT_R32_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32_SINT`"] + pub const R32_SINT: DataFormat = DataFormat { + ord: 98i32 + }; + #[doc(alias = "DATA_FORMAT_R32_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32_SFLOAT`"] + pub const R32_SFLOAT: DataFormat = DataFormat { + ord: 99i32 + }; + #[doc(alias = "DATA_FORMAT_R32G32_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32G32_UINT`"] + pub const R32G32_UINT: DataFormat = DataFormat { + ord: 100i32 + }; + #[doc(alias = "DATA_FORMAT_R32G32_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32G32_SINT`"] + pub const R32G32_SINT: DataFormat = DataFormat { + ord: 101i32 + }; + #[doc(alias = "DATA_FORMAT_R32G32_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32G32_SFLOAT`"] + pub const R32G32_SFLOAT: DataFormat = DataFormat { + ord: 102i32 + }; + #[doc(alias = "DATA_FORMAT_R32G32B32_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32G32B32_UINT`"] + pub const R32G32B32_UINT: DataFormat = DataFormat { + ord: 103i32 + }; + #[doc(alias = "DATA_FORMAT_R32G32B32_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32G32B32_SINT`"] + pub const R32G32B32_SINT: DataFormat = DataFormat { + ord: 104i32 + }; + #[doc(alias = "DATA_FORMAT_R32G32B32_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32G32B32_SFLOAT`"] + pub const R32G32B32_SFLOAT: DataFormat = DataFormat { + ord: 105i32 + }; + #[doc(alias = "DATA_FORMAT_R32G32B32A32_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32G32B32A32_UINT`"] + pub const R32G32B32A32_UINT: DataFormat = DataFormat { + ord: 106i32 + }; + #[doc(alias = "DATA_FORMAT_R32G32B32A32_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32G32B32A32_SINT`"] + pub const R32G32B32A32_SINT: DataFormat = DataFormat { + ord: 107i32 + }; + #[doc(alias = "DATA_FORMAT_R32G32B32A32_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R32G32B32A32_SFLOAT`"] + pub const R32G32B32A32_SFLOAT: DataFormat = DataFormat { + ord: 108i32 + }; + #[doc(alias = "DATA_FORMAT_R64_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64_UINT`"] + pub const R64_UINT: DataFormat = DataFormat { + ord: 109i32 + }; + #[doc(alias = "DATA_FORMAT_R64_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64_SINT`"] + pub const R64_SINT: DataFormat = DataFormat { + ord: 110i32 + }; + #[doc(alias = "DATA_FORMAT_R64_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64_SFLOAT`"] + pub const R64_SFLOAT: DataFormat = DataFormat { + ord: 111i32 + }; + #[doc(alias = "DATA_FORMAT_R64G64_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64G64_UINT`"] + pub const R64G64_UINT: DataFormat = DataFormat { + ord: 112i32 + }; + #[doc(alias = "DATA_FORMAT_R64G64_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64G64_SINT`"] + pub const R64G64_SINT: DataFormat = DataFormat { + ord: 113i32 + }; + #[doc(alias = "DATA_FORMAT_R64G64_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64G64_SFLOAT`"] + pub const R64G64_SFLOAT: DataFormat = DataFormat { + ord: 114i32 + }; + #[doc(alias = "DATA_FORMAT_R64G64B64_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64G64B64_UINT`"] + pub const R64G64B64_UINT: DataFormat = DataFormat { + ord: 115i32 + }; + #[doc(alias = "DATA_FORMAT_R64G64B64_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64G64B64_SINT`"] + pub const R64G64B64_SINT: DataFormat = DataFormat { + ord: 116i32 + }; + #[doc(alias = "DATA_FORMAT_R64G64B64_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64G64B64_SFLOAT`"] + pub const R64G64B64_SFLOAT: DataFormat = DataFormat { + ord: 117i32 + }; + #[doc(alias = "DATA_FORMAT_R64G64B64A64_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64G64B64A64_UINT`"] + pub const R64G64B64A64_UINT: DataFormat = DataFormat { + ord: 118i32 + }; + #[doc(alias = "DATA_FORMAT_R64G64B64A64_SINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64G64B64A64_SINT`"] + pub const R64G64B64A64_SINT: DataFormat = DataFormat { + ord: 119i32 + }; + #[doc(alias = "DATA_FORMAT_R64G64B64A64_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R64G64B64A64_SFLOAT`"] + pub const R64G64B64A64_SFLOAT: DataFormat = DataFormat { + ord: 120i32 + }; + #[doc(alias = "DATA_FORMAT_B10G11R11_UFLOAT_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B10G11R11_UFLOAT_PACK32`"] + pub const B10G11R11_UFLOAT_PACK32: DataFormat = DataFormat { + ord: 121i32 + }; + #[doc(alias = "DATA_FORMAT_E5B9G9R9_UFLOAT_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_E5B9G9R9_UFLOAT_PACK32`"] + pub const E5B9G9R9_UFLOAT_PACK32: DataFormat = DataFormat { + ord: 122i32 + }; + #[doc(alias = "DATA_FORMAT_D16_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_D16_UNORM`"] + pub const D16_UNORM: DataFormat = DataFormat { + ord: 123i32 + }; + #[doc(alias = "DATA_FORMAT_X8_D24_UNORM_PACK32")] + #[doc = "Godot enumerator name: `DATA_FORMAT_X8_D24_UNORM_PACK32`"] + pub const X8_D24_UNORM_PACK32: DataFormat = DataFormat { + ord: 124i32 + }; + #[doc(alias = "DATA_FORMAT_D32_SFLOAT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_D32_SFLOAT`"] + pub const D32_SFLOAT: DataFormat = DataFormat { + ord: 125i32 + }; + #[doc(alias = "DATA_FORMAT_S8_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_S8_UINT`"] + pub const S8_UINT: DataFormat = DataFormat { + ord: 126i32 + }; + #[doc(alias = "DATA_FORMAT_D16_UNORM_S8_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_D16_UNORM_S8_UINT`"] + pub const D16_UNORM_S8_UINT: DataFormat = DataFormat { + ord: 127i32 + }; + #[doc(alias = "DATA_FORMAT_D24_UNORM_S8_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_D24_UNORM_S8_UINT`"] + pub const D24_UNORM_S8_UINT: DataFormat = DataFormat { + ord: 128i32 + }; + #[doc(alias = "DATA_FORMAT_D32_SFLOAT_S8_UINT")] + #[doc = "Godot enumerator name: `DATA_FORMAT_D32_SFLOAT_S8_UINT`"] + pub const D32_SFLOAT_S8_UINT: DataFormat = DataFormat { + ord: 129i32 + }; + #[doc(alias = "DATA_FORMAT_BC1_RGB_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC1_RGB_UNORM_BLOCK`"] + pub const BC1_RGB_UNORM_BLOCK: DataFormat = DataFormat { + ord: 130i32 + }; + #[doc(alias = "DATA_FORMAT_BC1_RGB_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC1_RGB_SRGB_BLOCK`"] + pub const BC1_RGB_SRGB_BLOCK: DataFormat = DataFormat { + ord: 131i32 + }; + #[doc(alias = "DATA_FORMAT_BC1_RGBA_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC1_RGBA_UNORM_BLOCK`"] + pub const BC1_RGBA_UNORM_BLOCK: DataFormat = DataFormat { + ord: 132i32 + }; + #[doc(alias = "DATA_FORMAT_BC1_RGBA_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC1_RGBA_SRGB_BLOCK`"] + pub const BC1_RGBA_SRGB_BLOCK: DataFormat = DataFormat { + ord: 133i32 + }; + #[doc(alias = "DATA_FORMAT_BC2_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC2_UNORM_BLOCK`"] + pub const BC2_UNORM_BLOCK: DataFormat = DataFormat { + ord: 134i32 + }; + #[doc(alias = "DATA_FORMAT_BC2_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC2_SRGB_BLOCK`"] + pub const BC2_SRGB_BLOCK: DataFormat = DataFormat { + ord: 135i32 + }; + #[doc(alias = "DATA_FORMAT_BC3_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC3_UNORM_BLOCK`"] + pub const BC3_UNORM_BLOCK: DataFormat = DataFormat { + ord: 136i32 + }; + #[doc(alias = "DATA_FORMAT_BC3_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC3_SRGB_BLOCK`"] + pub const BC3_SRGB_BLOCK: DataFormat = DataFormat { + ord: 137i32 + }; + #[doc(alias = "DATA_FORMAT_BC4_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC4_UNORM_BLOCK`"] + pub const BC4_UNORM_BLOCK: DataFormat = DataFormat { + ord: 138i32 + }; + #[doc(alias = "DATA_FORMAT_BC4_SNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC4_SNORM_BLOCK`"] + pub const BC4_SNORM_BLOCK: DataFormat = DataFormat { + ord: 139i32 + }; + #[doc(alias = "DATA_FORMAT_BC5_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC5_UNORM_BLOCK`"] + pub const BC5_UNORM_BLOCK: DataFormat = DataFormat { + ord: 140i32 + }; + #[doc(alias = "DATA_FORMAT_BC5_SNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC5_SNORM_BLOCK`"] + pub const BC5_SNORM_BLOCK: DataFormat = DataFormat { + ord: 141i32 + }; + #[doc(alias = "DATA_FORMAT_BC6H_UFLOAT_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC6H_UFLOAT_BLOCK`"] + pub const BC6H_UFLOAT_BLOCK: DataFormat = DataFormat { + ord: 142i32 + }; + #[doc(alias = "DATA_FORMAT_BC6H_SFLOAT_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC6H_SFLOAT_BLOCK`"] + pub const BC6H_SFLOAT_BLOCK: DataFormat = DataFormat { + ord: 143i32 + }; + #[doc(alias = "DATA_FORMAT_BC7_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC7_UNORM_BLOCK`"] + pub const BC7_UNORM_BLOCK: DataFormat = DataFormat { + ord: 144i32 + }; + #[doc(alias = "DATA_FORMAT_BC7_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_BC7_SRGB_BLOCK`"] + pub const BC7_SRGB_BLOCK: DataFormat = DataFormat { + ord: 145i32 + }; + #[doc(alias = "DATA_FORMAT_ETC2_R8G8B8_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ETC2_R8G8B8_UNORM_BLOCK`"] + pub const ETC2_R8G8B8_UNORM_BLOCK: DataFormat = DataFormat { + ord: 146i32 + }; + #[doc(alias = "DATA_FORMAT_ETC2_R8G8B8_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ETC2_R8G8B8_SRGB_BLOCK`"] + pub const ETC2_R8G8B8_SRGB_BLOCK: DataFormat = DataFormat { + ord: 147i32 + }; + #[doc(alias = "DATA_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK`"] + pub const ETC2_R8G8B8A1_UNORM_BLOCK: DataFormat = DataFormat { + ord: 148i32 + }; + #[doc(alias = "DATA_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK`"] + pub const ETC2_R8G8B8A1_SRGB_BLOCK: DataFormat = DataFormat { + ord: 149i32 + }; + #[doc(alias = "DATA_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK`"] + pub const ETC2_R8G8B8A8_UNORM_BLOCK: DataFormat = DataFormat { + ord: 150i32 + }; + #[doc(alias = "DATA_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK`"] + pub const ETC2_R8G8B8A8_SRGB_BLOCK: DataFormat = DataFormat { + ord: 151i32 + }; + #[doc(alias = "DATA_FORMAT_EAC_R11_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_EAC_R11_UNORM_BLOCK`"] + pub const EAC_R11_UNORM_BLOCK: DataFormat = DataFormat { + ord: 152i32 + }; + #[doc(alias = "DATA_FORMAT_EAC_R11_SNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_EAC_R11_SNORM_BLOCK`"] + pub const EAC_R11_SNORM_BLOCK: DataFormat = DataFormat { + ord: 153i32 + }; + #[doc(alias = "DATA_FORMAT_EAC_R11G11_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_EAC_R11G11_UNORM_BLOCK`"] + pub const EAC_R11G11_UNORM_BLOCK: DataFormat = DataFormat { + ord: 154i32 + }; + #[doc(alias = "DATA_FORMAT_EAC_R11G11_SNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_EAC_R11G11_SNORM_BLOCK`"] + pub const EAC_R11G11_SNORM_BLOCK: DataFormat = DataFormat { + ord: 155i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_4x4_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_4x4_UNORM_BLOCK`"] + pub const ASTC_4x4_UNORM_BLOCK: DataFormat = DataFormat { + ord: 156i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_4x4_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_4x4_SRGB_BLOCK`"] + pub const ASTC_4x4_SRGB_BLOCK: DataFormat = DataFormat { + ord: 157i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_5x4_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_5x4_UNORM_BLOCK`"] + pub const ASTC_5x4_UNORM_BLOCK: DataFormat = DataFormat { + ord: 158i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_5x4_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_5x4_SRGB_BLOCK`"] + pub const ASTC_5x4_SRGB_BLOCK: DataFormat = DataFormat { + ord: 159i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_5x5_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_5x5_UNORM_BLOCK`"] + pub const ASTC_5x5_UNORM_BLOCK: DataFormat = DataFormat { + ord: 160i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_5x5_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_5x5_SRGB_BLOCK`"] + pub const ASTC_5x5_SRGB_BLOCK: DataFormat = DataFormat { + ord: 161i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_6x5_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_6x5_UNORM_BLOCK`"] + pub const ASTC_6x5_UNORM_BLOCK: DataFormat = DataFormat { + ord: 162i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_6x5_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_6x5_SRGB_BLOCK`"] + pub const ASTC_6x5_SRGB_BLOCK: DataFormat = DataFormat { + ord: 163i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_6x6_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_6x6_UNORM_BLOCK`"] + pub const ASTC_6x6_UNORM_BLOCK: DataFormat = DataFormat { + ord: 164i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_6x6_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_6x6_SRGB_BLOCK`"] + pub const ASTC_6x6_SRGB_BLOCK: DataFormat = DataFormat { + ord: 165i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_8x5_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_8x5_UNORM_BLOCK`"] + pub const ASTC_8x5_UNORM_BLOCK: DataFormat = DataFormat { + ord: 166i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_8x5_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_8x5_SRGB_BLOCK`"] + pub const ASTC_8x5_SRGB_BLOCK: DataFormat = DataFormat { + ord: 167i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_8x6_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_8x6_UNORM_BLOCK`"] + pub const ASTC_8x6_UNORM_BLOCK: DataFormat = DataFormat { + ord: 168i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_8x6_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_8x6_SRGB_BLOCK`"] + pub const ASTC_8x6_SRGB_BLOCK: DataFormat = DataFormat { + ord: 169i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_8x8_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_8x8_UNORM_BLOCK`"] + pub const ASTC_8x8_UNORM_BLOCK: DataFormat = DataFormat { + ord: 170i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_8x8_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_8x8_SRGB_BLOCK`"] + pub const ASTC_8x8_SRGB_BLOCK: DataFormat = DataFormat { + ord: 171i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_10x5_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_10x5_UNORM_BLOCK`"] + pub const ASTC_10x5_UNORM_BLOCK: DataFormat = DataFormat { + ord: 172i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_10x5_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_10x5_SRGB_BLOCK`"] + pub const ASTC_10x5_SRGB_BLOCK: DataFormat = DataFormat { + ord: 173i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_10x6_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_10x6_UNORM_BLOCK`"] + pub const ASTC_10x6_UNORM_BLOCK: DataFormat = DataFormat { + ord: 174i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_10x6_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_10x6_SRGB_BLOCK`"] + pub const ASTC_10x6_SRGB_BLOCK: DataFormat = DataFormat { + ord: 175i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_10x8_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_10x8_UNORM_BLOCK`"] + pub const ASTC_10x8_UNORM_BLOCK: DataFormat = DataFormat { + ord: 176i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_10x8_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_10x8_SRGB_BLOCK`"] + pub const ASTC_10x8_SRGB_BLOCK: DataFormat = DataFormat { + ord: 177i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_10x10_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_10x10_UNORM_BLOCK`"] + pub const ASTC_10x10_UNORM_BLOCK: DataFormat = DataFormat { + ord: 178i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_10x10_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_10x10_SRGB_BLOCK`"] + pub const ASTC_10x10_SRGB_BLOCK: DataFormat = DataFormat { + ord: 179i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_12x10_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_12x10_UNORM_BLOCK`"] + pub const ASTC_12x10_UNORM_BLOCK: DataFormat = DataFormat { + ord: 180i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_12x10_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_12x10_SRGB_BLOCK`"] + pub const ASTC_12x10_SRGB_BLOCK: DataFormat = DataFormat { + ord: 181i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_12x12_UNORM_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_12x12_UNORM_BLOCK`"] + pub const ASTC_12x12_UNORM_BLOCK: DataFormat = DataFormat { + ord: 182i32 + }; + #[doc(alias = "DATA_FORMAT_ASTC_12x12_SRGB_BLOCK")] + #[doc = "Godot enumerator name: `DATA_FORMAT_ASTC_12x12_SRGB_BLOCK`"] + pub const ASTC_12x12_SRGB_BLOCK: DataFormat = DataFormat { + ord: 183i32 + }; + #[doc(alias = "DATA_FORMAT_G8B8G8R8_422_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G8B8G8R8_422_UNORM`"] + pub const G8B8G8R8_422_UNORM: DataFormat = DataFormat { + ord: 184i32 + }; + #[doc(alias = "DATA_FORMAT_B8G8R8G8_422_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B8G8R8G8_422_UNORM`"] + pub const B8G8R8G8_422_UNORM: DataFormat = DataFormat { + ord: 185i32 + }; + #[doc(alias = "DATA_FORMAT_G8_B8_R8_3PLANE_420_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G8_B8_R8_3PLANE_420_UNORM`"] + pub const G8_B8_R8_3PLANE_420_UNORM: DataFormat = DataFormat { + ord: 186i32 + }; + #[doc(alias = "DATA_FORMAT_G8_B8R8_2PLANE_420_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G8_B8R8_2PLANE_420_UNORM`"] + pub const G8_B8R8_2PLANE_420_UNORM: DataFormat = DataFormat { + ord: 187i32 + }; + #[doc(alias = "DATA_FORMAT_G8_B8_R8_3PLANE_422_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G8_B8_R8_3PLANE_422_UNORM`"] + pub const G8_B8_R8_3PLANE_422_UNORM: DataFormat = DataFormat { + ord: 188i32 + }; + #[doc(alias = "DATA_FORMAT_G8_B8R8_2PLANE_422_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G8_B8R8_2PLANE_422_UNORM`"] + pub const G8_B8R8_2PLANE_422_UNORM: DataFormat = DataFormat { + ord: 189i32 + }; + #[doc(alias = "DATA_FORMAT_G8_B8_R8_3PLANE_444_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G8_B8_R8_3PLANE_444_UNORM`"] + pub const G8_B8_R8_3PLANE_444_UNORM: DataFormat = DataFormat { + ord: 190i32 + }; + #[doc(alias = "DATA_FORMAT_R10X6_UNORM_PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R10X6_UNORM_PACK16`"] + pub const R10X6_UNORM_PACK16: DataFormat = DataFormat { + ord: 191i32 + }; + #[doc(alias = "DATA_FORMAT_R10X6G10X6_UNORM_2PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R10X6G10X6_UNORM_2PACK16`"] + pub const R10X6G10X6_UNORM_2PACK16: DataFormat = DataFormat { + ord: 192i32 + }; + #[doc(alias = "DATA_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16`"] + pub const R10X6G10X6B10X6A10X6_UNORM_4PACK16: DataFormat = DataFormat { + ord: 193i32 + }; + #[doc(alias = "DATA_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16`"] + pub const G10X6B10X6G10X6R10X6_422_UNORM_4PACK16: DataFormat = DataFormat { + ord: 194i32 + }; + #[doc(alias = "DATA_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16`"] + pub const B10X6G10X6R10X6G10X6_422_UNORM_4PACK16: DataFormat = DataFormat { + ord: 195i32 + }; + #[doc(alias = "DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16`"] + pub const G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16: DataFormat = DataFormat { + ord: 196i32 + }; + #[doc(alias = "DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16`"] + pub const G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16: DataFormat = DataFormat { + ord: 197i32 + }; + #[doc(alias = "DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16`"] + pub const G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16: DataFormat = DataFormat { + ord: 198i32 + }; + #[doc(alias = "DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16`"] + pub const G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16: DataFormat = DataFormat { + ord: 199i32 + }; + #[doc(alias = "DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16`"] + pub const G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16: DataFormat = DataFormat { + ord: 200i32 + }; + #[doc(alias = "DATA_FORMAT_R12X4_UNORM_PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R12X4_UNORM_PACK16`"] + pub const R12X4_UNORM_PACK16: DataFormat = DataFormat { + ord: 201i32 + }; + #[doc(alias = "DATA_FORMAT_R12X4G12X4_UNORM_2PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R12X4G12X4_UNORM_2PACK16`"] + pub const R12X4G12X4_UNORM_2PACK16: DataFormat = DataFormat { + ord: 202i32 + }; + #[doc(alias = "DATA_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16`"] + pub const R12X4G12X4B12X4A12X4_UNORM_4PACK16: DataFormat = DataFormat { + ord: 203i32 + }; + #[doc(alias = "DATA_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16`"] + pub const G12X4B12X4G12X4R12X4_422_UNORM_4PACK16: DataFormat = DataFormat { + ord: 204i32 + }; + #[doc(alias = "DATA_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16`"] + pub const B12X4G12X4R12X4G12X4_422_UNORM_4PACK16: DataFormat = DataFormat { + ord: 205i32 + }; + #[doc(alias = "DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16`"] + pub const G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16: DataFormat = DataFormat { + ord: 206i32 + }; + #[doc(alias = "DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16`"] + pub const G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16: DataFormat = DataFormat { + ord: 207i32 + }; + #[doc(alias = "DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16`"] + pub const G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16: DataFormat = DataFormat { + ord: 208i32 + }; + #[doc(alias = "DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16`"] + pub const G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16: DataFormat = DataFormat { + ord: 209i32 + }; + #[doc(alias = "DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16`"] + pub const G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16: DataFormat = DataFormat { + ord: 210i32 + }; + #[doc(alias = "DATA_FORMAT_G16B16G16R16_422_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G16B16G16R16_422_UNORM`"] + pub const G16B16G16R16_422_UNORM: DataFormat = DataFormat { + ord: 211i32 + }; + #[doc(alias = "DATA_FORMAT_B16G16R16G16_422_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_B16G16R16G16_422_UNORM`"] + pub const B16G16R16G16_422_UNORM: DataFormat = DataFormat { + ord: 212i32 + }; + #[doc(alias = "DATA_FORMAT_G16_B16_R16_3PLANE_420_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G16_B16_R16_3PLANE_420_UNORM`"] + pub const G16_B16_R16_3PLANE_420_UNORM: DataFormat = DataFormat { + ord: 213i32 + }; + #[doc(alias = "DATA_FORMAT_G16_B16R16_2PLANE_420_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G16_B16R16_2PLANE_420_UNORM`"] + pub const G16_B16R16_2PLANE_420_UNORM: DataFormat = DataFormat { + ord: 214i32 + }; + #[doc(alias = "DATA_FORMAT_G16_B16_R16_3PLANE_422_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G16_B16_R16_3PLANE_422_UNORM`"] + pub const G16_B16_R16_3PLANE_422_UNORM: DataFormat = DataFormat { + ord: 215i32 + }; + #[doc(alias = "DATA_FORMAT_G16_B16R16_2PLANE_422_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G16_B16R16_2PLANE_422_UNORM`"] + pub const G16_B16R16_2PLANE_422_UNORM: DataFormat = DataFormat { + ord: 216i32 + }; + #[doc(alias = "DATA_FORMAT_G16_B16_R16_3PLANE_444_UNORM")] + #[doc = "Godot enumerator name: `DATA_FORMAT_G16_B16_R16_3PLANE_444_UNORM`"] + pub const G16_B16_R16_3PLANE_444_UNORM: DataFormat = DataFormat { + ord: 217i32 + }; + #[doc(alias = "DATA_FORMAT_MAX")] + #[doc = "Godot enumerator name: `DATA_FORMAT_MAX`"] + pub const MAX: DataFormat = DataFormat { + ord: 218i32 + }; + +} +impl std::fmt::Debug for DataFormat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DataFormat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DataFormat { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 | ord @ 26i32 | ord @ 27i32 | ord @ 28i32 | ord @ 29i32 | ord @ 30i32 | ord @ 31i32 | ord @ 32i32 | ord @ 33i32 | ord @ 34i32 | ord @ 35i32 | ord @ 36i32 | ord @ 37i32 | ord @ 38i32 | ord @ 39i32 | ord @ 40i32 | ord @ 41i32 | ord @ 42i32 | ord @ 43i32 | ord @ 44i32 | ord @ 45i32 | ord @ 46i32 | ord @ 47i32 | ord @ 48i32 | ord @ 49i32 | ord @ 50i32 | ord @ 51i32 | ord @ 52i32 | ord @ 53i32 | ord @ 54i32 | ord @ 55i32 | ord @ 56i32 | ord @ 57i32 | ord @ 58i32 | ord @ 59i32 | ord @ 60i32 | ord @ 61i32 | ord @ 62i32 | ord @ 63i32 | ord @ 64i32 | ord @ 65i32 | ord @ 66i32 | ord @ 67i32 | ord @ 68i32 | ord @ 69i32 | ord @ 70i32 | ord @ 71i32 | ord @ 72i32 | ord @ 73i32 | ord @ 74i32 | ord @ 75i32 | ord @ 76i32 | ord @ 77i32 | ord @ 78i32 | ord @ 79i32 | ord @ 80i32 | ord @ 81i32 | ord @ 82i32 | ord @ 83i32 | ord @ 84i32 | ord @ 85i32 | ord @ 86i32 | ord @ 87i32 | ord @ 88i32 | ord @ 89i32 | ord @ 90i32 | ord @ 91i32 | ord @ 92i32 | ord @ 93i32 | ord @ 94i32 | ord @ 95i32 | ord @ 96i32 | ord @ 97i32 | ord @ 98i32 | ord @ 99i32 | ord @ 100i32 | ord @ 101i32 | ord @ 102i32 | ord @ 103i32 | ord @ 104i32 | ord @ 105i32 | ord @ 106i32 | ord @ 107i32 | ord @ 108i32 | ord @ 109i32 | ord @ 110i32 | ord @ 111i32 | ord @ 112i32 | ord @ 113i32 | ord @ 114i32 | ord @ 115i32 | ord @ 116i32 | ord @ 117i32 | ord @ 118i32 | ord @ 119i32 | ord @ 120i32 | ord @ 121i32 | ord @ 122i32 | ord @ 123i32 | ord @ 124i32 | ord @ 125i32 | ord @ 126i32 | ord @ 127i32 | ord @ 128i32 | ord @ 129i32 | ord @ 130i32 | ord @ 131i32 | ord @ 132i32 | ord @ 133i32 | ord @ 134i32 | ord @ 135i32 | ord @ 136i32 | ord @ 137i32 | ord @ 138i32 | ord @ 139i32 | ord @ 140i32 | ord @ 141i32 | ord @ 142i32 | ord @ 143i32 | ord @ 144i32 | ord @ 145i32 | ord @ 146i32 | ord @ 147i32 | ord @ 148i32 | ord @ 149i32 | ord @ 150i32 | ord @ 151i32 | ord @ 152i32 | ord @ 153i32 | ord @ 154i32 | ord @ 155i32 | ord @ 156i32 | ord @ 157i32 | ord @ 158i32 | ord @ 159i32 | ord @ 160i32 | ord @ 161i32 | ord @ 162i32 | ord @ 163i32 | ord @ 164i32 | ord @ 165i32 | ord @ 166i32 | ord @ 167i32 | ord @ 168i32 | ord @ 169i32 | ord @ 170i32 | ord @ 171i32 | ord @ 172i32 | ord @ 173i32 | ord @ 174i32 | ord @ 175i32 | ord @ 176i32 | ord @ 177i32 | ord @ 178i32 | ord @ 179i32 | ord @ 180i32 | ord @ 181i32 | ord @ 182i32 | ord @ 183i32 | ord @ 184i32 | ord @ 185i32 | ord @ 186i32 | ord @ 187i32 | ord @ 188i32 | ord @ 189i32 | ord @ 190i32 | ord @ 191i32 | ord @ 192i32 | ord @ 193i32 | ord @ 194i32 | ord @ 195i32 | ord @ 196i32 | ord @ 197i32 | ord @ 198i32 | ord @ 199i32 | ord @ 200i32 | ord @ 201i32 | ord @ 202i32 | ord @ 203i32 | ord @ 204i32 | ord @ 205i32 | ord @ 206i32 | ord @ 207i32 | ord @ 208i32 | ord @ 209i32 | ord @ 210i32 | ord @ 211i32 | ord @ 212i32 | ord @ 213i32 | ord @ 214i32 | ord @ 215i32 | ord @ 216i32 | ord @ 217i32 | ord @ 218i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::R4G4_UNORM_PACK8 => "R4G4_UNORM_PACK8", Self::R4G4B4A4_UNORM_PACK16 => "R4G4B4A4_UNORM_PACK16", Self::B4G4R4A4_UNORM_PACK16 => "B4G4R4A4_UNORM_PACK16", Self::R5G6B5_UNORM_PACK16 => "R5G6B5_UNORM_PACK16", Self::B5G6R5_UNORM_PACK16 => "B5G6R5_UNORM_PACK16", Self::R5G5B5A1_UNORM_PACK16 => "R5G5B5A1_UNORM_PACK16", Self::B5G5R5A1_UNORM_PACK16 => "B5G5R5A1_UNORM_PACK16", Self::A1R5G5B5_UNORM_PACK16 => "A1R5G5B5_UNORM_PACK16", Self::R8_UNORM => "R8_UNORM", Self::R8_SNORM => "R8_SNORM", Self::R8_USCALED => "R8_USCALED", Self::R8_SSCALED => "R8_SSCALED", Self::R8_UINT => "R8_UINT", Self::R8_SINT => "R8_SINT", Self::R8_SRGB => "R8_SRGB", Self::R8G8_UNORM => "R8G8_UNORM", Self::R8G8_SNORM => "R8G8_SNORM", Self::R8G8_USCALED => "R8G8_USCALED", Self::R8G8_SSCALED => "R8G8_SSCALED", Self::R8G8_UINT => "R8G8_UINT", Self::R8G8_SINT => "R8G8_SINT", Self::R8G8_SRGB => "R8G8_SRGB", Self::R8G8B8_UNORM => "R8G8B8_UNORM", Self::R8G8B8_SNORM => "R8G8B8_SNORM", Self::R8G8B8_USCALED => "R8G8B8_USCALED", Self::R8G8B8_SSCALED => "R8G8B8_SSCALED", Self::R8G8B8_UINT => "R8G8B8_UINT", Self::R8G8B8_SINT => "R8G8B8_SINT", Self::R8G8B8_SRGB => "R8G8B8_SRGB", Self::B8G8R8_UNORM => "B8G8R8_UNORM", Self::B8G8R8_SNORM => "B8G8R8_SNORM", Self::B8G8R8_USCALED => "B8G8R8_USCALED", Self::B8G8R8_SSCALED => "B8G8R8_SSCALED", Self::B8G8R8_UINT => "B8G8R8_UINT", Self::B8G8R8_SINT => "B8G8R8_SINT", Self::B8G8R8_SRGB => "B8G8R8_SRGB", Self::R8G8B8A8_UNORM => "R8G8B8A8_UNORM", Self::R8G8B8A8_SNORM => "R8G8B8A8_SNORM", Self::R8G8B8A8_USCALED => "R8G8B8A8_USCALED", Self::R8G8B8A8_SSCALED => "R8G8B8A8_SSCALED", Self::R8G8B8A8_UINT => "R8G8B8A8_UINT", Self::R8G8B8A8_SINT => "R8G8B8A8_SINT", Self::R8G8B8A8_SRGB => "R8G8B8A8_SRGB", Self::B8G8R8A8_UNORM => "B8G8R8A8_UNORM", Self::B8G8R8A8_SNORM => "B8G8R8A8_SNORM", Self::B8G8R8A8_USCALED => "B8G8R8A8_USCALED", Self::B8G8R8A8_SSCALED => "B8G8R8A8_SSCALED", Self::B8G8R8A8_UINT => "B8G8R8A8_UINT", Self::B8G8R8A8_SINT => "B8G8R8A8_SINT", Self::B8G8R8A8_SRGB => "B8G8R8A8_SRGB", Self::A8B8G8R8_UNORM_PACK32 => "A8B8G8R8_UNORM_PACK32", Self::A8B8G8R8_SNORM_PACK32 => "A8B8G8R8_SNORM_PACK32", Self::A8B8G8R8_USCALED_PACK32 => "A8B8G8R8_USCALED_PACK32", Self::A8B8G8R8_SSCALED_PACK32 => "A8B8G8R8_SSCALED_PACK32", Self::A8B8G8R8_UINT_PACK32 => "A8B8G8R8_UINT_PACK32", Self::A8B8G8R8_SINT_PACK32 => "A8B8G8R8_SINT_PACK32", Self::A8B8G8R8_SRGB_PACK32 => "A8B8G8R8_SRGB_PACK32", Self::A2R10G10B10_UNORM_PACK32 => "A2R10G10B10_UNORM_PACK32", Self::A2R10G10B10_SNORM_PACK32 => "A2R10G10B10_SNORM_PACK32", Self::A2R10G10B10_USCALED_PACK32 => "A2R10G10B10_USCALED_PACK32", Self::A2R10G10B10_SSCALED_PACK32 => "A2R10G10B10_SSCALED_PACK32", Self::A2R10G10B10_UINT_PACK32 => "A2R10G10B10_UINT_PACK32", Self::A2R10G10B10_SINT_PACK32 => "A2R10G10B10_SINT_PACK32", Self::A2B10G10R10_UNORM_PACK32 => "A2B10G10R10_UNORM_PACK32", Self::A2B10G10R10_SNORM_PACK32 => "A2B10G10R10_SNORM_PACK32", Self::A2B10G10R10_USCALED_PACK32 => "A2B10G10R10_USCALED_PACK32", Self::A2B10G10R10_SSCALED_PACK32 => "A2B10G10R10_SSCALED_PACK32", Self::A2B10G10R10_UINT_PACK32 => "A2B10G10R10_UINT_PACK32", Self::A2B10G10R10_SINT_PACK32 => "A2B10G10R10_SINT_PACK32", Self::R16_UNORM => "R16_UNORM", Self::R16_SNORM => "R16_SNORM", Self::R16_USCALED => "R16_USCALED", Self::R16_SSCALED => "R16_SSCALED", Self::R16_UINT => "R16_UINT", Self::R16_SINT => "R16_SINT", Self::R16_SFLOAT => "R16_SFLOAT", Self::R16G16_UNORM => "R16G16_UNORM", Self::R16G16_SNORM => "R16G16_SNORM", Self::R16G16_USCALED => "R16G16_USCALED", Self::R16G16_SSCALED => "R16G16_SSCALED", Self::R16G16_UINT => "R16G16_UINT", Self::R16G16_SINT => "R16G16_SINT", Self::R16G16_SFLOAT => "R16G16_SFLOAT", Self::R16G16B16_UNORM => "R16G16B16_UNORM", Self::R16G16B16_SNORM => "R16G16B16_SNORM", Self::R16G16B16_USCALED => "R16G16B16_USCALED", Self::R16G16B16_SSCALED => "R16G16B16_SSCALED", Self::R16G16B16_UINT => "R16G16B16_UINT", Self::R16G16B16_SINT => "R16G16B16_SINT", Self::R16G16B16_SFLOAT => "R16G16B16_SFLOAT", Self::R16G16B16A16_UNORM => "R16G16B16A16_UNORM", Self::R16G16B16A16_SNORM => "R16G16B16A16_SNORM", Self::R16G16B16A16_USCALED => "R16G16B16A16_USCALED", Self::R16G16B16A16_SSCALED => "R16G16B16A16_SSCALED", Self::R16G16B16A16_UINT => "R16G16B16A16_UINT", Self::R16G16B16A16_SINT => "R16G16B16A16_SINT", Self::R16G16B16A16_SFLOAT => "R16G16B16A16_SFLOAT", Self::R32_UINT => "R32_UINT", Self::R32_SINT => "R32_SINT", Self::R32_SFLOAT => "R32_SFLOAT", Self::R32G32_UINT => "R32G32_UINT", Self::R32G32_SINT => "R32G32_SINT", Self::R32G32_SFLOAT => "R32G32_SFLOAT", Self::R32G32B32_UINT => "R32G32B32_UINT", Self::R32G32B32_SINT => "R32G32B32_SINT", Self::R32G32B32_SFLOAT => "R32G32B32_SFLOAT", Self::R32G32B32A32_UINT => "R32G32B32A32_UINT", Self::R32G32B32A32_SINT => "R32G32B32A32_SINT", Self::R32G32B32A32_SFLOAT => "R32G32B32A32_SFLOAT", Self::R64_UINT => "R64_UINT", Self::R64_SINT => "R64_SINT", Self::R64_SFLOAT => "R64_SFLOAT", Self::R64G64_UINT => "R64G64_UINT", Self::R64G64_SINT => "R64G64_SINT", Self::R64G64_SFLOAT => "R64G64_SFLOAT", Self::R64G64B64_UINT => "R64G64B64_UINT", Self::R64G64B64_SINT => "R64G64B64_SINT", Self::R64G64B64_SFLOAT => "R64G64B64_SFLOAT", Self::R64G64B64A64_UINT => "R64G64B64A64_UINT", Self::R64G64B64A64_SINT => "R64G64B64A64_SINT", Self::R64G64B64A64_SFLOAT => "R64G64B64A64_SFLOAT", Self::B10G11R11_UFLOAT_PACK32 => "B10G11R11_UFLOAT_PACK32", Self::E5B9G9R9_UFLOAT_PACK32 => "E5B9G9R9_UFLOAT_PACK32", Self::D16_UNORM => "D16_UNORM", Self::X8_D24_UNORM_PACK32 => "X8_D24_UNORM_PACK32", Self::D32_SFLOAT => "D32_SFLOAT", Self::S8_UINT => "S8_UINT", Self::D16_UNORM_S8_UINT => "D16_UNORM_S8_UINT", Self::D24_UNORM_S8_UINT => "D24_UNORM_S8_UINT", Self::D32_SFLOAT_S8_UINT => "D32_SFLOAT_S8_UINT", Self::BC1_RGB_UNORM_BLOCK => "BC1_RGB_UNORM_BLOCK", Self::BC1_RGB_SRGB_BLOCK => "BC1_RGB_SRGB_BLOCK", Self::BC1_RGBA_UNORM_BLOCK => "BC1_RGBA_UNORM_BLOCK", Self::BC1_RGBA_SRGB_BLOCK => "BC1_RGBA_SRGB_BLOCK", Self::BC2_UNORM_BLOCK => "BC2_UNORM_BLOCK", Self::BC2_SRGB_BLOCK => "BC2_SRGB_BLOCK", Self::BC3_UNORM_BLOCK => "BC3_UNORM_BLOCK", Self::BC3_SRGB_BLOCK => "BC3_SRGB_BLOCK", Self::BC4_UNORM_BLOCK => "BC4_UNORM_BLOCK", Self::BC4_SNORM_BLOCK => "BC4_SNORM_BLOCK", Self::BC5_UNORM_BLOCK => "BC5_UNORM_BLOCK", Self::BC5_SNORM_BLOCK => "BC5_SNORM_BLOCK", Self::BC6H_UFLOAT_BLOCK => "BC6H_UFLOAT_BLOCK", Self::BC6H_SFLOAT_BLOCK => "BC6H_SFLOAT_BLOCK", Self::BC7_UNORM_BLOCK => "BC7_UNORM_BLOCK", Self::BC7_SRGB_BLOCK => "BC7_SRGB_BLOCK", Self::ETC2_R8G8B8_UNORM_BLOCK => "ETC2_R8G8B8_UNORM_BLOCK", Self::ETC2_R8G8B8_SRGB_BLOCK => "ETC2_R8G8B8_SRGB_BLOCK", Self::ETC2_R8G8B8A1_UNORM_BLOCK => "ETC2_R8G8B8A1_UNORM_BLOCK", Self::ETC2_R8G8B8A1_SRGB_BLOCK => "ETC2_R8G8B8A1_SRGB_BLOCK", Self::ETC2_R8G8B8A8_UNORM_BLOCK => "ETC2_R8G8B8A8_UNORM_BLOCK", Self::ETC2_R8G8B8A8_SRGB_BLOCK => "ETC2_R8G8B8A8_SRGB_BLOCK", Self::EAC_R11_UNORM_BLOCK => "EAC_R11_UNORM_BLOCK", Self::EAC_R11_SNORM_BLOCK => "EAC_R11_SNORM_BLOCK", Self::EAC_R11G11_UNORM_BLOCK => "EAC_R11G11_UNORM_BLOCK", Self::EAC_R11G11_SNORM_BLOCK => "EAC_R11G11_SNORM_BLOCK", Self::ASTC_4x4_UNORM_BLOCK => "ASTC_4x4_UNORM_BLOCK", Self::ASTC_4x4_SRGB_BLOCK => "ASTC_4x4_SRGB_BLOCK", Self::ASTC_5x4_UNORM_BLOCK => "ASTC_5x4_UNORM_BLOCK", Self::ASTC_5x4_SRGB_BLOCK => "ASTC_5x4_SRGB_BLOCK", Self::ASTC_5x5_UNORM_BLOCK => "ASTC_5x5_UNORM_BLOCK", Self::ASTC_5x5_SRGB_BLOCK => "ASTC_5x5_SRGB_BLOCK", Self::ASTC_6x5_UNORM_BLOCK => "ASTC_6x5_UNORM_BLOCK", Self::ASTC_6x5_SRGB_BLOCK => "ASTC_6x5_SRGB_BLOCK", Self::ASTC_6x6_UNORM_BLOCK => "ASTC_6x6_UNORM_BLOCK", Self::ASTC_6x6_SRGB_BLOCK => "ASTC_6x6_SRGB_BLOCK", Self::ASTC_8x5_UNORM_BLOCK => "ASTC_8x5_UNORM_BLOCK", Self::ASTC_8x5_SRGB_BLOCK => "ASTC_8x5_SRGB_BLOCK", Self::ASTC_8x6_UNORM_BLOCK => "ASTC_8x6_UNORM_BLOCK", Self::ASTC_8x6_SRGB_BLOCK => "ASTC_8x6_SRGB_BLOCK", Self::ASTC_8x8_UNORM_BLOCK => "ASTC_8x8_UNORM_BLOCK", Self::ASTC_8x8_SRGB_BLOCK => "ASTC_8x8_SRGB_BLOCK", Self::ASTC_10x5_UNORM_BLOCK => "ASTC_10x5_UNORM_BLOCK", Self::ASTC_10x5_SRGB_BLOCK => "ASTC_10x5_SRGB_BLOCK", Self::ASTC_10x6_UNORM_BLOCK => "ASTC_10x6_UNORM_BLOCK", Self::ASTC_10x6_SRGB_BLOCK => "ASTC_10x6_SRGB_BLOCK", Self::ASTC_10x8_UNORM_BLOCK => "ASTC_10x8_UNORM_BLOCK", Self::ASTC_10x8_SRGB_BLOCK => "ASTC_10x8_SRGB_BLOCK", Self::ASTC_10x10_UNORM_BLOCK => "ASTC_10x10_UNORM_BLOCK", Self::ASTC_10x10_SRGB_BLOCK => "ASTC_10x10_SRGB_BLOCK", Self::ASTC_12x10_UNORM_BLOCK => "ASTC_12x10_UNORM_BLOCK", Self::ASTC_12x10_SRGB_BLOCK => "ASTC_12x10_SRGB_BLOCK", Self::ASTC_12x12_UNORM_BLOCK => "ASTC_12x12_UNORM_BLOCK", Self::ASTC_12x12_SRGB_BLOCK => "ASTC_12x12_SRGB_BLOCK", Self::G8B8G8R8_422_UNORM => "G8B8G8R8_422_UNORM", Self::B8G8R8G8_422_UNORM => "B8G8R8G8_422_UNORM", Self::G8_B8_R8_3PLANE_420_UNORM => "G8_B8_R8_3PLANE_420_UNORM", Self::G8_B8R8_2PLANE_420_UNORM => "G8_B8R8_2PLANE_420_UNORM", Self::G8_B8_R8_3PLANE_422_UNORM => "G8_B8_R8_3PLANE_422_UNORM", Self::G8_B8R8_2PLANE_422_UNORM => "G8_B8R8_2PLANE_422_UNORM", Self::G8_B8_R8_3PLANE_444_UNORM => "G8_B8_R8_3PLANE_444_UNORM", Self::R10X6_UNORM_PACK16 => "R10X6_UNORM_PACK16", Self::R10X6G10X6_UNORM_2PACK16 => "R10X6G10X6_UNORM_2PACK16", Self::R10X6G10X6B10X6A10X6_UNORM_4PACK16 => "R10X6G10X6B10X6A10X6_UNORM_4PACK16", Self::G10X6B10X6G10X6R10X6_422_UNORM_4PACK16 => "G10X6B10X6G10X6R10X6_422_UNORM_4PACK16", Self::B10X6G10X6R10X6G10X6_422_UNORM_4PACK16 => "B10X6G10X6R10X6G10X6_422_UNORM_4PACK16", Self::G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16 => "G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16", Self::G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16 => "G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16", Self::G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16 => "G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16", Self::G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16 => "G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16", Self::G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16 => "G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16", Self::R12X4_UNORM_PACK16 => "R12X4_UNORM_PACK16", Self::R12X4G12X4_UNORM_2PACK16 => "R12X4G12X4_UNORM_2PACK16", Self::R12X4G12X4B12X4A12X4_UNORM_4PACK16 => "R12X4G12X4B12X4A12X4_UNORM_4PACK16", Self::G12X4B12X4G12X4R12X4_422_UNORM_4PACK16 => "G12X4B12X4G12X4R12X4_422_UNORM_4PACK16", Self::B12X4G12X4R12X4G12X4_422_UNORM_4PACK16 => "B12X4G12X4R12X4G12X4_422_UNORM_4PACK16", Self::G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16 => "G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16", Self::G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16 => "G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16", Self::G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16 => "G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16", Self::G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16 => "G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16", Self::G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16 => "G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16", Self::G16B16G16R16_422_UNORM => "G16B16G16R16_422_UNORM", Self::B16G16R16G16_422_UNORM => "B16G16R16G16_422_UNORM", Self::G16_B16_R16_3PLANE_420_UNORM => "G16_B16_R16_3PLANE_420_UNORM", Self::G16_B16R16_2PLANE_420_UNORM => "G16_B16R16_2PLANE_420_UNORM", Self::G16_B16_R16_3PLANE_422_UNORM => "G16_B16_R16_3PLANE_422_UNORM", Self::G16_B16R16_2PLANE_422_UNORM => "G16_B16R16_2PLANE_422_UNORM", Self::G16_B16_R16_3PLANE_444_UNORM => "G16_B16_R16_3PLANE_444_UNORM", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::R4G4_UNORM_PACK8 => "DATA_FORMAT_R4G4_UNORM_PACK8", Self::R4G4B4A4_UNORM_PACK16 => "DATA_FORMAT_R4G4B4A4_UNORM_PACK16", Self::B4G4R4A4_UNORM_PACK16 => "DATA_FORMAT_B4G4R4A4_UNORM_PACK16", Self::R5G6B5_UNORM_PACK16 => "DATA_FORMAT_R5G6B5_UNORM_PACK16", Self::B5G6R5_UNORM_PACK16 => "DATA_FORMAT_B5G6R5_UNORM_PACK16", Self::R5G5B5A1_UNORM_PACK16 => "DATA_FORMAT_R5G5B5A1_UNORM_PACK16", Self::B5G5R5A1_UNORM_PACK16 => "DATA_FORMAT_B5G5R5A1_UNORM_PACK16", Self::A1R5G5B5_UNORM_PACK16 => "DATA_FORMAT_A1R5G5B5_UNORM_PACK16", Self::R8_UNORM => "DATA_FORMAT_R8_UNORM", Self::R8_SNORM => "DATA_FORMAT_R8_SNORM", Self::R8_USCALED => "DATA_FORMAT_R8_USCALED", Self::R8_SSCALED => "DATA_FORMAT_R8_SSCALED", Self::R8_UINT => "DATA_FORMAT_R8_UINT", Self::R8_SINT => "DATA_FORMAT_R8_SINT", Self::R8_SRGB => "DATA_FORMAT_R8_SRGB", Self::R8G8_UNORM => "DATA_FORMAT_R8G8_UNORM", Self::R8G8_SNORM => "DATA_FORMAT_R8G8_SNORM", Self::R8G8_USCALED => "DATA_FORMAT_R8G8_USCALED", Self::R8G8_SSCALED => "DATA_FORMAT_R8G8_SSCALED", Self::R8G8_UINT => "DATA_FORMAT_R8G8_UINT", Self::R8G8_SINT => "DATA_FORMAT_R8G8_SINT", Self::R8G8_SRGB => "DATA_FORMAT_R8G8_SRGB", Self::R8G8B8_UNORM => "DATA_FORMAT_R8G8B8_UNORM", Self::R8G8B8_SNORM => "DATA_FORMAT_R8G8B8_SNORM", Self::R8G8B8_USCALED => "DATA_FORMAT_R8G8B8_USCALED", Self::R8G8B8_SSCALED => "DATA_FORMAT_R8G8B8_SSCALED", Self::R8G8B8_UINT => "DATA_FORMAT_R8G8B8_UINT", Self::R8G8B8_SINT => "DATA_FORMAT_R8G8B8_SINT", Self::R8G8B8_SRGB => "DATA_FORMAT_R8G8B8_SRGB", Self::B8G8R8_UNORM => "DATA_FORMAT_B8G8R8_UNORM", Self::B8G8R8_SNORM => "DATA_FORMAT_B8G8R8_SNORM", Self::B8G8R8_USCALED => "DATA_FORMAT_B8G8R8_USCALED", Self::B8G8R8_SSCALED => "DATA_FORMAT_B8G8R8_SSCALED", Self::B8G8R8_UINT => "DATA_FORMAT_B8G8R8_UINT", Self::B8G8R8_SINT => "DATA_FORMAT_B8G8R8_SINT", Self::B8G8R8_SRGB => "DATA_FORMAT_B8G8R8_SRGB", Self::R8G8B8A8_UNORM => "DATA_FORMAT_R8G8B8A8_UNORM", Self::R8G8B8A8_SNORM => "DATA_FORMAT_R8G8B8A8_SNORM", Self::R8G8B8A8_USCALED => "DATA_FORMAT_R8G8B8A8_USCALED", Self::R8G8B8A8_SSCALED => "DATA_FORMAT_R8G8B8A8_SSCALED", Self::R8G8B8A8_UINT => "DATA_FORMAT_R8G8B8A8_UINT", Self::R8G8B8A8_SINT => "DATA_FORMAT_R8G8B8A8_SINT", Self::R8G8B8A8_SRGB => "DATA_FORMAT_R8G8B8A8_SRGB", Self::B8G8R8A8_UNORM => "DATA_FORMAT_B8G8R8A8_UNORM", Self::B8G8R8A8_SNORM => "DATA_FORMAT_B8G8R8A8_SNORM", Self::B8G8R8A8_USCALED => "DATA_FORMAT_B8G8R8A8_USCALED", Self::B8G8R8A8_SSCALED => "DATA_FORMAT_B8G8R8A8_SSCALED", Self::B8G8R8A8_UINT => "DATA_FORMAT_B8G8R8A8_UINT", Self::B8G8R8A8_SINT => "DATA_FORMAT_B8G8R8A8_SINT", Self::B8G8R8A8_SRGB => "DATA_FORMAT_B8G8R8A8_SRGB", Self::A8B8G8R8_UNORM_PACK32 => "DATA_FORMAT_A8B8G8R8_UNORM_PACK32", Self::A8B8G8R8_SNORM_PACK32 => "DATA_FORMAT_A8B8G8R8_SNORM_PACK32", Self::A8B8G8R8_USCALED_PACK32 => "DATA_FORMAT_A8B8G8R8_USCALED_PACK32", Self::A8B8G8R8_SSCALED_PACK32 => "DATA_FORMAT_A8B8G8R8_SSCALED_PACK32", Self::A8B8G8R8_UINT_PACK32 => "DATA_FORMAT_A8B8G8R8_UINT_PACK32", Self::A8B8G8R8_SINT_PACK32 => "DATA_FORMAT_A8B8G8R8_SINT_PACK32", Self::A8B8G8R8_SRGB_PACK32 => "DATA_FORMAT_A8B8G8R8_SRGB_PACK32", Self::A2R10G10B10_UNORM_PACK32 => "DATA_FORMAT_A2R10G10B10_UNORM_PACK32", Self::A2R10G10B10_SNORM_PACK32 => "DATA_FORMAT_A2R10G10B10_SNORM_PACK32", Self::A2R10G10B10_USCALED_PACK32 => "DATA_FORMAT_A2R10G10B10_USCALED_PACK32", Self::A2R10G10B10_SSCALED_PACK32 => "DATA_FORMAT_A2R10G10B10_SSCALED_PACK32", Self::A2R10G10B10_UINT_PACK32 => "DATA_FORMAT_A2R10G10B10_UINT_PACK32", Self::A2R10G10B10_SINT_PACK32 => "DATA_FORMAT_A2R10G10B10_SINT_PACK32", Self::A2B10G10R10_UNORM_PACK32 => "DATA_FORMAT_A2B10G10R10_UNORM_PACK32", Self::A2B10G10R10_SNORM_PACK32 => "DATA_FORMAT_A2B10G10R10_SNORM_PACK32", Self::A2B10G10R10_USCALED_PACK32 => "DATA_FORMAT_A2B10G10R10_USCALED_PACK32", Self::A2B10G10R10_SSCALED_PACK32 => "DATA_FORMAT_A2B10G10R10_SSCALED_PACK32", Self::A2B10G10R10_UINT_PACK32 => "DATA_FORMAT_A2B10G10R10_UINT_PACK32", Self::A2B10G10R10_SINT_PACK32 => "DATA_FORMAT_A2B10G10R10_SINT_PACK32", Self::R16_UNORM => "DATA_FORMAT_R16_UNORM", Self::R16_SNORM => "DATA_FORMAT_R16_SNORM", Self::R16_USCALED => "DATA_FORMAT_R16_USCALED", Self::R16_SSCALED => "DATA_FORMAT_R16_SSCALED", Self::R16_UINT => "DATA_FORMAT_R16_UINT", Self::R16_SINT => "DATA_FORMAT_R16_SINT", Self::R16_SFLOAT => "DATA_FORMAT_R16_SFLOAT", Self::R16G16_UNORM => "DATA_FORMAT_R16G16_UNORM", Self::R16G16_SNORM => "DATA_FORMAT_R16G16_SNORM", Self::R16G16_USCALED => "DATA_FORMAT_R16G16_USCALED", Self::R16G16_SSCALED => "DATA_FORMAT_R16G16_SSCALED", Self::R16G16_UINT => "DATA_FORMAT_R16G16_UINT", Self::R16G16_SINT => "DATA_FORMAT_R16G16_SINT", Self::R16G16_SFLOAT => "DATA_FORMAT_R16G16_SFLOAT", Self::R16G16B16_UNORM => "DATA_FORMAT_R16G16B16_UNORM", Self::R16G16B16_SNORM => "DATA_FORMAT_R16G16B16_SNORM", Self::R16G16B16_USCALED => "DATA_FORMAT_R16G16B16_USCALED", Self::R16G16B16_SSCALED => "DATA_FORMAT_R16G16B16_SSCALED", Self::R16G16B16_UINT => "DATA_FORMAT_R16G16B16_UINT", Self::R16G16B16_SINT => "DATA_FORMAT_R16G16B16_SINT", Self::R16G16B16_SFLOAT => "DATA_FORMAT_R16G16B16_SFLOAT", Self::R16G16B16A16_UNORM => "DATA_FORMAT_R16G16B16A16_UNORM", Self::R16G16B16A16_SNORM => "DATA_FORMAT_R16G16B16A16_SNORM", Self::R16G16B16A16_USCALED => "DATA_FORMAT_R16G16B16A16_USCALED", Self::R16G16B16A16_SSCALED => "DATA_FORMAT_R16G16B16A16_SSCALED", Self::R16G16B16A16_UINT => "DATA_FORMAT_R16G16B16A16_UINT", Self::R16G16B16A16_SINT => "DATA_FORMAT_R16G16B16A16_SINT", Self::R16G16B16A16_SFLOAT => "DATA_FORMAT_R16G16B16A16_SFLOAT", Self::R32_UINT => "DATA_FORMAT_R32_UINT", Self::R32_SINT => "DATA_FORMAT_R32_SINT", Self::R32_SFLOAT => "DATA_FORMAT_R32_SFLOAT", Self::R32G32_UINT => "DATA_FORMAT_R32G32_UINT", Self::R32G32_SINT => "DATA_FORMAT_R32G32_SINT", Self::R32G32_SFLOAT => "DATA_FORMAT_R32G32_SFLOAT", Self::R32G32B32_UINT => "DATA_FORMAT_R32G32B32_UINT", Self::R32G32B32_SINT => "DATA_FORMAT_R32G32B32_SINT", Self::R32G32B32_SFLOAT => "DATA_FORMAT_R32G32B32_SFLOAT", Self::R32G32B32A32_UINT => "DATA_FORMAT_R32G32B32A32_UINT", Self::R32G32B32A32_SINT => "DATA_FORMAT_R32G32B32A32_SINT", Self::R32G32B32A32_SFLOAT => "DATA_FORMAT_R32G32B32A32_SFLOAT", Self::R64_UINT => "DATA_FORMAT_R64_UINT", Self::R64_SINT => "DATA_FORMAT_R64_SINT", Self::R64_SFLOAT => "DATA_FORMAT_R64_SFLOAT", Self::R64G64_UINT => "DATA_FORMAT_R64G64_UINT", Self::R64G64_SINT => "DATA_FORMAT_R64G64_SINT", Self::R64G64_SFLOAT => "DATA_FORMAT_R64G64_SFLOAT", Self::R64G64B64_UINT => "DATA_FORMAT_R64G64B64_UINT", Self::R64G64B64_SINT => "DATA_FORMAT_R64G64B64_SINT", Self::R64G64B64_SFLOAT => "DATA_FORMAT_R64G64B64_SFLOAT", Self::R64G64B64A64_UINT => "DATA_FORMAT_R64G64B64A64_UINT", Self::R64G64B64A64_SINT => "DATA_FORMAT_R64G64B64A64_SINT", Self::R64G64B64A64_SFLOAT => "DATA_FORMAT_R64G64B64A64_SFLOAT", Self::B10G11R11_UFLOAT_PACK32 => "DATA_FORMAT_B10G11R11_UFLOAT_PACK32", Self::E5B9G9R9_UFLOAT_PACK32 => "DATA_FORMAT_E5B9G9R9_UFLOAT_PACK32", Self::D16_UNORM => "DATA_FORMAT_D16_UNORM", Self::X8_D24_UNORM_PACK32 => "DATA_FORMAT_X8_D24_UNORM_PACK32", Self::D32_SFLOAT => "DATA_FORMAT_D32_SFLOAT", Self::S8_UINT => "DATA_FORMAT_S8_UINT", Self::D16_UNORM_S8_UINT => "DATA_FORMAT_D16_UNORM_S8_UINT", Self::D24_UNORM_S8_UINT => "DATA_FORMAT_D24_UNORM_S8_UINT", Self::D32_SFLOAT_S8_UINT => "DATA_FORMAT_D32_SFLOAT_S8_UINT", Self::BC1_RGB_UNORM_BLOCK => "DATA_FORMAT_BC1_RGB_UNORM_BLOCK", Self::BC1_RGB_SRGB_BLOCK => "DATA_FORMAT_BC1_RGB_SRGB_BLOCK", Self::BC1_RGBA_UNORM_BLOCK => "DATA_FORMAT_BC1_RGBA_UNORM_BLOCK", Self::BC1_RGBA_SRGB_BLOCK => "DATA_FORMAT_BC1_RGBA_SRGB_BLOCK", Self::BC2_UNORM_BLOCK => "DATA_FORMAT_BC2_UNORM_BLOCK", Self::BC2_SRGB_BLOCK => "DATA_FORMAT_BC2_SRGB_BLOCK", Self::BC3_UNORM_BLOCK => "DATA_FORMAT_BC3_UNORM_BLOCK", Self::BC3_SRGB_BLOCK => "DATA_FORMAT_BC3_SRGB_BLOCK", Self::BC4_UNORM_BLOCK => "DATA_FORMAT_BC4_UNORM_BLOCK", Self::BC4_SNORM_BLOCK => "DATA_FORMAT_BC4_SNORM_BLOCK", Self::BC5_UNORM_BLOCK => "DATA_FORMAT_BC5_UNORM_BLOCK", Self::BC5_SNORM_BLOCK => "DATA_FORMAT_BC5_SNORM_BLOCK", Self::BC6H_UFLOAT_BLOCK => "DATA_FORMAT_BC6H_UFLOAT_BLOCK", Self::BC6H_SFLOAT_BLOCK => "DATA_FORMAT_BC6H_SFLOAT_BLOCK", Self::BC7_UNORM_BLOCK => "DATA_FORMAT_BC7_UNORM_BLOCK", Self::BC7_SRGB_BLOCK => "DATA_FORMAT_BC7_SRGB_BLOCK", Self::ETC2_R8G8B8_UNORM_BLOCK => "DATA_FORMAT_ETC2_R8G8B8_UNORM_BLOCK", Self::ETC2_R8G8B8_SRGB_BLOCK => "DATA_FORMAT_ETC2_R8G8B8_SRGB_BLOCK", Self::ETC2_R8G8B8A1_UNORM_BLOCK => "DATA_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK", Self::ETC2_R8G8B8A1_SRGB_BLOCK => "DATA_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK", Self::ETC2_R8G8B8A8_UNORM_BLOCK => "DATA_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK", Self::ETC2_R8G8B8A8_SRGB_BLOCK => "DATA_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK", Self::EAC_R11_UNORM_BLOCK => "DATA_FORMAT_EAC_R11_UNORM_BLOCK", Self::EAC_R11_SNORM_BLOCK => "DATA_FORMAT_EAC_R11_SNORM_BLOCK", Self::EAC_R11G11_UNORM_BLOCK => "DATA_FORMAT_EAC_R11G11_UNORM_BLOCK", Self::EAC_R11G11_SNORM_BLOCK => "DATA_FORMAT_EAC_R11G11_SNORM_BLOCK", Self::ASTC_4x4_UNORM_BLOCK => "DATA_FORMAT_ASTC_4x4_UNORM_BLOCK", Self::ASTC_4x4_SRGB_BLOCK => "DATA_FORMAT_ASTC_4x4_SRGB_BLOCK", Self::ASTC_5x4_UNORM_BLOCK => "DATA_FORMAT_ASTC_5x4_UNORM_BLOCK", Self::ASTC_5x4_SRGB_BLOCK => "DATA_FORMAT_ASTC_5x4_SRGB_BLOCK", Self::ASTC_5x5_UNORM_BLOCK => "DATA_FORMAT_ASTC_5x5_UNORM_BLOCK", Self::ASTC_5x5_SRGB_BLOCK => "DATA_FORMAT_ASTC_5x5_SRGB_BLOCK", Self::ASTC_6x5_UNORM_BLOCK => "DATA_FORMAT_ASTC_6x5_UNORM_BLOCK", Self::ASTC_6x5_SRGB_BLOCK => "DATA_FORMAT_ASTC_6x5_SRGB_BLOCK", Self::ASTC_6x6_UNORM_BLOCK => "DATA_FORMAT_ASTC_6x6_UNORM_BLOCK", Self::ASTC_6x6_SRGB_BLOCK => "DATA_FORMAT_ASTC_6x6_SRGB_BLOCK", Self::ASTC_8x5_UNORM_BLOCK => "DATA_FORMAT_ASTC_8x5_UNORM_BLOCK", Self::ASTC_8x5_SRGB_BLOCK => "DATA_FORMAT_ASTC_8x5_SRGB_BLOCK", Self::ASTC_8x6_UNORM_BLOCK => "DATA_FORMAT_ASTC_8x6_UNORM_BLOCK", Self::ASTC_8x6_SRGB_BLOCK => "DATA_FORMAT_ASTC_8x6_SRGB_BLOCK", Self::ASTC_8x8_UNORM_BLOCK => "DATA_FORMAT_ASTC_8x8_UNORM_BLOCK", Self::ASTC_8x8_SRGB_BLOCK => "DATA_FORMAT_ASTC_8x8_SRGB_BLOCK", Self::ASTC_10x5_UNORM_BLOCK => "DATA_FORMAT_ASTC_10x5_UNORM_BLOCK", Self::ASTC_10x5_SRGB_BLOCK => "DATA_FORMAT_ASTC_10x5_SRGB_BLOCK", Self::ASTC_10x6_UNORM_BLOCK => "DATA_FORMAT_ASTC_10x6_UNORM_BLOCK", Self::ASTC_10x6_SRGB_BLOCK => "DATA_FORMAT_ASTC_10x6_SRGB_BLOCK", Self::ASTC_10x8_UNORM_BLOCK => "DATA_FORMAT_ASTC_10x8_UNORM_BLOCK", Self::ASTC_10x8_SRGB_BLOCK => "DATA_FORMAT_ASTC_10x8_SRGB_BLOCK", Self::ASTC_10x10_UNORM_BLOCK => "DATA_FORMAT_ASTC_10x10_UNORM_BLOCK", Self::ASTC_10x10_SRGB_BLOCK => "DATA_FORMAT_ASTC_10x10_SRGB_BLOCK", Self::ASTC_12x10_UNORM_BLOCK => "DATA_FORMAT_ASTC_12x10_UNORM_BLOCK", Self::ASTC_12x10_SRGB_BLOCK => "DATA_FORMAT_ASTC_12x10_SRGB_BLOCK", Self::ASTC_12x12_UNORM_BLOCK => "DATA_FORMAT_ASTC_12x12_UNORM_BLOCK", Self::ASTC_12x12_SRGB_BLOCK => "DATA_FORMAT_ASTC_12x12_SRGB_BLOCK", Self::G8B8G8R8_422_UNORM => "DATA_FORMAT_G8B8G8R8_422_UNORM", Self::B8G8R8G8_422_UNORM => "DATA_FORMAT_B8G8R8G8_422_UNORM", Self::G8_B8_R8_3PLANE_420_UNORM => "DATA_FORMAT_G8_B8_R8_3PLANE_420_UNORM", Self::G8_B8R8_2PLANE_420_UNORM => "DATA_FORMAT_G8_B8R8_2PLANE_420_UNORM", Self::G8_B8_R8_3PLANE_422_UNORM => "DATA_FORMAT_G8_B8_R8_3PLANE_422_UNORM", Self::G8_B8R8_2PLANE_422_UNORM => "DATA_FORMAT_G8_B8R8_2PLANE_422_UNORM", Self::G8_B8_R8_3PLANE_444_UNORM => "DATA_FORMAT_G8_B8_R8_3PLANE_444_UNORM", Self::R10X6_UNORM_PACK16 => "DATA_FORMAT_R10X6_UNORM_PACK16", Self::R10X6G10X6_UNORM_2PACK16 => "DATA_FORMAT_R10X6G10X6_UNORM_2PACK16", Self::R10X6G10X6B10X6A10X6_UNORM_4PACK16 => "DATA_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16", Self::G10X6B10X6G10X6R10X6_422_UNORM_4PACK16 => "DATA_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16", Self::B10X6G10X6R10X6G10X6_422_UNORM_4PACK16 => "DATA_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16", Self::G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16 => "DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16", Self::G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16 => "DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16", Self::G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16 => "DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16", Self::G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16 => "DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16", Self::G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16 => "DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16", Self::R12X4_UNORM_PACK16 => "DATA_FORMAT_R12X4_UNORM_PACK16", Self::R12X4G12X4_UNORM_2PACK16 => "DATA_FORMAT_R12X4G12X4_UNORM_2PACK16", Self::R12X4G12X4B12X4A12X4_UNORM_4PACK16 => "DATA_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16", Self::G12X4B12X4G12X4R12X4_422_UNORM_4PACK16 => "DATA_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16", Self::B12X4G12X4R12X4G12X4_422_UNORM_4PACK16 => "DATA_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16", Self::G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16 => "DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16", Self::G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16 => "DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16", Self::G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16 => "DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16", Self::G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16 => "DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16", Self::G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16 => "DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16", Self::G16B16G16R16_422_UNORM => "DATA_FORMAT_G16B16G16R16_422_UNORM", Self::B16G16R16G16_422_UNORM => "DATA_FORMAT_B16G16R16G16_422_UNORM", Self::G16_B16_R16_3PLANE_420_UNORM => "DATA_FORMAT_G16_B16_R16_3PLANE_420_UNORM", Self::G16_B16R16_2PLANE_420_UNORM => "DATA_FORMAT_G16_B16R16_2PLANE_420_UNORM", Self::G16_B16_R16_3PLANE_422_UNORM => "DATA_FORMAT_G16_B16_R16_3PLANE_422_UNORM", Self::G16_B16R16_2PLANE_422_UNORM => "DATA_FORMAT_G16_B16R16_2PLANE_422_UNORM", Self::G16_B16_R16_3PLANE_444_UNORM => "DATA_FORMAT_G16_B16_R16_3PLANE_444_UNORM", Self::MAX => "DATA_FORMAT_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for DataFormat { + const ENUMERATOR_COUNT: usize = 218usize; + +} +impl crate::meta::GodotConvert for DataFormat { + type Via = i32; + +} +impl crate::meta::ToGodot for DataFormat { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DataFormat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct BarrierMask { + ord: u64 +} +impl BarrierMask { + #[doc(alias = "BARRIER_MASK_VERTEX")] + #[doc = "Godot enumerator name: `BARRIER_MASK_VERTEX`"] + pub const VERTEX: BarrierMask = BarrierMask { + ord: 1u64 + }; + #[doc(alias = "BARRIER_MASK_FRAGMENT")] + #[doc = "Godot enumerator name: `BARRIER_MASK_FRAGMENT`"] + pub const FRAGMENT: BarrierMask = BarrierMask { + ord: 8u64 + }; + #[doc(alias = "BARRIER_MASK_COMPUTE")] + #[doc = "Godot enumerator name: `BARRIER_MASK_COMPUTE`"] + pub const COMPUTE: BarrierMask = BarrierMask { + ord: 2u64 + }; + #[doc(alias = "BARRIER_MASK_TRANSFER")] + #[doc = "Godot enumerator name: `BARRIER_MASK_TRANSFER`"] + pub const TRANSFER: BarrierMask = BarrierMask { + ord: 4u64 + }; + #[doc(alias = "BARRIER_MASK_RASTER")] + #[doc = "Godot enumerator name: `BARRIER_MASK_RASTER`"] + pub const RASTER: BarrierMask = BarrierMask { + ord: 9u64 + }; + #[doc(alias = "BARRIER_MASK_ALL_BARRIERS")] + #[doc = "Godot enumerator name: `BARRIER_MASK_ALL_BARRIERS`"] + pub const ALL_BARRIERS: BarrierMask = BarrierMask { + ord: 32767u64 + }; + #[doc(alias = "BARRIER_MASK_NO_BARRIER")] + #[doc = "Godot enumerator name: `BARRIER_MASK_NO_BARRIER`"] + pub const NO_BARRIER: BarrierMask = BarrierMask { + ord: 32768u64 + }; + +} +impl std::fmt::Debug for BarrierMask { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::VERTEX => "VERTEX", Self::FRAGMENT => "FRAGMENT", Self::COMPUTE => "COMPUTE", Self::TRANSFER => "TRANSFER", Self::RASTER => "RASTER", Self::ALL_BARRIERS => "ALL_BARRIERS", Self::NO_BARRIER => "NO_BARRIER", _ => { + f.debug_struct("BarrierMask") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for BarrierMask { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for BarrierMask { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for BarrierMask { + type Via = u64; + +} +impl crate::meta::ToGodot for BarrierMask { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for BarrierMask { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextureType { + ord: i32 +} +impl TextureType { + #[doc(alias = "TEXTURE_TYPE_1D")] + #[doc = "Godot enumerator name: `TEXTURE_TYPE_1D`"] + pub const TYPE_1D: TextureType = TextureType { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_TYPE_2D")] + #[doc = "Godot enumerator name: `TEXTURE_TYPE_2D`"] + pub const TYPE_2D: TextureType = TextureType { + ord: 1i32 + }; + #[doc(alias = "TEXTURE_TYPE_3D")] + #[doc = "Godot enumerator name: `TEXTURE_TYPE_3D`"] + pub const TYPE_3D: TextureType = TextureType { + ord: 2i32 + }; + #[doc(alias = "TEXTURE_TYPE_CUBE")] + #[doc = "Godot enumerator name: `TEXTURE_TYPE_CUBE`"] + pub const CUBE: TextureType = TextureType { + ord: 3i32 + }; + #[doc(alias = "TEXTURE_TYPE_1D_ARRAY")] + #[doc = "Godot enumerator name: `TEXTURE_TYPE_1D_ARRAY`"] + pub const TYPE_1D_ARRAY: TextureType = TextureType { + ord: 4i32 + }; + #[doc(alias = "TEXTURE_TYPE_2D_ARRAY")] + #[doc = "Godot enumerator name: `TEXTURE_TYPE_2D_ARRAY`"] + pub const TYPE_2D_ARRAY: TextureType = TextureType { + ord: 5i32 + }; + #[doc(alias = "TEXTURE_TYPE_CUBE_ARRAY")] + #[doc = "Godot enumerator name: `TEXTURE_TYPE_CUBE_ARRAY`"] + pub const CUBE_ARRAY: TextureType = TextureType { + ord: 6i32 + }; + #[doc(alias = "TEXTURE_TYPE_MAX")] + #[doc = "Godot enumerator name: `TEXTURE_TYPE_MAX`"] + pub const MAX: TextureType = TextureType { + ord: 7i32 + }; + +} +impl std::fmt::Debug for TextureType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextureType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextureType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TYPE_1D => "TYPE_1D", Self::TYPE_2D => "TYPE_2D", Self::TYPE_3D => "TYPE_3D", Self::CUBE => "CUBE", Self::TYPE_1D_ARRAY => "TYPE_1D_ARRAY", Self::TYPE_2D_ARRAY => "TYPE_2D_ARRAY", Self::CUBE_ARRAY => "CUBE_ARRAY", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TYPE_1D => "TEXTURE_TYPE_1D", Self::TYPE_2D => "TEXTURE_TYPE_2D", Self::TYPE_3D => "TEXTURE_TYPE_3D", Self::CUBE => "TEXTURE_TYPE_CUBE", Self::TYPE_1D_ARRAY => "TEXTURE_TYPE_1D_ARRAY", Self::TYPE_2D_ARRAY => "TEXTURE_TYPE_2D_ARRAY", Self::CUBE_ARRAY => "TEXTURE_TYPE_CUBE_ARRAY", Self::MAX => "TEXTURE_TYPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for TextureType { + const ENUMERATOR_COUNT: usize = 7usize; + +} +impl crate::meta::GodotConvert for TextureType { + type Via = i32; + +} +impl crate::meta::ToGodot for TextureType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextureSamples { + ord: i32 +} +impl TextureSamples { + #[doc(alias = "TEXTURE_SAMPLES_1")] + #[doc = "Godot enumerator name: `TEXTURE_SAMPLES_1`"] + pub const SAMPLES_1: TextureSamples = TextureSamples { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_SAMPLES_2")] + #[doc = "Godot enumerator name: `TEXTURE_SAMPLES_2`"] + pub const SAMPLES_2: TextureSamples = TextureSamples { + ord: 1i32 + }; + #[doc(alias = "TEXTURE_SAMPLES_4")] + #[doc = "Godot enumerator name: `TEXTURE_SAMPLES_4`"] + pub const SAMPLES_4: TextureSamples = TextureSamples { + ord: 2i32 + }; + #[doc(alias = "TEXTURE_SAMPLES_8")] + #[doc = "Godot enumerator name: `TEXTURE_SAMPLES_8`"] + pub const SAMPLES_8: TextureSamples = TextureSamples { + ord: 3i32 + }; + #[doc(alias = "TEXTURE_SAMPLES_16")] + #[doc = "Godot enumerator name: `TEXTURE_SAMPLES_16`"] + pub const SAMPLES_16: TextureSamples = TextureSamples { + ord: 4i32 + }; + #[doc(alias = "TEXTURE_SAMPLES_32")] + #[doc = "Godot enumerator name: `TEXTURE_SAMPLES_32`"] + pub const SAMPLES_32: TextureSamples = TextureSamples { + ord: 5i32 + }; + #[doc(alias = "TEXTURE_SAMPLES_64")] + #[doc = "Godot enumerator name: `TEXTURE_SAMPLES_64`"] + pub const SAMPLES_64: TextureSamples = TextureSamples { + ord: 6i32 + }; + #[doc(alias = "TEXTURE_SAMPLES_MAX")] + #[doc = "Godot enumerator name: `TEXTURE_SAMPLES_MAX`"] + pub const MAX: TextureSamples = TextureSamples { + ord: 7i32 + }; + +} +impl std::fmt::Debug for TextureSamples { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextureSamples") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextureSamples { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SAMPLES_1 => "SAMPLES_1", Self::SAMPLES_2 => "SAMPLES_2", Self::SAMPLES_4 => "SAMPLES_4", Self::SAMPLES_8 => "SAMPLES_8", Self::SAMPLES_16 => "SAMPLES_16", Self::SAMPLES_32 => "SAMPLES_32", Self::SAMPLES_64 => "SAMPLES_64", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SAMPLES_1 => "TEXTURE_SAMPLES_1", Self::SAMPLES_2 => "TEXTURE_SAMPLES_2", Self::SAMPLES_4 => "TEXTURE_SAMPLES_4", Self::SAMPLES_8 => "TEXTURE_SAMPLES_8", Self::SAMPLES_16 => "TEXTURE_SAMPLES_16", Self::SAMPLES_32 => "TEXTURE_SAMPLES_32", Self::SAMPLES_64 => "TEXTURE_SAMPLES_64", Self::MAX => "TEXTURE_SAMPLES_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for TextureSamples { + const ENUMERATOR_COUNT: usize = 7usize; + +} +impl crate::meta::GodotConvert for TextureSamples { + type Via = i32; + +} +impl crate::meta::ToGodot for TextureSamples { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureSamples { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct TextureUsageBits { + ord: u64 +} +impl TextureUsageBits { + #[doc(alias = "TEXTURE_USAGE_SAMPLING_BIT")] + #[doc = "Godot enumerator name: `TEXTURE_USAGE_SAMPLING_BIT`"] + pub const SAMPLING_BIT: TextureUsageBits = TextureUsageBits { + ord: 1u64 + }; + #[doc(alias = "TEXTURE_USAGE_COLOR_ATTACHMENT_BIT")] + #[doc = "Godot enumerator name: `TEXTURE_USAGE_COLOR_ATTACHMENT_BIT`"] + pub const COLOR_ATTACHMENT_BIT: TextureUsageBits = TextureUsageBits { + ord: 2u64 + }; + #[doc(alias = "TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT")] + #[doc = "Godot enumerator name: `TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT`"] + pub const DEPTH_STENCIL_ATTACHMENT_BIT: TextureUsageBits = TextureUsageBits { + ord: 4u64 + }; + #[doc(alias = "TEXTURE_USAGE_STORAGE_BIT")] + #[doc = "Godot enumerator name: `TEXTURE_USAGE_STORAGE_BIT`"] + pub const STORAGE_BIT: TextureUsageBits = TextureUsageBits { + ord: 8u64 + }; + #[doc(alias = "TEXTURE_USAGE_STORAGE_ATOMIC_BIT")] + #[doc = "Godot enumerator name: `TEXTURE_USAGE_STORAGE_ATOMIC_BIT`"] + pub const STORAGE_ATOMIC_BIT: TextureUsageBits = TextureUsageBits { + ord: 16u64 + }; + #[doc(alias = "TEXTURE_USAGE_CPU_READ_BIT")] + #[doc = "Godot enumerator name: `TEXTURE_USAGE_CPU_READ_BIT`"] + pub const CPU_READ_BIT: TextureUsageBits = TextureUsageBits { + ord: 32u64 + }; + #[doc(alias = "TEXTURE_USAGE_CAN_UPDATE_BIT")] + #[doc = "Godot enumerator name: `TEXTURE_USAGE_CAN_UPDATE_BIT`"] + pub const CAN_UPDATE_BIT: TextureUsageBits = TextureUsageBits { + ord: 64u64 + }; + #[doc(alias = "TEXTURE_USAGE_CAN_COPY_FROM_BIT")] + #[doc = "Godot enumerator name: `TEXTURE_USAGE_CAN_COPY_FROM_BIT`"] + pub const CAN_COPY_FROM_BIT: TextureUsageBits = TextureUsageBits { + ord: 128u64 + }; + #[doc(alias = "TEXTURE_USAGE_CAN_COPY_TO_BIT")] + #[doc = "Godot enumerator name: `TEXTURE_USAGE_CAN_COPY_TO_BIT`"] + pub const CAN_COPY_TO_BIT: TextureUsageBits = TextureUsageBits { + ord: 256u64 + }; + #[doc(alias = "TEXTURE_USAGE_INPUT_ATTACHMENT_BIT")] + #[doc = "Godot enumerator name: `TEXTURE_USAGE_INPUT_ATTACHMENT_BIT`"] + pub const INPUT_ATTACHMENT_BIT: TextureUsageBits = TextureUsageBits { + ord: 512u64 + }; + +} +impl std::fmt::Debug for TextureUsageBits { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::SAMPLING_BIT => "SAMPLING_BIT", Self::COLOR_ATTACHMENT_BIT => "COLOR_ATTACHMENT_BIT", Self::DEPTH_STENCIL_ATTACHMENT_BIT => "DEPTH_STENCIL_ATTACHMENT_BIT", Self::STORAGE_BIT => "STORAGE_BIT", Self::STORAGE_ATOMIC_BIT => "STORAGE_ATOMIC_BIT", Self::CPU_READ_BIT => "CPU_READ_BIT", Self::CAN_UPDATE_BIT => "CAN_UPDATE_BIT", Self::CAN_COPY_FROM_BIT => "CAN_COPY_FROM_BIT", Self::CAN_COPY_TO_BIT => "CAN_COPY_TO_BIT", Self::INPUT_ATTACHMENT_BIT => "INPUT_ATTACHMENT_BIT", _ => { + f.debug_struct("TextureUsageBits") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for TextureUsageBits { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for TextureUsageBits { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for TextureUsageBits { + type Via = u64; + +} +impl crate::meta::ToGodot for TextureUsageBits { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureUsageBits { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextureSwizzle { + ord: i32 +} +impl TextureSwizzle { + #[doc(alias = "TEXTURE_SWIZZLE_IDENTITY")] + #[doc = "Godot enumerator name: `TEXTURE_SWIZZLE_IDENTITY`"] + pub const IDENTITY: TextureSwizzle = TextureSwizzle { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_SWIZZLE_ZERO")] + #[doc = "Godot enumerator name: `TEXTURE_SWIZZLE_ZERO`"] + pub const ZERO: TextureSwizzle = TextureSwizzle { + ord: 1i32 + }; + #[doc(alias = "TEXTURE_SWIZZLE_ONE")] + #[doc = "Godot enumerator name: `TEXTURE_SWIZZLE_ONE`"] + pub const ONE: TextureSwizzle = TextureSwizzle { + ord: 2i32 + }; + #[doc(alias = "TEXTURE_SWIZZLE_R")] + #[doc = "Godot enumerator name: `TEXTURE_SWIZZLE_R`"] + pub const R: TextureSwizzle = TextureSwizzle { + ord: 3i32 + }; + #[doc(alias = "TEXTURE_SWIZZLE_G")] + #[doc = "Godot enumerator name: `TEXTURE_SWIZZLE_G`"] + pub const G: TextureSwizzle = TextureSwizzle { + ord: 4i32 + }; + #[doc(alias = "TEXTURE_SWIZZLE_B")] + #[doc = "Godot enumerator name: `TEXTURE_SWIZZLE_B`"] + pub const B: TextureSwizzle = TextureSwizzle { + ord: 5i32 + }; + #[doc(alias = "TEXTURE_SWIZZLE_A")] + #[doc = "Godot enumerator name: `TEXTURE_SWIZZLE_A`"] + pub const A: TextureSwizzle = TextureSwizzle { + ord: 6i32 + }; + #[doc(alias = "TEXTURE_SWIZZLE_MAX")] + #[doc = "Godot enumerator name: `TEXTURE_SWIZZLE_MAX`"] + pub const MAX: TextureSwizzle = TextureSwizzle { + ord: 7i32 + }; + +} +impl std::fmt::Debug for TextureSwizzle { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextureSwizzle") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextureSwizzle { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IDENTITY => "IDENTITY", Self::ZERO => "ZERO", Self::ONE => "ONE", Self::R => "R", Self::G => "G", Self::B => "B", Self::A => "A", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IDENTITY => "TEXTURE_SWIZZLE_IDENTITY", Self::ZERO => "TEXTURE_SWIZZLE_ZERO", Self::ONE => "TEXTURE_SWIZZLE_ONE", Self::R => "TEXTURE_SWIZZLE_R", Self::G => "TEXTURE_SWIZZLE_G", Self::B => "TEXTURE_SWIZZLE_B", Self::A => "TEXTURE_SWIZZLE_A", Self::MAX => "TEXTURE_SWIZZLE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for TextureSwizzle { + const ENUMERATOR_COUNT: usize = 7usize; + +} +impl crate::meta::GodotConvert for TextureSwizzle { + type Via = i32; + +} +impl crate::meta::ToGodot for TextureSwizzle { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureSwizzle { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextureSliceType { + ord: i32 +} +impl TextureSliceType { + #[doc(alias = "TEXTURE_SLICE_2D")] + #[doc = "Godot enumerator name: `TEXTURE_SLICE_2D`"] + pub const SLICE_2D: TextureSliceType = TextureSliceType { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_SLICE_CUBEMAP")] + #[doc = "Godot enumerator name: `TEXTURE_SLICE_CUBEMAP`"] + pub const CUBEMAP: TextureSliceType = TextureSliceType { + ord: 1i32 + }; + #[doc(alias = "TEXTURE_SLICE_3D")] + #[doc = "Godot enumerator name: `TEXTURE_SLICE_3D`"] + pub const SLICE_3D: TextureSliceType = TextureSliceType { + ord: 2i32 + }; + +} +impl std::fmt::Debug for TextureSliceType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextureSliceType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextureSliceType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SLICE_2D => "SLICE_2D", Self::CUBEMAP => "CUBEMAP", Self::SLICE_3D => "SLICE_3D", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SLICE_2D => "TEXTURE_SLICE_2D", Self::CUBEMAP => "TEXTURE_SLICE_CUBEMAP", Self::SLICE_3D => "TEXTURE_SLICE_3D", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TextureSliceType { + type Via = i32; + +} +impl crate::meta::ToGodot for TextureSliceType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureSliceType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SamplerFilter { + ord: i32 +} +impl SamplerFilter { + #[doc(alias = "SAMPLER_FILTER_NEAREST")] + #[doc = "Godot enumerator name: `SAMPLER_FILTER_NEAREST`"] + pub const NEAREST: SamplerFilter = SamplerFilter { + ord: 0i32 + }; + #[doc(alias = "SAMPLER_FILTER_LINEAR")] + #[doc = "Godot enumerator name: `SAMPLER_FILTER_LINEAR`"] + pub const LINEAR: SamplerFilter = SamplerFilter { + ord: 1i32 + }; + +} +impl std::fmt::Debug for SamplerFilter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SamplerFilter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SamplerFilter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "NEAREST", Self::LINEAR => "LINEAR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "SAMPLER_FILTER_NEAREST", Self::LINEAR => "SAMPLER_FILTER_LINEAR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SamplerFilter { + type Via = i32; + +} +impl crate::meta::ToGodot for SamplerFilter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SamplerFilter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SamplerRepeatMode { + ord: i32 +} +impl SamplerRepeatMode { + #[doc(alias = "SAMPLER_REPEAT_MODE_REPEAT")] + #[doc = "Godot enumerator name: `SAMPLER_REPEAT_MODE_REPEAT`"] + pub const REPEAT: SamplerRepeatMode = SamplerRepeatMode { + ord: 0i32 + }; + #[doc(alias = "SAMPLER_REPEAT_MODE_MIRRORED_REPEAT")] + #[doc = "Godot enumerator name: `SAMPLER_REPEAT_MODE_MIRRORED_REPEAT`"] + pub const MIRRORED_REPEAT: SamplerRepeatMode = SamplerRepeatMode { + ord: 1i32 + }; + #[doc(alias = "SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE")] + #[doc = "Godot enumerator name: `SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE`"] + pub const CLAMP_TO_EDGE: SamplerRepeatMode = SamplerRepeatMode { + ord: 2i32 + }; + #[doc(alias = "SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER")] + #[doc = "Godot enumerator name: `SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER`"] + pub const CLAMP_TO_BORDER: SamplerRepeatMode = SamplerRepeatMode { + ord: 3i32 + }; + #[doc(alias = "SAMPLER_REPEAT_MODE_MIRROR_CLAMP_TO_EDGE")] + #[doc = "Godot enumerator name: `SAMPLER_REPEAT_MODE_MIRROR_CLAMP_TO_EDGE`"] + pub const MIRROR_CLAMP_TO_EDGE: SamplerRepeatMode = SamplerRepeatMode { + ord: 4i32 + }; + #[doc(alias = "SAMPLER_REPEAT_MODE_MAX")] + #[doc = "Godot enumerator name: `SAMPLER_REPEAT_MODE_MAX`"] + pub const MAX: SamplerRepeatMode = SamplerRepeatMode { + ord: 5i32 + }; + +} +impl std::fmt::Debug for SamplerRepeatMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SamplerRepeatMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SamplerRepeatMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::REPEAT => "REPEAT", Self::MIRRORED_REPEAT => "MIRRORED_REPEAT", Self::CLAMP_TO_EDGE => "CLAMP_TO_EDGE", Self::CLAMP_TO_BORDER => "CLAMP_TO_BORDER", Self::MIRROR_CLAMP_TO_EDGE => "MIRROR_CLAMP_TO_EDGE", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::REPEAT => "SAMPLER_REPEAT_MODE_REPEAT", Self::MIRRORED_REPEAT => "SAMPLER_REPEAT_MODE_MIRRORED_REPEAT", Self::CLAMP_TO_EDGE => "SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE", Self::CLAMP_TO_BORDER => "SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER", Self::MIRROR_CLAMP_TO_EDGE => "SAMPLER_REPEAT_MODE_MIRROR_CLAMP_TO_EDGE", Self::MAX => "SAMPLER_REPEAT_MODE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for SamplerRepeatMode { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for SamplerRepeatMode { + type Via = i32; + +} +impl crate::meta::ToGodot for SamplerRepeatMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SamplerRepeatMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SamplerBorderColor { + ord: i32 +} +impl SamplerBorderColor { + #[doc(alias = "SAMPLER_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK")] + #[doc = "Godot enumerator name: `SAMPLER_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK`"] + pub const FLOAT_TRANSPARENT_BLACK: SamplerBorderColor = SamplerBorderColor { + ord: 0i32 + }; + #[doc(alias = "SAMPLER_BORDER_COLOR_INT_TRANSPARENT_BLACK")] + #[doc = "Godot enumerator name: `SAMPLER_BORDER_COLOR_INT_TRANSPARENT_BLACK`"] + pub const INT_TRANSPARENT_BLACK: SamplerBorderColor = SamplerBorderColor { + ord: 1i32 + }; + #[doc(alias = "SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_BLACK")] + #[doc = "Godot enumerator name: `SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_BLACK`"] + pub const FLOAT_OPAQUE_BLACK: SamplerBorderColor = SamplerBorderColor { + ord: 2i32 + }; + #[doc(alias = "SAMPLER_BORDER_COLOR_INT_OPAQUE_BLACK")] + #[doc = "Godot enumerator name: `SAMPLER_BORDER_COLOR_INT_OPAQUE_BLACK`"] + pub const INT_OPAQUE_BLACK: SamplerBorderColor = SamplerBorderColor { + ord: 3i32 + }; + #[doc(alias = "SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_WHITE")] + #[doc = "Godot enumerator name: `SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_WHITE`"] + pub const FLOAT_OPAQUE_WHITE: SamplerBorderColor = SamplerBorderColor { + ord: 4i32 + }; + #[doc(alias = "SAMPLER_BORDER_COLOR_INT_OPAQUE_WHITE")] + #[doc = "Godot enumerator name: `SAMPLER_BORDER_COLOR_INT_OPAQUE_WHITE`"] + pub const INT_OPAQUE_WHITE: SamplerBorderColor = SamplerBorderColor { + ord: 5i32 + }; + #[doc(alias = "SAMPLER_BORDER_COLOR_MAX")] + #[doc = "Godot enumerator name: `SAMPLER_BORDER_COLOR_MAX`"] + pub const MAX: SamplerBorderColor = SamplerBorderColor { + ord: 6i32 + }; + +} +impl std::fmt::Debug for SamplerBorderColor { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SamplerBorderColor") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SamplerBorderColor { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FLOAT_TRANSPARENT_BLACK => "FLOAT_TRANSPARENT_BLACK", Self::INT_TRANSPARENT_BLACK => "INT_TRANSPARENT_BLACK", Self::FLOAT_OPAQUE_BLACK => "FLOAT_OPAQUE_BLACK", Self::INT_OPAQUE_BLACK => "INT_OPAQUE_BLACK", Self::FLOAT_OPAQUE_WHITE => "FLOAT_OPAQUE_WHITE", Self::INT_OPAQUE_WHITE => "INT_OPAQUE_WHITE", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FLOAT_TRANSPARENT_BLACK => "SAMPLER_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK", Self::INT_TRANSPARENT_BLACK => "SAMPLER_BORDER_COLOR_INT_TRANSPARENT_BLACK", Self::FLOAT_OPAQUE_BLACK => "SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_BLACK", Self::INT_OPAQUE_BLACK => "SAMPLER_BORDER_COLOR_INT_OPAQUE_BLACK", Self::FLOAT_OPAQUE_WHITE => "SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_WHITE", Self::INT_OPAQUE_WHITE => "SAMPLER_BORDER_COLOR_INT_OPAQUE_WHITE", Self::MAX => "SAMPLER_BORDER_COLOR_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for SamplerBorderColor { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for SamplerBorderColor { + type Via = i32; + +} +impl crate::meta::ToGodot for SamplerBorderColor { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SamplerBorderColor { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct VertexFrequency { + ord: i32 +} +impl VertexFrequency { + #[doc(alias = "VERTEX_FREQUENCY_VERTEX")] + #[doc = "Godot enumerator name: `VERTEX_FREQUENCY_VERTEX`"] + pub const VERTEX: VertexFrequency = VertexFrequency { + ord: 0i32 + }; + #[doc(alias = "VERTEX_FREQUENCY_INSTANCE")] + #[doc = "Godot enumerator name: `VERTEX_FREQUENCY_INSTANCE`"] + pub const INSTANCE: VertexFrequency = VertexFrequency { + ord: 1i32 + }; + +} +impl std::fmt::Debug for VertexFrequency { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("VertexFrequency") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for VertexFrequency { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERTEX => "VERTEX", Self::INSTANCE => "INSTANCE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERTEX => "VERTEX_FREQUENCY_VERTEX", Self::INSTANCE => "VERTEX_FREQUENCY_INSTANCE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for VertexFrequency { + type Via = i32; + +} +impl crate::meta::ToGodot for VertexFrequency { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for VertexFrequency { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct IndexBufferFormat { + ord: i32 +} +impl IndexBufferFormat { + #[doc(alias = "INDEX_BUFFER_FORMAT_UINT16")] + #[doc = "Godot enumerator name: `INDEX_BUFFER_FORMAT_UINT16`"] + pub const UINT16: IndexBufferFormat = IndexBufferFormat { + ord: 0i32 + }; + #[doc(alias = "INDEX_BUFFER_FORMAT_UINT32")] + #[doc = "Godot enumerator name: `INDEX_BUFFER_FORMAT_UINT32`"] + pub const UINT32: IndexBufferFormat = IndexBufferFormat { + ord: 1i32 + }; + +} +impl std::fmt::Debug for IndexBufferFormat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("IndexBufferFormat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for IndexBufferFormat { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UINT16 => "UINT16", Self::UINT32 => "UINT32", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::UINT16 => "INDEX_BUFFER_FORMAT_UINT16", Self::UINT32 => "INDEX_BUFFER_FORMAT_UINT32", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for IndexBufferFormat { + type Via = i32; + +} +impl crate::meta::ToGodot for IndexBufferFormat { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for IndexBufferFormat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct StorageBufferUsage { + ord: u64 +} +impl StorageBufferUsage { + #[doc(alias = "STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT")] + #[doc = "Godot enumerator name: `STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT`"] + pub const DISPATCH_INDIRECT: StorageBufferUsage = StorageBufferUsage { + ord: 1u64 + }; + +} +impl std::fmt::Debug for StorageBufferUsage { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::DISPATCH_INDIRECT => "DISPATCH_INDIRECT", _ => { + f.debug_struct("StorageBufferUsage") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for StorageBufferUsage { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for StorageBufferUsage { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for StorageBufferUsage { + type Via = u64; + +} +impl crate::meta::ToGodot for StorageBufferUsage { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for StorageBufferUsage { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct UniformType { + ord: i32 +} +impl UniformType { + #[doc(alias = "UNIFORM_TYPE_SAMPLER")] + #[doc = "Godot enumerator name: `UNIFORM_TYPE_SAMPLER`"] + pub const SAMPLER: UniformType = UniformType { + ord: 0i32 + }; + #[doc(alias = "UNIFORM_TYPE_SAMPLER_WITH_TEXTURE")] + #[doc = "Godot enumerator name: `UNIFORM_TYPE_SAMPLER_WITH_TEXTURE`"] + pub const SAMPLER_WITH_TEXTURE: UniformType = UniformType { + ord: 1i32 + }; + #[doc(alias = "UNIFORM_TYPE_TEXTURE")] + #[doc = "Godot enumerator name: `UNIFORM_TYPE_TEXTURE`"] + pub const TEXTURE: UniformType = UniformType { + ord: 2i32 + }; + #[doc(alias = "UNIFORM_TYPE_IMAGE")] + #[doc = "Godot enumerator name: `UNIFORM_TYPE_IMAGE`"] + pub const IMAGE: UniformType = UniformType { + ord: 3i32 + }; + #[doc(alias = "UNIFORM_TYPE_TEXTURE_BUFFER")] + #[doc = "Godot enumerator name: `UNIFORM_TYPE_TEXTURE_BUFFER`"] + pub const TEXTURE_BUFFER: UniformType = UniformType { + ord: 4i32 + }; + #[doc(alias = "UNIFORM_TYPE_SAMPLER_WITH_TEXTURE_BUFFER")] + #[doc = "Godot enumerator name: `UNIFORM_TYPE_SAMPLER_WITH_TEXTURE_BUFFER`"] + pub const SAMPLER_WITH_TEXTURE_BUFFER: UniformType = UniformType { + ord: 5i32 + }; + #[doc(alias = "UNIFORM_TYPE_IMAGE_BUFFER")] + #[doc = "Godot enumerator name: `UNIFORM_TYPE_IMAGE_BUFFER`"] + pub const IMAGE_BUFFER: UniformType = UniformType { + ord: 6i32 + }; + #[doc(alias = "UNIFORM_TYPE_UNIFORM_BUFFER")] + #[doc = "Godot enumerator name: `UNIFORM_TYPE_UNIFORM_BUFFER`"] + pub const UNIFORM_BUFFER: UniformType = UniformType { + ord: 7i32 + }; + #[doc(alias = "UNIFORM_TYPE_STORAGE_BUFFER")] + #[doc = "Godot enumerator name: `UNIFORM_TYPE_STORAGE_BUFFER`"] + pub const STORAGE_BUFFER: UniformType = UniformType { + ord: 8i32 + }; + #[doc(alias = "UNIFORM_TYPE_INPUT_ATTACHMENT")] + #[doc = "Godot enumerator name: `UNIFORM_TYPE_INPUT_ATTACHMENT`"] + pub const INPUT_ATTACHMENT: UniformType = UniformType { + ord: 9i32 + }; + #[doc(alias = "UNIFORM_TYPE_MAX")] + #[doc = "Godot enumerator name: `UNIFORM_TYPE_MAX`"] + pub const MAX: UniformType = UniformType { + ord: 10i32 + }; + +} +impl std::fmt::Debug for UniformType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("UniformType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for UniformType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SAMPLER => "SAMPLER", Self::SAMPLER_WITH_TEXTURE => "SAMPLER_WITH_TEXTURE", Self::TEXTURE => "TEXTURE", Self::IMAGE => "IMAGE", Self::TEXTURE_BUFFER => "TEXTURE_BUFFER", Self::SAMPLER_WITH_TEXTURE_BUFFER => "SAMPLER_WITH_TEXTURE_BUFFER", Self::IMAGE_BUFFER => "IMAGE_BUFFER", Self::UNIFORM_BUFFER => "UNIFORM_BUFFER", Self::STORAGE_BUFFER => "STORAGE_BUFFER", Self::INPUT_ATTACHMENT => "INPUT_ATTACHMENT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SAMPLER => "UNIFORM_TYPE_SAMPLER", Self::SAMPLER_WITH_TEXTURE => "UNIFORM_TYPE_SAMPLER_WITH_TEXTURE", Self::TEXTURE => "UNIFORM_TYPE_TEXTURE", Self::IMAGE => "UNIFORM_TYPE_IMAGE", Self::TEXTURE_BUFFER => "UNIFORM_TYPE_TEXTURE_BUFFER", Self::SAMPLER_WITH_TEXTURE_BUFFER => "UNIFORM_TYPE_SAMPLER_WITH_TEXTURE_BUFFER", Self::IMAGE_BUFFER => "UNIFORM_TYPE_IMAGE_BUFFER", Self::UNIFORM_BUFFER => "UNIFORM_TYPE_UNIFORM_BUFFER", Self::STORAGE_BUFFER => "UNIFORM_TYPE_STORAGE_BUFFER", Self::INPUT_ATTACHMENT => "UNIFORM_TYPE_INPUT_ATTACHMENT", Self::MAX => "UNIFORM_TYPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for UniformType { + const ENUMERATOR_COUNT: usize = 10usize; + +} +impl crate::meta::GodotConvert for UniformType { + type Via = i32; + +} +impl crate::meta::ToGodot for UniformType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for UniformType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct RenderPrimitive { + ord: i32 +} +impl RenderPrimitive { + #[doc(alias = "RENDER_PRIMITIVE_POINTS")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_POINTS`"] + pub const POINTS: RenderPrimitive = RenderPrimitive { + ord: 0i32 + }; + #[doc(alias = "RENDER_PRIMITIVE_LINES")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_LINES`"] + pub const LINES: RenderPrimitive = RenderPrimitive { + ord: 1i32 + }; + #[doc(alias = "RENDER_PRIMITIVE_LINES_WITH_ADJACENCY")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_LINES_WITH_ADJACENCY`"] + pub const LINES_WITH_ADJACENCY: RenderPrimitive = RenderPrimitive { + ord: 2i32 + }; + #[doc(alias = "RENDER_PRIMITIVE_LINESTRIPS")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_LINESTRIPS`"] + pub const LINESTRIPS: RenderPrimitive = RenderPrimitive { + ord: 3i32 + }; + #[doc(alias = "RENDER_PRIMITIVE_LINESTRIPS_WITH_ADJACENCY")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_LINESTRIPS_WITH_ADJACENCY`"] + pub const LINESTRIPS_WITH_ADJACENCY: RenderPrimitive = RenderPrimitive { + ord: 4i32 + }; + #[doc(alias = "RENDER_PRIMITIVE_TRIANGLES")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_TRIANGLES`"] + pub const TRIANGLES: RenderPrimitive = RenderPrimitive { + ord: 5i32 + }; + #[doc(alias = "RENDER_PRIMITIVE_TRIANGLES_WITH_ADJACENCY")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_TRIANGLES_WITH_ADJACENCY`"] + pub const TRIANGLES_WITH_ADJACENCY: RenderPrimitive = RenderPrimitive { + ord: 6i32 + }; + #[doc(alias = "RENDER_PRIMITIVE_TRIANGLE_STRIPS")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_TRIANGLE_STRIPS`"] + pub const TRIANGLE_STRIPS: RenderPrimitive = RenderPrimitive { + ord: 7i32 + }; + #[doc(alias = "RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_AJACENCY")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_AJACENCY`"] + pub const TRIANGLE_STRIPS_WITH_AJACENCY: RenderPrimitive = RenderPrimitive { + ord: 8i32 + }; + #[doc(alias = "RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_RESTART_INDEX")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_RESTART_INDEX`"] + pub const TRIANGLE_STRIPS_WITH_RESTART_INDEX: RenderPrimitive = RenderPrimitive { + ord: 9i32 + }; + #[doc(alias = "RENDER_PRIMITIVE_TESSELATION_PATCH")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_TESSELATION_PATCH`"] + pub const TESSELATION_PATCH: RenderPrimitive = RenderPrimitive { + ord: 10i32 + }; + #[doc(alias = "RENDER_PRIMITIVE_MAX")] + #[doc = "Godot enumerator name: `RENDER_PRIMITIVE_MAX`"] + pub const MAX: RenderPrimitive = RenderPrimitive { + ord: 11i32 + }; + +} +impl std::fmt::Debug for RenderPrimitive { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("RenderPrimitive") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for RenderPrimitive { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINTS => "POINTS", Self::LINES => "LINES", Self::LINES_WITH_ADJACENCY => "LINES_WITH_ADJACENCY", Self::LINESTRIPS => "LINESTRIPS", Self::LINESTRIPS_WITH_ADJACENCY => "LINESTRIPS_WITH_ADJACENCY", Self::TRIANGLES => "TRIANGLES", Self::TRIANGLES_WITH_ADJACENCY => "TRIANGLES_WITH_ADJACENCY", Self::TRIANGLE_STRIPS => "TRIANGLE_STRIPS", Self::TRIANGLE_STRIPS_WITH_AJACENCY => "TRIANGLE_STRIPS_WITH_AJACENCY", Self::TRIANGLE_STRIPS_WITH_RESTART_INDEX => "TRIANGLE_STRIPS_WITH_RESTART_INDEX", Self::TESSELATION_PATCH => "TESSELATION_PATCH", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINTS => "RENDER_PRIMITIVE_POINTS", Self::LINES => "RENDER_PRIMITIVE_LINES", Self::LINES_WITH_ADJACENCY => "RENDER_PRIMITIVE_LINES_WITH_ADJACENCY", Self::LINESTRIPS => "RENDER_PRIMITIVE_LINESTRIPS", Self::LINESTRIPS_WITH_ADJACENCY => "RENDER_PRIMITIVE_LINESTRIPS_WITH_ADJACENCY", Self::TRIANGLES => "RENDER_PRIMITIVE_TRIANGLES", Self::TRIANGLES_WITH_ADJACENCY => "RENDER_PRIMITIVE_TRIANGLES_WITH_ADJACENCY", Self::TRIANGLE_STRIPS => "RENDER_PRIMITIVE_TRIANGLE_STRIPS", Self::TRIANGLE_STRIPS_WITH_AJACENCY => "RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_AJACENCY", Self::TRIANGLE_STRIPS_WITH_RESTART_INDEX => "RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_RESTART_INDEX", Self::TESSELATION_PATCH => "RENDER_PRIMITIVE_TESSELATION_PATCH", Self::MAX => "RENDER_PRIMITIVE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for RenderPrimitive { + const ENUMERATOR_COUNT: usize = 11usize; + +} +impl crate::meta::GodotConvert for RenderPrimitive { + type Via = i32; + +} +impl crate::meta::ToGodot for RenderPrimitive { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for RenderPrimitive { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PolygonCullMode { + ord: i32 +} +impl PolygonCullMode { + #[doc(alias = "POLYGON_CULL_DISABLED")] + #[doc = "Godot enumerator name: `POLYGON_CULL_DISABLED`"] + pub const DISABLED: PolygonCullMode = PolygonCullMode { + ord: 0i32 + }; + #[doc(alias = "POLYGON_CULL_FRONT")] + #[doc = "Godot enumerator name: `POLYGON_CULL_FRONT`"] + pub const FRONT: PolygonCullMode = PolygonCullMode { + ord: 1i32 + }; + #[doc(alias = "POLYGON_CULL_BACK")] + #[doc = "Godot enumerator name: `POLYGON_CULL_BACK`"] + pub const BACK: PolygonCullMode = PolygonCullMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for PolygonCullMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PolygonCullMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PolygonCullMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::FRONT => "FRONT", Self::BACK => "BACK", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "POLYGON_CULL_DISABLED", Self::FRONT => "POLYGON_CULL_FRONT", Self::BACK => "POLYGON_CULL_BACK", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PolygonCullMode { + type Via = i32; + +} +impl crate::meta::ToGodot for PolygonCullMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PolygonCullMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PolygonFrontFace { + ord: i32 +} +impl PolygonFrontFace { + #[doc(alias = "POLYGON_FRONT_FACE_CLOCKWISE")] + #[doc = "Godot enumerator name: `POLYGON_FRONT_FACE_CLOCKWISE`"] + pub const CLOCKWISE: PolygonFrontFace = PolygonFrontFace { + ord: 0i32 + }; + #[doc(alias = "POLYGON_FRONT_FACE_COUNTER_CLOCKWISE")] + #[doc = "Godot enumerator name: `POLYGON_FRONT_FACE_COUNTER_CLOCKWISE`"] + pub const COUNTER_CLOCKWISE: PolygonFrontFace = PolygonFrontFace { + ord: 1i32 + }; + +} +impl std::fmt::Debug for PolygonFrontFace { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PolygonFrontFace") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PolygonFrontFace { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLOCKWISE => "CLOCKWISE", Self::COUNTER_CLOCKWISE => "COUNTER_CLOCKWISE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLOCKWISE => "POLYGON_FRONT_FACE_CLOCKWISE", Self::COUNTER_CLOCKWISE => "POLYGON_FRONT_FACE_COUNTER_CLOCKWISE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PolygonFrontFace { + type Via = i32; + +} +impl crate::meta::ToGodot for PolygonFrontFace { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PolygonFrontFace { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct StencilOperation { + ord: i32 +} +impl StencilOperation { + #[doc(alias = "STENCIL_OP_KEEP")] + #[doc = "Godot enumerator name: `STENCIL_OP_KEEP`"] + pub const KEEP: StencilOperation = StencilOperation { + ord: 0i32 + }; + #[doc(alias = "STENCIL_OP_ZERO")] + #[doc = "Godot enumerator name: `STENCIL_OP_ZERO`"] + pub const ZERO: StencilOperation = StencilOperation { + ord: 1i32 + }; + #[doc(alias = "STENCIL_OP_REPLACE")] + #[doc = "Godot enumerator name: `STENCIL_OP_REPLACE`"] + pub const REPLACE: StencilOperation = StencilOperation { + ord: 2i32 + }; + #[doc(alias = "STENCIL_OP_INCREMENT_AND_CLAMP")] + #[doc = "Godot enumerator name: `STENCIL_OP_INCREMENT_AND_CLAMP`"] + pub const INCREMENT_AND_CLAMP: StencilOperation = StencilOperation { + ord: 3i32 + }; + #[doc(alias = "STENCIL_OP_DECREMENT_AND_CLAMP")] + #[doc = "Godot enumerator name: `STENCIL_OP_DECREMENT_AND_CLAMP`"] + pub const DECREMENT_AND_CLAMP: StencilOperation = StencilOperation { + ord: 4i32 + }; + #[doc(alias = "STENCIL_OP_INVERT")] + #[doc = "Godot enumerator name: `STENCIL_OP_INVERT`"] + pub const INVERT: StencilOperation = StencilOperation { + ord: 5i32 + }; + #[doc(alias = "STENCIL_OP_INCREMENT_AND_WRAP")] + #[doc = "Godot enumerator name: `STENCIL_OP_INCREMENT_AND_WRAP`"] + pub const INCREMENT_AND_WRAP: StencilOperation = StencilOperation { + ord: 6i32 + }; + #[doc(alias = "STENCIL_OP_DECREMENT_AND_WRAP")] + #[doc = "Godot enumerator name: `STENCIL_OP_DECREMENT_AND_WRAP`"] + pub const DECREMENT_AND_WRAP: StencilOperation = StencilOperation { + ord: 7i32 + }; + #[doc(alias = "STENCIL_OP_MAX")] + #[doc = "Godot enumerator name: `STENCIL_OP_MAX`"] + pub const MAX: StencilOperation = StencilOperation { + ord: 8i32 + }; + +} +impl std::fmt::Debug for StencilOperation { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("StencilOperation") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for StencilOperation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::KEEP => "KEEP", Self::ZERO => "ZERO", Self::REPLACE => "REPLACE", Self::INCREMENT_AND_CLAMP => "INCREMENT_AND_CLAMP", Self::DECREMENT_AND_CLAMP => "DECREMENT_AND_CLAMP", Self::INVERT => "INVERT", Self::INCREMENT_AND_WRAP => "INCREMENT_AND_WRAP", Self::DECREMENT_AND_WRAP => "DECREMENT_AND_WRAP", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::KEEP => "STENCIL_OP_KEEP", Self::ZERO => "STENCIL_OP_ZERO", Self::REPLACE => "STENCIL_OP_REPLACE", Self::INCREMENT_AND_CLAMP => "STENCIL_OP_INCREMENT_AND_CLAMP", Self::DECREMENT_AND_CLAMP => "STENCIL_OP_DECREMENT_AND_CLAMP", Self::INVERT => "STENCIL_OP_INVERT", Self::INCREMENT_AND_WRAP => "STENCIL_OP_INCREMENT_AND_WRAP", Self::DECREMENT_AND_WRAP => "STENCIL_OP_DECREMENT_AND_WRAP", Self::MAX => "STENCIL_OP_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for StencilOperation { + const ENUMERATOR_COUNT: usize = 8usize; + +} +impl crate::meta::GodotConvert for StencilOperation { + type Via = i32; + +} +impl crate::meta::ToGodot for StencilOperation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for StencilOperation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CompareOperator { + ord: i32 +} +impl CompareOperator { + #[doc(alias = "COMPARE_OP_NEVER")] + #[doc = "Godot enumerator name: `COMPARE_OP_NEVER`"] + pub const NEVER: CompareOperator = CompareOperator { + ord: 0i32 + }; + #[doc(alias = "COMPARE_OP_LESS")] + #[doc = "Godot enumerator name: `COMPARE_OP_LESS`"] + pub const LESS: CompareOperator = CompareOperator { + ord: 1i32 + }; + #[doc(alias = "COMPARE_OP_EQUAL")] + #[doc = "Godot enumerator name: `COMPARE_OP_EQUAL`"] + pub const EQUAL: CompareOperator = CompareOperator { + ord: 2i32 + }; + #[doc(alias = "COMPARE_OP_LESS_OR_EQUAL")] + #[doc = "Godot enumerator name: `COMPARE_OP_LESS_OR_EQUAL`"] + pub const LESS_OR_EQUAL: CompareOperator = CompareOperator { + ord: 3i32 + }; + #[doc(alias = "COMPARE_OP_GREATER")] + #[doc = "Godot enumerator name: `COMPARE_OP_GREATER`"] + pub const GREATER: CompareOperator = CompareOperator { + ord: 4i32 + }; + #[doc(alias = "COMPARE_OP_NOT_EQUAL")] + #[doc = "Godot enumerator name: `COMPARE_OP_NOT_EQUAL`"] + pub const NOT_EQUAL: CompareOperator = CompareOperator { + ord: 5i32 + }; + #[doc(alias = "COMPARE_OP_GREATER_OR_EQUAL")] + #[doc = "Godot enumerator name: `COMPARE_OP_GREATER_OR_EQUAL`"] + pub const GREATER_OR_EQUAL: CompareOperator = CompareOperator { + ord: 6i32 + }; + #[doc(alias = "COMPARE_OP_ALWAYS")] + #[doc = "Godot enumerator name: `COMPARE_OP_ALWAYS`"] + pub const ALWAYS: CompareOperator = CompareOperator { + ord: 7i32 + }; + #[doc(alias = "COMPARE_OP_MAX")] + #[doc = "Godot enumerator name: `COMPARE_OP_MAX`"] + pub const MAX: CompareOperator = CompareOperator { + ord: 8i32 + }; + +} +impl std::fmt::Debug for CompareOperator { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CompareOperator") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CompareOperator { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEVER => "NEVER", Self::LESS => "LESS", Self::EQUAL => "EQUAL", Self::LESS_OR_EQUAL => "LESS_OR_EQUAL", Self::GREATER => "GREATER", Self::NOT_EQUAL => "NOT_EQUAL", Self::GREATER_OR_EQUAL => "GREATER_OR_EQUAL", Self::ALWAYS => "ALWAYS", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEVER => "COMPARE_OP_NEVER", Self::LESS => "COMPARE_OP_LESS", Self::EQUAL => "COMPARE_OP_EQUAL", Self::LESS_OR_EQUAL => "COMPARE_OP_LESS_OR_EQUAL", Self::GREATER => "COMPARE_OP_GREATER", Self::NOT_EQUAL => "COMPARE_OP_NOT_EQUAL", Self::GREATER_OR_EQUAL => "COMPARE_OP_GREATER_OR_EQUAL", Self::ALWAYS => "COMPARE_OP_ALWAYS", Self::MAX => "COMPARE_OP_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for CompareOperator { + const ENUMERATOR_COUNT: usize = 8usize; + +} +impl crate::meta::GodotConvert for CompareOperator { + type Via = i32; + +} +impl crate::meta::ToGodot for CompareOperator { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CompareOperator { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LogicOperation { + ord: i32 +} +impl LogicOperation { + #[doc(alias = "LOGIC_OP_CLEAR")] + #[doc = "Godot enumerator name: `LOGIC_OP_CLEAR`"] + pub const CLEAR: LogicOperation = LogicOperation { + ord: 0i32 + }; + #[doc(alias = "LOGIC_OP_AND")] + #[doc = "Godot enumerator name: `LOGIC_OP_AND`"] + pub const AND: LogicOperation = LogicOperation { + ord: 1i32 + }; + #[doc(alias = "LOGIC_OP_AND_REVERSE")] + #[doc = "Godot enumerator name: `LOGIC_OP_AND_REVERSE`"] + pub const AND_REVERSE: LogicOperation = LogicOperation { + ord: 2i32 + }; + #[doc(alias = "LOGIC_OP_COPY")] + #[doc = "Godot enumerator name: `LOGIC_OP_COPY`"] + pub const COPY: LogicOperation = LogicOperation { + ord: 3i32 + }; + #[doc(alias = "LOGIC_OP_AND_INVERTED")] + #[doc = "Godot enumerator name: `LOGIC_OP_AND_INVERTED`"] + pub const AND_INVERTED: LogicOperation = LogicOperation { + ord: 4i32 + }; + #[doc(alias = "LOGIC_OP_NO_OP")] + #[doc = "Godot enumerator name: `LOGIC_OP_NO_OP`"] + pub const NO_OP: LogicOperation = LogicOperation { + ord: 5i32 + }; + #[doc(alias = "LOGIC_OP_XOR")] + #[doc = "Godot enumerator name: `LOGIC_OP_XOR`"] + pub const XOR: LogicOperation = LogicOperation { + ord: 6i32 + }; + #[doc(alias = "LOGIC_OP_OR")] + #[doc = "Godot enumerator name: `LOGIC_OP_OR`"] + pub const OR: LogicOperation = LogicOperation { + ord: 7i32 + }; + #[doc(alias = "LOGIC_OP_NOR")] + #[doc = "Godot enumerator name: `LOGIC_OP_NOR`"] + pub const NOR: LogicOperation = LogicOperation { + ord: 8i32 + }; + #[doc(alias = "LOGIC_OP_EQUIVALENT")] + #[doc = "Godot enumerator name: `LOGIC_OP_EQUIVALENT`"] + pub const EQUIVALENT: LogicOperation = LogicOperation { + ord: 9i32 + }; + #[doc(alias = "LOGIC_OP_INVERT")] + #[doc = "Godot enumerator name: `LOGIC_OP_INVERT`"] + pub const INVERT: LogicOperation = LogicOperation { + ord: 10i32 + }; + #[doc(alias = "LOGIC_OP_OR_REVERSE")] + #[doc = "Godot enumerator name: `LOGIC_OP_OR_REVERSE`"] + pub const OR_REVERSE: LogicOperation = LogicOperation { + ord: 11i32 + }; + #[doc(alias = "LOGIC_OP_COPY_INVERTED")] + #[doc = "Godot enumerator name: `LOGIC_OP_COPY_INVERTED`"] + pub const COPY_INVERTED: LogicOperation = LogicOperation { + ord: 12i32 + }; + #[doc(alias = "LOGIC_OP_OR_INVERTED")] + #[doc = "Godot enumerator name: `LOGIC_OP_OR_INVERTED`"] + pub const OR_INVERTED: LogicOperation = LogicOperation { + ord: 13i32 + }; + #[doc(alias = "LOGIC_OP_NAND")] + #[doc = "Godot enumerator name: `LOGIC_OP_NAND`"] + pub const NAND: LogicOperation = LogicOperation { + ord: 14i32 + }; + #[doc(alias = "LOGIC_OP_SET")] + #[doc = "Godot enumerator name: `LOGIC_OP_SET`"] + pub const SET: LogicOperation = LogicOperation { + ord: 15i32 + }; + #[doc(alias = "LOGIC_OP_MAX")] + #[doc = "Godot enumerator name: `LOGIC_OP_MAX`"] + pub const MAX: LogicOperation = LogicOperation { + ord: 16i32 + }; + +} +impl std::fmt::Debug for LogicOperation { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LogicOperation") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LogicOperation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLEAR => "CLEAR", Self::AND => "AND", Self::AND_REVERSE => "AND_REVERSE", Self::COPY => "COPY", Self::AND_INVERTED => "AND_INVERTED", Self::NO_OP => "NO_OP", Self::XOR => "XOR", Self::OR => "OR", Self::NOR => "NOR", Self::EQUIVALENT => "EQUIVALENT", Self::INVERT => "INVERT", Self::OR_REVERSE => "OR_REVERSE", Self::COPY_INVERTED => "COPY_INVERTED", Self::OR_INVERTED => "OR_INVERTED", Self::NAND => "NAND", Self::SET => "SET", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLEAR => "LOGIC_OP_CLEAR", Self::AND => "LOGIC_OP_AND", Self::AND_REVERSE => "LOGIC_OP_AND_REVERSE", Self::COPY => "LOGIC_OP_COPY", Self::AND_INVERTED => "LOGIC_OP_AND_INVERTED", Self::NO_OP => "LOGIC_OP_NO_OP", Self::XOR => "LOGIC_OP_XOR", Self::OR => "LOGIC_OP_OR", Self::NOR => "LOGIC_OP_NOR", Self::EQUIVALENT => "LOGIC_OP_EQUIVALENT", Self::INVERT => "LOGIC_OP_INVERT", Self::OR_REVERSE => "LOGIC_OP_OR_REVERSE", Self::COPY_INVERTED => "LOGIC_OP_COPY_INVERTED", Self::OR_INVERTED => "LOGIC_OP_OR_INVERTED", Self::NAND => "LOGIC_OP_NAND", Self::SET => "LOGIC_OP_SET", Self::MAX => "LOGIC_OP_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for LogicOperation { + const ENUMERATOR_COUNT: usize = 16usize; + +} +impl crate::meta::GodotConvert for LogicOperation { + type Via = i32; + +} +impl crate::meta::ToGodot for LogicOperation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LogicOperation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BlendFactor { + ord: i32 +} +impl BlendFactor { + #[doc(alias = "BLEND_FACTOR_ZERO")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_ZERO`"] + pub const ZERO: BlendFactor = BlendFactor { + ord: 0i32 + }; + #[doc(alias = "BLEND_FACTOR_ONE")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_ONE`"] + pub const ONE: BlendFactor = BlendFactor { + ord: 1i32 + }; + #[doc(alias = "BLEND_FACTOR_SRC_COLOR")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_SRC_COLOR`"] + pub const SRC_COLOR: BlendFactor = BlendFactor { + ord: 2i32 + }; + #[doc(alias = "BLEND_FACTOR_ONE_MINUS_SRC_COLOR")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_ONE_MINUS_SRC_COLOR`"] + pub const ONE_MINUS_SRC_COLOR: BlendFactor = BlendFactor { + ord: 3i32 + }; + #[doc(alias = "BLEND_FACTOR_DST_COLOR")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_DST_COLOR`"] + pub const DST_COLOR: BlendFactor = BlendFactor { + ord: 4i32 + }; + #[doc(alias = "BLEND_FACTOR_ONE_MINUS_DST_COLOR")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_ONE_MINUS_DST_COLOR`"] + pub const ONE_MINUS_DST_COLOR: BlendFactor = BlendFactor { + ord: 5i32 + }; + #[doc(alias = "BLEND_FACTOR_SRC_ALPHA")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_SRC_ALPHA`"] + pub const SRC_ALPHA: BlendFactor = BlendFactor { + ord: 6i32 + }; + #[doc(alias = "BLEND_FACTOR_ONE_MINUS_SRC_ALPHA")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_ONE_MINUS_SRC_ALPHA`"] + pub const ONE_MINUS_SRC_ALPHA: BlendFactor = BlendFactor { + ord: 7i32 + }; + #[doc(alias = "BLEND_FACTOR_DST_ALPHA")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_DST_ALPHA`"] + pub const DST_ALPHA: BlendFactor = BlendFactor { + ord: 8i32 + }; + #[doc(alias = "BLEND_FACTOR_ONE_MINUS_DST_ALPHA")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_ONE_MINUS_DST_ALPHA`"] + pub const ONE_MINUS_DST_ALPHA: BlendFactor = BlendFactor { + ord: 9i32 + }; + #[doc(alias = "BLEND_FACTOR_CONSTANT_COLOR")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_CONSTANT_COLOR`"] + pub const CONSTANT_COLOR: BlendFactor = BlendFactor { + ord: 10i32 + }; + #[doc(alias = "BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR`"] + pub const ONE_MINUS_CONSTANT_COLOR: BlendFactor = BlendFactor { + ord: 11i32 + }; + #[doc(alias = "BLEND_FACTOR_CONSTANT_ALPHA")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_CONSTANT_ALPHA`"] + pub const CONSTANT_ALPHA: BlendFactor = BlendFactor { + ord: 12i32 + }; + #[doc(alias = "BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA`"] + pub const ONE_MINUS_CONSTANT_ALPHA: BlendFactor = BlendFactor { + ord: 13i32 + }; + #[doc(alias = "BLEND_FACTOR_SRC_ALPHA_SATURATE")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_SRC_ALPHA_SATURATE`"] + pub const SRC_ALPHA_SATURATE: BlendFactor = BlendFactor { + ord: 14i32 + }; + #[doc(alias = "BLEND_FACTOR_SRC1_COLOR")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_SRC1_COLOR`"] + pub const SRC1_COLOR: BlendFactor = BlendFactor { + ord: 15i32 + }; + #[doc(alias = "BLEND_FACTOR_ONE_MINUS_SRC1_COLOR")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_ONE_MINUS_SRC1_COLOR`"] + pub const ONE_MINUS_SRC1_COLOR: BlendFactor = BlendFactor { + ord: 16i32 + }; + #[doc(alias = "BLEND_FACTOR_SRC1_ALPHA")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_SRC1_ALPHA`"] + pub const SRC1_ALPHA: BlendFactor = BlendFactor { + ord: 17i32 + }; + #[doc(alias = "BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA`"] + pub const ONE_MINUS_SRC1_ALPHA: BlendFactor = BlendFactor { + ord: 18i32 + }; + #[doc(alias = "BLEND_FACTOR_MAX")] + #[doc = "Godot enumerator name: `BLEND_FACTOR_MAX`"] + pub const MAX: BlendFactor = BlendFactor { + ord: 19i32 + }; + +} +impl std::fmt::Debug for BlendFactor { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BlendFactor") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BlendFactor { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ZERO => "ZERO", Self::ONE => "ONE", Self::SRC_COLOR => "SRC_COLOR", Self::ONE_MINUS_SRC_COLOR => "ONE_MINUS_SRC_COLOR", Self::DST_COLOR => "DST_COLOR", Self::ONE_MINUS_DST_COLOR => "ONE_MINUS_DST_COLOR", Self::SRC_ALPHA => "SRC_ALPHA", Self::ONE_MINUS_SRC_ALPHA => "ONE_MINUS_SRC_ALPHA", Self::DST_ALPHA => "DST_ALPHA", Self::ONE_MINUS_DST_ALPHA => "ONE_MINUS_DST_ALPHA", Self::CONSTANT_COLOR => "CONSTANT_COLOR", Self::ONE_MINUS_CONSTANT_COLOR => "ONE_MINUS_CONSTANT_COLOR", Self::CONSTANT_ALPHA => "CONSTANT_ALPHA", Self::ONE_MINUS_CONSTANT_ALPHA => "ONE_MINUS_CONSTANT_ALPHA", Self::SRC_ALPHA_SATURATE => "SRC_ALPHA_SATURATE", Self::SRC1_COLOR => "SRC1_COLOR", Self::ONE_MINUS_SRC1_COLOR => "ONE_MINUS_SRC1_COLOR", Self::SRC1_ALPHA => "SRC1_ALPHA", Self::ONE_MINUS_SRC1_ALPHA => "ONE_MINUS_SRC1_ALPHA", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ZERO => "BLEND_FACTOR_ZERO", Self::ONE => "BLEND_FACTOR_ONE", Self::SRC_COLOR => "BLEND_FACTOR_SRC_COLOR", Self::ONE_MINUS_SRC_COLOR => "BLEND_FACTOR_ONE_MINUS_SRC_COLOR", Self::DST_COLOR => "BLEND_FACTOR_DST_COLOR", Self::ONE_MINUS_DST_COLOR => "BLEND_FACTOR_ONE_MINUS_DST_COLOR", Self::SRC_ALPHA => "BLEND_FACTOR_SRC_ALPHA", Self::ONE_MINUS_SRC_ALPHA => "BLEND_FACTOR_ONE_MINUS_SRC_ALPHA", Self::DST_ALPHA => "BLEND_FACTOR_DST_ALPHA", Self::ONE_MINUS_DST_ALPHA => "BLEND_FACTOR_ONE_MINUS_DST_ALPHA", Self::CONSTANT_COLOR => "BLEND_FACTOR_CONSTANT_COLOR", Self::ONE_MINUS_CONSTANT_COLOR => "BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR", Self::CONSTANT_ALPHA => "BLEND_FACTOR_CONSTANT_ALPHA", Self::ONE_MINUS_CONSTANT_ALPHA => "BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA", Self::SRC_ALPHA_SATURATE => "BLEND_FACTOR_SRC_ALPHA_SATURATE", Self::SRC1_COLOR => "BLEND_FACTOR_SRC1_COLOR", Self::ONE_MINUS_SRC1_COLOR => "BLEND_FACTOR_ONE_MINUS_SRC1_COLOR", Self::SRC1_ALPHA => "BLEND_FACTOR_SRC1_ALPHA", Self::ONE_MINUS_SRC1_ALPHA => "BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA", Self::MAX => "BLEND_FACTOR_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for BlendFactor { + const ENUMERATOR_COUNT: usize = 19usize; + +} +impl crate::meta::GodotConvert for BlendFactor { + type Via = i32; + +} +impl crate::meta::ToGodot for BlendFactor { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BlendFactor { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BlendOperation { + ord: i32 +} +impl BlendOperation { + #[doc(alias = "BLEND_OP_ADD")] + #[doc = "Godot enumerator name: `BLEND_OP_ADD`"] + pub const ADD: BlendOperation = BlendOperation { + ord: 0i32 + }; + #[doc(alias = "BLEND_OP_SUBTRACT")] + #[doc = "Godot enumerator name: `BLEND_OP_SUBTRACT`"] + pub const SUBTRACT: BlendOperation = BlendOperation { + ord: 1i32 + }; + #[doc(alias = "BLEND_OP_REVERSE_SUBTRACT")] + #[doc = "Godot enumerator name: `BLEND_OP_REVERSE_SUBTRACT`"] + pub const REVERSE_SUBTRACT: BlendOperation = BlendOperation { + ord: 2i32 + }; + #[doc(alias = "BLEND_OP_MINIMUM")] + #[doc = "Godot enumerator name: `BLEND_OP_MINIMUM`"] + pub const MINIMUM: BlendOperation = BlendOperation { + ord: 3i32 + }; + #[doc(alias = "BLEND_OP_MAXIMUM")] + #[doc = "Godot enumerator name: `BLEND_OP_MAXIMUM`"] + pub const MAXIMUM: BlendOperation = BlendOperation { + ord: 4i32 + }; + #[doc(alias = "BLEND_OP_MAX")] + #[doc = "Godot enumerator name: `BLEND_OP_MAX`"] + pub const MAX: BlendOperation = BlendOperation { + ord: 5i32 + }; + +} +impl std::fmt::Debug for BlendOperation { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BlendOperation") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BlendOperation { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD => "ADD", Self::SUBTRACT => "SUBTRACT", Self::REVERSE_SUBTRACT => "REVERSE_SUBTRACT", Self::MINIMUM => "MINIMUM", Self::MAXIMUM => "MAXIMUM", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD => "BLEND_OP_ADD", Self::SUBTRACT => "BLEND_OP_SUBTRACT", Self::REVERSE_SUBTRACT => "BLEND_OP_REVERSE_SUBTRACT", Self::MINIMUM => "BLEND_OP_MINIMUM", Self::MAXIMUM => "BLEND_OP_MAXIMUM", Self::MAX => "BLEND_OP_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for BlendOperation { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for BlendOperation { + type Via = i32; + +} +impl crate::meta::ToGodot for BlendOperation { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BlendOperation { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct PipelineDynamicStateFlags { + ord: u64 +} +impl PipelineDynamicStateFlags { + #[doc(alias = "DYNAMIC_STATE_LINE_WIDTH")] + #[doc = "Godot enumerator name: `DYNAMIC_STATE_LINE_WIDTH`"] + pub const LINE_WIDTH: PipelineDynamicStateFlags = PipelineDynamicStateFlags { + ord: 1u64 + }; + #[doc(alias = "DYNAMIC_STATE_DEPTH_BIAS")] + #[doc = "Godot enumerator name: `DYNAMIC_STATE_DEPTH_BIAS`"] + pub const DEPTH_BIAS: PipelineDynamicStateFlags = PipelineDynamicStateFlags { + ord: 2u64 + }; + #[doc(alias = "DYNAMIC_STATE_BLEND_CONSTANTS")] + #[doc = "Godot enumerator name: `DYNAMIC_STATE_BLEND_CONSTANTS`"] + pub const BLEND_CONSTANTS: PipelineDynamicStateFlags = PipelineDynamicStateFlags { + ord: 4u64 + }; + #[doc(alias = "DYNAMIC_STATE_DEPTH_BOUNDS")] + #[doc = "Godot enumerator name: `DYNAMIC_STATE_DEPTH_BOUNDS`"] + pub const DEPTH_BOUNDS: PipelineDynamicStateFlags = PipelineDynamicStateFlags { + ord: 8u64 + }; + #[doc(alias = "DYNAMIC_STATE_STENCIL_COMPARE_MASK")] + #[doc = "Godot enumerator name: `DYNAMIC_STATE_STENCIL_COMPARE_MASK`"] + pub const STENCIL_COMPARE_MASK: PipelineDynamicStateFlags = PipelineDynamicStateFlags { + ord: 16u64 + }; + #[doc(alias = "DYNAMIC_STATE_STENCIL_WRITE_MASK")] + #[doc = "Godot enumerator name: `DYNAMIC_STATE_STENCIL_WRITE_MASK`"] + pub const STENCIL_WRITE_MASK: PipelineDynamicStateFlags = PipelineDynamicStateFlags { + ord: 32u64 + }; + #[doc(alias = "DYNAMIC_STATE_STENCIL_REFERENCE")] + #[doc = "Godot enumerator name: `DYNAMIC_STATE_STENCIL_REFERENCE`"] + pub const STENCIL_REFERENCE: PipelineDynamicStateFlags = PipelineDynamicStateFlags { + ord: 64u64 + }; + +} +impl std::fmt::Debug for PipelineDynamicStateFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::LINE_WIDTH => "LINE_WIDTH", Self::DEPTH_BIAS => "DEPTH_BIAS", Self::BLEND_CONSTANTS => "BLEND_CONSTANTS", Self::DEPTH_BOUNDS => "DEPTH_BOUNDS", Self::STENCIL_COMPARE_MASK => "STENCIL_COMPARE_MASK", Self::STENCIL_WRITE_MASK => "STENCIL_WRITE_MASK", Self::STENCIL_REFERENCE => "STENCIL_REFERENCE", _ => { + f.debug_struct("PipelineDynamicStateFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for PipelineDynamicStateFlags { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for PipelineDynamicStateFlags { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for PipelineDynamicStateFlags { + type Via = u64; + +} +impl crate::meta::ToGodot for PipelineDynamicStateFlags { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for PipelineDynamicStateFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct InitialAction { + ord: i32 +} +impl InitialAction { + #[doc(alias = "INITIAL_ACTION_LOAD")] + #[doc = "Godot enumerator name: `INITIAL_ACTION_LOAD`"] + pub const LOAD: InitialAction = InitialAction { + ord: 0i32 + }; + #[doc(alias = "INITIAL_ACTION_CLEAR")] + #[doc = "Godot enumerator name: `INITIAL_ACTION_CLEAR`"] + pub const CLEAR: InitialAction = InitialAction { + ord: 1i32 + }; + #[doc(alias = "INITIAL_ACTION_DISCARD")] + #[doc = "Godot enumerator name: `INITIAL_ACTION_DISCARD`"] + pub const DISCARD: InitialAction = InitialAction { + ord: 2i32 + }; + #[doc(alias = "INITIAL_ACTION_MAX")] + #[doc = "Godot enumerator name: `INITIAL_ACTION_MAX`"] + pub const MAX: InitialAction = InitialAction { + ord: 3i32 + }; + #[doc(alias = "INITIAL_ACTION_CLEAR_REGION")] + #[doc = "Godot enumerator name: `INITIAL_ACTION_CLEAR_REGION`"] + pub const CLEAR_REGION: InitialAction = InitialAction { + ord: 1i32 + }; + #[doc(alias = "INITIAL_ACTION_CLEAR_REGION_CONTINUE")] + #[doc = "Godot enumerator name: `INITIAL_ACTION_CLEAR_REGION_CONTINUE`"] + pub const CLEAR_REGION_CONTINUE: InitialAction = InitialAction { + ord: 1i32 + }; + #[doc(alias = "INITIAL_ACTION_KEEP")] + #[doc = "Godot enumerator name: `INITIAL_ACTION_KEEP`"] + pub const KEEP: InitialAction = InitialAction { + ord: 0i32 + }; + #[doc(alias = "INITIAL_ACTION_DROP")] + #[doc = "Godot enumerator name: `INITIAL_ACTION_DROP`"] + pub const DROP: InitialAction = InitialAction { + ord: 2i32 + }; + #[doc(alias = "INITIAL_ACTION_CONTINUE")] + #[doc = "Godot enumerator name: `INITIAL_ACTION_CONTINUE`"] + pub const CONTINUE: InitialAction = InitialAction { + ord: 0i32 + }; + +} +impl std::fmt::Debug for InitialAction { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("InitialAction") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for InitialAction { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOAD => "LOAD", Self::CLEAR => "CLEAR", Self::DISCARD => "DISCARD", Self::MAX => "MAX", Self::CLEAR_REGION => "CLEAR_REGION", Self::CLEAR_REGION_CONTINUE => "CLEAR_REGION_CONTINUE", Self::KEEP => "KEEP", Self::DROP => "DROP", Self::CONTINUE => "CONTINUE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOAD => "INITIAL_ACTION_LOAD", Self::CLEAR => "INITIAL_ACTION_CLEAR", Self::DISCARD => "INITIAL_ACTION_DISCARD", Self::MAX => "INITIAL_ACTION_MAX", Self::CLEAR_REGION => "INITIAL_ACTION_CLEAR_REGION", Self::CLEAR_REGION_CONTINUE => "INITIAL_ACTION_CLEAR_REGION_CONTINUE", Self::KEEP => "INITIAL_ACTION_KEEP", Self::DROP => "INITIAL_ACTION_DROP", Self::CONTINUE => "INITIAL_ACTION_CONTINUE", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for InitialAction { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for InitialAction { + type Via = i32; + +} +impl crate::meta::ToGodot for InitialAction { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for InitialAction { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FinalAction { + ord: i32 +} +impl FinalAction { + #[doc(alias = "FINAL_ACTION_STORE")] + #[doc = "Godot enumerator name: `FINAL_ACTION_STORE`"] + pub const STORE: FinalAction = FinalAction { + ord: 0i32 + }; + #[doc(alias = "FINAL_ACTION_DISCARD")] + #[doc = "Godot enumerator name: `FINAL_ACTION_DISCARD`"] + pub const DISCARD: FinalAction = FinalAction { + ord: 1i32 + }; + #[doc(alias = "FINAL_ACTION_MAX")] + #[doc = "Godot enumerator name: `FINAL_ACTION_MAX`"] + pub const MAX: FinalAction = FinalAction { + ord: 2i32 + }; + #[doc(alias = "FINAL_ACTION_READ")] + #[doc = "Godot enumerator name: `FINAL_ACTION_READ`"] + pub const READ: FinalAction = FinalAction { + ord: 0i32 + }; + #[doc(alias = "FINAL_ACTION_CONTINUE")] + #[doc = "Godot enumerator name: `FINAL_ACTION_CONTINUE`"] + pub const CONTINUE: FinalAction = FinalAction { + ord: 0i32 + }; + +} +impl std::fmt::Debug for FinalAction { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FinalAction") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FinalAction { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STORE => "STORE", Self::DISCARD => "DISCARD", Self::MAX => "MAX", Self::READ => "READ", Self::CONTINUE => "CONTINUE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STORE => "FINAL_ACTION_STORE", Self::DISCARD => "FINAL_ACTION_DISCARD", Self::MAX => "FINAL_ACTION_MAX", Self::READ => "FINAL_ACTION_READ", Self::CONTINUE => "FINAL_ACTION_CONTINUE", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for FinalAction { + const ENUMERATOR_COUNT: usize = 2usize; + +} +impl crate::meta::GodotConvert for FinalAction { + type Via = i32; + +} +impl crate::meta::ToGodot for FinalAction { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FinalAction { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShaderStage { + ord: i32 +} +impl ShaderStage { + #[doc(alias = "SHADER_STAGE_VERTEX")] + #[doc = "Godot enumerator name: `SHADER_STAGE_VERTEX`"] + pub const VERTEX: ShaderStage = ShaderStage { + ord: 0i32 + }; + #[doc(alias = "SHADER_STAGE_FRAGMENT")] + #[doc = "Godot enumerator name: `SHADER_STAGE_FRAGMENT`"] + pub const FRAGMENT: ShaderStage = ShaderStage { + ord: 1i32 + }; + #[doc(alias = "SHADER_STAGE_TESSELATION_CONTROL")] + #[doc = "Godot enumerator name: `SHADER_STAGE_TESSELATION_CONTROL`"] + pub const TESSELATION_CONTROL: ShaderStage = ShaderStage { + ord: 2i32 + }; + #[doc(alias = "SHADER_STAGE_TESSELATION_EVALUATION")] + #[doc = "Godot enumerator name: `SHADER_STAGE_TESSELATION_EVALUATION`"] + pub const TESSELATION_EVALUATION: ShaderStage = ShaderStage { + ord: 3i32 + }; + #[doc(alias = "SHADER_STAGE_COMPUTE")] + #[doc = "Godot enumerator name: `SHADER_STAGE_COMPUTE`"] + pub const COMPUTE: ShaderStage = ShaderStage { + ord: 4i32 + }; + #[doc(alias = "SHADER_STAGE_MAX")] + #[doc = "Godot enumerator name: `SHADER_STAGE_MAX`"] + pub const MAX: ShaderStage = ShaderStage { + ord: 5i32 + }; + #[doc(alias = "SHADER_STAGE_VERTEX_BIT")] + #[doc = "Godot enumerator name: `SHADER_STAGE_VERTEX_BIT`"] + pub const VERTEX_BIT: ShaderStage = ShaderStage { + ord: 1i32 + }; + #[doc(alias = "SHADER_STAGE_FRAGMENT_BIT")] + #[doc = "Godot enumerator name: `SHADER_STAGE_FRAGMENT_BIT`"] + pub const FRAGMENT_BIT: ShaderStage = ShaderStage { + ord: 2i32 + }; + #[doc(alias = "SHADER_STAGE_TESSELATION_CONTROL_BIT")] + #[doc = "Godot enumerator name: `SHADER_STAGE_TESSELATION_CONTROL_BIT`"] + pub const TESSELATION_CONTROL_BIT: ShaderStage = ShaderStage { + ord: 4i32 + }; + #[doc(alias = "SHADER_STAGE_TESSELATION_EVALUATION_BIT")] + #[doc = "Godot enumerator name: `SHADER_STAGE_TESSELATION_EVALUATION_BIT`"] + pub const TESSELATION_EVALUATION_BIT: ShaderStage = ShaderStage { + ord: 8i32 + }; + #[doc(alias = "SHADER_STAGE_COMPUTE_BIT")] + #[doc = "Godot enumerator name: `SHADER_STAGE_COMPUTE_BIT`"] + pub const COMPUTE_BIT: ShaderStage = ShaderStage { + ord: 16i32 + }; + +} +impl std::fmt::Debug for ShaderStage { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShaderStage") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShaderStage { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 8i32 | ord @ 16i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERTEX => "VERTEX", Self::FRAGMENT => "FRAGMENT", Self::TESSELATION_CONTROL => "TESSELATION_CONTROL", Self::TESSELATION_EVALUATION => "TESSELATION_EVALUATION", Self::COMPUTE => "COMPUTE", Self::MAX => "MAX", Self::VERTEX_BIT => "VERTEX_BIT", Self::FRAGMENT_BIT => "FRAGMENT_BIT", Self::TESSELATION_CONTROL_BIT => "TESSELATION_CONTROL_BIT", Self::TESSELATION_EVALUATION_BIT => "TESSELATION_EVALUATION_BIT", Self::COMPUTE_BIT => "COMPUTE_BIT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERTEX => "SHADER_STAGE_VERTEX", Self::FRAGMENT => "SHADER_STAGE_FRAGMENT", Self::TESSELATION_CONTROL => "SHADER_STAGE_TESSELATION_CONTROL", Self::TESSELATION_EVALUATION => "SHADER_STAGE_TESSELATION_EVALUATION", Self::COMPUTE => "SHADER_STAGE_COMPUTE", Self::MAX => "SHADER_STAGE_MAX", Self::VERTEX_BIT => "SHADER_STAGE_VERTEX_BIT", Self::FRAGMENT_BIT => "SHADER_STAGE_FRAGMENT_BIT", Self::TESSELATION_CONTROL_BIT => "SHADER_STAGE_TESSELATION_CONTROL_BIT", Self::TESSELATION_EVALUATION_BIT => "SHADER_STAGE_TESSELATION_EVALUATION_BIT", Self::COMPUTE_BIT => "SHADER_STAGE_COMPUTE_BIT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ShaderStage { + type Via = i32; + +} +impl crate::meta::ToGodot for ShaderStage { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShaderStage { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShaderLanguage { + ord: i32 +} +impl ShaderLanguage { + #[doc(alias = "SHADER_LANGUAGE_GLSL")] + #[doc = "Godot enumerator name: `SHADER_LANGUAGE_GLSL`"] + pub const GLSL: ShaderLanguage = ShaderLanguage { + ord: 0i32 + }; + #[doc(alias = "SHADER_LANGUAGE_HLSL")] + #[doc = "Godot enumerator name: `SHADER_LANGUAGE_HLSL`"] + pub const HLSL: ShaderLanguage = ShaderLanguage { + ord: 1i32 + }; + +} +impl std::fmt::Debug for ShaderLanguage { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShaderLanguage") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShaderLanguage { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GLSL => "GLSL", Self::HLSL => "HLSL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::GLSL => "SHADER_LANGUAGE_GLSL", Self::HLSL => "SHADER_LANGUAGE_HLSL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ShaderLanguage { + type Via = i32; + +} +impl crate::meta::ToGodot for ShaderLanguage { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShaderLanguage { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PipelineSpecializationConstantType { + ord: i32 +} +impl PipelineSpecializationConstantType { + #[doc(alias = "PIPELINE_SPECIALIZATION_CONSTANT_TYPE_BOOL")] + #[doc = "Godot enumerator name: `PIPELINE_SPECIALIZATION_CONSTANT_TYPE_BOOL`"] + pub const BOOL: PipelineSpecializationConstantType = PipelineSpecializationConstantType { + ord: 0i32 + }; + #[doc(alias = "PIPELINE_SPECIALIZATION_CONSTANT_TYPE_INT")] + #[doc = "Godot enumerator name: `PIPELINE_SPECIALIZATION_CONSTANT_TYPE_INT`"] + pub const INT: PipelineSpecializationConstantType = PipelineSpecializationConstantType { + ord: 1i32 + }; + #[doc(alias = "PIPELINE_SPECIALIZATION_CONSTANT_TYPE_FLOAT")] + #[doc = "Godot enumerator name: `PIPELINE_SPECIALIZATION_CONSTANT_TYPE_FLOAT`"] + pub const FLOAT: PipelineSpecializationConstantType = PipelineSpecializationConstantType { + ord: 2i32 + }; + +} +impl std::fmt::Debug for PipelineSpecializationConstantType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PipelineSpecializationConstantType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PipelineSpecializationConstantType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOOL => "BOOL", Self::INT => "INT", Self::FLOAT => "FLOAT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOOL => "PIPELINE_SPECIALIZATION_CONSTANT_TYPE_BOOL", Self::INT => "PIPELINE_SPECIALIZATION_CONSTANT_TYPE_INT", Self::FLOAT => "PIPELINE_SPECIALIZATION_CONSTANT_TYPE_FLOAT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for PipelineSpecializationConstantType { + type Via = i32; + +} +impl crate::meta::ToGodot for PipelineSpecializationConstantType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PipelineSpecializationConstantType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Limit { + ord: i32 +} +impl Limit { + #[doc(alias = "LIMIT_MAX_BOUND_UNIFORM_SETS")] + #[doc = "Godot enumerator name: `LIMIT_MAX_BOUND_UNIFORM_SETS`"] + pub const MAX_BOUND_UNIFORM_SETS: Limit = Limit { + ord: 0i32 + }; + #[doc(alias = "LIMIT_MAX_FRAMEBUFFER_COLOR_ATTACHMENTS")] + #[doc = "Godot enumerator name: `LIMIT_MAX_FRAMEBUFFER_COLOR_ATTACHMENTS`"] + pub const MAX_FRAMEBUFFER_COLOR_ATTACHMENTS: Limit = Limit { + ord: 1i32 + }; + #[doc(alias = "LIMIT_MAX_TEXTURES_PER_UNIFORM_SET")] + #[doc = "Godot enumerator name: `LIMIT_MAX_TEXTURES_PER_UNIFORM_SET`"] + pub const MAX_TEXTURES_PER_UNIFORM_SET: Limit = Limit { + ord: 2i32 + }; + #[doc(alias = "LIMIT_MAX_SAMPLERS_PER_UNIFORM_SET")] + #[doc = "Godot enumerator name: `LIMIT_MAX_SAMPLERS_PER_UNIFORM_SET`"] + pub const MAX_SAMPLERS_PER_UNIFORM_SET: Limit = Limit { + ord: 3i32 + }; + #[doc(alias = "LIMIT_MAX_STORAGE_BUFFERS_PER_UNIFORM_SET")] + #[doc = "Godot enumerator name: `LIMIT_MAX_STORAGE_BUFFERS_PER_UNIFORM_SET`"] + pub const MAX_STORAGE_BUFFERS_PER_UNIFORM_SET: Limit = Limit { + ord: 4i32 + }; + #[doc(alias = "LIMIT_MAX_STORAGE_IMAGES_PER_UNIFORM_SET")] + #[doc = "Godot enumerator name: `LIMIT_MAX_STORAGE_IMAGES_PER_UNIFORM_SET`"] + pub const MAX_STORAGE_IMAGES_PER_UNIFORM_SET: Limit = Limit { + ord: 5i32 + }; + #[doc(alias = "LIMIT_MAX_UNIFORM_BUFFERS_PER_UNIFORM_SET")] + #[doc = "Godot enumerator name: `LIMIT_MAX_UNIFORM_BUFFERS_PER_UNIFORM_SET`"] + pub const MAX_UNIFORM_BUFFERS_PER_UNIFORM_SET: Limit = Limit { + ord: 6i32 + }; + #[doc(alias = "LIMIT_MAX_DRAW_INDEXED_INDEX")] + #[doc = "Godot enumerator name: `LIMIT_MAX_DRAW_INDEXED_INDEX`"] + pub const MAX_DRAW_INDEXED_INDEX: Limit = Limit { + ord: 7i32 + }; + #[doc(alias = "LIMIT_MAX_FRAMEBUFFER_HEIGHT")] + #[doc = "Godot enumerator name: `LIMIT_MAX_FRAMEBUFFER_HEIGHT`"] + pub const MAX_FRAMEBUFFER_HEIGHT: Limit = Limit { + ord: 8i32 + }; + #[doc(alias = "LIMIT_MAX_FRAMEBUFFER_WIDTH")] + #[doc = "Godot enumerator name: `LIMIT_MAX_FRAMEBUFFER_WIDTH`"] + pub const MAX_FRAMEBUFFER_WIDTH: Limit = Limit { + ord: 9i32 + }; + #[doc(alias = "LIMIT_MAX_TEXTURE_ARRAY_LAYERS")] + #[doc = "Godot enumerator name: `LIMIT_MAX_TEXTURE_ARRAY_LAYERS`"] + pub const MAX_TEXTURE_ARRAY_LAYERS: Limit = Limit { + ord: 10i32 + }; + #[doc(alias = "LIMIT_MAX_TEXTURE_SIZE_1D")] + #[doc = "Godot enumerator name: `LIMIT_MAX_TEXTURE_SIZE_1D`"] + pub const MAX_TEXTURE_SIZE_1D: Limit = Limit { + ord: 11i32 + }; + #[doc(alias = "LIMIT_MAX_TEXTURE_SIZE_2D")] + #[doc = "Godot enumerator name: `LIMIT_MAX_TEXTURE_SIZE_2D`"] + pub const MAX_TEXTURE_SIZE_2D: Limit = Limit { + ord: 12i32 + }; + #[doc(alias = "LIMIT_MAX_TEXTURE_SIZE_3D")] + #[doc = "Godot enumerator name: `LIMIT_MAX_TEXTURE_SIZE_3D`"] + pub const MAX_TEXTURE_SIZE_3D: Limit = Limit { + ord: 13i32 + }; + #[doc(alias = "LIMIT_MAX_TEXTURE_SIZE_CUBE")] + #[doc = "Godot enumerator name: `LIMIT_MAX_TEXTURE_SIZE_CUBE`"] + pub const MAX_TEXTURE_SIZE_CUBE: Limit = Limit { + ord: 14i32 + }; + #[doc(alias = "LIMIT_MAX_TEXTURES_PER_SHADER_STAGE")] + #[doc = "Godot enumerator name: `LIMIT_MAX_TEXTURES_PER_SHADER_STAGE`"] + pub const MAX_TEXTURES_PER_SHADER_STAGE: Limit = Limit { + ord: 15i32 + }; + #[doc(alias = "LIMIT_MAX_SAMPLERS_PER_SHADER_STAGE")] + #[doc = "Godot enumerator name: `LIMIT_MAX_SAMPLERS_PER_SHADER_STAGE`"] + pub const MAX_SAMPLERS_PER_SHADER_STAGE: Limit = Limit { + ord: 16i32 + }; + #[doc(alias = "LIMIT_MAX_STORAGE_BUFFERS_PER_SHADER_STAGE")] + #[doc = "Godot enumerator name: `LIMIT_MAX_STORAGE_BUFFERS_PER_SHADER_STAGE`"] + pub const MAX_STORAGE_BUFFERS_PER_SHADER_STAGE: Limit = Limit { + ord: 17i32 + }; + #[doc(alias = "LIMIT_MAX_STORAGE_IMAGES_PER_SHADER_STAGE")] + #[doc = "Godot enumerator name: `LIMIT_MAX_STORAGE_IMAGES_PER_SHADER_STAGE`"] + pub const MAX_STORAGE_IMAGES_PER_SHADER_STAGE: Limit = Limit { + ord: 18i32 + }; + #[doc(alias = "LIMIT_MAX_UNIFORM_BUFFERS_PER_SHADER_STAGE")] + #[doc = "Godot enumerator name: `LIMIT_MAX_UNIFORM_BUFFERS_PER_SHADER_STAGE`"] + pub const MAX_UNIFORM_BUFFERS_PER_SHADER_STAGE: Limit = Limit { + ord: 19i32 + }; + #[doc(alias = "LIMIT_MAX_PUSH_CONSTANT_SIZE")] + #[doc = "Godot enumerator name: `LIMIT_MAX_PUSH_CONSTANT_SIZE`"] + pub const MAX_PUSH_CONSTANT_SIZE: Limit = Limit { + ord: 20i32 + }; + #[doc(alias = "LIMIT_MAX_UNIFORM_BUFFER_SIZE")] + #[doc = "Godot enumerator name: `LIMIT_MAX_UNIFORM_BUFFER_SIZE`"] + pub const MAX_UNIFORM_BUFFER_SIZE: Limit = Limit { + ord: 21i32 + }; + #[doc(alias = "LIMIT_MAX_VERTEX_INPUT_ATTRIBUTE_OFFSET")] + #[doc = "Godot enumerator name: `LIMIT_MAX_VERTEX_INPUT_ATTRIBUTE_OFFSET`"] + pub const MAX_VERTEX_INPUT_ATTRIBUTE_OFFSET: Limit = Limit { + ord: 22i32 + }; + #[doc(alias = "LIMIT_MAX_VERTEX_INPUT_ATTRIBUTES")] + #[doc = "Godot enumerator name: `LIMIT_MAX_VERTEX_INPUT_ATTRIBUTES`"] + pub const MAX_VERTEX_INPUT_ATTRIBUTES: Limit = Limit { + ord: 23i32 + }; + #[doc(alias = "LIMIT_MAX_VERTEX_INPUT_BINDINGS")] + #[doc = "Godot enumerator name: `LIMIT_MAX_VERTEX_INPUT_BINDINGS`"] + pub const MAX_VERTEX_INPUT_BINDINGS: Limit = Limit { + ord: 24i32 + }; + #[doc(alias = "LIMIT_MAX_VERTEX_INPUT_BINDING_STRIDE")] + #[doc = "Godot enumerator name: `LIMIT_MAX_VERTEX_INPUT_BINDING_STRIDE`"] + pub const MAX_VERTEX_INPUT_BINDING_STRIDE: Limit = Limit { + ord: 25i32 + }; + #[doc(alias = "LIMIT_MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT")] + #[doc = "Godot enumerator name: `LIMIT_MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT`"] + pub const MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT: Limit = Limit { + ord: 26i32 + }; + #[doc(alias = "LIMIT_MAX_COMPUTE_SHARED_MEMORY_SIZE")] + #[doc = "Godot enumerator name: `LIMIT_MAX_COMPUTE_SHARED_MEMORY_SIZE`"] + pub const MAX_COMPUTE_SHARED_MEMORY_SIZE: Limit = Limit { + ord: 27i32 + }; + #[doc(alias = "LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_X")] + #[doc = "Godot enumerator name: `LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_X`"] + pub const MAX_COMPUTE_WORKGROUP_COUNT_X: Limit = Limit { + ord: 28i32 + }; + #[doc(alias = "LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Y")] + #[doc = "Godot enumerator name: `LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Y`"] + pub const MAX_COMPUTE_WORKGROUP_COUNT_Y: Limit = Limit { + ord: 29i32 + }; + #[doc(alias = "LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Z")] + #[doc = "Godot enumerator name: `LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Z`"] + pub const MAX_COMPUTE_WORKGROUP_COUNT_Z: Limit = Limit { + ord: 30i32 + }; + #[doc(alias = "LIMIT_MAX_COMPUTE_WORKGROUP_INVOCATIONS")] + #[doc = "Godot enumerator name: `LIMIT_MAX_COMPUTE_WORKGROUP_INVOCATIONS`"] + pub const MAX_COMPUTE_WORKGROUP_INVOCATIONS: Limit = Limit { + ord: 31i32 + }; + #[doc(alias = "LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_X")] + #[doc = "Godot enumerator name: `LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_X`"] + pub const MAX_COMPUTE_WORKGROUP_SIZE_X: Limit = Limit { + ord: 32i32 + }; + #[doc(alias = "LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Y")] + #[doc = "Godot enumerator name: `LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Y`"] + pub const MAX_COMPUTE_WORKGROUP_SIZE_Y: Limit = Limit { + ord: 33i32 + }; + #[doc(alias = "LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Z")] + #[doc = "Godot enumerator name: `LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Z`"] + pub const MAX_COMPUTE_WORKGROUP_SIZE_Z: Limit = Limit { + ord: 34i32 + }; + #[doc(alias = "LIMIT_MAX_VIEWPORT_DIMENSIONS_X")] + #[doc = "Godot enumerator name: `LIMIT_MAX_VIEWPORT_DIMENSIONS_X`"] + pub const MAX_VIEWPORT_DIMENSIONS_X: Limit = Limit { + ord: 35i32 + }; + #[doc(alias = "LIMIT_MAX_VIEWPORT_DIMENSIONS_Y")] + #[doc = "Godot enumerator name: `LIMIT_MAX_VIEWPORT_DIMENSIONS_Y`"] + pub const MAX_VIEWPORT_DIMENSIONS_Y: Limit = Limit { + ord: 36i32 + }; + +} +impl std::fmt::Debug for Limit { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Limit") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Limit { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 | ord @ 26i32 | ord @ 27i32 | ord @ 28i32 | ord @ 29i32 | ord @ 30i32 | ord @ 31i32 | ord @ 32i32 | ord @ 33i32 | ord @ 34i32 | ord @ 35i32 | ord @ 36i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MAX_BOUND_UNIFORM_SETS => "MAX_BOUND_UNIFORM_SETS", Self::MAX_FRAMEBUFFER_COLOR_ATTACHMENTS => "MAX_FRAMEBUFFER_COLOR_ATTACHMENTS", Self::MAX_TEXTURES_PER_UNIFORM_SET => "MAX_TEXTURES_PER_UNIFORM_SET", Self::MAX_SAMPLERS_PER_UNIFORM_SET => "MAX_SAMPLERS_PER_UNIFORM_SET", Self::MAX_STORAGE_BUFFERS_PER_UNIFORM_SET => "MAX_STORAGE_BUFFERS_PER_UNIFORM_SET", Self::MAX_STORAGE_IMAGES_PER_UNIFORM_SET => "MAX_STORAGE_IMAGES_PER_UNIFORM_SET", Self::MAX_UNIFORM_BUFFERS_PER_UNIFORM_SET => "MAX_UNIFORM_BUFFERS_PER_UNIFORM_SET", Self::MAX_DRAW_INDEXED_INDEX => "MAX_DRAW_INDEXED_INDEX", Self::MAX_FRAMEBUFFER_HEIGHT => "MAX_FRAMEBUFFER_HEIGHT", Self::MAX_FRAMEBUFFER_WIDTH => "MAX_FRAMEBUFFER_WIDTH", Self::MAX_TEXTURE_ARRAY_LAYERS => "MAX_TEXTURE_ARRAY_LAYERS", Self::MAX_TEXTURE_SIZE_1D => "MAX_TEXTURE_SIZE_1D", Self::MAX_TEXTURE_SIZE_2D => "MAX_TEXTURE_SIZE_2D", Self::MAX_TEXTURE_SIZE_3D => "MAX_TEXTURE_SIZE_3D", Self::MAX_TEXTURE_SIZE_CUBE => "MAX_TEXTURE_SIZE_CUBE", Self::MAX_TEXTURES_PER_SHADER_STAGE => "MAX_TEXTURES_PER_SHADER_STAGE", Self::MAX_SAMPLERS_PER_SHADER_STAGE => "MAX_SAMPLERS_PER_SHADER_STAGE", Self::MAX_STORAGE_BUFFERS_PER_SHADER_STAGE => "MAX_STORAGE_BUFFERS_PER_SHADER_STAGE", Self::MAX_STORAGE_IMAGES_PER_SHADER_STAGE => "MAX_STORAGE_IMAGES_PER_SHADER_STAGE", Self::MAX_UNIFORM_BUFFERS_PER_SHADER_STAGE => "MAX_UNIFORM_BUFFERS_PER_SHADER_STAGE", Self::MAX_PUSH_CONSTANT_SIZE => "MAX_PUSH_CONSTANT_SIZE", Self::MAX_UNIFORM_BUFFER_SIZE => "MAX_UNIFORM_BUFFER_SIZE", Self::MAX_VERTEX_INPUT_ATTRIBUTE_OFFSET => "MAX_VERTEX_INPUT_ATTRIBUTE_OFFSET", Self::MAX_VERTEX_INPUT_ATTRIBUTES => "MAX_VERTEX_INPUT_ATTRIBUTES", Self::MAX_VERTEX_INPUT_BINDINGS => "MAX_VERTEX_INPUT_BINDINGS", Self::MAX_VERTEX_INPUT_BINDING_STRIDE => "MAX_VERTEX_INPUT_BINDING_STRIDE", Self::MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT => "MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT", Self::MAX_COMPUTE_SHARED_MEMORY_SIZE => "MAX_COMPUTE_SHARED_MEMORY_SIZE", Self::MAX_COMPUTE_WORKGROUP_COUNT_X => "MAX_COMPUTE_WORKGROUP_COUNT_X", Self::MAX_COMPUTE_WORKGROUP_COUNT_Y => "MAX_COMPUTE_WORKGROUP_COUNT_Y", Self::MAX_COMPUTE_WORKGROUP_COUNT_Z => "MAX_COMPUTE_WORKGROUP_COUNT_Z", Self::MAX_COMPUTE_WORKGROUP_INVOCATIONS => "MAX_COMPUTE_WORKGROUP_INVOCATIONS", Self::MAX_COMPUTE_WORKGROUP_SIZE_X => "MAX_COMPUTE_WORKGROUP_SIZE_X", Self::MAX_COMPUTE_WORKGROUP_SIZE_Y => "MAX_COMPUTE_WORKGROUP_SIZE_Y", Self::MAX_COMPUTE_WORKGROUP_SIZE_Z => "MAX_COMPUTE_WORKGROUP_SIZE_Z", Self::MAX_VIEWPORT_DIMENSIONS_X => "MAX_VIEWPORT_DIMENSIONS_X", Self::MAX_VIEWPORT_DIMENSIONS_Y => "MAX_VIEWPORT_DIMENSIONS_Y", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MAX_BOUND_UNIFORM_SETS => "LIMIT_MAX_BOUND_UNIFORM_SETS", Self::MAX_FRAMEBUFFER_COLOR_ATTACHMENTS => "LIMIT_MAX_FRAMEBUFFER_COLOR_ATTACHMENTS", Self::MAX_TEXTURES_PER_UNIFORM_SET => "LIMIT_MAX_TEXTURES_PER_UNIFORM_SET", Self::MAX_SAMPLERS_PER_UNIFORM_SET => "LIMIT_MAX_SAMPLERS_PER_UNIFORM_SET", Self::MAX_STORAGE_BUFFERS_PER_UNIFORM_SET => "LIMIT_MAX_STORAGE_BUFFERS_PER_UNIFORM_SET", Self::MAX_STORAGE_IMAGES_PER_UNIFORM_SET => "LIMIT_MAX_STORAGE_IMAGES_PER_UNIFORM_SET", Self::MAX_UNIFORM_BUFFERS_PER_UNIFORM_SET => "LIMIT_MAX_UNIFORM_BUFFERS_PER_UNIFORM_SET", Self::MAX_DRAW_INDEXED_INDEX => "LIMIT_MAX_DRAW_INDEXED_INDEX", Self::MAX_FRAMEBUFFER_HEIGHT => "LIMIT_MAX_FRAMEBUFFER_HEIGHT", Self::MAX_FRAMEBUFFER_WIDTH => "LIMIT_MAX_FRAMEBUFFER_WIDTH", Self::MAX_TEXTURE_ARRAY_LAYERS => "LIMIT_MAX_TEXTURE_ARRAY_LAYERS", Self::MAX_TEXTURE_SIZE_1D => "LIMIT_MAX_TEXTURE_SIZE_1D", Self::MAX_TEXTURE_SIZE_2D => "LIMIT_MAX_TEXTURE_SIZE_2D", Self::MAX_TEXTURE_SIZE_3D => "LIMIT_MAX_TEXTURE_SIZE_3D", Self::MAX_TEXTURE_SIZE_CUBE => "LIMIT_MAX_TEXTURE_SIZE_CUBE", Self::MAX_TEXTURES_PER_SHADER_STAGE => "LIMIT_MAX_TEXTURES_PER_SHADER_STAGE", Self::MAX_SAMPLERS_PER_SHADER_STAGE => "LIMIT_MAX_SAMPLERS_PER_SHADER_STAGE", Self::MAX_STORAGE_BUFFERS_PER_SHADER_STAGE => "LIMIT_MAX_STORAGE_BUFFERS_PER_SHADER_STAGE", Self::MAX_STORAGE_IMAGES_PER_SHADER_STAGE => "LIMIT_MAX_STORAGE_IMAGES_PER_SHADER_STAGE", Self::MAX_UNIFORM_BUFFERS_PER_SHADER_STAGE => "LIMIT_MAX_UNIFORM_BUFFERS_PER_SHADER_STAGE", Self::MAX_PUSH_CONSTANT_SIZE => "LIMIT_MAX_PUSH_CONSTANT_SIZE", Self::MAX_UNIFORM_BUFFER_SIZE => "LIMIT_MAX_UNIFORM_BUFFER_SIZE", Self::MAX_VERTEX_INPUT_ATTRIBUTE_OFFSET => "LIMIT_MAX_VERTEX_INPUT_ATTRIBUTE_OFFSET", Self::MAX_VERTEX_INPUT_ATTRIBUTES => "LIMIT_MAX_VERTEX_INPUT_ATTRIBUTES", Self::MAX_VERTEX_INPUT_BINDINGS => "LIMIT_MAX_VERTEX_INPUT_BINDINGS", Self::MAX_VERTEX_INPUT_BINDING_STRIDE => "LIMIT_MAX_VERTEX_INPUT_BINDING_STRIDE", Self::MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT => "LIMIT_MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT", Self::MAX_COMPUTE_SHARED_MEMORY_SIZE => "LIMIT_MAX_COMPUTE_SHARED_MEMORY_SIZE", Self::MAX_COMPUTE_WORKGROUP_COUNT_X => "LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_X", Self::MAX_COMPUTE_WORKGROUP_COUNT_Y => "LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Y", Self::MAX_COMPUTE_WORKGROUP_COUNT_Z => "LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Z", Self::MAX_COMPUTE_WORKGROUP_INVOCATIONS => "LIMIT_MAX_COMPUTE_WORKGROUP_INVOCATIONS", Self::MAX_COMPUTE_WORKGROUP_SIZE_X => "LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_X", Self::MAX_COMPUTE_WORKGROUP_SIZE_Y => "LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Y", Self::MAX_COMPUTE_WORKGROUP_SIZE_Z => "LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Z", Self::MAX_VIEWPORT_DIMENSIONS_X => "LIMIT_MAX_VIEWPORT_DIMENSIONS_X", Self::MAX_VIEWPORT_DIMENSIONS_Y => "LIMIT_MAX_VIEWPORT_DIMENSIONS_Y", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Limit { + type Via = i32; + +} +impl crate::meta::ToGodot for Limit { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Limit { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MemoryType { + ord: i32 +} +impl MemoryType { + #[doc(alias = "MEMORY_TEXTURES")] + #[doc = "Godot enumerator name: `MEMORY_TEXTURES`"] + pub const TEXTURES: MemoryType = MemoryType { + ord: 0i32 + }; + #[doc(alias = "MEMORY_BUFFERS")] + #[doc = "Godot enumerator name: `MEMORY_BUFFERS`"] + pub const BUFFERS: MemoryType = MemoryType { + ord: 1i32 + }; + #[doc(alias = "MEMORY_TOTAL")] + #[doc = "Godot enumerator name: `MEMORY_TOTAL`"] + pub const TOTAL: MemoryType = MemoryType { + ord: 2i32 + }; + +} +impl std::fmt::Debug for MemoryType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MemoryType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MemoryType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TEXTURES => "TEXTURES", Self::BUFFERS => "BUFFERS", Self::TOTAL => "TOTAL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TEXTURES => "MEMORY_TEXTURES", Self::BUFFERS => "MEMORY_BUFFERS", Self::TOTAL => "MEMORY_TOTAL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for MemoryType { + type Via = i32; + +} +impl crate::meta::ToGodot for MemoryType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MemoryType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rendering_server.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rendering_server.rs new file mode 100644 index 0000000..4902e2f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rendering_server.rs @@ -0,0 +1,12682 @@ +#![doc = "Sidecar module for class [`RenderingServer`][crate::classes::RenderingServer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RenderingServer` enums](https://docs.godotengine.org/en/stable/classes/class_renderingserver.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RenderingServer.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`rendering_server`][crate::classes::rendering_server]: sidecar module with related enum/flag types\n* [`IRenderingServer`][crate::classes::IRenderingServer]: virtual methods\n\n\nSee also [Godot docs for `RenderingServer`](https://docs.godotengine.org/en/stable/classes/class_renderingserver.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`RenderingServer::singleton()`][RenderingServer::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct RenderingServer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RenderingServer`][crate::classes::RenderingServer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RenderingServer` methods](https://docs.godotengine.org/en/stable/classes/class_renderingserver.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRenderingServer: crate::obj::GodotClass < Base = RenderingServer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl RenderingServer { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"RenderingServer"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn texture_2d_create(&mut self, image: impl AsObjectArg < crate::classes::Image >,) -> Rid { + type CallSig = (Rid, ObjectArg < crate::classes::Image >); + let args = (image.as_object_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(504usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_2d_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_2d_layered_create(&mut self, layers: &Array < Gd < crate::classes::Image > >, layered_type: crate::classes::rendering_server::TextureLayeredType,) -> Rid { + type CallSig < 'a0, > = (Rid, RefArg < 'a0, Array < Gd < crate::classes::Image > > >, crate::classes::rendering_server::TextureLayeredType); + let args = (RefArg::new(layers), layered_type,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(505usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_2d_layered_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_3d_create(&mut self, format: crate::classes::image::Format, width: i32, height: i32, depth: i32, mipmaps: bool, data: &Array < Gd < crate::classes::Image > >,) -> Rid { + type CallSig < 'a0, > = (Rid, crate::classes::image::Format, i32, i32, i32, bool, RefArg < 'a0, Array < Gd < crate::classes::Image > > >); + let args = (format, width, height, depth, mipmaps, RefArg::new(data),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(506usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_3d_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_proxy_create(&mut self, base: Rid,) -> Rid { + type CallSig = (Rid, Rid); + let args = (base,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(507usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_proxy_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_2d_update(&mut self, texture: Rid, image: impl AsObjectArg < crate::classes::Image >, layer: i32,) { + type CallSig = ((), Rid, ObjectArg < crate::classes::Image >, i32); + let args = (texture, image.as_object_arg(), layer,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(508usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_2d_update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_3d_update(&mut self, texture: Rid, data: &Array < Gd < crate::classes::Image > >,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Array < Gd < crate::classes::Image > > >); + let args = (texture, RefArg::new(data),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(509usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_3d_update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_proxy_update(&mut self, texture: Rid, proxy_to: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (texture, proxy_to,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(510usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_proxy_update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_2d_placeholder_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(511usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_2d_placeholder_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_2d_layered_placeholder_create(&mut self, layered_type: crate::classes::rendering_server::TextureLayeredType,) -> Rid { + type CallSig = (Rid, crate::classes::rendering_server::TextureLayeredType); + let args = (layered_type,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(512usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_2d_layered_placeholder_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_3d_placeholder_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(513usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_3d_placeholder_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_2d_get(&self, texture: Rid,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >, Rid); + let args = (texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(514usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_2d_get", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_2d_layer_get(&self, texture: Rid, layer: i32,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >, Rid, i32); + let args = (texture, layer,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(515usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_2d_layer_get", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_3d_get(&self, texture: Rid,) -> Array < Gd < crate::classes::Image > > { + type CallSig = (Array < Gd < crate::classes::Image > >, Rid); + let args = (texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(516usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_3d_get", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_replace(&mut self, texture: Rid, by_texture: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (texture, by_texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(517usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_replace", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_set_size_override(&mut self, texture: Rid, width: i32, height: i32,) { + type CallSig = ((), Rid, i32, i32); + let args = (texture, width, height,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(518usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_set_size_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_set_path(&mut self, texture: Rid, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), Rid, CowArg < 'a0, GString >); + let args = (texture, path.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(519usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_set_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_get_path(&self, texture: Rid,) -> GString { + type CallSig = (GString, Rid); + let args = (texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(520usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_get_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_get_format(&self, texture: Rid,) -> crate::classes::image::Format { + type CallSig = (crate::classes::image::Format, Rid); + let args = (texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(521usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_get_format", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn texture_set_force_redraw_if_visible(&mut self, texture: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (texture, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(522usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_set_force_redraw_if_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn texture_rd_create_full(&mut self, rd_texture: Rid, layer_type: crate::classes::rendering_server::TextureLayeredType,) -> Rid { + type CallSig = (Rid, Rid, crate::classes::rendering_server::TextureLayeredType); + let args = (rd_texture, layer_type,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(523usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_rd_create", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::texture_rd_create_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn texture_rd_create(&mut self, rd_texture: Rid,) -> Rid { + self.texture_rd_create_ex(rd_texture,) . done() + } + #[inline] + pub fn texture_rd_create_ex < 'a > (&'a mut self, rd_texture: Rid,) -> ExTextureRdCreate < 'a > { + ExTextureRdCreate::new(self, rd_texture,) + } + pub(crate) fn texture_get_rd_texture_full(&self, texture: Rid, srgb: bool,) -> Rid { + type CallSig = (Rid, Rid, bool); + let args = (texture, srgb,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(524usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_get_rd_texture", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::texture_get_rd_texture_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn texture_get_rd_texture(&self, texture: Rid,) -> Rid { + self.texture_get_rd_texture_ex(texture,) . done() + } + #[inline] + pub fn texture_get_rd_texture_ex < 'a > (&'a self, texture: Rid,) -> ExTextureGetRdTexture < 'a > { + ExTextureGetRdTexture::new(self, texture,) + } + pub(crate) fn texture_get_native_handle_full(&self, texture: Rid, srgb: bool,) -> u64 { + type CallSig = (u64, Rid, bool); + let args = (texture, srgb,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(525usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "texture_get_native_handle", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::texture_get_native_handle_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn texture_get_native_handle(&self, texture: Rid,) -> u64 { + self.texture_get_native_handle_ex(texture,) . done() + } + #[inline] + pub fn texture_get_native_handle_ex < 'a > (&'a self, texture: Rid,) -> ExTextureGetNativeHandle < 'a > { + ExTextureGetNativeHandle::new(self, texture,) + } + pub fn shader_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(526usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "shader_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shader_set_code(&mut self, shader: Rid, code: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), Rid, CowArg < 'a0, GString >); + let args = (shader, code.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(527usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "shader_set_code", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shader_set_path_hint(&mut self, shader: Rid, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), Rid, CowArg < 'a0, GString >); + let args = (shader, path.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(528usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "shader_set_path_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shader_get_code(&self, shader: Rid,) -> GString { + type CallSig = (GString, Rid); + let args = (shader,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(529usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "shader_get_code", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shader_parameter_list(&self, shader: Rid,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >, Rid); + let args = (shader,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(530usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_shader_parameter_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn shader_get_parameter_default(&self, shader: Rid, name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, Rid, CowArg < 'a0, StringName >); + let args = (shader, name.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(531usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "shader_get_parameter_default", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn shader_set_default_texture_parameter_full(&mut self, shader: Rid, name: CowArg < StringName >, texture: Rid, index: i32,) { + type CallSig < 'a0, > = ((), Rid, CowArg < 'a0, StringName >, Rid, i32); + let args = (shader, name, texture, index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(532usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "shader_set_default_texture_parameter", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::shader_set_default_texture_parameter_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn shader_set_default_texture_parameter(&mut self, shader: Rid, name: impl AsArg < StringName >, texture: Rid,) { + self.shader_set_default_texture_parameter_ex(shader, name, texture,) . done() + } + #[inline] + pub fn shader_set_default_texture_parameter_ex < 'a > (&'a mut self, shader: Rid, name: impl AsArg < StringName > + 'a, texture: Rid,) -> ExShaderSetDefaultTextureParameter < 'a > { + ExShaderSetDefaultTextureParameter::new(self, shader, name, texture,) + } + pub(crate) fn shader_get_default_texture_parameter_full(&self, shader: Rid, name: CowArg < StringName >, index: i32,) -> Rid { + type CallSig < 'a0, > = (Rid, Rid, CowArg < 'a0, StringName >, i32); + let args = (shader, name, index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(533usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "shader_get_default_texture_parameter", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::shader_get_default_texture_parameter_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn shader_get_default_texture_parameter(&self, shader: Rid, name: impl AsArg < StringName >,) -> Rid { + self.shader_get_default_texture_parameter_ex(shader, name,) . done() + } + #[inline] + pub fn shader_get_default_texture_parameter_ex < 'a > (&'a self, shader: Rid, name: impl AsArg < StringName > + 'a,) -> ExShaderGetDefaultTextureParameter < 'a > { + ExShaderGetDefaultTextureParameter::new(self, shader, name,) + } + pub fn material_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(534usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "material_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn material_set_shader(&mut self, shader_material: Rid, shader: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (shader_material, shader,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(535usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "material_set_shader", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn material_set_param(&mut self, material: Rid, parameter: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), Rid, CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (material, parameter.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(536usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "material_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn material_get_param(&self, material: Rid, parameter: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, Rid, CowArg < 'a0, StringName >); + let args = (material, parameter.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(537usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "material_get_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn material_set_render_priority(&mut self, material: Rid, priority: i32,) { + type CallSig = ((), Rid, i32); + let args = (material, priority,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(538usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "material_set_render_priority", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn material_set_next_pass(&mut self, material: Rid, next_material: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (material, next_material,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(539usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "material_set_next_pass", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn mesh_create_from_surfaces_full(&mut self, surfaces: RefArg < Array < Dictionary > >, blend_shape_count: i32,) -> Rid { + type CallSig < 'a0, > = (Rid, RefArg < 'a0, Array < Dictionary > >, i32); + let args = (surfaces, blend_shape_count,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(540usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_create_from_surfaces", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::mesh_create_from_surfaces_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn mesh_create_from_surfaces(&mut self, surfaces: &Array < Dictionary >,) -> Rid { + self.mesh_create_from_surfaces_ex(surfaces,) . done() + } + #[inline] + pub fn mesh_create_from_surfaces_ex < 'a > (&'a mut self, surfaces: &'a Array < Dictionary >,) -> ExMeshCreateFromSurfaces < 'a > { + ExMeshCreateFromSurfaces::new(self, surfaces,) + } + pub fn mesh_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(541usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_get_format_offset(&self, format: crate::classes::rendering_server::ArrayFormat, vertex_count: i32, array_index: i32,) -> u32 { + type CallSig = (u32, crate::classes::rendering_server::ArrayFormat, i32, i32); + let args = (format, vertex_count, array_index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(542usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_get_format_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_get_format_vertex_stride(&self, format: crate::classes::rendering_server::ArrayFormat, vertex_count: i32,) -> u32 { + type CallSig = (u32, crate::classes::rendering_server::ArrayFormat, i32); + let args = (format, vertex_count,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(543usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_get_format_vertex_stride", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_get_format_normal_tangent_stride(&self, format: crate::classes::rendering_server::ArrayFormat, vertex_count: i32,) -> u32 { + type CallSig = (u32, crate::classes::rendering_server::ArrayFormat, i32); + let args = (format, vertex_count,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(544usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_get_format_normal_tangent_stride", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_get_format_attribute_stride(&self, format: crate::classes::rendering_server::ArrayFormat, vertex_count: i32,) -> u32 { + type CallSig = (u32, crate::classes::rendering_server::ArrayFormat, i32); + let args = (format, vertex_count,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(545usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_get_format_attribute_stride", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_get_format_skin_stride(&self, format: crate::classes::rendering_server::ArrayFormat, vertex_count: i32,) -> u32 { + type CallSig = (u32, crate::classes::rendering_server::ArrayFormat, i32); + let args = (format, vertex_count,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(546usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_get_format_skin_stride", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_add_surface(&mut self, mesh: Rid, surface: &Dictionary,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Dictionary >); + let args = (mesh, RefArg::new(surface),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(547usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_add_surface", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn mesh_add_surface_from_arrays_full(&mut self, mesh: Rid, primitive: crate::classes::rendering_server::PrimitiveType, arrays: RefArg < VariantArray >, blend_shapes: RefArg < VariantArray >, lods: RefArg < Dictionary >, compress_format: crate::classes::rendering_server::ArrayFormat,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), Rid, crate::classes::rendering_server::PrimitiveType, RefArg < 'a0, VariantArray >, RefArg < 'a1, VariantArray >, RefArg < 'a2, Dictionary >, crate::classes::rendering_server::ArrayFormat); + let args = (mesh, primitive, arrays, blend_shapes, lods, compress_format,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(548usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_add_surface_from_arrays", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::mesh_add_surface_from_arrays_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn mesh_add_surface_from_arrays(&mut self, mesh: Rid, primitive: crate::classes::rendering_server::PrimitiveType, arrays: &VariantArray,) { + self.mesh_add_surface_from_arrays_ex(mesh, primitive, arrays,) . done() + } + #[inline] + pub fn mesh_add_surface_from_arrays_ex < 'a > (&'a mut self, mesh: Rid, primitive: crate::classes::rendering_server::PrimitiveType, arrays: &'a VariantArray,) -> ExMeshAddSurfaceFromArrays < 'a > { + ExMeshAddSurfaceFromArrays::new(self, mesh, primitive, arrays,) + } + pub fn mesh_get_blend_shape_count(&self, mesh: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (mesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(549usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_get_blend_shape_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_set_blend_shape_mode(&mut self, mesh: Rid, mode: crate::classes::rendering_server::BlendShapeMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::BlendShapeMode); + let args = (mesh, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(550usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_set_blend_shape_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_get_blend_shape_mode(&self, mesh: Rid,) -> crate::classes::rendering_server::BlendShapeMode { + type CallSig = (crate::classes::rendering_server::BlendShapeMode, Rid); + let args = (mesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(551usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_get_blend_shape_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_set_material(&mut self, mesh: Rid, surface: i32, material: Rid,) { + type CallSig = ((), Rid, i32, Rid); + let args = (mesh, surface, material,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(552usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_get_material(&self, mesh: Rid, surface: i32,) -> Rid { + type CallSig = (Rid, Rid, i32); + let args = (mesh, surface,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(553usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_get_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_get_surface(&mut self, mesh: Rid, surface: i32,) -> Dictionary { + type CallSig = (Dictionary, Rid, i32); + let args = (mesh, surface,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(554usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_get_surface", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_get_arrays(&self, mesh: Rid, surface: i32,) -> VariantArray { + type CallSig = (VariantArray, Rid, i32); + let args = (mesh, surface,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(555usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_get_arrays", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_get_blend_shape_arrays(&self, mesh: Rid, surface: i32,) -> Array < VariantArray > { + type CallSig = (Array < VariantArray >, Rid, i32); + let args = (mesh, surface,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(556usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_get_blend_shape_arrays", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_get_surface_count(&self, mesh: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (mesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(557usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_get_surface_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_set_custom_aabb(&mut self, mesh: Rid, aabb: Aabb,) { + type CallSig = ((), Rid, Aabb); + let args = (mesh, aabb,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(558usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_set_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_get_custom_aabb(&self, mesh: Rid,) -> Aabb { + type CallSig = (Aabb, Rid); + let args = (mesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(559usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_get_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_clear(&mut self, mesh: Rid,) { + type CallSig = ((), Rid); + let args = (mesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(560usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_update_vertex_region(&mut self, mesh: Rid, surface: i32, offset: i32, data: &PackedByteArray,) { + type CallSig < 'a0, > = ((), Rid, i32, i32, RefArg < 'a0, PackedByteArray >); + let args = (mesh, surface, offset, RefArg::new(data),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(561usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_update_vertex_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_update_attribute_region(&mut self, mesh: Rid, surface: i32, offset: i32, data: &PackedByteArray,) { + type CallSig < 'a0, > = ((), Rid, i32, i32, RefArg < 'a0, PackedByteArray >); + let args = (mesh, surface, offset, RefArg::new(data),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(562usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_update_attribute_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_surface_update_skin_region(&mut self, mesh: Rid, surface: i32, offset: i32, data: &PackedByteArray,) { + type CallSig < 'a0, > = ((), Rid, i32, i32, RefArg < 'a0, PackedByteArray >); + let args = (mesh, surface, offset, RefArg::new(data),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(563usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_surface_update_skin_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn mesh_set_shadow_mesh(&mut self, mesh: Rid, shadow_mesh: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (mesh, shadow_mesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(564usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "mesh_set_shadow_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(565usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn multimesh_allocate_data_full(&mut self, multimesh: Rid, instances: i32, transform_format: crate::classes::rendering_server::MultimeshTransformFormat, color_format: bool, custom_data_format: bool,) { + type CallSig = ((), Rid, i32, crate::classes::rendering_server::MultimeshTransformFormat, bool, bool); + let args = (multimesh, instances, transform_format, color_format, custom_data_format,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(566usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_allocate_data", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::multimesh_allocate_data_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn multimesh_allocate_data(&mut self, multimesh: Rid, instances: i32, transform_format: crate::classes::rendering_server::MultimeshTransformFormat,) { + self.multimesh_allocate_data_ex(multimesh, instances, transform_format,) . done() + } + #[inline] + pub fn multimesh_allocate_data_ex < 'a > (&'a mut self, multimesh: Rid, instances: i32, transform_format: crate::classes::rendering_server::MultimeshTransformFormat,) -> ExMultimeshAllocateData < 'a > { + ExMultimeshAllocateData::new(self, multimesh, instances, transform_format,) + } + pub fn multimesh_get_instance_count(&self, multimesh: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (multimesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(567usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_get_instance_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_set_mesh(&mut self, multimesh: Rid, mesh: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (multimesh, mesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(568usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_instance_set_transform(&mut self, multimesh: Rid, index: i32, transform: Transform3D,) { + type CallSig = ((), Rid, i32, Transform3D); + let args = (multimesh, index, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(569usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_instance_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_instance_set_transform_2d(&mut self, multimesh: Rid, index: i32, transform: Transform2D,) { + type CallSig = ((), Rid, i32, Transform2D); + let args = (multimesh, index, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(570usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_instance_set_transform_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_instance_set_color(&mut self, multimesh: Rid, index: i32, color: Color,) { + type CallSig = ((), Rid, i32, Color); + let args = (multimesh, index, color,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(571usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_instance_set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_instance_set_custom_data(&mut self, multimesh: Rid, index: i32, custom_data: Color,) { + type CallSig = ((), Rid, i32, Color); + let args = (multimesh, index, custom_data,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(572usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_instance_set_custom_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_get_mesh(&self, multimesh: Rid,) -> Rid { + type CallSig = (Rid, Rid); + let args = (multimesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(573usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_get_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_get_aabb(&self, multimesh: Rid,) -> Aabb { + type CallSig = (Aabb, Rid); + let args = (multimesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(574usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_get_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_set_custom_aabb(&mut self, multimesh: Rid, aabb: Aabb,) { + type CallSig = ((), Rid, Aabb); + let args = (multimesh, aabb,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(575usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_set_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_get_custom_aabb(&self, multimesh: Rid,) -> Aabb { + type CallSig = (Aabb, Rid); + let args = (multimesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(576usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_get_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_instance_get_transform(&self, multimesh: Rid, index: i32,) -> Transform3D { + type CallSig = (Transform3D, Rid, i32); + let args = (multimesh, index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(577usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_instance_get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_instance_get_transform_2d(&self, multimesh: Rid, index: i32,) -> Transform2D { + type CallSig = (Transform2D, Rid, i32); + let args = (multimesh, index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(578usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_instance_get_transform_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_instance_get_color(&self, multimesh: Rid, index: i32,) -> Color { + type CallSig = (Color, Rid, i32); + let args = (multimesh, index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(579usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_instance_get_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_instance_get_custom_data(&self, multimesh: Rid, index: i32,) -> Color { + type CallSig = (Color, Rid, i32); + let args = (multimesh, index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(580usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_instance_get_custom_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_set_visible_instances(&mut self, multimesh: Rid, visible: i32,) { + type CallSig = ((), Rid, i32); + let args = (multimesh, visible,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(581usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_set_visible_instances", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_get_visible_instances(&self, multimesh: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (multimesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(582usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_get_visible_instances", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_set_buffer(&mut self, multimesh: Rid, buffer: &PackedFloat32Array,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, PackedFloat32Array >); + let args = (multimesh, RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(583usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_set_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn multimesh_get_buffer(&self, multimesh: Rid,) -> PackedFloat32Array { + type CallSig = (PackedFloat32Array, Rid); + let args = (multimesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(584usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "multimesh_get_buffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn skeleton_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(585usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "skeleton_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn skeleton_allocate_data_full(&mut self, skeleton: Rid, bones: i32, is_2d_skeleton: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (skeleton, bones, is_2d_skeleton,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(586usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "skeleton_allocate_data", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::skeleton_allocate_data_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn skeleton_allocate_data(&mut self, skeleton: Rid, bones: i32,) { + self.skeleton_allocate_data_ex(skeleton, bones,) . done() + } + #[inline] + pub fn skeleton_allocate_data_ex < 'a > (&'a mut self, skeleton: Rid, bones: i32,) -> ExSkeletonAllocateData < 'a > { + ExSkeletonAllocateData::new(self, skeleton, bones,) + } + pub fn skeleton_get_bone_count(&self, skeleton: Rid,) -> i32 { + type CallSig = (i32, Rid); + let args = (skeleton,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(587usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "skeleton_get_bone_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn skeleton_bone_set_transform(&mut self, skeleton: Rid, bone: i32, transform: Transform3D,) { + type CallSig = ((), Rid, i32, Transform3D); + let args = (skeleton, bone, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(588usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "skeleton_bone_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn skeleton_bone_get_transform(&self, skeleton: Rid, bone: i32,) -> Transform3D { + type CallSig = (Transform3D, Rid, i32); + let args = (skeleton, bone,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(589usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "skeleton_bone_get_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn skeleton_bone_set_transform_2d(&mut self, skeleton: Rid, bone: i32, transform: Transform2D,) { + type CallSig = ((), Rid, i32, Transform2D); + let args = (skeleton, bone, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(590usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "skeleton_bone_set_transform_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn skeleton_bone_get_transform_2d(&self, skeleton: Rid, bone: i32,) -> Transform2D { + type CallSig = (Transform2D, Rid, i32); + let args = (skeleton, bone,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(591usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "skeleton_bone_get_transform_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn skeleton_set_base_transform_2d(&mut self, skeleton: Rid, base_transform: Transform2D,) { + type CallSig = ((), Rid, Transform2D); + let args = (skeleton, base_transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(592usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "skeleton_set_base_transform_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn directional_light_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(593usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "directional_light_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn omni_light_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(594usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "omni_light_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn spot_light_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(595usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "spot_light_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_set_color(&mut self, light: Rid, color: Color,) { + type CallSig = ((), Rid, Color); + let args = (light, color,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(596usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_set_param(&mut self, light: Rid, param: crate::classes::rendering_server::LightParam, value: f32,) { + type CallSig = ((), Rid, crate::classes::rendering_server::LightParam, f32); + let args = (light, param, value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(597usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_set_param", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_set_shadow(&mut self, light: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (light, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(598usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_set_shadow", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_set_projector(&mut self, light: Rid, texture: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (light, texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(599usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_set_projector", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_set_negative(&mut self, light: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (light, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(600usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_set_negative", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_set_cull_mask(&mut self, light: Rid, mask: u32,) { + type CallSig = ((), Rid, u32); + let args = (light, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(601usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_set_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_set_distance_fade(&mut self, decal: Rid, enabled: bool, begin: f32, shadow: f32, length: f32,) { + type CallSig = ((), Rid, bool, f32, f32, f32); + let args = (decal, enabled, begin, shadow, length,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(602usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_set_distance_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_set_reverse_cull_face_mode(&mut self, light: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (light, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(603usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_set_reverse_cull_face_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_set_bake_mode(&mut self, light: Rid, bake_mode: crate::classes::rendering_server::LightBakeMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::LightBakeMode); + let args = (light, bake_mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(604usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_set_bake_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_set_max_sdfgi_cascade(&mut self, light: Rid, cascade: u32,) { + type CallSig = ((), Rid, u32); + let args = (light, cascade,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(605usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_set_max_sdfgi_cascade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_omni_set_shadow_mode(&mut self, light: Rid, mode: crate::classes::rendering_server::LightOmniShadowMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::LightOmniShadowMode); + let args = (light, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(606usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_omni_set_shadow_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_directional_set_shadow_mode(&mut self, light: Rid, mode: crate::classes::rendering_server::LightDirectionalShadowMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::LightDirectionalShadowMode); + let args = (light, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(607usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_directional_set_shadow_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_directional_set_blend_splits(&mut self, light: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (light, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(608usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_directional_set_blend_splits", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_directional_set_sky_mode(&mut self, light: Rid, mode: crate::classes::rendering_server::LightDirectionalSkyMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::LightDirectionalSkyMode); + let args = (light, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(609usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_directional_set_sky_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn light_projectors_set_filter(&mut self, filter: crate::classes::rendering_server::LightProjectorFilter,) { + type CallSig = ((), crate::classes::rendering_server::LightProjectorFilter); + let args = (filter,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(610usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "light_projectors_set_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn positional_soft_shadow_filter_set_quality(&mut self, quality: crate::classes::rendering_server::ShadowQuality,) { + type CallSig = ((), crate::classes::rendering_server::ShadowQuality); + let args = (quality,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(611usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "positional_soft_shadow_filter_set_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn directional_soft_shadow_filter_set_quality(&mut self, quality: crate::classes::rendering_server::ShadowQuality,) { + type CallSig = ((), crate::classes::rendering_server::ShadowQuality); + let args = (quality,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(612usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "directional_soft_shadow_filter_set_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn directional_shadow_atlas_set_size(&mut self, size: i32, is_16bits: bool,) { + type CallSig = ((), i32, bool); + let args = (size, is_16bits,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(613usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "directional_shadow_atlas_set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(614usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_update_mode(&mut self, probe: Rid, mode: crate::classes::rendering_server::ReflectionProbeUpdateMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ReflectionProbeUpdateMode); + let args = (probe, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(615usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_intensity(&mut self, probe: Rid, intensity: f32,) { + type CallSig = ((), Rid, f32); + let args = (probe, intensity,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(616usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_intensity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_ambient_mode(&mut self, probe: Rid, mode: crate::classes::rendering_server::ReflectionProbeAmbientMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ReflectionProbeAmbientMode); + let args = (probe, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(617usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_ambient_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_ambient_color(&mut self, probe: Rid, color: Color,) { + type CallSig = ((), Rid, Color); + let args = (probe, color,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(618usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_ambient_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_ambient_energy(&mut self, probe: Rid, energy: f32,) { + type CallSig = ((), Rid, f32); + let args = (probe, energy,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(619usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_ambient_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_max_distance(&mut self, probe: Rid, distance: f32,) { + type CallSig = ((), Rid, f32); + let args = (probe, distance,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(620usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_max_distance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_size(&mut self, probe: Rid, size: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (probe, size,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(621usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_origin_offset(&mut self, probe: Rid, offset: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (probe, offset,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(622usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_origin_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_as_interior(&mut self, probe: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (probe, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(623usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_as_interior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_enable_box_projection(&mut self, probe: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (probe, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(624usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_enable_box_projection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_enable_shadows(&mut self, probe: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (probe, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(625usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_enable_shadows", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_cull_mask(&mut self, probe: Rid, layers: u32,) { + type CallSig = ((), Rid, u32); + let args = (probe, layers,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(626usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_reflection_mask(&mut self, probe: Rid, layers: u32,) { + type CallSig = ((), Rid, u32); + let args = (probe, layers,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(627usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_reflection_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_resolution(&mut self, probe: Rid, resolution: i32,) { + type CallSig = ((), Rid, i32); + let args = (probe, resolution,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(628usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_resolution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reflection_probe_set_mesh_lod_threshold(&mut self, probe: Rid, pixels: f32,) { + type CallSig = ((), Rid, f32); + let args = (probe, pixels,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(629usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "reflection_probe_set_mesh_lod_threshold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decal_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(630usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "decal_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decal_set_size(&mut self, decal: Rid, size: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (decal, size,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(631usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "decal_set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decal_set_texture(&mut self, decal: Rid, type_: crate::classes::rendering_server::DecalTexture, texture: Rid,) { + type CallSig = ((), Rid, crate::classes::rendering_server::DecalTexture, Rid); + let args = (decal, type_, texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(632usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "decal_set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decal_set_emission_energy(&mut self, decal: Rid, energy: f32,) { + type CallSig = ((), Rid, f32); + let args = (decal, energy,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(633usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "decal_set_emission_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decal_set_albedo_mix(&mut self, decal: Rid, albedo_mix: f32,) { + type CallSig = ((), Rid, f32); + let args = (decal, albedo_mix,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(634usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "decal_set_albedo_mix", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decal_set_modulate(&mut self, decal: Rid, color: Color,) { + type CallSig = ((), Rid, Color); + let args = (decal, color,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(635usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "decal_set_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decal_set_cull_mask(&mut self, decal: Rid, mask: u32,) { + type CallSig = ((), Rid, u32); + let args = (decal, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(636usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "decal_set_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decal_set_distance_fade(&mut self, decal: Rid, enabled: bool, begin: f32, length: f32,) { + type CallSig = ((), Rid, bool, f32, f32); + let args = (decal, enabled, begin, length,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(637usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "decal_set_distance_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decal_set_fade(&mut self, decal: Rid, above: f32, below: f32,) { + type CallSig = ((), Rid, f32, f32); + let args = (decal, above, below,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(638usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "decal_set_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decal_set_normal_fade(&mut self, decal: Rid, fade: f32,) { + type CallSig = ((), Rid, f32); + let args = (decal, fade,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(639usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "decal_set_normal_fade", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn decals_set_filter(&mut self, filter: crate::classes::rendering_server::DecalFilter,) { + type CallSig = ((), crate::classes::rendering_server::DecalFilter); + let args = (filter,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(640usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "decals_set_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn gi_set_use_half_resolution(&mut self, half_resolution: bool,) { + type CallSig = ((), bool); + let args = (half_resolution,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(641usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "gi_set_use_half_resolution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(642usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_allocate_data(&mut self, voxel_gi: Rid, to_cell_xform: Transform3D, aabb: Aabb, octree_size: Vector3i, octree_cells: &PackedByteArray, data_cells: &PackedByteArray, distance_field: &PackedByteArray, level_counts: &PackedInt32Array,) { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = ((), Rid, Transform3D, Aabb, Vector3i, RefArg < 'a0, PackedByteArray >, RefArg < 'a1, PackedByteArray >, RefArg < 'a2, PackedByteArray >, RefArg < 'a3, PackedInt32Array >); + let args = (voxel_gi, to_cell_xform, aabb, octree_size, RefArg::new(octree_cells), RefArg::new(data_cells), RefArg::new(distance_field), RefArg::new(level_counts),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(643usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_allocate_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_get_octree_size(&self, voxel_gi: Rid,) -> Vector3i { + type CallSig = (Vector3i, Rid); + let args = (voxel_gi,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(644usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_get_octree_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_get_octree_cells(&self, voxel_gi: Rid,) -> PackedByteArray { + type CallSig = (PackedByteArray, Rid); + let args = (voxel_gi,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(645usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_get_octree_cells", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_get_data_cells(&self, voxel_gi: Rid,) -> PackedByteArray { + type CallSig = (PackedByteArray, Rid); + let args = (voxel_gi,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(646usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_get_data_cells", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_get_distance_field(&self, voxel_gi: Rid,) -> PackedByteArray { + type CallSig = (PackedByteArray, Rid); + let args = (voxel_gi,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(647usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_get_distance_field", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_get_level_counts(&self, voxel_gi: Rid,) -> PackedInt32Array { + type CallSig = (PackedInt32Array, Rid); + let args = (voxel_gi,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(648usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_get_level_counts", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_get_to_cell_xform(&self, voxel_gi: Rid,) -> Transform3D { + type CallSig = (Transform3D, Rid); + let args = (voxel_gi,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(649usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_get_to_cell_xform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_set_dynamic_range(&mut self, voxel_gi: Rid, range: f32,) { + type CallSig = ((), Rid, f32); + let args = (voxel_gi, range,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(650usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_set_dynamic_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_set_propagation(&mut self, voxel_gi: Rid, amount: f32,) { + type CallSig = ((), Rid, f32); + let args = (voxel_gi, amount,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(651usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_set_propagation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_set_energy(&mut self, voxel_gi: Rid, energy: f32,) { + type CallSig = ((), Rid, f32); + let args = (voxel_gi, energy,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(652usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_set_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_set_baked_exposure_normalization(&mut self, voxel_gi: Rid, baked_exposure: f32,) { + type CallSig = ((), Rid, f32); + let args = (voxel_gi, baked_exposure,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(653usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_set_baked_exposure_normalization", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_set_bias(&mut self, voxel_gi: Rid, bias: f32,) { + type CallSig = ((), Rid, f32); + let args = (voxel_gi, bias,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(654usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_set_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_set_normal_bias(&mut self, voxel_gi: Rid, bias: f32,) { + type CallSig = ((), Rid, f32); + let args = (voxel_gi, bias,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(655usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_set_normal_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_set_interior(&mut self, voxel_gi: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (voxel_gi, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(656usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_set_interior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_set_use_two_bounces(&mut self, voxel_gi: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (voxel_gi, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(657usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_set_use_two_bounces", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn voxel_gi_set_quality(&mut self, quality: crate::classes::rendering_server::VoxelGiQuality,) { + type CallSig = ((), crate::classes::rendering_server::VoxelGiQuality); + let args = (quality,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(658usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "voxel_gi_set_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(659usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "lightmap_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_set_textures(&mut self, lightmap: Rid, light: Rid, uses_sh: bool,) { + type CallSig = ((), Rid, Rid, bool); + let args = (lightmap, light, uses_sh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(660usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "lightmap_set_textures", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_set_probe_bounds(&mut self, lightmap: Rid, bounds: Aabb,) { + type CallSig = ((), Rid, Aabb); + let args = (lightmap, bounds,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(661usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "lightmap_set_probe_bounds", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_set_probe_interior(&mut self, lightmap: Rid, interior: bool,) { + type CallSig = ((), Rid, bool); + let args = (lightmap, interior,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(662usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "lightmap_set_probe_interior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_set_probe_capture_data(&mut self, lightmap: Rid, points: &PackedVector3Array, point_sh: &PackedColorArray, tetrahedra: &PackedInt32Array, bsp_tree: &PackedInt32Array,) { + type CallSig < 'a0, 'a1, 'a2, 'a3, > = ((), Rid, RefArg < 'a0, PackedVector3Array >, RefArg < 'a1, PackedColorArray >, RefArg < 'a2, PackedInt32Array >, RefArg < 'a3, PackedInt32Array >); + let args = (lightmap, RefArg::new(points), RefArg::new(point_sh), RefArg::new(tetrahedra), RefArg::new(bsp_tree),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(663usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "lightmap_set_probe_capture_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_get_probe_capture_points(&self, lightmap: Rid,) -> PackedVector3Array { + type CallSig = (PackedVector3Array, Rid); + let args = (lightmap,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(664usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "lightmap_get_probe_capture_points", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_get_probe_capture_sh(&self, lightmap: Rid,) -> PackedColorArray { + type CallSig = (PackedColorArray, Rid); + let args = (lightmap,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(665usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "lightmap_get_probe_capture_sh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_get_probe_capture_tetrahedra(&self, lightmap: Rid,) -> PackedInt32Array { + type CallSig = (PackedInt32Array, Rid); + let args = (lightmap,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(666usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "lightmap_get_probe_capture_tetrahedra", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_get_probe_capture_bsp_tree(&self, lightmap: Rid,) -> PackedInt32Array { + type CallSig = (PackedInt32Array, Rid); + let args = (lightmap,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(667usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "lightmap_get_probe_capture_bsp_tree", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_set_baked_exposure_normalization(&mut self, lightmap: Rid, baked_exposure: f32,) { + type CallSig = ((), Rid, f32); + let args = (lightmap, baked_exposure,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(668usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "lightmap_set_baked_exposure_normalization", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn lightmap_set_probe_capture_update_speed(&mut self, speed: f32,) { + type CallSig = ((), f32); + let args = (speed,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(669usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "lightmap_set_probe_capture_update_speed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(670usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_mode(&mut self, particles: Rid, mode: crate::classes::rendering_server::ParticlesMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ParticlesMode); + let args = (particles, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(671usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_emitting(&mut self, particles: Rid, emitting: bool,) { + type CallSig = ((), Rid, bool); + let args = (particles, emitting,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(672usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_emitting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_get_emitting(&mut self, particles: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (particles,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(673usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_get_emitting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_amount(&mut self, particles: Rid, amount: i32,) { + type CallSig = ((), Rid, i32); + let args = (particles, amount,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(674usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_amount", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_amount_ratio(&mut self, particles: Rid, ratio: f32,) { + type CallSig = ((), Rid, f32); + let args = (particles, ratio,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(675usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_amount_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_lifetime(&mut self, particles: Rid, lifetime: f64,) { + type CallSig = ((), Rid, f64); + let args = (particles, lifetime,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(676usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_lifetime", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_one_shot(&mut self, particles: Rid, one_shot: bool,) { + type CallSig = ((), Rid, bool); + let args = (particles, one_shot,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(677usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_one_shot", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_pre_process_time(&mut self, particles: Rid, time: f64,) { + type CallSig = ((), Rid, f64); + let args = (particles, time,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(678usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_pre_process_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_explosiveness_ratio(&mut self, particles: Rid, ratio: f32,) { + type CallSig = ((), Rid, f32); + let args = (particles, ratio,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(679usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_explosiveness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_randomness_ratio(&mut self, particles: Rid, ratio: f32,) { + type CallSig = ((), Rid, f32); + let args = (particles, ratio,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(680usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_randomness_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_interp_to_end(&mut self, particles: Rid, factor: f32,) { + type CallSig = ((), Rid, f32); + let args = (particles, factor,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(681usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_interp_to_end", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_emitter_velocity(&mut self, particles: Rid, velocity: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (particles, velocity,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(682usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_emitter_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_custom_aabb(&mut self, particles: Rid, aabb: Aabb,) { + type CallSig = ((), Rid, Aabb); + let args = (particles, aabb,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(683usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_speed_scale(&mut self, particles: Rid, scale: f64,) { + type CallSig = ((), Rid, f64); + let args = (particles, scale,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(684usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_speed_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_use_local_coordinates(&mut self, particles: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (particles, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(685usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_use_local_coordinates", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_process_material(&mut self, particles: Rid, material: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (particles, material,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(686usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_process_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_fixed_fps(&mut self, particles: Rid, fps: i32,) { + type CallSig = ((), Rid, i32); + let args = (particles, fps,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(687usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_fixed_fps", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_interpolate(&mut self, particles: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (particles, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(688usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_interpolate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_fractional_delta(&mut self, particles: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (particles, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(689usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_fractional_delta", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_collision_base_size(&mut self, particles: Rid, size: f32,) { + type CallSig = ((), Rid, f32); + let args = (particles, size,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(690usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_collision_base_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_transform_align(&mut self, particles: Rid, align: crate::classes::rendering_server::ParticlesTransformAlign,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ParticlesTransformAlign); + let args = (particles, align,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(691usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_transform_align", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_trails(&mut self, particles: Rid, enable: bool, length_sec: f32,) { + type CallSig = ((), Rid, bool, f32); + let args = (particles, enable, length_sec,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(692usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_trails", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_trail_bind_poses(&mut self, particles: Rid, bind_poses: &Array < Transform3D >,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Array < Transform3D > >); + let args = (particles, RefArg::new(bind_poses),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(693usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_trail_bind_poses", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_is_inactive(&mut self, particles: Rid,) -> bool { + type CallSig = (bool, Rid); + let args = (particles,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(694usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_is_inactive", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_request_process(&mut self, particles: Rid,) { + type CallSig = ((), Rid); + let args = (particles,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(695usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_request_process", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_restart(&mut self, particles: Rid,) { + type CallSig = ((), Rid); + let args = (particles,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(696usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_restart", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_subemitter(&mut self, particles: Rid, subemitter_particles: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (particles, subemitter_particles,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(697usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_subemitter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_emit(&mut self, particles: Rid, transform: Transform3D, velocity: Vector3, color: Color, custom: Color, emit_flags: u32,) { + type CallSig = ((), Rid, Transform3D, Vector3, Color, Color, u32); + let args = (particles, transform, velocity, color, custom, emit_flags,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(698usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_emit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_draw_order(&mut self, particles: Rid, order: crate::classes::rendering_server::ParticlesDrawOrder,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ParticlesDrawOrder); + let args = (particles, order,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(699usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_draw_order", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_draw_passes(&mut self, particles: Rid, count: i32,) { + type CallSig = ((), Rid, i32); + let args = (particles, count,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(700usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_draw_passes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_draw_pass_mesh(&mut self, particles: Rid, pass: i32, mesh: Rid,) { + type CallSig = ((), Rid, i32, Rid); + let args = (particles, pass, mesh,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(701usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_draw_pass_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_get_current_aabb(&mut self, particles: Rid,) -> Aabb { + type CallSig = (Aabb, Rid); + let args = (particles,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(702usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_get_current_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_set_emission_transform(&mut self, particles: Rid, transform: Transform3D,) { + type CallSig = ((), Rid, Transform3D); + let args = (particles, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(703usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_set_emission_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_collision_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(704usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_collision_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_collision_set_collision_type(&mut self, particles_collision: Rid, type_: crate::classes::rendering_server::ParticlesCollisionType,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ParticlesCollisionType); + let args = (particles_collision, type_,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(705usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_collision_set_collision_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_collision_set_cull_mask(&mut self, particles_collision: Rid, mask: u32,) { + type CallSig = ((), Rid, u32); + let args = (particles_collision, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(706usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_collision_set_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_collision_set_sphere_radius(&mut self, particles_collision: Rid, radius: f32,) { + type CallSig = ((), Rid, f32); + let args = (particles_collision, radius,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(707usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_collision_set_sphere_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_collision_set_box_extents(&mut self, particles_collision: Rid, extents: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (particles_collision, extents,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(708usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_collision_set_box_extents", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_collision_set_attractor_strength(&mut self, particles_collision: Rid, strength: f32,) { + type CallSig = ((), Rid, f32); + let args = (particles_collision, strength,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(709usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_collision_set_attractor_strength", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_collision_set_attractor_directionality(&mut self, particles_collision: Rid, amount: f32,) { + type CallSig = ((), Rid, f32); + let args = (particles_collision, amount,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(710usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_collision_set_attractor_directionality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_collision_set_attractor_attenuation(&mut self, particles_collision: Rid, curve: f32,) { + type CallSig = ((), Rid, f32); + let args = (particles_collision, curve,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(711usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_collision_set_attractor_attenuation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_collision_set_field_texture(&mut self, particles_collision: Rid, texture: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (particles_collision, texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(712usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_collision_set_field_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_collision_height_field_update(&mut self, particles_collision: Rid,) { + type CallSig = ((), Rid); + let args = (particles_collision,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(713usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_collision_height_field_update", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn particles_collision_set_height_field_resolution(&mut self, particles_collision: Rid, resolution: crate::classes::rendering_server::ParticlesCollisionHeightfieldResolution,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ParticlesCollisionHeightfieldResolution); + let args = (particles_collision, resolution,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(714usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "particles_collision_set_height_field_resolution", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn fog_volume_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(715usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "fog_volume_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn fog_volume_set_shape(&mut self, fog_volume: Rid, shape: crate::classes::rendering_server::FogVolumeShape,) { + type CallSig = ((), Rid, crate::classes::rendering_server::FogVolumeShape); + let args = (fog_volume, shape,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(716usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "fog_volume_set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn fog_volume_set_size(&mut self, fog_volume: Rid, size: Vector3,) { + type CallSig = ((), Rid, Vector3); + let args = (fog_volume, size,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(717usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "fog_volume_set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn fog_volume_set_material(&mut self, fog_volume: Rid, material: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (fog_volume, material,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(718usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "fog_volume_set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn visibility_notifier_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(719usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "visibility_notifier_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn visibility_notifier_set_aabb(&mut self, notifier: Rid, aabb: Aabb,) { + type CallSig = ((), Rid, Aabb); + let args = (notifier, aabb,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(720usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "visibility_notifier_set_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn visibility_notifier_set_callbacks(&mut self, notifier: Rid, enter_callable: &Callable, exit_callable: &Callable,) { + type CallSig < 'a0, 'a1, > = ((), Rid, RefArg < 'a0, Callable >, RefArg < 'a1, Callable >); + let args = (notifier, RefArg::new(enter_callable), RefArg::new(exit_callable),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(721usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "visibility_notifier_set_callbacks", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn occluder_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(722usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "occluder_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn occluder_set_mesh(&mut self, occluder: Rid, vertices: &PackedVector3Array, indices: &PackedInt32Array,) { + type CallSig < 'a0, 'a1, > = ((), Rid, RefArg < 'a0, PackedVector3Array >, RefArg < 'a1, PackedInt32Array >); + let args = (occluder, RefArg::new(vertices), RefArg::new(indices),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(723usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "occluder_set_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(724usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_set_perspective(&mut self, camera: Rid, fovy_degrees: f32, z_near: f32, z_far: f32,) { + type CallSig = ((), Rid, f32, f32, f32); + let args = (camera, fovy_degrees, z_near, z_far,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(725usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_set_perspective", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_set_orthogonal(&mut self, camera: Rid, size: f32, z_near: f32, z_far: f32,) { + type CallSig = ((), Rid, f32, f32, f32); + let args = (camera, size, z_near, z_far,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(726usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_set_orthogonal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_set_frustum(&mut self, camera: Rid, size: f32, offset: Vector2, z_near: f32, z_far: f32,) { + type CallSig = ((), Rid, f32, Vector2, f32, f32); + let args = (camera, size, offset, z_near, z_far,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(727usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_set_frustum", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_set_transform(&mut self, camera: Rid, transform: Transform3D,) { + type CallSig = ((), Rid, Transform3D); + let args = (camera, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(728usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_set_cull_mask(&mut self, camera: Rid, layers: u32,) { + type CallSig = ((), Rid, u32); + let args = (camera, layers,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(729usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_set_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_set_environment(&mut self, camera: Rid, env: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (camera, env,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(730usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_set_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_set_camera_attributes(&mut self, camera: Rid, effects: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (camera, effects,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(731usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_set_camera_attributes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_set_compositor(&mut self, camera: Rid, compositor: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (camera, compositor,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(732usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_set_compositor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_set_use_vertical_aspect(&mut self, camera: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (camera, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(733usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_set_use_vertical_aspect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(734usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_use_xr(&mut self, viewport: Rid, use_xr: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, use_xr,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(735usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_use_xr", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_size(&mut self, viewport: Rid, width: i32, height: i32,) { + type CallSig = ((), Rid, i32, i32); + let args = (viewport, width, height,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(736usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_active(&mut self, viewport: Rid, active: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, active,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(737usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_parent_viewport(&mut self, viewport: Rid, parent_viewport: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (viewport, parent_viewport,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(738usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_parent_viewport", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn viewport_attach_to_screen_full(&mut self, viewport: Rid, rect: Rect2, screen: i32,) { + type CallSig = ((), Rid, Rect2, i32); + let args = (viewport, rect, screen,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(739usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_attach_to_screen", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::viewport_attach_to_screen_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn viewport_attach_to_screen(&mut self, viewport: Rid,) { + self.viewport_attach_to_screen_ex(viewport,) . done() + } + #[inline] + pub fn viewport_attach_to_screen_ex < 'a > (&'a mut self, viewport: Rid,) -> ExViewportAttachToScreen < 'a > { + ExViewportAttachToScreen::new(self, viewport,) + } + pub fn viewport_set_render_direct_to_screen(&mut self, viewport: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(740usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_render_direct_to_screen", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_canvas_cull_mask(&mut self, viewport: Rid, canvas_cull_mask: u32,) { + type CallSig = ((), Rid, u32); + let args = (viewport, canvas_cull_mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(741usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_canvas_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_scaling_3d_mode(&mut self, viewport: Rid, scaling_3d_mode: crate::classes::rendering_server::ViewportScaling3DMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ViewportScaling3DMode); + let args = (viewport, scaling_3d_mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(742usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_scaling_3d_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_scaling_3d_scale(&mut self, viewport: Rid, scale: f32,) { + type CallSig = ((), Rid, f32); + let args = (viewport, scale,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(743usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_scaling_3d_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_fsr_sharpness(&mut self, viewport: Rid, sharpness: f32,) { + type CallSig = ((), Rid, f32); + let args = (viewport, sharpness,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(744usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_fsr_sharpness", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_texture_mipmap_bias(&mut self, viewport: Rid, mipmap_bias: f32,) { + type CallSig = ((), Rid, f32); + let args = (viewport, mipmap_bias,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(745usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_texture_mipmap_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_update_mode(&mut self, viewport: Rid, update_mode: crate::classes::rendering_server::ViewportUpdateMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ViewportUpdateMode); + let args = (viewport, update_mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(746usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_get_update_mode(&self, viewport: Rid,) -> crate::classes::rendering_server::ViewportUpdateMode { + type CallSig = (crate::classes::rendering_server::ViewportUpdateMode, Rid); + let args = (viewport,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(747usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_get_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_clear_mode(&mut self, viewport: Rid, clear_mode: crate::classes::rendering_server::ViewportClearMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ViewportClearMode); + let args = (viewport, clear_mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(748usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_clear_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_get_render_target(&self, viewport: Rid,) -> Rid { + type CallSig = (Rid, Rid); + let args = (viewport,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(749usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_get_render_target", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_get_texture(&self, viewport: Rid,) -> Rid { + type CallSig = (Rid, Rid); + let args = (viewport,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(750usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_get_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_disable_3d(&mut self, viewport: Rid, disable: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, disable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(751usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_disable_3d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_disable_2d(&mut self, viewport: Rid, disable: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, disable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(752usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_disable_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_environment_mode(&mut self, viewport: Rid, mode: crate::classes::rendering_server::ViewportEnvironmentMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ViewportEnvironmentMode); + let args = (viewport, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(753usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_environment_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_attach_camera(&mut self, viewport: Rid, camera: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (viewport, camera,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(754usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_attach_camera", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_scenario(&mut self, viewport: Rid, scenario: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (viewport, scenario,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(755usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_scenario", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_attach_canvas(&mut self, viewport: Rid, canvas: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (viewport, canvas,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(756usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_attach_canvas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_remove_canvas(&mut self, viewport: Rid, canvas: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (viewport, canvas,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(757usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_remove_canvas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_snap_2d_transforms_to_pixel(&mut self, viewport: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(758usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_snap_2d_transforms_to_pixel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_snap_2d_vertices_to_pixel(&mut self, viewport: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(759usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_snap_2d_vertices_to_pixel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_default_canvas_item_texture_filter(&mut self, viewport: Rid, filter: crate::classes::rendering_server::CanvasItemTextureFilter,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasItemTextureFilter); + let args = (viewport, filter,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(760usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_default_canvas_item_texture_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_default_canvas_item_texture_repeat(&mut self, viewport: Rid, repeat: crate::classes::rendering_server::CanvasItemTextureRepeat,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasItemTextureRepeat); + let args = (viewport, repeat,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(761usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_default_canvas_item_texture_repeat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_canvas_transform(&mut self, viewport: Rid, canvas: Rid, offset: Transform2D,) { + type CallSig = ((), Rid, Rid, Transform2D); + let args = (viewport, canvas, offset,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(762usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_canvas_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_canvas_stacking(&mut self, viewport: Rid, canvas: Rid, layer: i32, sublayer: i32,) { + type CallSig = ((), Rid, Rid, i32, i32); + let args = (viewport, canvas, layer, sublayer,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(763usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_canvas_stacking", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_transparent_background(&mut self, viewport: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(764usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_transparent_background", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_global_canvas_transform(&mut self, viewport: Rid, transform: Transform2D,) { + type CallSig = ((), Rid, Transform2D); + let args = (viewport, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(765usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_global_canvas_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_sdf_oversize_and_scale(&mut self, viewport: Rid, oversize: crate::classes::rendering_server::ViewportSdfOversize, scale: crate::classes::rendering_server::ViewportSdfScale,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ViewportSdfOversize, crate::classes::rendering_server::ViewportSdfScale); + let args = (viewport, oversize, scale,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(766usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_sdf_oversize_and_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn viewport_set_positional_shadow_atlas_size_full(&mut self, viewport: Rid, size: i32, use_16_bits: bool,) { + type CallSig = ((), Rid, i32, bool); + let args = (viewport, size, use_16_bits,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(767usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_positional_shadow_atlas_size", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::viewport_set_positional_shadow_atlas_size_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn viewport_set_positional_shadow_atlas_size(&mut self, viewport: Rid, size: i32,) { + self.viewport_set_positional_shadow_atlas_size_ex(viewport, size,) . done() + } + #[inline] + pub fn viewport_set_positional_shadow_atlas_size_ex < 'a > (&'a mut self, viewport: Rid, size: i32,) -> ExViewportSetPositionalShadowAtlasSize < 'a > { + ExViewportSetPositionalShadowAtlasSize::new(self, viewport, size,) + } + pub fn viewport_set_positional_shadow_atlas_quadrant_subdivision(&mut self, viewport: Rid, quadrant: i32, subdivision: i32,) { + type CallSig = ((), Rid, i32, i32); + let args = (viewport, quadrant, subdivision,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(768usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_positional_shadow_atlas_quadrant_subdivision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_msaa_3d(&mut self, viewport: Rid, msaa: crate::classes::rendering_server::ViewportMsaa,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ViewportMsaa); + let args = (viewport, msaa,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(769usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_msaa_3d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_msaa_2d(&mut self, viewport: Rid, msaa: crate::classes::rendering_server::ViewportMsaa,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ViewportMsaa); + let args = (viewport, msaa,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(770usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_msaa_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_use_hdr_2d(&mut self, viewport: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(771usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_use_hdr_2d", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_screen_space_aa(&mut self, viewport: Rid, mode: crate::classes::rendering_server::ViewportScreenSpaceAa,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ViewportScreenSpaceAa); + let args = (viewport, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(772usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_screen_space_aa", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_use_taa(&mut self, viewport: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(773usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_use_taa", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_use_debanding(&mut self, viewport: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(774usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_use_debanding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_use_occlusion_culling(&mut self, viewport: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(775usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_use_occlusion_culling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_occlusion_rays_per_thread(&mut self, rays_per_thread: i32,) { + type CallSig = ((), i32); + let args = (rays_per_thread,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(776usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_occlusion_rays_per_thread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_occlusion_culling_build_quality(&mut self, quality: crate::classes::rendering_server::ViewportOcclusionCullingBuildQuality,) { + type CallSig = ((), crate::classes::rendering_server::ViewportOcclusionCullingBuildQuality); + let args = (quality,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(777usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_occlusion_culling_build_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_get_render_info(&mut self, viewport: Rid, type_: crate::classes::rendering_server::ViewportRenderInfoType, info: crate::classes::rendering_server::ViewportRenderInfo,) -> i32 { + type CallSig = (i32, Rid, crate::classes::rendering_server::ViewportRenderInfoType, crate::classes::rendering_server::ViewportRenderInfo); + let args = (viewport, type_, info,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(778usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_get_render_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_debug_draw(&mut self, viewport: Rid, draw: crate::classes::rendering_server::ViewportDebugDraw,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ViewportDebugDraw); + let args = (viewport, draw,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(779usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_debug_draw", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_measure_render_time(&mut self, viewport: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (viewport, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(780usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_measure_render_time", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_get_measured_render_time_cpu(&self, viewport: Rid,) -> f64 { + type CallSig = (f64, Rid); + let args = (viewport,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(781usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_get_measured_render_time_cpu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_get_measured_render_time_gpu(&self, viewport: Rid,) -> f64 { + type CallSig = (f64, Rid); + let args = (viewport,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(782usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_get_measured_render_time_gpu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_vrs_mode(&mut self, viewport: Rid, mode: crate::classes::rendering_server::ViewportVrsMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ViewportVrsMode); + let args = (viewport, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(783usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_vrs_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_vrs_update_mode(&mut self, viewport: Rid, mode: crate::classes::rendering_server::ViewportVrsUpdateMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ViewportVrsUpdateMode); + let args = (viewport, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(784usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_vrs_update_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn viewport_set_vrs_texture(&mut self, viewport: Rid, texture: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (viewport, texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(785usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "viewport_set_vrs_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sky_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(786usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "sky_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sky_set_radiance_size(&mut self, sky: Rid, radiance_size: i32,) { + type CallSig = ((), Rid, i32); + let args = (sky, radiance_size,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(787usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "sky_set_radiance_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sky_set_mode(&mut self, sky: Rid, mode: crate::classes::rendering_server::SkyMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::SkyMode); + let args = (sky, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(788usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "sky_set_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sky_set_material(&mut self, sky: Rid, material: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (sky, material,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(789usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "sky_set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sky_bake_panorama(&mut self, sky: Rid, energy: f32, bake_irradiance: bool, size: Vector2i,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >, Rid, f32, bool, Vector2i); + let args = (sky, energy, bake_irradiance, size,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(790usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "sky_bake_panorama", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compositor_effect_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(791usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "compositor_effect_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compositor_effect_set_enabled(&mut self, effect: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (effect, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(792usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "compositor_effect_set_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compositor_effect_set_callback(&mut self, effect: Rid, callback_type: crate::classes::rendering_server::CompositorEffectCallbackType, callback: &Callable,) { + type CallSig < 'a0, > = ((), Rid, crate::classes::rendering_server::CompositorEffectCallbackType, RefArg < 'a0, Callable >); + let args = (effect, callback_type, RefArg::new(callback),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(793usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "compositor_effect_set_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compositor_effect_set_flag(&mut self, effect: Rid, flag: crate::classes::rendering_server::CompositorEffectFlags, set: bool,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CompositorEffectFlags, bool); + let args = (effect, flag, set,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(794usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "compositor_effect_set_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compositor_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(795usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "compositor_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn compositor_set_compositor_effects(&mut self, compositor: Rid, effects: &Array < Rid >,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, Array < Rid > >); + let args = (compositor, RefArg::new(effects),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(796usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "compositor_set_compositor_effects", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(797usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_background(&mut self, env: Rid, bg: crate::classes::rendering_server::EnvironmentBg,) { + type CallSig = ((), Rid, crate::classes::rendering_server::EnvironmentBg); + let args = (env, bg,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(798usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_background", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_sky(&mut self, env: Rid, sky: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (env, sky,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(799usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_sky", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_sky_custom_fov(&mut self, env: Rid, scale: f32,) { + type CallSig = ((), Rid, f32); + let args = (env, scale,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(800usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_sky_custom_fov", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_sky_orientation(&mut self, env: Rid, orientation: Basis,) { + type CallSig = ((), Rid, Basis); + let args = (env, orientation,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(801usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_sky_orientation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_bg_color(&mut self, env: Rid, color: Color,) { + type CallSig = ((), Rid, Color); + let args = (env, color,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(802usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_bg_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_bg_energy(&mut self, env: Rid, multiplier: f32, exposure_value: f32,) { + type CallSig = ((), Rid, f32, f32); + let args = (env, multiplier, exposure_value,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(803usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_bg_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_canvas_max_layer(&mut self, env: Rid, max_layer: i32,) { + type CallSig = ((), Rid, i32); + let args = (env, max_layer,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(804usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_canvas_max_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn environment_set_ambient_light_full(&mut self, env: Rid, color: Color, ambient: crate::classes::rendering_server::EnvironmentAmbientSource, energy: f32, sky_contibution: f32, reflection_source: crate::classes::rendering_server::EnvironmentReflectionSource,) { + type CallSig = ((), Rid, Color, crate::classes::rendering_server::EnvironmentAmbientSource, f32, f32, crate::classes::rendering_server::EnvironmentReflectionSource); + let args = (env, color, ambient, energy, sky_contibution, reflection_source,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(805usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_ambient_light", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::environment_set_ambient_light_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn environment_set_ambient_light(&mut self, env: Rid, color: Color,) { + self.environment_set_ambient_light_ex(env, color,) . done() + } + #[inline] + pub fn environment_set_ambient_light_ex < 'a > (&'a mut self, env: Rid, color: Color,) -> ExEnvironmentSetAmbientLight < 'a > { + ExEnvironmentSetAmbientLight::new(self, env, color,) + } + pub fn environment_set_glow(&mut self, env: Rid, enable: bool, levels: &PackedFloat32Array, intensity: f32, strength: f32, mix: f32, bloom_threshold: f32, blend_mode: crate::classes::rendering_server::EnvironmentGlowBlendMode, hdr_bleed_threshold: f32, hdr_bleed_scale: f32, hdr_luminance_cap: f32, glow_map_strength: f32, glow_map: Rid,) { + type CallSig < 'a0, > = ((), Rid, bool, RefArg < 'a0, PackedFloat32Array >, f32, f32, f32, f32, crate::classes::rendering_server::EnvironmentGlowBlendMode, f32, f32, f32, f32, Rid); + let args = (env, enable, RefArg::new(levels), intensity, strength, mix, bloom_threshold, blend_mode, hdr_bleed_threshold, hdr_bleed_scale, hdr_luminance_cap, glow_map_strength, glow_map,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(806usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_glow", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_tonemap(&mut self, env: Rid, tone_mapper: crate::classes::rendering_server::EnvironmentToneMapper, exposure: f32, white: f32,) { + type CallSig = ((), Rid, crate::classes::rendering_server::EnvironmentToneMapper, f32, f32); + let args = (env, tone_mapper, exposure, white,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(807usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_tonemap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_adjustment(&mut self, env: Rid, enable: bool, brightness: f32, contrast: f32, saturation: f32, use_1d_color_correction: bool, color_correction: Rid,) { + type CallSig = ((), Rid, bool, f32, f32, f32, bool, Rid); + let args = (env, enable, brightness, contrast, saturation, use_1d_color_correction, color_correction,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(808usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_adjustment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_ssr(&mut self, env: Rid, enable: bool, max_steps: i32, fade_in: f32, fade_out: f32, depth_tolerance: f32,) { + type CallSig = ((), Rid, bool, i32, f32, f32, f32); + let args = (env, enable, max_steps, fade_in, fade_out, depth_tolerance,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(809usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_ssr", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_ssao(&mut self, env: Rid, enable: bool, radius: f32, intensity: f32, power: f32, detail: f32, horizon: f32, sharpness: f32, light_affect: f32, ao_channel_affect: f32,) { + type CallSig = ((), Rid, bool, f32, f32, f32, f32, f32, f32, f32, f32); + let args = (env, enable, radius, intensity, power, detail, horizon, sharpness, light_affect, ao_channel_affect,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(810usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_ssao", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn environment_set_fog_full(&mut self, env: Rid, enable: bool, light_color: Color, light_energy: f32, sun_scatter: f32, density: f32, height: f32, height_density: f32, aerial_perspective: f32, sky_affect: f32, fog_mode: crate::classes::rendering_server::EnvironmentFogMode,) { + type CallSig = ((), Rid, bool, Color, f32, f32, f32, f32, f32, f32, f32, crate::classes::rendering_server::EnvironmentFogMode); + let args = (env, enable, light_color, light_energy, sun_scatter, density, height, height_density, aerial_perspective, sky_affect, fog_mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(811usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_fog", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::environment_set_fog_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn environment_set_fog(&mut self, env: Rid, enable: bool, light_color: Color, light_energy: f32, sun_scatter: f32, density: f32, height: f32, height_density: f32, aerial_perspective: f32, sky_affect: f32,) { + self.environment_set_fog_ex(env, enable, light_color, light_energy, sun_scatter, density, height, height_density, aerial_perspective, sky_affect,) . done() + } + #[inline] + pub fn environment_set_fog_ex < 'a > (&'a mut self, env: Rid, enable: bool, light_color: Color, light_energy: f32, sun_scatter: f32, density: f32, height: f32, height_density: f32, aerial_perspective: f32, sky_affect: f32,) -> ExEnvironmentSetFog < 'a > { + ExEnvironmentSetFog::new(self, env, enable, light_color, light_energy, sun_scatter, density, height, height_density, aerial_perspective, sky_affect,) + } + pub fn environment_set_sdfgi(&mut self, env: Rid, enable: bool, cascades: i32, min_cell_size: f32, y_scale: crate::classes::rendering_server::EnvironmentSdfgiYScale, use_occlusion: bool, bounce_feedback: f32, read_sky: bool, energy: f32, normal_bias: f32, probe_bias: f32,) { + type CallSig = ((), Rid, bool, i32, f32, crate::classes::rendering_server::EnvironmentSdfgiYScale, bool, f32, bool, f32, f32, f32); + let args = (env, enable, cascades, min_cell_size, y_scale, use_occlusion, bounce_feedback, read_sky, energy, normal_bias, probe_bias,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(812usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_sdfgi", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_volumetric_fog(&mut self, env: Rid, enable: bool, density: f32, albedo: Color, emission: Color, emission_energy: f32, anisotropy: f32, length: f32, p_detail_spread: f32, gi_inject: f32, temporal_reprojection: bool, temporal_reprojection_amount: f32, ambient_inject: f32, sky_affect: f32,) { + type CallSig = ((), Rid, bool, f32, Color, Color, f32, f32, f32, f32, f32, bool, f32, f32, f32); + let args = (env, enable, density, albedo, emission, emission_energy, anisotropy, length, p_detail_spread, gi_inject, temporal_reprojection, temporal_reprojection_amount, ambient_inject, sky_affect,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(813usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_volumetric_fog", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_glow_set_use_bicubic_upscale(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(814usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_glow_set_use_bicubic_upscale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_ssr_roughness_quality(&mut self, quality: crate::classes::rendering_server::EnvironmentSsrRoughnessQuality,) { + type CallSig = ((), crate::classes::rendering_server::EnvironmentSsrRoughnessQuality); + let args = (quality,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(815usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_ssr_roughness_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_ssao_quality(&mut self, quality: crate::classes::rendering_server::EnvironmentSsaoQuality, half_size: bool, adaptive_target: f32, blur_passes: i32, fadeout_from: f32, fadeout_to: f32,) { + type CallSig = ((), crate::classes::rendering_server::EnvironmentSsaoQuality, bool, f32, i32, f32, f32); + let args = (quality, half_size, adaptive_target, blur_passes, fadeout_from, fadeout_to,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(816usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_ssao_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_ssil_quality(&mut self, quality: crate::classes::rendering_server::EnvironmentSsilQuality, half_size: bool, adaptive_target: f32, blur_passes: i32, fadeout_from: f32, fadeout_to: f32,) { + type CallSig = ((), crate::classes::rendering_server::EnvironmentSsilQuality, bool, f32, i32, f32, f32); + let args = (quality, half_size, adaptive_target, blur_passes, fadeout_from, fadeout_to,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(817usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_ssil_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_sdfgi_ray_count(&mut self, ray_count: crate::classes::rendering_server::EnvironmentSdfgiRayCount,) { + type CallSig = ((), crate::classes::rendering_server::EnvironmentSdfgiRayCount); + let args = (ray_count,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(818usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_sdfgi_ray_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_sdfgi_frames_to_converge(&mut self, frames: crate::classes::rendering_server::EnvironmentSdfgiFramesToConverge,) { + type CallSig = ((), crate::classes::rendering_server::EnvironmentSdfgiFramesToConverge); + let args = (frames,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(819usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_sdfgi_frames_to_converge", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_sdfgi_frames_to_update_light(&mut self, frames: crate::classes::rendering_server::EnvironmentSdfgiFramesToUpdateLight,) { + type CallSig = ((), crate::classes::rendering_server::EnvironmentSdfgiFramesToUpdateLight); + let args = (frames,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(820usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_sdfgi_frames_to_update_light", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_volumetric_fog_volume_size(&mut self, size: i32, depth: i32,) { + type CallSig = ((), i32, i32); + let args = (size, depth,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(821usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_volumetric_fog_volume_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_set_volumetric_fog_filter_active(&mut self, active: bool,) { + type CallSig = ((), bool); + let args = (active,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(822usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_set_volumetric_fog_filter_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn environment_bake_panorama(&mut self, environment: Rid, bake_irradiance: bool, size: Vector2i,) -> Option < Gd < crate::classes::Image > > { + type CallSig = (Option < Gd < crate::classes::Image > >, Rid, bool, Vector2i); + let args = (environment, bake_irradiance, size,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(823usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "environment_bake_panorama", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn screen_space_roughness_limiter_set_active(&mut self, enable: bool, amount: f32, limit: f32,) { + type CallSig = ((), bool, f32, f32); + let args = (enable, amount, limit,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(824usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "screen_space_roughness_limiter_set_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sub_surface_scattering_set_quality(&mut self, quality: crate::classes::rendering_server::SubSurfaceScatteringQuality,) { + type CallSig = ((), crate::classes::rendering_server::SubSurfaceScatteringQuality); + let args = (quality,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(825usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "sub_surface_scattering_set_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn sub_surface_scattering_set_scale(&mut self, scale: f32, depth_scale: f32,) { + type CallSig = ((), f32, f32); + let args = (scale, depth_scale,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(826usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "sub_surface_scattering_set_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_attributes_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(827usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_attributes_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_attributes_set_dof_blur_quality(&mut self, quality: crate::classes::rendering_server::DofBlurQuality, use_jitter: bool,) { + type CallSig = ((), crate::classes::rendering_server::DofBlurQuality, bool); + let args = (quality, use_jitter,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(828usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_attributes_set_dof_blur_quality", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_attributes_set_dof_blur_bokeh_shape(&mut self, shape: crate::classes::rendering_server::DofBokehShape,) { + type CallSig = ((), crate::classes::rendering_server::DofBokehShape); + let args = (shape,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(829usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_attributes_set_dof_blur_bokeh_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_attributes_set_dof_blur(&mut self, camera_attributes: Rid, far_enable: bool, far_distance: f32, far_transition: f32, near_enable: bool, near_distance: f32, near_transition: f32, amount: f32,) { + type CallSig = ((), Rid, bool, f32, f32, bool, f32, f32, f32); + let args = (camera_attributes, far_enable, far_distance, far_transition, near_enable, near_distance, near_transition, amount,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(830usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_attributes_set_dof_blur", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_attributes_set_exposure(&mut self, camera_attributes: Rid, multiplier: f32, normalization: f32,) { + type CallSig = ((), Rid, f32, f32); + let args = (camera_attributes, multiplier, normalization,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(831usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_attributes_set_exposure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn camera_attributes_set_auto_exposure(&mut self, camera_attributes: Rid, enable: bool, min_sensitivity: f32, max_sensitivity: f32, speed: f32, scale: f32,) { + type CallSig = ((), Rid, bool, f32, f32, f32, f32); + let args = (camera_attributes, enable, min_sensitivity, max_sensitivity, speed, scale,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(832usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "camera_attributes_set_auto_exposure", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scenario_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(833usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "scenario_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scenario_set_environment(&mut self, scenario: Rid, environment: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (scenario, environment,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(834usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "scenario_set_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scenario_set_fallback_environment(&mut self, scenario: Rid, environment: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (scenario, environment,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(835usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "scenario_set_fallback_environment", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scenario_set_camera_attributes(&mut self, scenario: Rid, effects: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (scenario, effects,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(836usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "scenario_set_camera_attributes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scenario_set_compositor(&mut self, scenario: Rid, compositor: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (scenario, compositor,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(837usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "scenario_set_compositor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_create2(&mut self, base: Rid, scenario: Rid,) -> Rid { + type CallSig = (Rid, Rid, Rid); + let args = (base, scenario,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(838usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_create2", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(839usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_base(&mut self, instance: Rid, base: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (instance, base,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(840usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_base", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_scenario(&mut self, instance: Rid, scenario: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (instance, scenario,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(841usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_scenario", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_layer_mask(&mut self, instance: Rid, mask: u32,) { + type CallSig = ((), Rid, u32); + let args = (instance, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(842usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_layer_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_pivot_data(&mut self, instance: Rid, sorting_offset: f32, use_aabb_center: bool,) { + type CallSig = ((), Rid, f32, bool); + let args = (instance, sorting_offset, use_aabb_center,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(843usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_pivot_data", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_transform(&mut self, instance: Rid, transform: Transform3D,) { + type CallSig = ((), Rid, Transform3D); + let args = (instance, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(844usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_attach_object_instance_id(&mut self, instance: Rid, id: u64,) { + type CallSig = ((), Rid, u64); + let args = (instance, id,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(845usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_attach_object_instance_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_blend_shape_weight(&mut self, instance: Rid, shape: i32, weight: f32,) { + type CallSig = ((), Rid, i32, f32); + let args = (instance, shape, weight,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(846usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_blend_shape_weight", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_surface_override_material(&mut self, instance: Rid, surface: i32, material: Rid,) { + type CallSig = ((), Rid, i32, Rid); + let args = (instance, surface, material,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(847usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_surface_override_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_visible(&mut self, instance: Rid, visible: bool,) { + type CallSig = ((), Rid, bool); + let args = (instance, visible,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(848usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_set_transparency(&mut self, instance: Rid, transparency: f32,) { + type CallSig = ((), Rid, f32); + let args = (instance, transparency,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(849usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_set_transparency", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_custom_aabb(&mut self, instance: Rid, aabb: Aabb,) { + type CallSig = ((), Rid, Aabb); + let args = (instance, aabb,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(850usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_custom_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_attach_skeleton(&mut self, instance: Rid, skeleton: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (instance, skeleton,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(851usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_attach_skeleton", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_extra_visibility_margin(&mut self, instance: Rid, margin: f32,) { + type CallSig = ((), Rid, f32); + let args = (instance, margin,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(852usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_extra_visibility_margin", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_visibility_parent(&mut self, instance: Rid, parent: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (instance, parent,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(853usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_visibility_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_set_ignore_culling(&mut self, instance: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (instance, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(854usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_set_ignore_culling", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_set_flag(&mut self, instance: Rid, flag: crate::classes::rendering_server::InstanceFlags, enabled: bool,) { + type CallSig = ((), Rid, crate::classes::rendering_server::InstanceFlags, bool); + let args = (instance, flag, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(855usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_set_flag", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_set_cast_shadows_setting(&mut self, instance: Rid, shadow_casting_setting: crate::classes::rendering_server::ShadowCastingSetting,) { + type CallSig = ((), Rid, crate::classes::rendering_server::ShadowCastingSetting); + let args = (instance, shadow_casting_setting,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(856usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_set_cast_shadows_setting", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_set_material_override(&mut self, instance: Rid, material: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (instance, material,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(857usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_set_material_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_set_material_overlay(&mut self, instance: Rid, material: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (instance, material,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(858usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_set_material_overlay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_set_visibility_range(&mut self, instance: Rid, min: f32, max: f32, min_margin: f32, max_margin: f32, fade_mode: crate::classes::rendering_server::VisibilityRangeFadeMode,) { + type CallSig = ((), Rid, f32, f32, f32, f32, crate::classes::rendering_server::VisibilityRangeFadeMode); + let args = (instance, min, max, min_margin, max_margin, fade_mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(859usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_set_visibility_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_set_lightmap(&mut self, instance: Rid, lightmap: Rid, lightmap_uv_scale: Rect2, lightmap_slice: i32,) { + type CallSig = ((), Rid, Rid, Rect2, i32); + let args = (instance, lightmap, lightmap_uv_scale, lightmap_slice,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(860usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_set_lightmap", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_set_lod_bias(&mut self, instance: Rid, lod_bias: f32,) { + type CallSig = ((), Rid, f32); + let args = (instance, lod_bias,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(861usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_set_lod_bias", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_set_shader_parameter(&mut self, instance: Rid, parameter: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), Rid, CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (instance, parameter.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(862usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_set_shader_parameter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_get_shader_parameter(&self, instance: Rid, parameter: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, Rid, CowArg < 'a0, StringName >); + let args = (instance, parameter.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(863usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_get_shader_parameter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_get_shader_parameter_default_value(&self, instance: Rid, parameter: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, Rid, CowArg < 'a0, StringName >); + let args = (instance, parameter.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(864usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_get_shader_parameter_default_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn instance_geometry_get_shader_parameter_list(&self, instance: Rid,) -> Array < Dictionary > { + type CallSig = (Array < Dictionary >, Rid); + let args = (instance,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(865usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instance_geometry_get_shader_parameter_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn instances_cull_aabb_full(&self, aabb: Aabb, scenario: Rid,) -> PackedInt64Array { + type CallSig = (PackedInt64Array, Aabb, Rid); + let args = (aabb, scenario,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(866usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instances_cull_aabb", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::instances_cull_aabb_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn instances_cull_aabb(&self, aabb: Aabb,) -> PackedInt64Array { + self.instances_cull_aabb_ex(aabb,) . done() + } + #[inline] + pub fn instances_cull_aabb_ex < 'a > (&'a self, aabb: Aabb,) -> ExInstancesCullAabb < 'a > { + ExInstancesCullAabb::new(self, aabb,) + } + pub(crate) fn instances_cull_ray_full(&self, from: Vector3, to: Vector3, scenario: Rid,) -> PackedInt64Array { + type CallSig = (PackedInt64Array, Vector3, Vector3, Rid); + let args = (from, to, scenario,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(867usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instances_cull_ray", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::instances_cull_ray_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn instances_cull_ray(&self, from: Vector3, to: Vector3,) -> PackedInt64Array { + self.instances_cull_ray_ex(from, to,) . done() + } + #[inline] + pub fn instances_cull_ray_ex < 'a > (&'a self, from: Vector3, to: Vector3,) -> ExInstancesCullRay < 'a > { + ExInstancesCullRay::new(self, from, to,) + } + pub(crate) fn instances_cull_convex_full(&self, convex: RefArg < Array < Plane > >, scenario: Rid,) -> PackedInt64Array { + type CallSig < 'a0, > = (PackedInt64Array, RefArg < 'a0, Array < Plane > >, Rid); + let args = (convex, scenario,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(868usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "instances_cull_convex", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::instances_cull_convex_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn instances_cull_convex(&self, convex: &Array < Plane >,) -> PackedInt64Array { + self.instances_cull_convex_ex(convex,) . done() + } + #[inline] + pub fn instances_cull_convex_ex < 'a > (&'a self, convex: &'a Array < Plane >,) -> ExInstancesCullConvex < 'a > { + ExInstancesCullConvex::new(self, convex,) + } + pub fn bake_render_uv2(&mut self, base: Rid, material_overrides: &Array < Rid >, image_size: Vector2i,) -> Array < Gd < crate::classes::Image > > { + type CallSig < 'a0, > = (Array < Gd < crate::classes::Image > >, Rid, RefArg < 'a0, Array < Rid > >, Vector2i); + let args = (base, RefArg::new(material_overrides), image_size,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(869usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "bake_render_uv2", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(870usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_set_item_mirroring(&mut self, canvas: Rid, item: Rid, mirroring: Vector2,) { + type CallSig = ((), Rid, Rid, Vector2); + let args = (canvas, item, mirroring,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(871usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_set_item_mirroring", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_set_item_repeat(&mut self, item: Rid, repeat_size: Vector2, repeat_times: i32,) { + type CallSig = ((), Rid, Vector2, i32); + let args = (item, repeat_size, repeat_times,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(872usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_set_item_repeat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_set_modulate(&mut self, canvas: Rid, color: Color,) { + type CallSig = ((), Rid, Color); + let args = (canvas, color,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(873usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_set_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_set_disable_scale(&mut self, disable: bool,) { + type CallSig = ((), bool); + let args = (disable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(874usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_set_disable_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_texture_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(875usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_texture_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_texture_set_channel(&mut self, canvas_texture: Rid, channel: crate::classes::rendering_server::CanvasTextureChannel, texture: Rid,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasTextureChannel, Rid); + let args = (canvas_texture, channel, texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(876usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_texture_set_channel", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_texture_set_shading_parameters(&mut self, canvas_texture: Rid, base_color: Color, shininess: f32,) { + type CallSig = ((), Rid, Color, f32); + let args = (canvas_texture, base_color, shininess,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(877usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_texture_set_shading_parameters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_texture_set_texture_filter(&mut self, canvas_texture: Rid, filter: crate::classes::rendering_server::CanvasItemTextureFilter,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasItemTextureFilter); + let args = (canvas_texture, filter,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(878usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_texture_set_texture_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_texture_set_texture_repeat(&mut self, canvas_texture: Rid, repeat: crate::classes::rendering_server::CanvasItemTextureRepeat,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasItemTextureRepeat); + let args = (canvas_texture, repeat,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(879usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_texture_set_texture_repeat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(880usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_parent(&mut self, item: Rid, parent: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (item, parent,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(881usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_default_texture_filter(&mut self, item: Rid, filter: crate::classes::rendering_server::CanvasItemTextureFilter,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasItemTextureFilter); + let args = (item, filter,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(882usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_default_texture_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_default_texture_repeat(&mut self, item: Rid, repeat: crate::classes::rendering_server::CanvasItemTextureRepeat,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasItemTextureRepeat); + let args = (item, repeat,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(883usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_default_texture_repeat", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_visible(&mut self, item: Rid, visible: bool,) { + type CallSig = ((), Rid, bool); + let args = (item, visible,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(884usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_light_mask(&mut self, item: Rid, mask: i32,) { + type CallSig = ((), Rid, i32); + let args = (item, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(885usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_light_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_visibility_layer(&mut self, item: Rid, visibility_layer: u32,) { + type CallSig = ((), Rid, u32); + let args = (item, visibility_layer,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(886usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_visibility_layer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_transform(&mut self, item: Rid, transform: Transform2D,) { + type CallSig = ((), Rid, Transform2D); + let args = (item, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(887usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_clip(&mut self, item: Rid, clip: bool,) { + type CallSig = ((), Rid, bool); + let args = (item, clip,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(888usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_clip", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_distance_field_mode(&mut self, item: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (item, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(889usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_distance_field_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn canvas_item_set_custom_rect_full(&mut self, item: Rid, use_custom_rect: bool, rect: Rect2,) { + type CallSig = ((), Rid, bool, Rect2); + let args = (item, use_custom_rect, rect,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(890usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_custom_rect", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_set_custom_rect_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_set_custom_rect(&mut self, item: Rid, use_custom_rect: bool,) { + self.canvas_item_set_custom_rect_ex(item, use_custom_rect,) . done() + } + #[inline] + pub fn canvas_item_set_custom_rect_ex < 'a > (&'a mut self, item: Rid, use_custom_rect: bool,) -> ExCanvasItemSetCustomRect < 'a > { + ExCanvasItemSetCustomRect::new(self, item, use_custom_rect,) + } + pub fn canvas_item_set_modulate(&mut self, item: Rid, color: Color,) { + type CallSig = ((), Rid, Color); + let args = (item, color,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(891usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_self_modulate(&mut self, item: Rid, color: Color,) { + type CallSig = ((), Rid, Color); + let args = (item, color,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(892usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_self_modulate", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_draw_behind_parent(&mut self, item: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (item, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(893usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_draw_behind_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_interpolated(&mut self, item: Rid, interpolated: bool,) { + type CallSig = ((), Rid, bool); + let args = (item, interpolated,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(894usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_interpolated", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_reset_physics_interpolation(&mut self, item: Rid,) { + type CallSig = ((), Rid); + let args = (item,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(895usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_reset_physics_interpolation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_transform_physics_interpolation(&mut self, item: Rid, transform: Transform2D,) { + type CallSig = ((), Rid, Transform2D); + let args = (item, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(896usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_transform_physics_interpolation", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn canvas_item_add_line_full(&mut self, item: Rid, from: Vector2, to: Vector2, color: Color, width: f32, antialiased: bool,) { + type CallSig = ((), Rid, Vector2, Vector2, Color, f32, bool); + let args = (item, from, to, color, width, antialiased,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(897usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_line", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_line_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_line(&mut self, item: Rid, from: Vector2, to: Vector2, color: Color,) { + self.canvas_item_add_line_ex(item, from, to, color,) . done() + } + #[inline] + pub fn canvas_item_add_line_ex < 'a > (&'a mut self, item: Rid, from: Vector2, to: Vector2, color: Color,) -> ExCanvasItemAddLine < 'a > { + ExCanvasItemAddLine::new(self, item, from, to, color,) + } + pub(crate) fn canvas_item_add_polyline_full(&mut self, item: Rid, points: RefArg < PackedVector2Array >, colors: RefArg < PackedColorArray >, width: f32, antialiased: bool,) { + type CallSig < 'a0, 'a1, > = ((), Rid, RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedColorArray >, f32, bool); + let args = (item, points, colors, width, antialiased,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(898usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_polyline", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_polyline_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_polyline(&mut self, item: Rid, points: &PackedVector2Array, colors: &PackedColorArray,) { + self.canvas_item_add_polyline_ex(item, points, colors,) . done() + } + #[inline] + pub fn canvas_item_add_polyline_ex < 'a > (&'a mut self, item: Rid, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> ExCanvasItemAddPolyline < 'a > { + ExCanvasItemAddPolyline::new(self, item, points, colors,) + } + pub(crate) fn canvas_item_add_multiline_full(&mut self, item: Rid, points: RefArg < PackedVector2Array >, colors: RefArg < PackedColorArray >, width: f32, antialiased: bool,) { + type CallSig < 'a0, 'a1, > = ((), Rid, RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedColorArray >, f32, bool); + let args = (item, points, colors, width, antialiased,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(899usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_multiline", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_multiline_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_multiline(&mut self, item: Rid, points: &PackedVector2Array, colors: &PackedColorArray,) { + self.canvas_item_add_multiline_ex(item, points, colors,) . done() + } + #[inline] + pub fn canvas_item_add_multiline_ex < 'a > (&'a mut self, item: Rid, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> ExCanvasItemAddMultiline < 'a > { + ExCanvasItemAddMultiline::new(self, item, points, colors,) + } + pub(crate) fn canvas_item_add_rect_full(&mut self, item: Rid, rect: Rect2, color: Color, antialiased: bool,) { + type CallSig = ((), Rid, Rect2, Color, bool); + let args = (item, rect, color, antialiased,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(900usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_rect", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_rect_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_rect(&mut self, item: Rid, rect: Rect2, color: Color,) { + self.canvas_item_add_rect_ex(item, rect, color,) . done() + } + #[inline] + pub fn canvas_item_add_rect_ex < 'a > (&'a mut self, item: Rid, rect: Rect2, color: Color,) -> ExCanvasItemAddRect < 'a > { + ExCanvasItemAddRect::new(self, item, rect, color,) + } + pub(crate) fn canvas_item_add_circle_full(&mut self, item: Rid, pos: Vector2, radius: f32, color: Color, antialiased: bool,) { + type CallSig = ((), Rid, Vector2, f32, Color, bool); + let args = (item, pos, radius, color, antialiased,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(901usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_circle", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_circle_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_circle(&mut self, item: Rid, pos: Vector2, radius: f32, color: Color,) { + self.canvas_item_add_circle_ex(item, pos, radius, color,) . done() + } + #[inline] + pub fn canvas_item_add_circle_ex < 'a > (&'a mut self, item: Rid, pos: Vector2, radius: f32, color: Color,) -> ExCanvasItemAddCircle < 'a > { + ExCanvasItemAddCircle::new(self, item, pos, radius, color,) + } + pub(crate) fn canvas_item_add_texture_rect_full(&mut self, item: Rid, rect: Rect2, texture: Rid, tile: bool, modulate: Color, transpose: bool,) { + type CallSig = ((), Rid, Rect2, Rid, bool, Color, bool); + let args = (item, rect, texture, tile, modulate, transpose,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(902usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_texture_rect", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_texture_rect_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_texture_rect(&mut self, item: Rid, rect: Rect2, texture: Rid,) { + self.canvas_item_add_texture_rect_ex(item, rect, texture,) . done() + } + #[inline] + pub fn canvas_item_add_texture_rect_ex < 'a > (&'a mut self, item: Rid, rect: Rect2, texture: Rid,) -> ExCanvasItemAddTextureRect < 'a > { + ExCanvasItemAddTextureRect::new(self, item, rect, texture,) + } + pub(crate) fn canvas_item_add_msdf_texture_rect_region_full(&mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2, modulate: Color, outline_size: i32, px_range: f32, scale: f32,) { + type CallSig = ((), Rid, Rect2, Rid, Rect2, Color, i32, f32, f32); + let args = (item, rect, texture, src_rect, modulate, outline_size, px_range, scale,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(903usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_msdf_texture_rect_region", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_msdf_texture_rect_region_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_msdf_texture_rect_region(&mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2,) { + self.canvas_item_add_msdf_texture_rect_region_ex(item, rect, texture, src_rect,) . done() + } + #[inline] + pub fn canvas_item_add_msdf_texture_rect_region_ex < 'a > (&'a mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2,) -> ExCanvasItemAddMsdfTextureRectRegion < 'a > { + ExCanvasItemAddMsdfTextureRectRegion::new(self, item, rect, texture, src_rect,) + } + pub fn canvas_item_add_lcd_texture_rect_region(&mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2, modulate: Color,) { + type CallSig = ((), Rid, Rect2, Rid, Rect2, Color); + let args = (item, rect, texture, src_rect, modulate,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(904usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_lcd_texture_rect_region", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn canvas_item_add_texture_rect_region_full(&mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool,) { + type CallSig = ((), Rid, Rect2, Rid, Rect2, Color, bool, bool); + let args = (item, rect, texture, src_rect, modulate, transpose, clip_uv,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(905usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_texture_rect_region", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_texture_rect_region_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_texture_rect_region(&mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2,) { + self.canvas_item_add_texture_rect_region_ex(item, rect, texture, src_rect,) . done() + } + #[inline] + pub fn canvas_item_add_texture_rect_region_ex < 'a > (&'a mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2,) -> ExCanvasItemAddTextureRectRegion < 'a > { + ExCanvasItemAddTextureRectRegion::new(self, item, rect, texture, src_rect,) + } + pub(crate) fn canvas_item_add_nine_patch_full(&mut self, item: Rid, rect: Rect2, source: Rect2, texture: Rid, topleft: Vector2, bottomright: Vector2, x_axis_mode: crate::classes::rendering_server::NinePatchAxisMode, y_axis_mode: crate::classes::rendering_server::NinePatchAxisMode, draw_center: bool, modulate: Color,) { + type CallSig = ((), Rid, Rect2, Rect2, Rid, Vector2, Vector2, crate::classes::rendering_server::NinePatchAxisMode, crate::classes::rendering_server::NinePatchAxisMode, bool, Color); + let args = (item, rect, source, texture, topleft, bottomright, x_axis_mode, y_axis_mode, draw_center, modulate,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(906usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_nine_patch", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_nine_patch_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_nine_patch(&mut self, item: Rid, rect: Rect2, source: Rect2, texture: Rid, topleft: Vector2, bottomright: Vector2,) { + self.canvas_item_add_nine_patch_ex(item, rect, source, texture, topleft, bottomright,) . done() + } + #[inline] + pub fn canvas_item_add_nine_patch_ex < 'a > (&'a mut self, item: Rid, rect: Rect2, source: Rect2, texture: Rid, topleft: Vector2, bottomright: Vector2,) -> ExCanvasItemAddNinePatch < 'a > { + ExCanvasItemAddNinePatch::new(self, item, rect, source, texture, topleft, bottomright,) + } + pub fn canvas_item_add_primitive(&mut self, item: Rid, points: &PackedVector2Array, colors: &PackedColorArray, uvs: &PackedVector2Array, texture: Rid,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), Rid, RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedColorArray >, RefArg < 'a2, PackedVector2Array >, Rid); + let args = (item, RefArg::new(points), RefArg::new(colors), RefArg::new(uvs), texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(907usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_primitive", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn canvas_item_add_polygon_full(&mut self, item: Rid, points: RefArg < PackedVector2Array >, colors: RefArg < PackedColorArray >, uvs: RefArg < PackedVector2Array >, texture: Rid,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), Rid, RefArg < 'a0, PackedVector2Array >, RefArg < 'a1, PackedColorArray >, RefArg < 'a2, PackedVector2Array >, Rid); + let args = (item, points, colors, uvs, texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(908usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_polygon_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_polygon(&mut self, item: Rid, points: &PackedVector2Array, colors: &PackedColorArray,) { + self.canvas_item_add_polygon_ex(item, points, colors,) . done() + } + #[inline] + pub fn canvas_item_add_polygon_ex < 'a > (&'a mut self, item: Rid, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> ExCanvasItemAddPolygon < 'a > { + ExCanvasItemAddPolygon::new(self, item, points, colors,) + } + pub(crate) fn canvas_item_add_triangle_array_full(&mut self, item: Rid, indices: RefArg < PackedInt32Array >, points: RefArg < PackedVector2Array >, colors: RefArg < PackedColorArray >, uvs: RefArg < PackedVector2Array >, bones: RefArg < PackedInt32Array >, weights: RefArg < PackedFloat32Array >, texture: Rid, count: i32,) { + type CallSig < 'a0, 'a1, 'a2, 'a3, 'a4, 'a5, > = ((), Rid, RefArg < 'a0, PackedInt32Array >, RefArg < 'a1, PackedVector2Array >, RefArg < 'a2, PackedColorArray >, RefArg < 'a3, PackedVector2Array >, RefArg < 'a4, PackedInt32Array >, RefArg < 'a5, PackedFloat32Array >, Rid, i32); + let args = (item, indices, points, colors, uvs, bones, weights, texture, count,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(909usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_triangle_array", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_triangle_array_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_triangle_array(&mut self, item: Rid, indices: &PackedInt32Array, points: &PackedVector2Array, colors: &PackedColorArray,) { + self.canvas_item_add_triangle_array_ex(item, indices, points, colors,) . done() + } + #[inline] + pub fn canvas_item_add_triangle_array_ex < 'a > (&'a mut self, item: Rid, indices: &'a PackedInt32Array, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> ExCanvasItemAddTriangleArray < 'a > { + ExCanvasItemAddTriangleArray::new(self, item, indices, points, colors,) + } + pub(crate) fn canvas_item_add_mesh_full(&mut self, item: Rid, mesh: Rid, transform: Transform2D, modulate: Color, texture: Rid,) { + type CallSig = ((), Rid, Rid, Transform2D, Color, Rid); + let args = (item, mesh, transform, modulate, texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(910usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_mesh_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_mesh(&mut self, item: Rid, mesh: Rid,) { + self.canvas_item_add_mesh_ex(item, mesh,) . done() + } + #[inline] + pub fn canvas_item_add_mesh_ex < 'a > (&'a mut self, item: Rid, mesh: Rid,) -> ExCanvasItemAddMesh < 'a > { + ExCanvasItemAddMesh::new(self, item, mesh,) + } + pub(crate) fn canvas_item_add_multimesh_full(&mut self, item: Rid, mesh: Rid, texture: Rid,) { + type CallSig = ((), Rid, Rid, Rid); + let args = (item, mesh, texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(911usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_multimesh", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_multimesh_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_multimesh(&mut self, item: Rid, mesh: Rid,) { + self.canvas_item_add_multimesh_ex(item, mesh,) . done() + } + #[inline] + pub fn canvas_item_add_multimesh_ex < 'a > (&'a mut self, item: Rid, mesh: Rid,) -> ExCanvasItemAddMultimesh < 'a > { + ExCanvasItemAddMultimesh::new(self, item, mesh,) + } + pub fn canvas_item_add_particles(&mut self, item: Rid, particles: Rid, texture: Rid,) { + type CallSig = ((), Rid, Rid, Rid); + let args = (item, particles, texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(912usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_particles", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_add_set_transform(&mut self, item: Rid, transform: Transform2D,) { + type CallSig = ((), Rid, Transform2D); + let args = (item, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(913usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_add_clip_ignore(&mut self, item: Rid, ignore: bool,) { + type CallSig = ((), Rid, bool); + let args = (item, ignore,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(914usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_clip_ignore", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn canvas_item_add_animation_slice_full(&mut self, item: Rid, animation_length: f64, slice_begin: f64, slice_end: f64, offset: f64,) { + type CallSig = ((), Rid, f64, f64, f64, f64); + let args = (item, animation_length, slice_begin, slice_end, offset,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(915usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_add_animation_slice", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_add_animation_slice_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_add_animation_slice(&mut self, item: Rid, animation_length: f64, slice_begin: f64, slice_end: f64,) { + self.canvas_item_add_animation_slice_ex(item, animation_length, slice_begin, slice_end,) . done() + } + #[inline] + pub fn canvas_item_add_animation_slice_ex < 'a > (&'a mut self, item: Rid, animation_length: f64, slice_begin: f64, slice_end: f64,) -> ExCanvasItemAddAnimationSlice < 'a > { + ExCanvasItemAddAnimationSlice::new(self, item, animation_length, slice_begin, slice_end,) + } + pub fn canvas_item_set_sort_children_by_y(&mut self, item: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (item, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(916usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_sort_children_by_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_z_index(&mut self, item: Rid, z_index: i32,) { + type CallSig = ((), Rid, i32); + let args = (item, z_index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(917usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_z_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_z_as_relative_to_parent(&mut self, item: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (item, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(918usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_z_as_relative_to_parent", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_copy_to_backbuffer(&mut self, item: Rid, enabled: bool, rect: Rect2,) { + type CallSig = ((), Rid, bool, Rect2); + let args = (item, enabled, rect,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(919usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_copy_to_backbuffer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_clear(&mut self, item: Rid,) { + type CallSig = ((), Rid); + let args = (item,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(920usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_draw_index(&mut self, item: Rid, index: i32,) { + type CallSig = ((), Rid, i32); + let args = (item, index,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(921usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_draw_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_material(&mut self, item: Rid, material: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (item, material,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(922usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_use_parent_material(&mut self, item: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (item, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(923usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_use_parent_material", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_item_set_visibility_notifier(&mut self, item: Rid, enable: bool, area: Rect2, enter_callable: &Callable, exit_callable: &Callable,) { + type CallSig < 'a0, 'a1, > = ((), Rid, bool, Rect2, RefArg < 'a0, Callable >, RefArg < 'a1, Callable >); + let args = (item, enable, area, RefArg::new(enter_callable), RefArg::new(exit_callable),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(924usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_visibility_notifier", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn canvas_item_set_canvas_group_mode_full(&mut self, item: Rid, mode: crate::classes::rendering_server::CanvasGroupMode, clear_margin: f32, fit_empty: bool, fit_margin: f32, blur_mipmaps: bool,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasGroupMode, f32, bool, f32, bool); + let args = (item, mode, clear_margin, fit_empty, fit_margin, blur_mipmaps,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(925usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_item_set_canvas_group_mode", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::canvas_item_set_canvas_group_mode_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn canvas_item_set_canvas_group_mode(&mut self, item: Rid, mode: crate::classes::rendering_server::CanvasGroupMode,) { + self.canvas_item_set_canvas_group_mode_ex(item, mode,) . done() + } + #[inline] + pub fn canvas_item_set_canvas_group_mode_ex < 'a > (&'a mut self, item: Rid, mode: crate::classes::rendering_server::CanvasGroupMode,) -> ExCanvasItemSetCanvasGroupMode < 'a > { + ExCanvasItemSetCanvasGroupMode::new(self, item, mode,) + } + pub fn debug_canvas_item_get_rect(&mut self, item: Rid,) -> Rect2 { + type CallSig = (Rect2, Rid); + let args = (item,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(926usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "debug_canvas_item_get_rect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(927usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_attach_to_canvas(&mut self, light: Rid, canvas: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (light, canvas,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(928usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_attach_to_canvas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_enabled(&mut self, light: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (light, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(929usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_texture_scale(&mut self, light: Rid, scale: f32,) { + type CallSig = ((), Rid, f32); + let args = (light, scale,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(930usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_texture_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_transform(&mut self, light: Rid, transform: Transform2D,) { + type CallSig = ((), Rid, Transform2D); + let args = (light, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(931usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_texture(&mut self, light: Rid, texture: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (light, texture,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(932usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_texture_offset(&mut self, light: Rid, offset: Vector2,) { + type CallSig = ((), Rid, Vector2); + let args = (light, offset,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(933usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_texture_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_color(&mut self, light: Rid, color: Color,) { + type CallSig = ((), Rid, Color); + let args = (light, color,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(934usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_height(&mut self, light: Rid, height: f32,) { + type CallSig = ((), Rid, f32); + let args = (light, height,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(935usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_energy(&mut self, light: Rid, energy: f32,) { + type CallSig = ((), Rid, f32); + let args = (light, energy,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(936usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_energy", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_z_range(&mut self, light: Rid, min_z: i32, max_z: i32,) { + type CallSig = ((), Rid, i32, i32); + let args = (light, min_z, max_z,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(937usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_z_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_layer_range(&mut self, light: Rid, min_layer: i32, max_layer: i32,) { + type CallSig = ((), Rid, i32, i32); + let args = (light, min_layer, max_layer,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(938usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_layer_range", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_item_cull_mask(&mut self, light: Rid, mask: i32,) { + type CallSig = ((), Rid, i32); + let args = (light, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(939usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_item_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_item_shadow_cull_mask(&mut self, light: Rid, mask: i32,) { + type CallSig = ((), Rid, i32); + let args = (light, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(940usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_item_shadow_cull_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_mode(&mut self, light: Rid, mode: crate::classes::rendering_server::CanvasLightMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasLightMode); + let args = (light, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(941usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_shadow_enabled(&mut self, light: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (light, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(942usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_shadow_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_shadow_filter(&mut self, light: Rid, filter: crate::classes::rendering_server::CanvasLightShadowFilter,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasLightShadowFilter); + let args = (light, filter,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(943usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_shadow_filter", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_shadow_color(&mut self, light: Rid, color: Color,) { + type CallSig = ((), Rid, Color); + let args = (light, color,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(944usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_shadow_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_shadow_smooth(&mut self, light: Rid, smooth: f32,) { + type CallSig = ((), Rid, f32); + let args = (light, smooth,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(945usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_shadow_smooth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_blend_mode(&mut self, light: Rid, mode: crate::classes::rendering_server::CanvasLightBlendMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasLightBlendMode); + let args = (light, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(946usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_blend_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_set_interpolated(&mut self, light: Rid, interpolated: bool,) { + type CallSig = ((), Rid, bool); + let args = (light, interpolated,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(947usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_set_interpolated", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_reset_physics_interpolation(&mut self, light: Rid,) { + type CallSig = ((), Rid); + let args = (light,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(948usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_reset_physics_interpolation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_transform_physics_interpolation(&mut self, light: Rid, transform: Transform2D,) { + type CallSig = ((), Rid, Transform2D); + let args = (light, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(949usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_transform_physics_interpolation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_occluder_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(950usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_occluder_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_occluder_attach_to_canvas(&mut self, occluder: Rid, canvas: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (occluder, canvas,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(951usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_occluder_attach_to_canvas", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_occluder_set_enabled(&mut self, occluder: Rid, enabled: bool,) { + type CallSig = ((), Rid, bool); + let args = (occluder, enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(952usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_occluder_set_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_occluder_set_polygon(&mut self, occluder: Rid, polygon: Rid,) { + type CallSig = ((), Rid, Rid); + let args = (occluder, polygon,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(953usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_occluder_set_polygon", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_occluder_set_as_sdf_collision(&mut self, occluder: Rid, enable: bool,) { + type CallSig = ((), Rid, bool); + let args = (occluder, enable,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(954usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_occluder_set_as_sdf_collision", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_occluder_set_transform(&mut self, occluder: Rid, transform: Transform2D,) { + type CallSig = ((), Rid, Transform2D); + let args = (occluder, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(955usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_occluder_set_transform", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_occluder_set_light_mask(&mut self, occluder: Rid, mask: i32,) { + type CallSig = ((), Rid, i32); + let args = (occluder, mask,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(956usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_occluder_set_light_mask", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_occluder_set_interpolated(&mut self, occluder: Rid, interpolated: bool,) { + type CallSig = ((), Rid, bool); + let args = (occluder, interpolated,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(957usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_occluder_set_interpolated", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_occluder_reset_physics_interpolation(&mut self, occluder: Rid,) { + type CallSig = ((), Rid); + let args = (occluder,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(958usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_occluder_reset_physics_interpolation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_light_occluder_transform_physics_interpolation(&mut self, occluder: Rid, transform: Transform2D,) { + type CallSig = ((), Rid, Transform2D); + let args = (occluder, transform,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(959usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_light_occluder_transform_physics_interpolation", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_occluder_polygon_create(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(960usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_occluder_polygon_create", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_occluder_polygon_set_shape(&mut self, occluder_polygon: Rid, shape: &PackedVector2Array, closed: bool,) { + type CallSig < 'a0, > = ((), Rid, RefArg < 'a0, PackedVector2Array >, bool); + let args = (occluder_polygon, RefArg::new(shape), closed,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(961usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_occluder_polygon_set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_occluder_polygon_set_cull_mode(&mut self, occluder_polygon: Rid, mode: crate::classes::rendering_server::CanvasOccluderPolygonCullMode,) { + type CallSig = ((), Rid, crate::classes::rendering_server::CanvasOccluderPolygonCullMode); + let args = (occluder_polygon, mode,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(962usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_occluder_polygon_set_cull_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn canvas_set_shadow_texture_size(&mut self, size: i32,) { + type CallSig = ((), i32); + let args = (size,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(963usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "canvas_set_shadow_texture_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_shader_parameter_add(&mut self, name: impl AsArg < StringName >, type_: crate::classes::rendering_server::GlobalShaderParameterType, default_value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, crate::classes::rendering_server::GlobalShaderParameterType, RefArg < 'a1, Variant >); + let args = (name.into_arg(), type_, RefArg::new(default_value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(964usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "global_shader_parameter_add", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_shader_parameter_remove(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(965usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "global_shader_parameter_remove", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_shader_parameter_get_list(&self,) -> Array < StringName > { + type CallSig = (Array < StringName >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(966usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "global_shader_parameter_get_list", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_shader_parameter_set(&mut self, name: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (name.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(967usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "global_shader_parameter_set", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_shader_parameter_set_override(&mut self, name: impl AsArg < StringName >, value: &Variant,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, RefArg < 'a1, Variant >); + let args = (name.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(968usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "global_shader_parameter_set_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_shader_parameter_get(&self, name: impl AsArg < StringName >,) -> Variant { + type CallSig < 'a0, > = (Variant, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(969usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "global_shader_parameter_get", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn global_shader_parameter_get_type(&self, name: impl AsArg < StringName >,) -> crate::classes::rendering_server::GlobalShaderParameterType { + type CallSig < 'a0, > = (crate::classes::rendering_server::GlobalShaderParameterType, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(970usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "global_shader_parameter_get_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn free_rid(&mut self, rid: Rid,) { + type CallSig = ((), Rid); + let args = (rid,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(971usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "free_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn request_frame_drawn_callback(&mut self, callable: &Callable,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >); + let args = (RefArg::new(callable),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(972usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "request_frame_drawn_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_changed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(973usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "has_changed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rendering_info(&mut self, info: crate::classes::rendering_server::RenderingInfo,) -> u64 { + type CallSig = (u64, crate::classes::rendering_server::RenderingInfo); + let args = (info,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(974usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_rendering_info", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_video_adapter_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(975usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_video_adapter_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_video_adapter_vendor(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(976usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_video_adapter_vendor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_video_adapter_type(&self,) -> crate::classes::rendering_device::DeviceType { + type CallSig = (crate::classes::rendering_device::DeviceType,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(977usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_video_adapter_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_video_adapter_api_version(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(978usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_video_adapter_api_version", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn make_sphere_mesh(&mut self, latitudes: i32, longitudes: i32, radius: f32,) -> Rid { + type CallSig = (Rid, i32, i32, f32); + let args = (latitudes, longitudes, radius,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(979usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "make_sphere_mesh", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_test_cube(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(980usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_test_cube", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_test_texture(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(981usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_test_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_white_texture(&mut self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(982usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_white_texture", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_boot_image_full(&mut self, image: ObjectArg < crate::classes::Image >, color: Color, scale: bool, use_filter: bool,) { + type CallSig = ((), ObjectArg < crate::classes::Image >, Color, bool, bool); + let args = (image, color, scale, use_filter,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(983usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "set_boot_image", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_boot_image_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_boot_image(&mut self, image: impl AsObjectArg < crate::classes::Image >, color: Color, scale: bool,) { + self.set_boot_image_ex(image, color, scale,) . done() + } + #[inline] + pub fn set_boot_image_ex < 'a > (&'a mut self, image: impl AsObjectArg < crate::classes::Image >, color: Color, scale: bool,) -> ExSetBootImage < 'a > { + ExSetBootImage::new(self, image, color, scale,) + } + pub fn get_default_clear_color(&mut self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(984usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_default_clear_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_default_clear_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(985usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "set_default_clear_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_os_feature(&self, feature: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (feature.into_arg(),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(986usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "has_os_feature", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_debug_generate_wireframes(&mut self, generate: bool,) { + type CallSig = ((), bool); + let args = (generate,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(987usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "set_debug_generate_wireframes", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_render_loop_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(988usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "is_render_loop_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_render_loop_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(989usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "set_render_loop_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frame_setup_time_cpu(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(990usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_frame_setup_time_cpu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn force_sync(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(991usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "force_sync", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn force_draw_full(&mut self, swap_buffers: bool, frame_step: f64,) { + type CallSig = ((), bool, f64); + let args = (swap_buffers, frame_step,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(992usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "force_draw", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::force_draw_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn force_draw(&mut self,) { + self.force_draw_ex() . done() + } + #[inline] + pub fn force_draw_ex < 'a > (&'a mut self,) -> ExForceDraw < 'a > { + ExForceDraw::new(self,) + } + pub fn get_rendering_device(&self,) -> Option < Gd < crate::classes::RenderingDevice > > { + type CallSig = (Option < Gd < crate::classes::RenderingDevice > >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(993usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "get_rendering_device", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_local_rendering_device(&self,) -> Option < Gd < crate::classes::RenderingDevice > > { + type CallSig = (Option < Gd < crate::classes::RenderingDevice > >,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(994usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "create_local_rendering_device", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_on_render_thread(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(995usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "is_on_render_thread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn call_on_render_thread(&mut self, callable: &Callable,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >); + let args = (RefArg::new(callable),); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(996usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "call_on_render_thread", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_feature(&self, feature: crate::classes::rendering_server::Features,) -> bool { + type CallSig = (bool, crate::classes::rendering_server::Features); + let args = (feature,); + unsafe { + let method_bind = sys::class_servers_api() . fptr_by_index(997usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RenderingServer", "has_feature", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const NO_INDEX_ARRAY: i32 = - 1i32; + pub const ARRAY_WEIGHTS_SIZE: i32 = 4i32; + pub const CANVAS_ITEM_Z_MIN: i32 = - 4096i32; + pub const CANVAS_ITEM_Z_MAX: i32 = 4096i32; + pub const MAX_GLOW_LEVELS: i32 = 7i32; + pub const MAX_CURSORS: i32 = 8i32; + pub const MAX_2D_DIRECTIONAL_LIGHTS: i32 = 8i32; + pub const MAX_MESH_SURFACES: i32 = 256i32; + pub const MATERIAL_RENDER_PRIORITY_MIN: i32 = - 128i32; + pub const MATERIAL_RENDER_PRIORITY_MAX: i32 = 127i32; + pub const ARRAY_CUSTOM_COUNT: i32 = 4i32; + pub const PARTICLES_EMIT_FLAG_POSITION: i32 = 1i32; + pub const PARTICLES_EMIT_FLAG_ROTATION_SCALE: i32 = 2i32; + pub const PARTICLES_EMIT_FLAG_VELOCITY: i32 = 4i32; + pub const PARTICLES_EMIT_FLAG_COLOR: i32 = 8i32; + pub const PARTICLES_EMIT_FLAG_CUSTOM: i32 = 16i32; + + } + impl crate::obj::GodotClass for RenderingServer { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RenderingServer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Servers; + + } + unsafe impl crate::obj::Bounds for RenderingServer { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RenderingServer { + + } + impl std::ops::Deref for RenderingServer { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RenderingServer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RenderingServer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RenderingServer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RenderingServer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`RenderingServer::texture_rd_create_ex`][super::RenderingServer::texture_rd_create_ex]."] +#[must_use] +pub struct ExTextureRdCreate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, rd_texture: Rid, layer_type: crate::classes::rendering_server::TextureLayeredType, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTextureRdCreate < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, rd_texture: Rid,) -> Self { + let layer_type = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, rd_texture: rd_texture, layer_type: layer_type, + } + } + #[inline] + pub fn layer_type(self, layer_type: crate::classes::rendering_server::TextureLayeredType) -> Self { + Self { + layer_type: layer_type, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, rd_texture, layer_type, + } + = self; + re_export::RenderingServer::texture_rd_create_full(surround_object, rd_texture, layer_type,) + } +} +#[doc = "Default-param extender for [`RenderingServer::texture_get_rd_texture_ex`][super::RenderingServer::texture_get_rd_texture_ex]."] +#[must_use] +pub struct ExTextureGetRdTexture < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RenderingServer, texture: Rid, srgb: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTextureGetRdTexture < 'a > { + fn new(surround_object: &'a re_export::RenderingServer, texture: Rid,) -> Self { + let srgb = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture, srgb: srgb, + } + } + #[inline] + pub fn srgb(self, srgb: bool) -> Self { + Self { + srgb: srgb, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, texture, srgb, + } + = self; + re_export::RenderingServer::texture_get_rd_texture_full(surround_object, texture, srgb,) + } +} +#[doc = "Default-param extender for [`RenderingServer::texture_get_native_handle_ex`][super::RenderingServer::texture_get_native_handle_ex]."] +#[must_use] +pub struct ExTextureGetNativeHandle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RenderingServer, texture: Rid, srgb: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExTextureGetNativeHandle < 'a > { + fn new(surround_object: &'a re_export::RenderingServer, texture: Rid,) -> Self { + let srgb = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, texture: texture, srgb: srgb, + } + } + #[inline] + pub fn srgb(self, srgb: bool) -> Self { + Self { + srgb: srgb, .. self + } + } + #[inline] + pub fn done(self) -> u64 { + let Self { + _phantom, surround_object, texture, srgb, + } + = self; + re_export::RenderingServer::texture_get_native_handle_full(surround_object, texture, srgb,) + } +} +#[doc = "Default-param extender for [`RenderingServer::shader_set_default_texture_parameter_ex`][super::RenderingServer::shader_set_default_texture_parameter_ex]."] +#[must_use] +pub struct ExShaderSetDefaultTextureParameter < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, shader: Rid, name: CowArg < 'a, StringName >, texture: Rid, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExShaderSetDefaultTextureParameter < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, shader: Rid, name: impl AsArg < StringName > + 'a, texture: Rid,) -> Self { + let index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, shader: shader, name: name.into_arg(), texture: texture, index: index, + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, shader, name, texture, index, + } + = self; + re_export::RenderingServer::shader_set_default_texture_parameter_full(surround_object, shader, name, texture, index,) + } +} +#[doc = "Default-param extender for [`RenderingServer::shader_get_default_texture_parameter_ex`][super::RenderingServer::shader_get_default_texture_parameter_ex]."] +#[must_use] +pub struct ExShaderGetDefaultTextureParameter < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RenderingServer, shader: Rid, name: CowArg < 'a, StringName >, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExShaderGetDefaultTextureParameter < 'a > { + fn new(surround_object: &'a re_export::RenderingServer, shader: Rid, name: impl AsArg < StringName > + 'a,) -> Self { + let index = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, shader: shader, name: name.into_arg(), index: index, + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, shader, name, index, + } + = self; + re_export::RenderingServer::shader_get_default_texture_parameter_full(surround_object, shader, name, index,) + } +} +#[doc = "Default-param extender for [`RenderingServer::mesh_create_from_surfaces_ex`][super::RenderingServer::mesh_create_from_surfaces_ex]."] +#[must_use] +pub struct ExMeshCreateFromSurfaces < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, surfaces: CowArg < 'a, Array < Dictionary > >, blend_shape_count: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExMeshCreateFromSurfaces < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, surfaces: &'a Array < Dictionary >,) -> Self { + let blend_shape_count = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, surfaces: CowArg::Borrowed(surfaces), blend_shape_count: blend_shape_count, + } + } + #[inline] + pub fn blend_shape_count(self, blend_shape_count: i32) -> Self { + Self { + blend_shape_count: blend_shape_count, .. self + } + } + #[inline] + pub fn done(self) -> Rid { + let Self { + _phantom, surround_object, surfaces, blend_shape_count, + } + = self; + re_export::RenderingServer::mesh_create_from_surfaces_full(surround_object, surfaces.cow_as_arg(), blend_shape_count,) + } +} +#[doc = "Default-param extender for [`RenderingServer::mesh_add_surface_from_arrays_ex`][super::RenderingServer::mesh_add_surface_from_arrays_ex]."] +#[must_use] +pub struct ExMeshAddSurfaceFromArrays < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, mesh: Rid, primitive: crate::classes::rendering_server::PrimitiveType, arrays: CowArg < 'a, VariantArray >, blend_shapes: CowArg < 'a, VariantArray >, lods: CowArg < 'a, Dictionary >, compress_format: crate::classes::rendering_server::ArrayFormat, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExMeshAddSurfaceFromArrays < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, mesh: Rid, primitive: crate::classes::rendering_server::PrimitiveType, arrays: &'a VariantArray,) -> Self { + let blend_shapes = Array::new(); + let lods = Dictionary::new(); + let compress_format = crate::obj::EngineBitfield::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, mesh: mesh, primitive: primitive, arrays: CowArg::Borrowed(arrays), blend_shapes: CowArg::Owned(blend_shapes), lods: CowArg::Owned(lods), compress_format: compress_format, + } + } + #[inline] + pub fn blend_shapes(self, blend_shapes: &'a VariantArray) -> Self { + Self { + blend_shapes: CowArg::Borrowed(blend_shapes), .. self + } + } + #[inline] + pub fn lods(self, lods: &'a Dictionary) -> Self { + Self { + lods: CowArg::Borrowed(lods), .. self + } + } + #[inline] + pub fn compress_format(self, compress_format: crate::classes::rendering_server::ArrayFormat) -> Self { + Self { + compress_format: compress_format, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, mesh, primitive, arrays, blend_shapes, lods, compress_format, + } + = self; + re_export::RenderingServer::mesh_add_surface_from_arrays_full(surround_object, mesh, primitive, arrays.cow_as_arg(), blend_shapes.cow_as_arg(), lods.cow_as_arg(), compress_format,) + } +} +#[doc = "Default-param extender for [`RenderingServer::multimesh_allocate_data_ex`][super::RenderingServer::multimesh_allocate_data_ex]."] +#[must_use] +pub struct ExMultimeshAllocateData < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, multimesh: Rid, instances: i32, transform_format: crate::classes::rendering_server::MultimeshTransformFormat, color_format: bool, custom_data_format: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExMultimeshAllocateData < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, multimesh: Rid, instances: i32, transform_format: crate::classes::rendering_server::MultimeshTransformFormat,) -> Self { + let color_format = false; + let custom_data_format = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, multimesh: multimesh, instances: instances, transform_format: transform_format, color_format: color_format, custom_data_format: custom_data_format, + } + } + #[inline] + pub fn color_format(self, color_format: bool) -> Self { + Self { + color_format: color_format, .. self + } + } + #[inline] + pub fn custom_data_format(self, custom_data_format: bool) -> Self { + Self { + custom_data_format: custom_data_format, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, multimesh, instances, transform_format, color_format, custom_data_format, + } + = self; + re_export::RenderingServer::multimesh_allocate_data_full(surround_object, multimesh, instances, transform_format, color_format, custom_data_format,) + } +} +#[doc = "Default-param extender for [`RenderingServer::skeleton_allocate_data_ex`][super::RenderingServer::skeleton_allocate_data_ex]."] +#[must_use] +pub struct ExSkeletonAllocateData < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, skeleton: Rid, bones: i32, is_2d_skeleton: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSkeletonAllocateData < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, skeleton: Rid, bones: i32,) -> Self { + let is_2d_skeleton = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, skeleton: skeleton, bones: bones, is_2d_skeleton: is_2d_skeleton, + } + } + #[inline] + pub fn is_2d_skeleton(self, is_2d_skeleton: bool) -> Self { + Self { + is_2d_skeleton: is_2d_skeleton, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, skeleton, bones, is_2d_skeleton, + } + = self; + re_export::RenderingServer::skeleton_allocate_data_full(surround_object, skeleton, bones, is_2d_skeleton,) + } +} +#[doc = "Default-param extender for [`RenderingServer::viewport_attach_to_screen_ex`][super::RenderingServer::viewport_attach_to_screen_ex]."] +#[must_use] +pub struct ExViewportAttachToScreen < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, viewport: Rid, rect: Rect2, screen: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExViewportAttachToScreen < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, viewport: Rid,) -> Self { + let rect = Rect2::from_components(0 as _, 0 as _, 0 as _, 0 as _); + let screen = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, viewport: viewport, rect: rect, screen: screen, + } + } + #[inline] + pub fn rect(self, rect: Rect2) -> Self { + Self { + rect: rect, .. self + } + } + #[inline] + pub fn screen(self, screen: i32) -> Self { + Self { + screen: screen, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, viewport, rect, screen, + } + = self; + re_export::RenderingServer::viewport_attach_to_screen_full(surround_object, viewport, rect, screen,) + } +} +#[doc = "Default-param extender for [`RenderingServer::viewport_set_positional_shadow_atlas_size_ex`][super::RenderingServer::viewport_set_positional_shadow_atlas_size_ex]."] +#[must_use] +pub struct ExViewportSetPositionalShadowAtlasSize < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, viewport: Rid, size: i32, use_16_bits: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExViewportSetPositionalShadowAtlasSize < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, viewport: Rid, size: i32,) -> Self { + let use_16_bits = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, viewport: viewport, size: size, use_16_bits: use_16_bits, + } + } + #[inline] + pub fn use_16_bits(self, use_16_bits: bool) -> Self { + Self { + use_16_bits: use_16_bits, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, viewport, size, use_16_bits, + } + = self; + re_export::RenderingServer::viewport_set_positional_shadow_atlas_size_full(surround_object, viewport, size, use_16_bits,) + } +} +#[doc = "Default-param extender for [`RenderingServer::environment_set_ambient_light_ex`][super::RenderingServer::environment_set_ambient_light_ex]."] +#[must_use] +pub struct ExEnvironmentSetAmbientLight < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, env: Rid, color: Color, ambient: crate::classes::rendering_server::EnvironmentAmbientSource, energy: f32, sky_contibution: f32, reflection_source: crate::classes::rendering_server::EnvironmentReflectionSource, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExEnvironmentSetAmbientLight < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, env: Rid, color: Color,) -> Self { + let ambient = crate::obj::EngineEnum::from_ord(0); + let energy = 1f32; + let sky_contibution = 0f32; + let reflection_source = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, env: env, color: color, ambient: ambient, energy: energy, sky_contibution: sky_contibution, reflection_source: reflection_source, + } + } + #[inline] + pub fn ambient(self, ambient: crate::classes::rendering_server::EnvironmentAmbientSource) -> Self { + Self { + ambient: ambient, .. self + } + } + #[inline] + pub fn energy(self, energy: f32) -> Self { + Self { + energy: energy, .. self + } + } + #[inline] + pub fn sky_contibution(self, sky_contibution: f32) -> Self { + Self { + sky_contibution: sky_contibution, .. self + } + } + #[inline] + pub fn reflection_source(self, reflection_source: crate::classes::rendering_server::EnvironmentReflectionSource) -> Self { + Self { + reflection_source: reflection_source, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, env, color, ambient, energy, sky_contibution, reflection_source, + } + = self; + re_export::RenderingServer::environment_set_ambient_light_full(surround_object, env, color, ambient, energy, sky_contibution, reflection_source,) + } +} +#[doc = "Default-param extender for [`RenderingServer::environment_set_fog_ex`][super::RenderingServer::environment_set_fog_ex]."] +#[must_use] +pub struct ExEnvironmentSetFog < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, env: Rid, enable: bool, light_color: Color, light_energy: f32, sun_scatter: f32, density: f32, height: f32, height_density: f32, aerial_perspective: f32, sky_affect: f32, fog_mode: crate::classes::rendering_server::EnvironmentFogMode, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExEnvironmentSetFog < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, env: Rid, enable: bool, light_color: Color, light_energy: f32, sun_scatter: f32, density: f32, height: f32, height_density: f32, aerial_perspective: f32, sky_affect: f32,) -> Self { + let fog_mode = crate::obj::EngineEnum::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, env: env, enable: enable, light_color: light_color, light_energy: light_energy, sun_scatter: sun_scatter, density: density, height: height, height_density: height_density, aerial_perspective: aerial_perspective, sky_affect: sky_affect, fog_mode: fog_mode, + } + } + #[inline] + pub fn fog_mode(self, fog_mode: crate::classes::rendering_server::EnvironmentFogMode) -> Self { + Self { + fog_mode: fog_mode, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, env, enable, light_color, light_energy, sun_scatter, density, height, height_density, aerial_perspective, sky_affect, fog_mode, + } + = self; + re_export::RenderingServer::environment_set_fog_full(surround_object, env, enable, light_color, light_energy, sun_scatter, density, height, height_density, aerial_perspective, sky_affect, fog_mode,) + } +} +#[doc = "Default-param extender for [`RenderingServer::instances_cull_aabb_ex`][super::RenderingServer::instances_cull_aabb_ex]."] +#[must_use] +pub struct ExInstancesCullAabb < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RenderingServer, aabb: Aabb, scenario: Rid, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExInstancesCullAabb < 'a > { + fn new(surround_object: &'a re_export::RenderingServer, aabb: Aabb,) -> Self { + let scenario = Rid::Invalid; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, aabb: aabb, scenario: scenario, + } + } + #[inline] + pub fn scenario(self, scenario: Rid) -> Self { + Self { + scenario: scenario, .. self + } + } + #[inline] + pub fn done(self) -> PackedInt64Array { + let Self { + _phantom, surround_object, aabb, scenario, + } + = self; + re_export::RenderingServer::instances_cull_aabb_full(surround_object, aabb, scenario,) + } +} +#[doc = "Default-param extender for [`RenderingServer::instances_cull_ray_ex`][super::RenderingServer::instances_cull_ray_ex]."] +#[must_use] +pub struct ExInstancesCullRay < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RenderingServer, from: Vector3, to: Vector3, scenario: Rid, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExInstancesCullRay < 'a > { + fn new(surround_object: &'a re_export::RenderingServer, from: Vector3, to: Vector3,) -> Self { + let scenario = Rid::Invalid; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, from: from, to: to, scenario: scenario, + } + } + #[inline] + pub fn scenario(self, scenario: Rid) -> Self { + Self { + scenario: scenario, .. self + } + } + #[inline] + pub fn done(self) -> PackedInt64Array { + let Self { + _phantom, surround_object, from, to, scenario, + } + = self; + re_export::RenderingServer::instances_cull_ray_full(surround_object, from, to, scenario,) + } +} +#[doc = "Default-param extender for [`RenderingServer::instances_cull_convex_ex`][super::RenderingServer::instances_cull_convex_ex]."] +#[must_use] +pub struct ExInstancesCullConvex < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::RenderingServer, convex: CowArg < 'a, Array < Plane > >, scenario: Rid, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExInstancesCullConvex < 'a > { + fn new(surround_object: &'a re_export::RenderingServer, convex: &'a Array < Plane >,) -> Self { + let scenario = Rid::Invalid; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, convex: CowArg::Borrowed(convex), scenario: scenario, + } + } + #[inline] + pub fn scenario(self, scenario: Rid) -> Self { + Self { + scenario: scenario, .. self + } + } + #[inline] + pub fn done(self) -> PackedInt64Array { + let Self { + _phantom, surround_object, convex, scenario, + } + = self; + re_export::RenderingServer::instances_cull_convex_full(surround_object, convex.cow_as_arg(), scenario,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_set_custom_rect_ex`][super::RenderingServer::canvas_item_set_custom_rect_ex]."] +#[must_use] +pub struct ExCanvasItemSetCustomRect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, use_custom_rect: bool, rect: Rect2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemSetCustomRect < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, use_custom_rect: bool,) -> Self { + let rect = Rect2::from_components(0 as _, 0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, use_custom_rect: use_custom_rect, rect: rect, + } + } + #[inline] + pub fn rect(self, rect: Rect2) -> Self { + Self { + rect: rect, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, use_custom_rect, rect, + } + = self; + re_export::RenderingServer::canvas_item_set_custom_rect_full(surround_object, item, use_custom_rect, rect,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_line_ex`][super::RenderingServer::canvas_item_add_line_ex]."] +#[must_use] +pub struct ExCanvasItemAddLine < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, from: Vector2, to: Vector2, color: Color, width: f32, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddLine < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, from: Vector2, to: Vector2, color: Color,) -> Self { + let width = - 1f32; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, from: from, to: to, color: color, width: width, antialiased: antialiased, + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, from, to, color, width, antialiased, + } + = self; + re_export::RenderingServer::canvas_item_add_line_full(surround_object, item, from, to, color, width, antialiased,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_polyline_ex`][super::RenderingServer::canvas_item_add_polyline_ex]."] +#[must_use] +pub struct ExCanvasItemAddPolyline < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, points: CowArg < 'a, PackedVector2Array >, colors: CowArg < 'a, PackedColorArray >, width: f32, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddPolyline < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> Self { + let width = - 1f32; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, points: CowArg::Borrowed(points), colors: CowArg::Borrowed(colors), width: width, antialiased: antialiased, + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, points, colors, width, antialiased, + } + = self; + re_export::RenderingServer::canvas_item_add_polyline_full(surround_object, item, points.cow_as_arg(), colors.cow_as_arg(), width, antialiased,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_multiline_ex`][super::RenderingServer::canvas_item_add_multiline_ex]."] +#[must_use] +pub struct ExCanvasItemAddMultiline < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, points: CowArg < 'a, PackedVector2Array >, colors: CowArg < 'a, PackedColorArray >, width: f32, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddMultiline < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> Self { + let width = - 1f32; + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, points: CowArg::Borrowed(points), colors: CowArg::Borrowed(colors), width: width, antialiased: antialiased, + } + } + #[inline] + pub fn width(self, width: f32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, points, colors, width, antialiased, + } + = self; + re_export::RenderingServer::canvas_item_add_multiline_full(surround_object, item, points.cow_as_arg(), colors.cow_as_arg(), width, antialiased,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_rect_ex`][super::RenderingServer::canvas_item_add_rect_ex]."] +#[must_use] +pub struct ExCanvasItemAddRect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, rect: Rect2, color: Color, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddRect < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, rect: Rect2, color: Color,) -> Self { + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, rect: rect, color: color, antialiased: antialiased, + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, rect, color, antialiased, + } + = self; + re_export::RenderingServer::canvas_item_add_rect_full(surround_object, item, rect, color, antialiased,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_circle_ex`][super::RenderingServer::canvas_item_add_circle_ex]."] +#[must_use] +pub struct ExCanvasItemAddCircle < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, pos: Vector2, radius: f32, color: Color, antialiased: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddCircle < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, pos: Vector2, radius: f32, color: Color,) -> Self { + let antialiased = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, pos: pos, radius: radius, color: color, antialiased: antialiased, + } + } + #[inline] + pub fn antialiased(self, antialiased: bool) -> Self { + Self { + antialiased: antialiased, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, pos, radius, color, antialiased, + } + = self; + re_export::RenderingServer::canvas_item_add_circle_full(surround_object, item, pos, radius, color, antialiased,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_texture_rect_ex`][super::RenderingServer::canvas_item_add_texture_rect_ex]."] +#[must_use] +pub struct ExCanvasItemAddTextureRect < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, rect: Rect2, texture: Rid, tile: bool, modulate: Color, transpose: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddTextureRect < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, rect: Rect2, texture: Rid,) -> Self { + let tile = false; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let transpose = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, rect: rect, texture: texture, tile: tile, modulate: modulate, transpose: transpose, + } + } + #[inline] + pub fn tile(self, tile: bool) -> Self { + Self { + tile: tile, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn transpose(self, transpose: bool) -> Self { + Self { + transpose: transpose, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, rect, texture, tile, modulate, transpose, + } + = self; + re_export::RenderingServer::canvas_item_add_texture_rect_full(surround_object, item, rect, texture, tile, modulate, transpose,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_msdf_texture_rect_region_ex`][super::RenderingServer::canvas_item_add_msdf_texture_rect_region_ex]."] +#[must_use] +pub struct ExCanvasItemAddMsdfTextureRectRegion < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2, modulate: Color, outline_size: i32, px_range: f32, scale: f32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddMsdfTextureRectRegion < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2,) -> Self { + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let outline_size = 0i32; + let px_range = 1f32; + let scale = 1f32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, rect: rect, texture: texture, src_rect: src_rect, modulate: modulate, outline_size: outline_size, px_range: px_range, scale: scale, + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn outline_size(self, outline_size: i32) -> Self { + Self { + outline_size: outline_size, .. self + } + } + #[inline] + pub fn px_range(self, px_range: f32) -> Self { + Self { + px_range: px_range, .. self + } + } + #[inline] + pub fn scale(self, scale: f32) -> Self { + Self { + scale: scale, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, rect, texture, src_rect, modulate, outline_size, px_range, scale, + } + = self; + re_export::RenderingServer::canvas_item_add_msdf_texture_rect_region_full(surround_object, item, rect, texture, src_rect, modulate, outline_size, px_range, scale,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_texture_rect_region_ex`][super::RenderingServer::canvas_item_add_texture_rect_region_ex]."] +#[must_use] +pub struct ExCanvasItemAddTextureRectRegion < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2, modulate: Color, transpose: bool, clip_uv: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddTextureRectRegion < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2,) -> Self { + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let transpose = false; + let clip_uv = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, rect: rect, texture: texture, src_rect: src_rect, modulate: modulate, transpose: transpose, clip_uv: clip_uv, + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn transpose(self, transpose: bool) -> Self { + Self { + transpose: transpose, .. self + } + } + #[inline] + pub fn clip_uv(self, clip_uv: bool) -> Self { + Self { + clip_uv: clip_uv, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, rect, texture, src_rect, modulate, transpose, clip_uv, + } + = self; + re_export::RenderingServer::canvas_item_add_texture_rect_region_full(surround_object, item, rect, texture, src_rect, modulate, transpose, clip_uv,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_nine_patch_ex`][super::RenderingServer::canvas_item_add_nine_patch_ex]."] +#[must_use] +pub struct ExCanvasItemAddNinePatch < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, rect: Rect2, source: Rect2, texture: Rid, topleft: Vector2, bottomright: Vector2, x_axis_mode: crate::classes::rendering_server::NinePatchAxisMode, y_axis_mode: crate::classes::rendering_server::NinePatchAxisMode, draw_center: bool, modulate: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddNinePatch < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, rect: Rect2, source: Rect2, texture: Rid, topleft: Vector2, bottomright: Vector2,) -> Self { + let x_axis_mode = crate::obj::EngineEnum::from_ord(0); + let y_axis_mode = crate::obj::EngineEnum::from_ord(0); + let draw_center = true; + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, rect: rect, source: source, texture: texture, topleft: topleft, bottomright: bottomright, x_axis_mode: x_axis_mode, y_axis_mode: y_axis_mode, draw_center: draw_center, modulate: modulate, + } + } + #[inline] + pub fn x_axis_mode(self, x_axis_mode: crate::classes::rendering_server::NinePatchAxisMode) -> Self { + Self { + x_axis_mode: x_axis_mode, .. self + } + } + #[inline] + pub fn y_axis_mode(self, y_axis_mode: crate::classes::rendering_server::NinePatchAxisMode) -> Self { + Self { + y_axis_mode: y_axis_mode, .. self + } + } + #[inline] + pub fn draw_center(self, draw_center: bool) -> Self { + Self { + draw_center: draw_center, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, rect, source, texture, topleft, bottomright, x_axis_mode, y_axis_mode, draw_center, modulate, + } + = self; + re_export::RenderingServer::canvas_item_add_nine_patch_full(surround_object, item, rect, source, texture, topleft, bottomright, x_axis_mode, y_axis_mode, draw_center, modulate,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_polygon_ex`][super::RenderingServer::canvas_item_add_polygon_ex]."] +#[must_use] +pub struct ExCanvasItemAddPolygon < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, points: CowArg < 'a, PackedVector2Array >, colors: CowArg < 'a, PackedColorArray >, uvs: CowArg < 'a, PackedVector2Array >, texture: Rid, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddPolygon < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> Self { + let uvs = PackedVector2Array::new(); + let texture = Rid::Invalid; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, points: CowArg::Borrowed(points), colors: CowArg::Borrowed(colors), uvs: CowArg::Owned(uvs), texture: texture, + } + } + #[inline] + pub fn uvs(self, uvs: &'a PackedVector2Array) -> Self { + Self { + uvs: CowArg::Borrowed(uvs), .. self + } + } + #[inline] + pub fn texture(self, texture: Rid) -> Self { + Self { + texture: texture, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, points, colors, uvs, texture, + } + = self; + re_export::RenderingServer::canvas_item_add_polygon_full(surround_object, item, points.cow_as_arg(), colors.cow_as_arg(), uvs.cow_as_arg(), texture,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_triangle_array_ex`][super::RenderingServer::canvas_item_add_triangle_array_ex]."] +#[must_use] +pub struct ExCanvasItemAddTriangleArray < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, indices: CowArg < 'a, PackedInt32Array >, points: CowArg < 'a, PackedVector2Array >, colors: CowArg < 'a, PackedColorArray >, uvs: CowArg < 'a, PackedVector2Array >, bones: CowArg < 'a, PackedInt32Array >, weights: CowArg < 'a, PackedFloat32Array >, texture: Rid, count: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddTriangleArray < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, indices: &'a PackedInt32Array, points: &'a PackedVector2Array, colors: &'a PackedColorArray,) -> Self { + let uvs = PackedVector2Array::new(); + let bones = PackedInt32Array::new(); + let weights = PackedFloat32Array::new(); + let texture = Rid::Invalid; + let count = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, indices: CowArg::Borrowed(indices), points: CowArg::Borrowed(points), colors: CowArg::Borrowed(colors), uvs: CowArg::Owned(uvs), bones: CowArg::Owned(bones), weights: CowArg::Owned(weights), texture: texture, count: count, + } + } + #[inline] + pub fn uvs(self, uvs: &'a PackedVector2Array) -> Self { + Self { + uvs: CowArg::Borrowed(uvs), .. self + } + } + #[inline] + pub fn bones(self, bones: &'a PackedInt32Array) -> Self { + Self { + bones: CowArg::Borrowed(bones), .. self + } + } + #[inline] + pub fn weights(self, weights: &'a PackedFloat32Array) -> Self { + Self { + weights: CowArg::Borrowed(weights), .. self + } + } + #[inline] + pub fn texture(self, texture: Rid) -> Self { + Self { + texture: texture, .. self + } + } + #[inline] + pub fn count(self, count: i32) -> Self { + Self { + count: count, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, indices, points, colors, uvs, bones, weights, texture, count, + } + = self; + re_export::RenderingServer::canvas_item_add_triangle_array_full(surround_object, item, indices.cow_as_arg(), points.cow_as_arg(), colors.cow_as_arg(), uvs.cow_as_arg(), bones.cow_as_arg(), weights.cow_as_arg(), texture, count,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_mesh_ex`][super::RenderingServer::canvas_item_add_mesh_ex]."] +#[must_use] +pub struct ExCanvasItemAddMesh < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, mesh: Rid, transform: Transform2D, modulate: Color, texture: Rid, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddMesh < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, mesh: Rid,) -> Self { + let transform = Transform2D::__internal_codegen(1 as _, 0 as _, 0 as _, 1 as _, 0 as _, 0 as _); + let modulate = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let texture = Rid::Invalid; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, mesh: mesh, transform: transform, modulate: modulate, texture: texture, + } + } + #[inline] + pub fn transform(self, transform: Transform2D) -> Self { + Self { + transform: transform, .. self + } + } + #[inline] + pub fn modulate(self, modulate: Color) -> Self { + Self { + modulate: modulate, .. self + } + } + #[inline] + pub fn texture(self, texture: Rid) -> Self { + Self { + texture: texture, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, mesh, transform, modulate, texture, + } + = self; + re_export::RenderingServer::canvas_item_add_mesh_full(surround_object, item, mesh, transform, modulate, texture,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_multimesh_ex`][super::RenderingServer::canvas_item_add_multimesh_ex]."] +#[must_use] +pub struct ExCanvasItemAddMultimesh < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, mesh: Rid, texture: Rid, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddMultimesh < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, mesh: Rid,) -> Self { + let texture = Rid::Invalid; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, mesh: mesh, texture: texture, + } + } + #[inline] + pub fn texture(self, texture: Rid) -> Self { + Self { + texture: texture, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, mesh, texture, + } + = self; + re_export::RenderingServer::canvas_item_add_multimesh_full(surround_object, item, mesh, texture,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_add_animation_slice_ex`][super::RenderingServer::canvas_item_add_animation_slice_ex]."] +#[must_use] +pub struct ExCanvasItemAddAnimationSlice < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, animation_length: f64, slice_begin: f64, slice_end: f64, offset: f64, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemAddAnimationSlice < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, animation_length: f64, slice_begin: f64, slice_end: f64,) -> Self { + let offset = 0f64; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, animation_length: animation_length, slice_begin: slice_begin, slice_end: slice_end, offset: offset, + } + } + #[inline] + pub fn offset(self, offset: f64) -> Self { + Self { + offset: offset, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, animation_length, slice_begin, slice_end, offset, + } + = self; + re_export::RenderingServer::canvas_item_add_animation_slice_full(surround_object, item, animation_length, slice_begin, slice_end, offset,) + } +} +#[doc = "Default-param extender for [`RenderingServer::canvas_item_set_canvas_group_mode_ex`][super::RenderingServer::canvas_item_set_canvas_group_mode_ex]."] +#[must_use] +pub struct ExCanvasItemSetCanvasGroupMode < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, item: Rid, mode: crate::classes::rendering_server::CanvasGroupMode, clear_margin: f32, fit_empty: bool, fit_margin: f32, blur_mipmaps: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCanvasItemSetCanvasGroupMode < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, item: Rid, mode: crate::classes::rendering_server::CanvasGroupMode,) -> Self { + let clear_margin = 5f32; + let fit_empty = false; + let fit_margin = 0f32; + let blur_mipmaps = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, item: item, mode: mode, clear_margin: clear_margin, fit_empty: fit_empty, fit_margin: fit_margin, blur_mipmaps: blur_mipmaps, + } + } + #[inline] + pub fn clear_margin(self, clear_margin: f32) -> Self { + Self { + clear_margin: clear_margin, .. self + } + } + #[inline] + pub fn fit_empty(self, fit_empty: bool) -> Self { + Self { + fit_empty: fit_empty, .. self + } + } + #[inline] + pub fn fit_margin(self, fit_margin: f32) -> Self { + Self { + fit_margin: fit_margin, .. self + } + } + #[inline] + pub fn blur_mipmaps(self, blur_mipmaps: bool) -> Self { + Self { + blur_mipmaps: blur_mipmaps, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, item, mode, clear_margin, fit_empty, fit_margin, blur_mipmaps, + } + = self; + re_export::RenderingServer::canvas_item_set_canvas_group_mode_full(surround_object, item, mode, clear_margin, fit_empty, fit_margin, blur_mipmaps,) + } +} +#[doc = "Default-param extender for [`RenderingServer::set_boot_image_ex`][super::RenderingServer::set_boot_image_ex]."] +#[must_use] +pub struct ExSetBootImage < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, image: ObjectCow < crate::classes::Image >, color: Color, scale: bool, use_filter: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetBootImage < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer, image: impl AsObjectArg < crate::classes::Image >, color: Color, scale: bool,) -> Self { + let use_filter = true; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, image: image.consume_arg(), color: color, scale: scale, use_filter: use_filter, + } + } + #[inline] + pub fn use_filter(self, use_filter: bool) -> Self { + Self { + use_filter: use_filter, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, image, color, scale, use_filter, + } + = self; + re_export::RenderingServer::set_boot_image_full(surround_object, image.cow_as_object_arg(), color, scale, use_filter,) + } +} +#[doc = "Default-param extender for [`RenderingServer::force_draw_ex`][super::RenderingServer::force_draw_ex]."] +#[must_use] +pub struct ExForceDraw < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RenderingServer, swap_buffers: bool, frame_step: f64, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExForceDraw < 'a > { + fn new(surround_object: &'a mut re_export::RenderingServer,) -> Self { + let swap_buffers = true; + let frame_step = 0f64; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, swap_buffers: swap_buffers, frame_step: frame_step, + } + } + #[inline] + pub fn swap_buffers(self, swap_buffers: bool) -> Self { + Self { + swap_buffers: swap_buffers, .. self + } + } + #[inline] + pub fn frame_step(self, frame_step: f64) -> Self { + Self { + frame_step: frame_step, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, swap_buffers, frame_step, + } + = self; + re_export::RenderingServer::force_draw_full(surround_object, swap_buffers, frame_step,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct TextureLayeredType { + ord: i32 +} +impl TextureLayeredType { + #[doc(alias = "TEXTURE_LAYERED_2D_ARRAY")] + #[doc = "Godot enumerator name: `TEXTURE_LAYERED_2D_ARRAY`"] + pub const LAYERED_2D_ARRAY: TextureLayeredType = TextureLayeredType { + ord: 0i32 + }; + #[doc(alias = "TEXTURE_LAYERED_CUBEMAP")] + #[doc = "Godot enumerator name: `TEXTURE_LAYERED_CUBEMAP`"] + pub const CUBEMAP: TextureLayeredType = TextureLayeredType { + ord: 1i32 + }; + #[doc(alias = "TEXTURE_LAYERED_CUBEMAP_ARRAY")] + #[doc = "Godot enumerator name: `TEXTURE_LAYERED_CUBEMAP_ARRAY`"] + pub const CUBEMAP_ARRAY: TextureLayeredType = TextureLayeredType { + ord: 2i32 + }; + +} +impl std::fmt::Debug for TextureLayeredType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("TextureLayeredType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for TextureLayeredType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LAYERED_2D_ARRAY => "LAYERED_2D_ARRAY", Self::CUBEMAP => "CUBEMAP", Self::CUBEMAP_ARRAY => "CUBEMAP_ARRAY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LAYERED_2D_ARRAY => "TEXTURE_LAYERED_2D_ARRAY", Self::CUBEMAP => "TEXTURE_LAYERED_CUBEMAP", Self::CUBEMAP_ARRAY => "TEXTURE_LAYERED_CUBEMAP_ARRAY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for TextureLayeredType { + type Via = i32; + +} +impl crate::meta::ToGodot for TextureLayeredType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for TextureLayeredType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CubeMapLayer { + ord: i32 +} +impl CubeMapLayer { + #[doc(alias = "CUBEMAP_LAYER_LEFT")] + #[doc = "Godot enumerator name: `CUBEMAP_LAYER_LEFT`"] + pub const LEFT: CubeMapLayer = CubeMapLayer { + ord: 0i32 + }; + #[doc(alias = "CUBEMAP_LAYER_RIGHT")] + #[doc = "Godot enumerator name: `CUBEMAP_LAYER_RIGHT`"] + pub const RIGHT: CubeMapLayer = CubeMapLayer { + ord: 1i32 + }; + #[doc(alias = "CUBEMAP_LAYER_BOTTOM")] + #[doc = "Godot enumerator name: `CUBEMAP_LAYER_BOTTOM`"] + pub const BOTTOM: CubeMapLayer = CubeMapLayer { + ord: 2i32 + }; + #[doc(alias = "CUBEMAP_LAYER_TOP")] + #[doc = "Godot enumerator name: `CUBEMAP_LAYER_TOP`"] + pub const TOP: CubeMapLayer = CubeMapLayer { + ord: 3i32 + }; + #[doc(alias = "CUBEMAP_LAYER_FRONT")] + #[doc = "Godot enumerator name: `CUBEMAP_LAYER_FRONT`"] + pub const FRONT: CubeMapLayer = CubeMapLayer { + ord: 4i32 + }; + #[doc(alias = "CUBEMAP_LAYER_BACK")] + #[doc = "Godot enumerator name: `CUBEMAP_LAYER_BACK`"] + pub const BACK: CubeMapLayer = CubeMapLayer { + ord: 5i32 + }; + +} +impl std::fmt::Debug for CubeMapLayer { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CubeMapLayer") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CubeMapLayer { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT => "LEFT", Self::RIGHT => "RIGHT", Self::BOTTOM => "BOTTOM", Self::TOP => "TOP", Self::FRONT => "FRONT", Self::BACK => "BACK", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LEFT => "CUBEMAP_LAYER_LEFT", Self::RIGHT => "CUBEMAP_LAYER_RIGHT", Self::BOTTOM => "CUBEMAP_LAYER_BOTTOM", Self::TOP => "CUBEMAP_LAYER_TOP", Self::FRONT => "CUBEMAP_LAYER_FRONT", Self::BACK => "CUBEMAP_LAYER_BACK", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CubeMapLayer { + type Via = i32; + +} +impl crate::meta::ToGodot for CubeMapLayer { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CubeMapLayer { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShaderMode { + ord: i32 +} +impl ShaderMode { + #[doc(alias = "SHADER_SPATIAL")] + #[doc = "Godot enumerator name: `SHADER_SPATIAL`"] + pub const SPATIAL: ShaderMode = ShaderMode { + ord: 0i32 + }; + #[doc(alias = "SHADER_CANVAS_ITEM")] + #[doc = "Godot enumerator name: `SHADER_CANVAS_ITEM`"] + pub const CANVAS_ITEM: ShaderMode = ShaderMode { + ord: 1i32 + }; + #[doc(alias = "SHADER_PARTICLES")] + #[doc = "Godot enumerator name: `SHADER_PARTICLES`"] + pub const PARTICLES: ShaderMode = ShaderMode { + ord: 2i32 + }; + #[doc(alias = "SHADER_SKY")] + #[doc = "Godot enumerator name: `SHADER_SKY`"] + pub const SKY: ShaderMode = ShaderMode { + ord: 3i32 + }; + #[doc(alias = "SHADER_FOG")] + #[doc = "Godot enumerator name: `SHADER_FOG`"] + pub const FOG: ShaderMode = ShaderMode { + ord: 4i32 + }; + #[doc(alias = "SHADER_MAX")] + #[doc = "Godot enumerator name: `SHADER_MAX`"] + pub const MAX: ShaderMode = ShaderMode { + ord: 5i32 + }; + +} +impl std::fmt::Debug for ShaderMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShaderMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShaderMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SPATIAL => "SPATIAL", Self::CANVAS_ITEM => "CANVAS_ITEM", Self::PARTICLES => "PARTICLES", Self::SKY => "SKY", Self::FOG => "FOG", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SPATIAL => "SHADER_SPATIAL", Self::CANVAS_ITEM => "SHADER_CANVAS_ITEM", Self::PARTICLES => "SHADER_PARTICLES", Self::SKY => "SHADER_SKY", Self::FOG => "SHADER_FOG", Self::MAX => "SHADER_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ShaderMode { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for ShaderMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ShaderMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShaderMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ArrayType { + ord: i32 +} +impl ArrayType { + #[doc(alias = "ARRAY_VERTEX")] + #[doc = "Godot enumerator name: `ARRAY_VERTEX`"] + pub const VERTEX: ArrayType = ArrayType { + ord: 0i32 + }; + #[doc(alias = "ARRAY_NORMAL")] + #[doc = "Godot enumerator name: `ARRAY_NORMAL`"] + pub const NORMAL: ArrayType = ArrayType { + ord: 1i32 + }; + #[doc(alias = "ARRAY_TANGENT")] + #[doc = "Godot enumerator name: `ARRAY_TANGENT`"] + pub const TANGENT: ArrayType = ArrayType { + ord: 2i32 + }; + #[doc(alias = "ARRAY_COLOR")] + #[doc = "Godot enumerator name: `ARRAY_COLOR`"] + pub const COLOR: ArrayType = ArrayType { + ord: 3i32 + }; + #[doc(alias = "ARRAY_TEX_UV")] + #[doc = "Godot enumerator name: `ARRAY_TEX_UV`"] + pub const TEX_UV: ArrayType = ArrayType { + ord: 4i32 + }; + #[doc(alias = "ARRAY_TEX_UV2")] + #[doc = "Godot enumerator name: `ARRAY_TEX_UV2`"] + pub const TEX_UV2: ArrayType = ArrayType { + ord: 5i32 + }; + #[doc(alias = "ARRAY_CUSTOM0")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM0`"] + pub const CUSTOM0: ArrayType = ArrayType { + ord: 6i32 + }; + #[doc(alias = "ARRAY_CUSTOM1")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM1`"] + pub const CUSTOM1: ArrayType = ArrayType { + ord: 7i32 + }; + #[doc(alias = "ARRAY_CUSTOM2")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM2`"] + pub const CUSTOM2: ArrayType = ArrayType { + ord: 8i32 + }; + #[doc(alias = "ARRAY_CUSTOM3")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM3`"] + pub const CUSTOM3: ArrayType = ArrayType { + ord: 9i32 + }; + #[doc(alias = "ARRAY_BONES")] + #[doc = "Godot enumerator name: `ARRAY_BONES`"] + pub const BONES: ArrayType = ArrayType { + ord: 10i32 + }; + #[doc(alias = "ARRAY_WEIGHTS")] + #[doc = "Godot enumerator name: `ARRAY_WEIGHTS`"] + pub const WEIGHTS: ArrayType = ArrayType { + ord: 11i32 + }; + #[doc(alias = "ARRAY_INDEX")] + #[doc = "Godot enumerator name: `ARRAY_INDEX`"] + pub const INDEX: ArrayType = ArrayType { + ord: 12i32 + }; + #[doc(alias = "ARRAY_MAX")] + #[doc = "Godot enumerator name: `ARRAY_MAX`"] + pub const MAX: ArrayType = ArrayType { + ord: 13i32 + }; + +} +impl std::fmt::Debug for ArrayType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ArrayType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ArrayType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERTEX => "VERTEX", Self::NORMAL => "NORMAL", Self::TANGENT => "TANGENT", Self::COLOR => "COLOR", Self::TEX_UV => "TEX_UV", Self::TEX_UV2 => "TEX_UV2", Self::CUSTOM0 => "CUSTOM0", Self::CUSTOM1 => "CUSTOM1", Self::CUSTOM2 => "CUSTOM2", Self::CUSTOM3 => "CUSTOM3", Self::BONES => "BONES", Self::WEIGHTS => "WEIGHTS", Self::INDEX => "INDEX", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERTEX => "ARRAY_VERTEX", Self::NORMAL => "ARRAY_NORMAL", Self::TANGENT => "ARRAY_TANGENT", Self::COLOR => "ARRAY_COLOR", Self::TEX_UV => "ARRAY_TEX_UV", Self::TEX_UV2 => "ARRAY_TEX_UV2", Self::CUSTOM0 => "ARRAY_CUSTOM0", Self::CUSTOM1 => "ARRAY_CUSTOM1", Self::CUSTOM2 => "ARRAY_CUSTOM2", Self::CUSTOM3 => "ARRAY_CUSTOM3", Self::BONES => "ARRAY_BONES", Self::WEIGHTS => "ARRAY_WEIGHTS", Self::INDEX => "ARRAY_INDEX", Self::MAX => "ARRAY_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ArrayType { + const ENUMERATOR_COUNT: usize = 13usize; + +} +impl crate::meta::GodotConvert for ArrayType { + type Via = i32; + +} +impl crate::meta::ToGodot for ArrayType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ArrayType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ArrayCustomFormat { + ord: i32 +} +impl ArrayCustomFormat { + #[doc(alias = "ARRAY_CUSTOM_RGBA8_UNORM")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RGBA8_UNORM`"] + pub const RGBA8_UNORM: ArrayCustomFormat = ArrayCustomFormat { + ord: 0i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RGBA8_SNORM")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RGBA8_SNORM`"] + pub const RGBA8_SNORM: ArrayCustomFormat = ArrayCustomFormat { + ord: 1i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RG_HALF")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RG_HALF`"] + pub const RG_HALF: ArrayCustomFormat = ArrayCustomFormat { + ord: 2i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RGBA_HALF")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RGBA_HALF`"] + pub const RGBA_HALF: ArrayCustomFormat = ArrayCustomFormat { + ord: 3i32 + }; + #[doc(alias = "ARRAY_CUSTOM_R_FLOAT")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_R_FLOAT`"] + pub const R_FLOAT: ArrayCustomFormat = ArrayCustomFormat { + ord: 4i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RG_FLOAT")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RG_FLOAT`"] + pub const RG_FLOAT: ArrayCustomFormat = ArrayCustomFormat { + ord: 5i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RGB_FLOAT")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RGB_FLOAT`"] + pub const RGB_FLOAT: ArrayCustomFormat = ArrayCustomFormat { + ord: 6i32 + }; + #[doc(alias = "ARRAY_CUSTOM_RGBA_FLOAT")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_RGBA_FLOAT`"] + pub const RGBA_FLOAT: ArrayCustomFormat = ArrayCustomFormat { + ord: 7i32 + }; + #[doc(alias = "ARRAY_CUSTOM_MAX")] + #[doc = "Godot enumerator name: `ARRAY_CUSTOM_MAX`"] + pub const MAX: ArrayCustomFormat = ArrayCustomFormat { + ord: 8i32 + }; + +} +impl std::fmt::Debug for ArrayCustomFormat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ArrayCustomFormat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ArrayCustomFormat { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RGBA8_UNORM => "RGBA8_UNORM", Self::RGBA8_SNORM => "RGBA8_SNORM", Self::RG_HALF => "RG_HALF", Self::RGBA_HALF => "RGBA_HALF", Self::R_FLOAT => "R_FLOAT", Self::RG_FLOAT => "RG_FLOAT", Self::RGB_FLOAT => "RGB_FLOAT", Self::RGBA_FLOAT => "RGBA_FLOAT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RGBA8_UNORM => "ARRAY_CUSTOM_RGBA8_UNORM", Self::RGBA8_SNORM => "ARRAY_CUSTOM_RGBA8_SNORM", Self::RG_HALF => "ARRAY_CUSTOM_RG_HALF", Self::RGBA_HALF => "ARRAY_CUSTOM_RGBA_HALF", Self::R_FLOAT => "ARRAY_CUSTOM_R_FLOAT", Self::RG_FLOAT => "ARRAY_CUSTOM_RG_FLOAT", Self::RGB_FLOAT => "ARRAY_CUSTOM_RGB_FLOAT", Self::RGBA_FLOAT => "ARRAY_CUSTOM_RGBA_FLOAT", Self::MAX => "ARRAY_CUSTOM_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ArrayCustomFormat { + const ENUMERATOR_COUNT: usize = 8usize; + +} +impl crate::meta::GodotConvert for ArrayCustomFormat { + type Via = i32; + +} +impl crate::meta::ToGodot for ArrayCustomFormat { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ArrayCustomFormat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct ArrayFormat { + ord: u64 +} +impl ArrayFormat { + #[doc(alias = "ARRAY_FORMAT_VERTEX")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_VERTEX`"] + pub const VERTEX: ArrayFormat = ArrayFormat { + ord: 1u64 + }; + #[doc(alias = "ARRAY_FORMAT_NORMAL")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_NORMAL`"] + pub const NORMAL: ArrayFormat = ArrayFormat { + ord: 2u64 + }; + #[doc(alias = "ARRAY_FORMAT_TANGENT")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_TANGENT`"] + pub const TANGENT: ArrayFormat = ArrayFormat { + ord: 4u64 + }; + #[doc(alias = "ARRAY_FORMAT_COLOR")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_COLOR`"] + pub const COLOR: ArrayFormat = ArrayFormat { + ord: 8u64 + }; + #[doc(alias = "ARRAY_FORMAT_TEX_UV")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_TEX_UV`"] + pub const TEX_UV: ArrayFormat = ArrayFormat { + ord: 16u64 + }; + #[doc(alias = "ARRAY_FORMAT_TEX_UV2")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_TEX_UV2`"] + pub const TEX_UV2: ArrayFormat = ArrayFormat { + ord: 32u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM0")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM0`"] + pub const CUSTOM0: ArrayFormat = ArrayFormat { + ord: 64u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM1")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM1`"] + pub const CUSTOM1: ArrayFormat = ArrayFormat { + ord: 128u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM2")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM2`"] + pub const CUSTOM2: ArrayFormat = ArrayFormat { + ord: 256u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM3")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM3`"] + pub const CUSTOM3: ArrayFormat = ArrayFormat { + ord: 512u64 + }; + #[doc(alias = "ARRAY_FORMAT_BONES")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_BONES`"] + pub const BONES: ArrayFormat = ArrayFormat { + ord: 1024u64 + }; + #[doc(alias = "ARRAY_FORMAT_WEIGHTS")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_WEIGHTS`"] + pub const WEIGHTS: ArrayFormat = ArrayFormat { + ord: 2048u64 + }; + #[doc(alias = "ARRAY_FORMAT_INDEX")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_INDEX`"] + pub const INDEX: ArrayFormat = ArrayFormat { + ord: 4096u64 + }; + #[doc(alias = "ARRAY_FORMAT_BLEND_SHAPE_MASK")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_BLEND_SHAPE_MASK`"] + pub const BLEND_SHAPE_MASK: ArrayFormat = ArrayFormat { + ord: 7u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM_BASE")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM_BASE`"] + pub const CUSTOM_BASE: ArrayFormat = ArrayFormat { + ord: 13u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM_BITS")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM_BITS`"] + pub const CUSTOM_BITS: ArrayFormat = ArrayFormat { + ord: 3u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM0_SHIFT")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM0_SHIFT`"] + pub const CUSTOM0_SHIFT: ArrayFormat = ArrayFormat { + ord: 13u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM1_SHIFT")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM1_SHIFT`"] + pub const CUSTOM1_SHIFT: ArrayFormat = ArrayFormat { + ord: 16u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM2_SHIFT")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM2_SHIFT`"] + pub const CUSTOM2_SHIFT: ArrayFormat = ArrayFormat { + ord: 19u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM3_SHIFT")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM3_SHIFT`"] + pub const CUSTOM3_SHIFT: ArrayFormat = ArrayFormat { + ord: 22u64 + }; + #[doc(alias = "ARRAY_FORMAT_CUSTOM_MASK")] + #[doc = "Godot enumerator name: `ARRAY_FORMAT_CUSTOM_MASK`"] + pub const CUSTOM_MASK: ArrayFormat = ArrayFormat { + ord: 7u64 + }; + #[doc(alias = "ARRAY_COMPRESS_FLAGS_BASE")] + #[doc = "Godot enumerator name: `ARRAY_COMPRESS_FLAGS_BASE`"] + pub const COMPRESS_FLAGS_BASE: ArrayFormat = ArrayFormat { + ord: 25u64 + }; + #[doc(alias = "ARRAY_FLAG_USE_2D_VERTICES")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_USE_2D_VERTICES`"] + pub const FLAG_USE_2D_VERTICES: ArrayFormat = ArrayFormat { + ord: 33554432u64 + }; + #[doc(alias = "ARRAY_FLAG_USE_DYNAMIC_UPDATE")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_USE_DYNAMIC_UPDATE`"] + pub const FLAG_USE_DYNAMIC_UPDATE: ArrayFormat = ArrayFormat { + ord: 67108864u64 + }; + #[doc(alias = "ARRAY_FLAG_USE_8_BONE_WEIGHTS")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_USE_8_BONE_WEIGHTS`"] + pub const FLAG_USE_8_BONE_WEIGHTS: ArrayFormat = ArrayFormat { + ord: 134217728u64 + }; + #[doc(alias = "ARRAY_FLAG_USES_EMPTY_VERTEX_ARRAY")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_USES_EMPTY_VERTEX_ARRAY`"] + pub const FLAG_USES_EMPTY_VERTEX_ARRAY: ArrayFormat = ArrayFormat { + ord: 268435456u64 + }; + #[doc(alias = "ARRAY_FLAG_COMPRESS_ATTRIBUTES")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_COMPRESS_ATTRIBUTES`"] + pub const FLAG_COMPRESS_ATTRIBUTES: ArrayFormat = ArrayFormat { + ord: 536870912u64 + }; + #[doc(alias = "ARRAY_FLAG_FORMAT_VERSION_BASE")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_FORMAT_VERSION_BASE`"] + pub const FLAG_FORMAT_VERSION_BASE: ArrayFormat = ArrayFormat { + ord: 35u64 + }; + #[doc(alias = "ARRAY_FLAG_FORMAT_VERSION_SHIFT")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_FORMAT_VERSION_SHIFT`"] + pub const FLAG_FORMAT_VERSION_SHIFT: ArrayFormat = ArrayFormat { + ord: 35u64 + }; + #[doc(alias = "ARRAY_FLAG_FORMAT_VERSION_1")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_FORMAT_VERSION_1`"] + pub const FLAG_FORMAT_VERSION_1: ArrayFormat = ArrayFormat { + ord: 0u64 + }; + #[doc(alias = "ARRAY_FLAG_FORMAT_VERSION_2")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_FORMAT_VERSION_2`"] + pub const FLAG_FORMAT_VERSION_2: ArrayFormat = ArrayFormat { + ord: 34359738368u64 + }; + #[doc(alias = "ARRAY_FLAG_FORMAT_CURRENT_VERSION")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_FORMAT_CURRENT_VERSION`"] + pub const FLAG_FORMAT_CURRENT_VERSION: ArrayFormat = ArrayFormat { + ord: 34359738368u64 + }; + #[doc(alias = "ARRAY_FLAG_FORMAT_VERSION_MASK")] + #[doc = "Godot enumerator name: `ARRAY_FLAG_FORMAT_VERSION_MASK`"] + pub const FLAG_FORMAT_VERSION_MASK: ArrayFormat = ArrayFormat { + ord: 255u64 + }; + +} +impl std::fmt::Debug for ArrayFormat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::VERTEX => "VERTEX", Self::NORMAL => "NORMAL", Self::TANGENT => "TANGENT", Self::COLOR => "COLOR", Self::TEX_UV => "TEX_UV", Self::TEX_UV2 => "TEX_UV2", Self::CUSTOM0 => "CUSTOM0", Self::CUSTOM1 => "CUSTOM1", Self::CUSTOM2 => "CUSTOM2", Self::CUSTOM3 => "CUSTOM3", Self::BONES => "BONES", Self::WEIGHTS => "WEIGHTS", Self::INDEX => "INDEX", Self::BLEND_SHAPE_MASK => "BLEND_SHAPE_MASK", Self::CUSTOM_BASE => "CUSTOM_BASE", Self::CUSTOM_BITS => "CUSTOM_BITS", Self::CUSTOM0_SHIFT => "CUSTOM0_SHIFT", Self::CUSTOM1_SHIFT => "CUSTOM1_SHIFT", Self::CUSTOM2_SHIFT => "CUSTOM2_SHIFT", Self::CUSTOM3_SHIFT => "CUSTOM3_SHIFT", Self::CUSTOM_MASK => "CUSTOM_MASK", Self::COMPRESS_FLAGS_BASE => "COMPRESS_FLAGS_BASE", Self::FLAG_USE_2D_VERTICES => "FLAG_USE_2D_VERTICES", Self::FLAG_USE_DYNAMIC_UPDATE => "FLAG_USE_DYNAMIC_UPDATE", Self::FLAG_USE_8_BONE_WEIGHTS => "FLAG_USE_8_BONE_WEIGHTS", Self::FLAG_USES_EMPTY_VERTEX_ARRAY => "FLAG_USES_EMPTY_VERTEX_ARRAY", Self::FLAG_COMPRESS_ATTRIBUTES => "FLAG_COMPRESS_ATTRIBUTES", Self::FLAG_FORMAT_VERSION_BASE => "FLAG_FORMAT_VERSION_BASE", Self::FLAG_FORMAT_VERSION_SHIFT => "FLAG_FORMAT_VERSION_SHIFT", Self::FLAG_FORMAT_VERSION_1 => "FLAG_FORMAT_VERSION_1", Self::FLAG_FORMAT_VERSION_2 => "FLAG_FORMAT_VERSION_2", Self::FLAG_FORMAT_CURRENT_VERSION => "FLAG_FORMAT_CURRENT_VERSION", Self::FLAG_FORMAT_VERSION_MASK => "FLAG_FORMAT_VERSION_MASK", _ => { + f.debug_struct("ArrayFormat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for ArrayFormat { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for ArrayFormat { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for ArrayFormat { + type Via = u64; + +} +impl crate::meta::ToGodot for ArrayFormat { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for ArrayFormat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct PrimitiveType { + ord: i32 +} +impl PrimitiveType { + #[doc(alias = "PRIMITIVE_POINTS")] + #[doc = "Godot enumerator name: `PRIMITIVE_POINTS`"] + pub const POINTS: PrimitiveType = PrimitiveType { + ord: 0i32 + }; + #[doc(alias = "PRIMITIVE_LINES")] + #[doc = "Godot enumerator name: `PRIMITIVE_LINES`"] + pub const LINES: PrimitiveType = PrimitiveType { + ord: 1i32 + }; + #[doc(alias = "PRIMITIVE_LINE_STRIP")] + #[doc = "Godot enumerator name: `PRIMITIVE_LINE_STRIP`"] + pub const LINE_STRIP: PrimitiveType = PrimitiveType { + ord: 2i32 + }; + #[doc(alias = "PRIMITIVE_TRIANGLES")] + #[doc = "Godot enumerator name: `PRIMITIVE_TRIANGLES`"] + pub const TRIANGLES: PrimitiveType = PrimitiveType { + ord: 3i32 + }; + #[doc(alias = "PRIMITIVE_TRIANGLE_STRIP")] + #[doc = "Godot enumerator name: `PRIMITIVE_TRIANGLE_STRIP`"] + pub const TRIANGLE_STRIP: PrimitiveType = PrimitiveType { + ord: 4i32 + }; + #[doc(alias = "PRIMITIVE_MAX")] + #[doc = "Godot enumerator name: `PRIMITIVE_MAX`"] + pub const MAX: PrimitiveType = PrimitiveType { + ord: 5i32 + }; + +} +impl std::fmt::Debug for PrimitiveType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("PrimitiveType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for PrimitiveType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINTS => "POINTS", Self::LINES => "LINES", Self::LINE_STRIP => "LINE_STRIP", Self::TRIANGLES => "TRIANGLES", Self::TRIANGLE_STRIP => "TRIANGLE_STRIP", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINTS => "PRIMITIVE_POINTS", Self::LINES => "PRIMITIVE_LINES", Self::LINE_STRIP => "PRIMITIVE_LINE_STRIP", Self::TRIANGLES => "PRIMITIVE_TRIANGLES", Self::TRIANGLE_STRIP => "PRIMITIVE_TRIANGLE_STRIP", Self::MAX => "PRIMITIVE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for PrimitiveType { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for PrimitiveType { + type Via = i32; + +} +impl crate::meta::ToGodot for PrimitiveType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for PrimitiveType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BlendShapeMode { + ord: i32 +} +impl BlendShapeMode { + #[doc(alias = "BLEND_SHAPE_MODE_NORMALIZED")] + #[doc = "Godot enumerator name: `BLEND_SHAPE_MODE_NORMALIZED`"] + pub const NORMALIZED: BlendShapeMode = BlendShapeMode { + ord: 0i32 + }; + #[doc(alias = "BLEND_SHAPE_MODE_RELATIVE")] + #[doc = "Godot enumerator name: `BLEND_SHAPE_MODE_RELATIVE`"] + pub const RELATIVE: BlendShapeMode = BlendShapeMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for BlendShapeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BlendShapeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BlendShapeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NORMALIZED => "NORMALIZED", Self::RELATIVE => "RELATIVE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NORMALIZED => "BLEND_SHAPE_MODE_NORMALIZED", Self::RELATIVE => "BLEND_SHAPE_MODE_RELATIVE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BlendShapeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for BlendShapeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BlendShapeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MultimeshTransformFormat { + ord: i32 +} +impl MultimeshTransformFormat { + #[doc(alias = "MULTIMESH_TRANSFORM_2D")] + #[doc = "Godot enumerator name: `MULTIMESH_TRANSFORM_2D`"] + pub const TRANSFORM_2D: MultimeshTransformFormat = MultimeshTransformFormat { + ord: 0i32 + }; + #[doc(alias = "MULTIMESH_TRANSFORM_3D")] + #[doc = "Godot enumerator name: `MULTIMESH_TRANSFORM_3D`"] + pub const TRANSFORM_3D: MultimeshTransformFormat = MultimeshTransformFormat { + ord: 1i32 + }; + +} +impl std::fmt::Debug for MultimeshTransformFormat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MultimeshTransformFormat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MultimeshTransformFormat { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TRANSFORM_2D => "TRANSFORM_2D", Self::TRANSFORM_3D => "TRANSFORM_3D", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TRANSFORM_2D => "MULTIMESH_TRANSFORM_2D", Self::TRANSFORM_3D => "MULTIMESH_TRANSFORM_3D", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for MultimeshTransformFormat { + type Via = i32; + +} +impl crate::meta::ToGodot for MultimeshTransformFormat { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MultimeshTransformFormat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LightProjectorFilter { + ord: i32 +} +impl LightProjectorFilter { + #[doc(alias = "LIGHT_PROJECTOR_FILTER_NEAREST")] + #[doc = "Godot enumerator name: `LIGHT_PROJECTOR_FILTER_NEAREST`"] + pub const NEAREST: LightProjectorFilter = LightProjectorFilter { + ord: 0i32 + }; + #[doc(alias = "LIGHT_PROJECTOR_FILTER_LINEAR")] + #[doc = "Godot enumerator name: `LIGHT_PROJECTOR_FILTER_LINEAR`"] + pub const LINEAR: LightProjectorFilter = LightProjectorFilter { + ord: 1i32 + }; + #[doc(alias = "LIGHT_PROJECTOR_FILTER_NEAREST_MIPMAPS")] + #[doc = "Godot enumerator name: `LIGHT_PROJECTOR_FILTER_NEAREST_MIPMAPS`"] + pub const NEAREST_MIPMAPS: LightProjectorFilter = LightProjectorFilter { + ord: 2i32 + }; + #[doc(alias = "LIGHT_PROJECTOR_FILTER_LINEAR_MIPMAPS")] + #[doc = "Godot enumerator name: `LIGHT_PROJECTOR_FILTER_LINEAR_MIPMAPS`"] + pub const LINEAR_MIPMAPS: LightProjectorFilter = LightProjectorFilter { + ord: 3i32 + }; + #[doc(alias = "LIGHT_PROJECTOR_FILTER_NEAREST_MIPMAPS_ANISOTROPIC")] + #[doc = "Godot enumerator name: `LIGHT_PROJECTOR_FILTER_NEAREST_MIPMAPS_ANISOTROPIC`"] + pub const NEAREST_MIPMAPS_ANISOTROPIC: LightProjectorFilter = LightProjectorFilter { + ord: 4i32 + }; + #[doc(alias = "LIGHT_PROJECTOR_FILTER_LINEAR_MIPMAPS_ANISOTROPIC")] + #[doc = "Godot enumerator name: `LIGHT_PROJECTOR_FILTER_LINEAR_MIPMAPS_ANISOTROPIC`"] + pub const LINEAR_MIPMAPS_ANISOTROPIC: LightProjectorFilter = LightProjectorFilter { + ord: 5i32 + }; + +} +impl std::fmt::Debug for LightProjectorFilter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LightProjectorFilter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LightProjectorFilter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "NEAREST", Self::LINEAR => "LINEAR", Self::NEAREST_MIPMAPS => "NEAREST_MIPMAPS", Self::LINEAR_MIPMAPS => "LINEAR_MIPMAPS", Self::NEAREST_MIPMAPS_ANISOTROPIC => "NEAREST_MIPMAPS_ANISOTROPIC", Self::LINEAR_MIPMAPS_ANISOTROPIC => "LINEAR_MIPMAPS_ANISOTROPIC", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "LIGHT_PROJECTOR_FILTER_NEAREST", Self::LINEAR => "LIGHT_PROJECTOR_FILTER_LINEAR", Self::NEAREST_MIPMAPS => "LIGHT_PROJECTOR_FILTER_NEAREST_MIPMAPS", Self::LINEAR_MIPMAPS => "LIGHT_PROJECTOR_FILTER_LINEAR_MIPMAPS", Self::NEAREST_MIPMAPS_ANISOTROPIC => "LIGHT_PROJECTOR_FILTER_NEAREST_MIPMAPS_ANISOTROPIC", Self::LINEAR_MIPMAPS_ANISOTROPIC => "LIGHT_PROJECTOR_FILTER_LINEAR_MIPMAPS_ANISOTROPIC", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LightProjectorFilter { + type Via = i32; + +} +impl crate::meta::ToGodot for LightProjectorFilter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LightProjectorFilter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LightType { + ord: i32 +} +impl LightType { + #[doc(alias = "LIGHT_DIRECTIONAL")] + #[doc = "Godot enumerator name: `LIGHT_DIRECTIONAL`"] + pub const DIRECTIONAL: LightType = LightType { + ord: 0i32 + }; + #[doc(alias = "LIGHT_OMNI")] + #[doc = "Godot enumerator name: `LIGHT_OMNI`"] + pub const OMNI: LightType = LightType { + ord: 1i32 + }; + #[doc(alias = "LIGHT_SPOT")] + #[doc = "Godot enumerator name: `LIGHT_SPOT`"] + pub const SPOT: LightType = LightType { + ord: 2i32 + }; + +} +impl std::fmt::Debug for LightType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LightType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LightType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DIRECTIONAL => "DIRECTIONAL", Self::OMNI => "OMNI", Self::SPOT => "SPOT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DIRECTIONAL => "LIGHT_DIRECTIONAL", Self::OMNI => "LIGHT_OMNI", Self::SPOT => "LIGHT_SPOT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LightType { + type Via = i32; + +} +impl crate::meta::ToGodot for LightType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LightType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LightParam { + ord: i32 +} +impl LightParam { + #[doc(alias = "LIGHT_PARAM_ENERGY")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_ENERGY`"] + pub const ENERGY: LightParam = LightParam { + ord: 0i32 + }; + #[doc(alias = "LIGHT_PARAM_INDIRECT_ENERGY")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_INDIRECT_ENERGY`"] + pub const INDIRECT_ENERGY: LightParam = LightParam { + ord: 1i32 + }; + #[doc(alias = "LIGHT_PARAM_VOLUMETRIC_FOG_ENERGY")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_VOLUMETRIC_FOG_ENERGY`"] + pub const VOLUMETRIC_FOG_ENERGY: LightParam = LightParam { + ord: 2i32 + }; + #[doc(alias = "LIGHT_PARAM_SPECULAR")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SPECULAR`"] + pub const SPECULAR: LightParam = LightParam { + ord: 3i32 + }; + #[doc(alias = "LIGHT_PARAM_RANGE")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_RANGE`"] + pub const RANGE: LightParam = LightParam { + ord: 4i32 + }; + #[doc(alias = "LIGHT_PARAM_SIZE")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SIZE`"] + pub const SIZE: LightParam = LightParam { + ord: 5i32 + }; + #[doc(alias = "LIGHT_PARAM_ATTENUATION")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_ATTENUATION`"] + pub const ATTENUATION: LightParam = LightParam { + ord: 6i32 + }; + #[doc(alias = "LIGHT_PARAM_SPOT_ANGLE")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SPOT_ANGLE`"] + pub const SPOT_ANGLE: LightParam = LightParam { + ord: 7i32 + }; + #[doc(alias = "LIGHT_PARAM_SPOT_ATTENUATION")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SPOT_ATTENUATION`"] + pub const SPOT_ATTENUATION: LightParam = LightParam { + ord: 8i32 + }; + #[doc(alias = "LIGHT_PARAM_SHADOW_MAX_DISTANCE")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SHADOW_MAX_DISTANCE`"] + pub const SHADOW_MAX_DISTANCE: LightParam = LightParam { + ord: 9i32 + }; + #[doc(alias = "LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET`"] + pub const SHADOW_SPLIT_1_OFFSET: LightParam = LightParam { + ord: 10i32 + }; + #[doc(alias = "LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET`"] + pub const SHADOW_SPLIT_2_OFFSET: LightParam = LightParam { + ord: 11i32 + }; + #[doc(alias = "LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET`"] + pub const SHADOW_SPLIT_3_OFFSET: LightParam = LightParam { + ord: 12i32 + }; + #[doc(alias = "LIGHT_PARAM_SHADOW_FADE_START")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SHADOW_FADE_START`"] + pub const SHADOW_FADE_START: LightParam = LightParam { + ord: 13i32 + }; + #[doc(alias = "LIGHT_PARAM_SHADOW_NORMAL_BIAS")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SHADOW_NORMAL_BIAS`"] + pub const SHADOW_NORMAL_BIAS: LightParam = LightParam { + ord: 14i32 + }; + #[doc(alias = "LIGHT_PARAM_SHADOW_BIAS")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SHADOW_BIAS`"] + pub const SHADOW_BIAS: LightParam = LightParam { + ord: 15i32 + }; + #[doc(alias = "LIGHT_PARAM_SHADOW_PANCAKE_SIZE")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SHADOW_PANCAKE_SIZE`"] + pub const SHADOW_PANCAKE_SIZE: LightParam = LightParam { + ord: 16i32 + }; + #[doc(alias = "LIGHT_PARAM_SHADOW_OPACITY")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SHADOW_OPACITY`"] + pub const SHADOW_OPACITY: LightParam = LightParam { + ord: 17i32 + }; + #[doc(alias = "LIGHT_PARAM_SHADOW_BLUR")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_SHADOW_BLUR`"] + pub const SHADOW_BLUR: LightParam = LightParam { + ord: 18i32 + }; + #[doc(alias = "LIGHT_PARAM_TRANSMITTANCE_BIAS")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_TRANSMITTANCE_BIAS`"] + pub const TRANSMITTANCE_BIAS: LightParam = LightParam { + ord: 19i32 + }; + #[doc(alias = "LIGHT_PARAM_INTENSITY")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_INTENSITY`"] + pub const INTENSITY: LightParam = LightParam { + ord: 20i32 + }; + #[doc(alias = "LIGHT_PARAM_MAX")] + #[doc = "Godot enumerator name: `LIGHT_PARAM_MAX`"] + pub const MAX: LightParam = LightParam { + ord: 21i32 + }; + +} +impl std::fmt::Debug for LightParam { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LightParam") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LightParam { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ENERGY => "ENERGY", Self::INDIRECT_ENERGY => "INDIRECT_ENERGY", Self::VOLUMETRIC_FOG_ENERGY => "VOLUMETRIC_FOG_ENERGY", Self::SPECULAR => "SPECULAR", Self::RANGE => "RANGE", Self::SIZE => "SIZE", Self::ATTENUATION => "ATTENUATION", Self::SPOT_ANGLE => "SPOT_ANGLE", Self::SPOT_ATTENUATION => "SPOT_ATTENUATION", Self::SHADOW_MAX_DISTANCE => "SHADOW_MAX_DISTANCE", Self::SHADOW_SPLIT_1_OFFSET => "SHADOW_SPLIT_1_OFFSET", Self::SHADOW_SPLIT_2_OFFSET => "SHADOW_SPLIT_2_OFFSET", Self::SHADOW_SPLIT_3_OFFSET => "SHADOW_SPLIT_3_OFFSET", Self::SHADOW_FADE_START => "SHADOW_FADE_START", Self::SHADOW_NORMAL_BIAS => "SHADOW_NORMAL_BIAS", Self::SHADOW_BIAS => "SHADOW_BIAS", Self::SHADOW_PANCAKE_SIZE => "SHADOW_PANCAKE_SIZE", Self::SHADOW_OPACITY => "SHADOW_OPACITY", Self::SHADOW_BLUR => "SHADOW_BLUR", Self::TRANSMITTANCE_BIAS => "TRANSMITTANCE_BIAS", Self::INTENSITY => "INTENSITY", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ENERGY => "LIGHT_PARAM_ENERGY", Self::INDIRECT_ENERGY => "LIGHT_PARAM_INDIRECT_ENERGY", Self::VOLUMETRIC_FOG_ENERGY => "LIGHT_PARAM_VOLUMETRIC_FOG_ENERGY", Self::SPECULAR => "LIGHT_PARAM_SPECULAR", Self::RANGE => "LIGHT_PARAM_RANGE", Self::SIZE => "LIGHT_PARAM_SIZE", Self::ATTENUATION => "LIGHT_PARAM_ATTENUATION", Self::SPOT_ANGLE => "LIGHT_PARAM_SPOT_ANGLE", Self::SPOT_ATTENUATION => "LIGHT_PARAM_SPOT_ATTENUATION", Self::SHADOW_MAX_DISTANCE => "LIGHT_PARAM_SHADOW_MAX_DISTANCE", Self::SHADOW_SPLIT_1_OFFSET => "LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET", Self::SHADOW_SPLIT_2_OFFSET => "LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET", Self::SHADOW_SPLIT_3_OFFSET => "LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET", Self::SHADOW_FADE_START => "LIGHT_PARAM_SHADOW_FADE_START", Self::SHADOW_NORMAL_BIAS => "LIGHT_PARAM_SHADOW_NORMAL_BIAS", Self::SHADOW_BIAS => "LIGHT_PARAM_SHADOW_BIAS", Self::SHADOW_PANCAKE_SIZE => "LIGHT_PARAM_SHADOW_PANCAKE_SIZE", Self::SHADOW_OPACITY => "LIGHT_PARAM_SHADOW_OPACITY", Self::SHADOW_BLUR => "LIGHT_PARAM_SHADOW_BLUR", Self::TRANSMITTANCE_BIAS => "LIGHT_PARAM_TRANSMITTANCE_BIAS", Self::INTENSITY => "LIGHT_PARAM_INTENSITY", Self::MAX => "LIGHT_PARAM_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for LightParam { + const ENUMERATOR_COUNT: usize = 21usize; + +} +impl crate::meta::GodotConvert for LightParam { + type Via = i32; + +} +impl crate::meta::ToGodot for LightParam { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LightParam { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LightBakeMode { + ord: i32 +} +impl LightBakeMode { + #[doc(alias = "LIGHT_BAKE_DISABLED")] + #[doc = "Godot enumerator name: `LIGHT_BAKE_DISABLED`"] + pub const DISABLED: LightBakeMode = LightBakeMode { + ord: 0i32 + }; + #[doc(alias = "LIGHT_BAKE_STATIC")] + #[doc = "Godot enumerator name: `LIGHT_BAKE_STATIC`"] + pub const STATIC: LightBakeMode = LightBakeMode { + ord: 1i32 + }; + #[doc(alias = "LIGHT_BAKE_DYNAMIC")] + #[doc = "Godot enumerator name: `LIGHT_BAKE_DYNAMIC`"] + pub const DYNAMIC: LightBakeMode = LightBakeMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for LightBakeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LightBakeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LightBakeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::STATIC => "STATIC", Self::DYNAMIC => "DYNAMIC", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "LIGHT_BAKE_DISABLED", Self::STATIC => "LIGHT_BAKE_STATIC", Self::DYNAMIC => "LIGHT_BAKE_DYNAMIC", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LightBakeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LightBakeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LightBakeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LightOmniShadowMode { + ord: i32 +} +impl LightOmniShadowMode { + #[doc(alias = "LIGHT_OMNI_SHADOW_DUAL_PARABOLOID")] + #[doc = "Godot enumerator name: `LIGHT_OMNI_SHADOW_DUAL_PARABOLOID`"] + pub const DUAL_PARABOLOID: LightOmniShadowMode = LightOmniShadowMode { + ord: 0i32 + }; + #[doc(alias = "LIGHT_OMNI_SHADOW_CUBE")] + #[doc = "Godot enumerator name: `LIGHT_OMNI_SHADOW_CUBE`"] + pub const CUBE: LightOmniShadowMode = LightOmniShadowMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for LightOmniShadowMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LightOmniShadowMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LightOmniShadowMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DUAL_PARABOLOID => "DUAL_PARABOLOID", Self::CUBE => "CUBE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DUAL_PARABOLOID => "LIGHT_OMNI_SHADOW_DUAL_PARABOLOID", Self::CUBE => "LIGHT_OMNI_SHADOW_CUBE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LightOmniShadowMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LightOmniShadowMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LightOmniShadowMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LightDirectionalShadowMode { + ord: i32 +} +impl LightDirectionalShadowMode { + #[doc(alias = "LIGHT_DIRECTIONAL_SHADOW_ORTHOGONAL")] + #[doc = "Godot enumerator name: `LIGHT_DIRECTIONAL_SHADOW_ORTHOGONAL`"] + pub const ORTHOGONAL: LightDirectionalShadowMode = LightDirectionalShadowMode { + ord: 0i32 + }; + #[doc(alias = "LIGHT_DIRECTIONAL_SHADOW_PARALLEL_2_SPLITS")] + #[doc = "Godot enumerator name: `LIGHT_DIRECTIONAL_SHADOW_PARALLEL_2_SPLITS`"] + pub const PARALLEL_2_SPLITS: LightDirectionalShadowMode = LightDirectionalShadowMode { + ord: 1i32 + }; + #[doc(alias = "LIGHT_DIRECTIONAL_SHADOW_PARALLEL_4_SPLITS")] + #[doc = "Godot enumerator name: `LIGHT_DIRECTIONAL_SHADOW_PARALLEL_4_SPLITS`"] + pub const PARALLEL_4_SPLITS: LightDirectionalShadowMode = LightDirectionalShadowMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for LightDirectionalShadowMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LightDirectionalShadowMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LightDirectionalShadowMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ORTHOGONAL => "ORTHOGONAL", Self::PARALLEL_2_SPLITS => "PARALLEL_2_SPLITS", Self::PARALLEL_4_SPLITS => "PARALLEL_4_SPLITS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ORTHOGONAL => "LIGHT_DIRECTIONAL_SHADOW_ORTHOGONAL", Self::PARALLEL_2_SPLITS => "LIGHT_DIRECTIONAL_SHADOW_PARALLEL_2_SPLITS", Self::PARALLEL_4_SPLITS => "LIGHT_DIRECTIONAL_SHADOW_PARALLEL_4_SPLITS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LightDirectionalShadowMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LightDirectionalShadowMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LightDirectionalShadowMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct LightDirectionalSkyMode { + ord: i32 +} +impl LightDirectionalSkyMode { + #[doc(alias = "LIGHT_DIRECTIONAL_SKY_MODE_LIGHT_AND_SKY")] + #[doc = "Godot enumerator name: `LIGHT_DIRECTIONAL_SKY_MODE_LIGHT_AND_SKY`"] + pub const LIGHT_AND_SKY: LightDirectionalSkyMode = LightDirectionalSkyMode { + ord: 0i32 + }; + #[doc(alias = "LIGHT_DIRECTIONAL_SKY_MODE_LIGHT_ONLY")] + #[doc = "Godot enumerator name: `LIGHT_DIRECTIONAL_SKY_MODE_LIGHT_ONLY`"] + pub const LIGHT_ONLY: LightDirectionalSkyMode = LightDirectionalSkyMode { + ord: 1i32 + }; + #[doc(alias = "LIGHT_DIRECTIONAL_SKY_MODE_SKY_ONLY")] + #[doc = "Godot enumerator name: `LIGHT_DIRECTIONAL_SKY_MODE_SKY_ONLY`"] + pub const SKY_ONLY: LightDirectionalSkyMode = LightDirectionalSkyMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for LightDirectionalSkyMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("LightDirectionalSkyMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for LightDirectionalSkyMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LIGHT_AND_SKY => "LIGHT_AND_SKY", Self::LIGHT_ONLY => "LIGHT_ONLY", Self::SKY_ONLY => "SKY_ONLY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LIGHT_AND_SKY => "LIGHT_DIRECTIONAL_SKY_MODE_LIGHT_AND_SKY", Self::LIGHT_ONLY => "LIGHT_DIRECTIONAL_SKY_MODE_LIGHT_ONLY", Self::SKY_ONLY => "LIGHT_DIRECTIONAL_SKY_MODE_SKY_ONLY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for LightDirectionalSkyMode { + type Via = i32; + +} +impl crate::meta::ToGodot for LightDirectionalSkyMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for LightDirectionalSkyMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShadowQuality { + ord: i32 +} +impl ShadowQuality { + #[doc(alias = "SHADOW_QUALITY_HARD")] + #[doc = "Godot enumerator name: `SHADOW_QUALITY_HARD`"] + pub const HARD: ShadowQuality = ShadowQuality { + ord: 0i32 + }; + #[doc(alias = "SHADOW_QUALITY_SOFT_VERY_LOW")] + #[doc = "Godot enumerator name: `SHADOW_QUALITY_SOFT_VERY_LOW`"] + pub const SOFT_VERY_LOW: ShadowQuality = ShadowQuality { + ord: 1i32 + }; + #[doc(alias = "SHADOW_QUALITY_SOFT_LOW")] + #[doc = "Godot enumerator name: `SHADOW_QUALITY_SOFT_LOW`"] + pub const SOFT_LOW: ShadowQuality = ShadowQuality { + ord: 2i32 + }; + #[doc(alias = "SHADOW_QUALITY_SOFT_MEDIUM")] + #[doc = "Godot enumerator name: `SHADOW_QUALITY_SOFT_MEDIUM`"] + pub const SOFT_MEDIUM: ShadowQuality = ShadowQuality { + ord: 3i32 + }; + #[doc(alias = "SHADOW_QUALITY_SOFT_HIGH")] + #[doc = "Godot enumerator name: `SHADOW_QUALITY_SOFT_HIGH`"] + pub const SOFT_HIGH: ShadowQuality = ShadowQuality { + ord: 4i32 + }; + #[doc(alias = "SHADOW_QUALITY_SOFT_ULTRA")] + #[doc = "Godot enumerator name: `SHADOW_QUALITY_SOFT_ULTRA`"] + pub const SOFT_ULTRA: ShadowQuality = ShadowQuality { + ord: 5i32 + }; + #[doc(alias = "SHADOW_QUALITY_MAX")] + #[doc = "Godot enumerator name: `SHADOW_QUALITY_MAX`"] + pub const MAX: ShadowQuality = ShadowQuality { + ord: 6i32 + }; + +} +impl std::fmt::Debug for ShadowQuality { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShadowQuality") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShadowQuality { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::HARD => "HARD", Self::SOFT_VERY_LOW => "SOFT_VERY_LOW", Self::SOFT_LOW => "SOFT_LOW", Self::SOFT_MEDIUM => "SOFT_MEDIUM", Self::SOFT_HIGH => "SOFT_HIGH", Self::SOFT_ULTRA => "SOFT_ULTRA", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::HARD => "SHADOW_QUALITY_HARD", Self::SOFT_VERY_LOW => "SHADOW_QUALITY_SOFT_VERY_LOW", Self::SOFT_LOW => "SHADOW_QUALITY_SOFT_LOW", Self::SOFT_MEDIUM => "SHADOW_QUALITY_SOFT_MEDIUM", Self::SOFT_HIGH => "SHADOW_QUALITY_SOFT_HIGH", Self::SOFT_ULTRA => "SHADOW_QUALITY_SOFT_ULTRA", Self::MAX => "SHADOW_QUALITY_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ShadowQuality { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for ShadowQuality { + type Via = i32; + +} +impl crate::meta::ToGodot for ShadowQuality { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShadowQuality { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ReflectionProbeUpdateMode { + ord: i32 +} +impl ReflectionProbeUpdateMode { + #[doc(alias = "REFLECTION_PROBE_UPDATE_ONCE")] + #[doc = "Godot enumerator name: `REFLECTION_PROBE_UPDATE_ONCE`"] + pub const ONCE: ReflectionProbeUpdateMode = ReflectionProbeUpdateMode { + ord: 0i32 + }; + #[doc(alias = "REFLECTION_PROBE_UPDATE_ALWAYS")] + #[doc = "Godot enumerator name: `REFLECTION_PROBE_UPDATE_ALWAYS`"] + pub const ALWAYS: ReflectionProbeUpdateMode = ReflectionProbeUpdateMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for ReflectionProbeUpdateMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ReflectionProbeUpdateMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ReflectionProbeUpdateMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ONCE => "ONCE", Self::ALWAYS => "ALWAYS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ONCE => "REFLECTION_PROBE_UPDATE_ONCE", Self::ALWAYS => "REFLECTION_PROBE_UPDATE_ALWAYS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ReflectionProbeUpdateMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ReflectionProbeUpdateMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ReflectionProbeUpdateMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ReflectionProbeAmbientMode { + ord: i32 +} +impl ReflectionProbeAmbientMode { + #[doc(alias = "REFLECTION_PROBE_AMBIENT_DISABLED")] + #[doc = "Godot enumerator name: `REFLECTION_PROBE_AMBIENT_DISABLED`"] + pub const DISABLED: ReflectionProbeAmbientMode = ReflectionProbeAmbientMode { + ord: 0i32 + }; + #[doc(alias = "REFLECTION_PROBE_AMBIENT_ENVIRONMENT")] + #[doc = "Godot enumerator name: `REFLECTION_PROBE_AMBIENT_ENVIRONMENT`"] + pub const ENVIRONMENT: ReflectionProbeAmbientMode = ReflectionProbeAmbientMode { + ord: 1i32 + }; + #[doc(alias = "REFLECTION_PROBE_AMBIENT_COLOR")] + #[doc = "Godot enumerator name: `REFLECTION_PROBE_AMBIENT_COLOR`"] + pub const COLOR: ReflectionProbeAmbientMode = ReflectionProbeAmbientMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ReflectionProbeAmbientMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ReflectionProbeAmbientMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ReflectionProbeAmbientMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ENVIRONMENT => "ENVIRONMENT", Self::COLOR => "COLOR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "REFLECTION_PROBE_AMBIENT_DISABLED", Self::ENVIRONMENT => "REFLECTION_PROBE_AMBIENT_ENVIRONMENT", Self::COLOR => "REFLECTION_PROBE_AMBIENT_COLOR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ReflectionProbeAmbientMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ReflectionProbeAmbientMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ReflectionProbeAmbientMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DecalTexture { + ord: i32 +} +impl DecalTexture { + #[doc(alias = "DECAL_TEXTURE_ALBEDO")] + #[doc = "Godot enumerator name: `DECAL_TEXTURE_ALBEDO`"] + pub const ALBEDO: DecalTexture = DecalTexture { + ord: 0i32 + }; + #[doc(alias = "DECAL_TEXTURE_NORMAL")] + #[doc = "Godot enumerator name: `DECAL_TEXTURE_NORMAL`"] + pub const NORMAL: DecalTexture = DecalTexture { + ord: 1i32 + }; + #[doc(alias = "DECAL_TEXTURE_ORM")] + #[doc = "Godot enumerator name: `DECAL_TEXTURE_ORM`"] + pub const ORM: DecalTexture = DecalTexture { + ord: 2i32 + }; + #[doc(alias = "DECAL_TEXTURE_EMISSION")] + #[doc = "Godot enumerator name: `DECAL_TEXTURE_EMISSION`"] + pub const EMISSION: DecalTexture = DecalTexture { + ord: 3i32 + }; + #[doc(alias = "DECAL_TEXTURE_MAX")] + #[doc = "Godot enumerator name: `DECAL_TEXTURE_MAX`"] + pub const MAX: DecalTexture = DecalTexture { + ord: 4i32 + }; + +} +impl std::fmt::Debug for DecalTexture { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DecalTexture") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DecalTexture { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALBEDO => "ALBEDO", Self::NORMAL => "NORMAL", Self::ORM => "ORM", Self::EMISSION => "EMISSION", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALBEDO => "DECAL_TEXTURE_ALBEDO", Self::NORMAL => "DECAL_TEXTURE_NORMAL", Self::ORM => "DECAL_TEXTURE_ORM", Self::EMISSION => "DECAL_TEXTURE_EMISSION", Self::MAX => "DECAL_TEXTURE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for DecalTexture { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for DecalTexture { + type Via = i32; + +} +impl crate::meta::ToGodot for DecalTexture { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DecalTexture { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DecalFilter { + ord: i32 +} +impl DecalFilter { + #[doc(alias = "DECAL_FILTER_NEAREST")] + #[doc = "Godot enumerator name: `DECAL_FILTER_NEAREST`"] + pub const NEAREST: DecalFilter = DecalFilter { + ord: 0i32 + }; + #[doc(alias = "DECAL_FILTER_LINEAR")] + #[doc = "Godot enumerator name: `DECAL_FILTER_LINEAR`"] + pub const LINEAR: DecalFilter = DecalFilter { + ord: 1i32 + }; + #[doc(alias = "DECAL_FILTER_NEAREST_MIPMAPS")] + #[doc = "Godot enumerator name: `DECAL_FILTER_NEAREST_MIPMAPS`"] + pub const NEAREST_MIPMAPS: DecalFilter = DecalFilter { + ord: 2i32 + }; + #[doc(alias = "DECAL_FILTER_LINEAR_MIPMAPS")] + #[doc = "Godot enumerator name: `DECAL_FILTER_LINEAR_MIPMAPS`"] + pub const LINEAR_MIPMAPS: DecalFilter = DecalFilter { + ord: 3i32 + }; + #[doc(alias = "DECAL_FILTER_NEAREST_MIPMAPS_ANISOTROPIC")] + #[doc = "Godot enumerator name: `DECAL_FILTER_NEAREST_MIPMAPS_ANISOTROPIC`"] + pub const NEAREST_MIPMAPS_ANISOTROPIC: DecalFilter = DecalFilter { + ord: 4i32 + }; + #[doc(alias = "DECAL_FILTER_LINEAR_MIPMAPS_ANISOTROPIC")] + #[doc = "Godot enumerator name: `DECAL_FILTER_LINEAR_MIPMAPS_ANISOTROPIC`"] + pub const LINEAR_MIPMAPS_ANISOTROPIC: DecalFilter = DecalFilter { + ord: 5i32 + }; + +} +impl std::fmt::Debug for DecalFilter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DecalFilter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DecalFilter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "NEAREST", Self::LINEAR => "LINEAR", Self::NEAREST_MIPMAPS => "NEAREST_MIPMAPS", Self::LINEAR_MIPMAPS => "LINEAR_MIPMAPS", Self::NEAREST_MIPMAPS_ANISOTROPIC => "NEAREST_MIPMAPS_ANISOTROPIC", Self::LINEAR_MIPMAPS_ANISOTROPIC => "LINEAR_MIPMAPS_ANISOTROPIC", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEAREST => "DECAL_FILTER_NEAREST", Self::LINEAR => "DECAL_FILTER_LINEAR", Self::NEAREST_MIPMAPS => "DECAL_FILTER_NEAREST_MIPMAPS", Self::LINEAR_MIPMAPS => "DECAL_FILTER_LINEAR_MIPMAPS", Self::NEAREST_MIPMAPS_ANISOTROPIC => "DECAL_FILTER_NEAREST_MIPMAPS_ANISOTROPIC", Self::LINEAR_MIPMAPS_ANISOTROPIC => "DECAL_FILTER_LINEAR_MIPMAPS_ANISOTROPIC", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DecalFilter { + type Via = i32; + +} +impl crate::meta::ToGodot for DecalFilter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DecalFilter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `VoxelGIQuality`."] +pub struct VoxelGiQuality { + ord: i32 +} +impl VoxelGiQuality { + #[doc(alias = "VOXEL_GI_QUALITY_LOW")] + #[doc = "Godot enumerator name: `VOXEL_GI_QUALITY_LOW`"] + pub const LOW: VoxelGiQuality = VoxelGiQuality { + ord: 0i32 + }; + #[doc(alias = "VOXEL_GI_QUALITY_HIGH")] + #[doc = "Godot enumerator name: `VOXEL_GI_QUALITY_HIGH`"] + pub const HIGH: VoxelGiQuality = VoxelGiQuality { + ord: 1i32 + }; + +} +impl std::fmt::Debug for VoxelGiQuality { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("VoxelGiQuality") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for VoxelGiQuality { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOW => "LOW", Self::HIGH => "HIGH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOW => "VOXEL_GI_QUALITY_LOW", Self::HIGH => "VOXEL_GI_QUALITY_HIGH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for VoxelGiQuality { + type Via = i32; + +} +impl crate::meta::ToGodot for VoxelGiQuality { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for VoxelGiQuality { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ParticlesMode { + ord: i32 +} +impl ParticlesMode { + #[doc(alias = "PARTICLES_MODE_2D")] + #[doc = "Godot enumerator name: `PARTICLES_MODE_2D`"] + pub const MODE_2D: ParticlesMode = ParticlesMode { + ord: 0i32 + }; + #[doc(alias = "PARTICLES_MODE_3D")] + #[doc = "Godot enumerator name: `PARTICLES_MODE_3D`"] + pub const MODE_3D: ParticlesMode = ParticlesMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for ParticlesMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ParticlesMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ParticlesMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MODE_2D => "MODE_2D", Self::MODE_3D => "MODE_3D", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::MODE_2D => "PARTICLES_MODE_2D", Self::MODE_3D => "PARTICLES_MODE_3D", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ParticlesMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ParticlesMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ParticlesMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ParticlesTransformAlign { + ord: i32 +} +impl ParticlesTransformAlign { + #[doc(alias = "PARTICLES_TRANSFORM_ALIGN_DISABLED")] + #[doc = "Godot enumerator name: `PARTICLES_TRANSFORM_ALIGN_DISABLED`"] + pub const DISABLED: ParticlesTransformAlign = ParticlesTransformAlign { + ord: 0i32 + }; + #[doc(alias = "PARTICLES_TRANSFORM_ALIGN_Z_BILLBOARD")] + #[doc = "Godot enumerator name: `PARTICLES_TRANSFORM_ALIGN_Z_BILLBOARD`"] + pub const Z_BILLBOARD: ParticlesTransformAlign = ParticlesTransformAlign { + ord: 1i32 + }; + #[doc(alias = "PARTICLES_TRANSFORM_ALIGN_Y_TO_VELOCITY")] + #[doc = "Godot enumerator name: `PARTICLES_TRANSFORM_ALIGN_Y_TO_VELOCITY`"] + pub const Y_TO_VELOCITY: ParticlesTransformAlign = ParticlesTransformAlign { + ord: 2i32 + }; + #[doc(alias = "PARTICLES_TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY")] + #[doc = "Godot enumerator name: `PARTICLES_TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY`"] + pub const Z_BILLBOARD_Y_TO_VELOCITY: ParticlesTransformAlign = ParticlesTransformAlign { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ParticlesTransformAlign { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ParticlesTransformAlign") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ParticlesTransformAlign { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::Z_BILLBOARD => "Z_BILLBOARD", Self::Y_TO_VELOCITY => "Y_TO_VELOCITY", Self::Z_BILLBOARD_Y_TO_VELOCITY => "Z_BILLBOARD_Y_TO_VELOCITY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "PARTICLES_TRANSFORM_ALIGN_DISABLED", Self::Z_BILLBOARD => "PARTICLES_TRANSFORM_ALIGN_Z_BILLBOARD", Self::Y_TO_VELOCITY => "PARTICLES_TRANSFORM_ALIGN_Y_TO_VELOCITY", Self::Z_BILLBOARD_Y_TO_VELOCITY => "PARTICLES_TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ParticlesTransformAlign { + type Via = i32; + +} +impl crate::meta::ToGodot for ParticlesTransformAlign { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ParticlesTransformAlign { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ParticlesDrawOrder { + ord: i32 +} +impl ParticlesDrawOrder { + #[doc(alias = "PARTICLES_DRAW_ORDER_INDEX")] + #[doc = "Godot enumerator name: `PARTICLES_DRAW_ORDER_INDEX`"] + pub const INDEX: ParticlesDrawOrder = ParticlesDrawOrder { + ord: 0i32 + }; + #[doc(alias = "PARTICLES_DRAW_ORDER_LIFETIME")] + #[doc = "Godot enumerator name: `PARTICLES_DRAW_ORDER_LIFETIME`"] + pub const LIFETIME: ParticlesDrawOrder = ParticlesDrawOrder { + ord: 1i32 + }; + #[doc(alias = "PARTICLES_DRAW_ORDER_REVERSE_LIFETIME")] + #[doc = "Godot enumerator name: `PARTICLES_DRAW_ORDER_REVERSE_LIFETIME`"] + pub const REVERSE_LIFETIME: ParticlesDrawOrder = ParticlesDrawOrder { + ord: 2i32 + }; + #[doc(alias = "PARTICLES_DRAW_ORDER_VIEW_DEPTH")] + #[doc = "Godot enumerator name: `PARTICLES_DRAW_ORDER_VIEW_DEPTH`"] + pub const VIEW_DEPTH: ParticlesDrawOrder = ParticlesDrawOrder { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ParticlesDrawOrder { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ParticlesDrawOrder") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ParticlesDrawOrder { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INDEX => "INDEX", Self::LIFETIME => "LIFETIME", Self::REVERSE_LIFETIME => "REVERSE_LIFETIME", Self::VIEW_DEPTH => "VIEW_DEPTH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INDEX => "PARTICLES_DRAW_ORDER_INDEX", Self::LIFETIME => "PARTICLES_DRAW_ORDER_LIFETIME", Self::REVERSE_LIFETIME => "PARTICLES_DRAW_ORDER_REVERSE_LIFETIME", Self::VIEW_DEPTH => "PARTICLES_DRAW_ORDER_VIEW_DEPTH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ParticlesDrawOrder { + type Via = i32; + +} +impl crate::meta::ToGodot for ParticlesDrawOrder { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ParticlesDrawOrder { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ParticlesCollisionType { + ord: i32 +} +impl ParticlesCollisionType { + #[doc(alias = "PARTICLES_COLLISION_TYPE_SPHERE_ATTRACT")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_TYPE_SPHERE_ATTRACT`"] + pub const SPHERE_ATTRACT: ParticlesCollisionType = ParticlesCollisionType { + ord: 0i32 + }; + #[doc(alias = "PARTICLES_COLLISION_TYPE_BOX_ATTRACT")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_TYPE_BOX_ATTRACT`"] + pub const BOX_ATTRACT: ParticlesCollisionType = ParticlesCollisionType { + ord: 1i32 + }; + #[doc(alias = "PARTICLES_COLLISION_TYPE_VECTOR_FIELD_ATTRACT")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_TYPE_VECTOR_FIELD_ATTRACT`"] + pub const VECTOR_FIELD_ATTRACT: ParticlesCollisionType = ParticlesCollisionType { + ord: 2i32 + }; + #[doc(alias = "PARTICLES_COLLISION_TYPE_SPHERE_COLLIDE")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_TYPE_SPHERE_COLLIDE`"] + pub const SPHERE_COLLIDE: ParticlesCollisionType = ParticlesCollisionType { + ord: 3i32 + }; + #[doc(alias = "PARTICLES_COLLISION_TYPE_BOX_COLLIDE")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_TYPE_BOX_COLLIDE`"] + pub const BOX_COLLIDE: ParticlesCollisionType = ParticlesCollisionType { + ord: 4i32 + }; + #[doc(alias = "PARTICLES_COLLISION_TYPE_SDF_COLLIDE")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_TYPE_SDF_COLLIDE`"] + pub const SDF_COLLIDE: ParticlesCollisionType = ParticlesCollisionType { + ord: 5i32 + }; + #[doc(alias = "PARTICLES_COLLISION_TYPE_HEIGHTFIELD_COLLIDE")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_TYPE_HEIGHTFIELD_COLLIDE`"] + pub const HEIGHTFIELD_COLLIDE: ParticlesCollisionType = ParticlesCollisionType { + ord: 6i32 + }; + +} +impl std::fmt::Debug for ParticlesCollisionType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ParticlesCollisionType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ParticlesCollisionType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SPHERE_ATTRACT => "SPHERE_ATTRACT", Self::BOX_ATTRACT => "BOX_ATTRACT", Self::VECTOR_FIELD_ATTRACT => "VECTOR_FIELD_ATTRACT", Self::SPHERE_COLLIDE => "SPHERE_COLLIDE", Self::BOX_COLLIDE => "BOX_COLLIDE", Self::SDF_COLLIDE => "SDF_COLLIDE", Self::HEIGHTFIELD_COLLIDE => "HEIGHTFIELD_COLLIDE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SPHERE_ATTRACT => "PARTICLES_COLLISION_TYPE_SPHERE_ATTRACT", Self::BOX_ATTRACT => "PARTICLES_COLLISION_TYPE_BOX_ATTRACT", Self::VECTOR_FIELD_ATTRACT => "PARTICLES_COLLISION_TYPE_VECTOR_FIELD_ATTRACT", Self::SPHERE_COLLIDE => "PARTICLES_COLLISION_TYPE_SPHERE_COLLIDE", Self::BOX_COLLIDE => "PARTICLES_COLLISION_TYPE_BOX_COLLIDE", Self::SDF_COLLIDE => "PARTICLES_COLLISION_TYPE_SDF_COLLIDE", Self::HEIGHTFIELD_COLLIDE => "PARTICLES_COLLISION_TYPE_HEIGHTFIELD_COLLIDE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ParticlesCollisionType { + type Via = i32; + +} +impl crate::meta::ToGodot for ParticlesCollisionType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ParticlesCollisionType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ParticlesCollisionHeightfieldResolution { + ord: i32 +} +impl ParticlesCollisionHeightfieldResolution { + #[doc(alias = "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_256")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_256`"] + pub const RESOLUTION_256: ParticlesCollisionHeightfieldResolution = ParticlesCollisionHeightfieldResolution { + ord: 0i32 + }; + #[doc(alias = "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_512")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_512`"] + pub const RESOLUTION_512: ParticlesCollisionHeightfieldResolution = ParticlesCollisionHeightfieldResolution { + ord: 1i32 + }; + #[doc(alias = "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_1024")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_1024`"] + pub const RESOLUTION_1024: ParticlesCollisionHeightfieldResolution = ParticlesCollisionHeightfieldResolution { + ord: 2i32 + }; + #[doc(alias = "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_2048")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_2048`"] + pub const RESOLUTION_2048: ParticlesCollisionHeightfieldResolution = ParticlesCollisionHeightfieldResolution { + ord: 3i32 + }; + #[doc(alias = "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_4096")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_4096`"] + pub const RESOLUTION_4096: ParticlesCollisionHeightfieldResolution = ParticlesCollisionHeightfieldResolution { + ord: 4i32 + }; + #[doc(alias = "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_8192")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_8192`"] + pub const RESOLUTION_8192: ParticlesCollisionHeightfieldResolution = ParticlesCollisionHeightfieldResolution { + ord: 5i32 + }; + #[doc(alias = "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_MAX")] + #[doc = "Godot enumerator name: `PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_MAX`"] + pub const MAX: ParticlesCollisionHeightfieldResolution = ParticlesCollisionHeightfieldResolution { + ord: 6i32 + }; + +} +impl std::fmt::Debug for ParticlesCollisionHeightfieldResolution { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ParticlesCollisionHeightfieldResolution") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ParticlesCollisionHeightfieldResolution { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RESOLUTION_256 => "RESOLUTION_256", Self::RESOLUTION_512 => "RESOLUTION_512", Self::RESOLUTION_1024 => "RESOLUTION_1024", Self::RESOLUTION_2048 => "RESOLUTION_2048", Self::RESOLUTION_4096 => "RESOLUTION_4096", Self::RESOLUTION_8192 => "RESOLUTION_8192", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::RESOLUTION_256 => "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_256", Self::RESOLUTION_512 => "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_512", Self::RESOLUTION_1024 => "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_1024", Self::RESOLUTION_2048 => "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_2048", Self::RESOLUTION_4096 => "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_4096", Self::RESOLUTION_8192 => "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_8192", Self::MAX => "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ParticlesCollisionHeightfieldResolution { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for ParticlesCollisionHeightfieldResolution { + type Via = i32; + +} +impl crate::meta::ToGodot for ParticlesCollisionHeightfieldResolution { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ParticlesCollisionHeightfieldResolution { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FogVolumeShape { + ord: i32 +} +impl FogVolumeShape { + #[doc(alias = "FOG_VOLUME_SHAPE_ELLIPSOID")] + #[doc = "Godot enumerator name: `FOG_VOLUME_SHAPE_ELLIPSOID`"] + pub const ELLIPSOID: FogVolumeShape = FogVolumeShape { + ord: 0i32 + }; + #[doc(alias = "FOG_VOLUME_SHAPE_CONE")] + #[doc = "Godot enumerator name: `FOG_VOLUME_SHAPE_CONE`"] + pub const CONE: FogVolumeShape = FogVolumeShape { + ord: 1i32 + }; + #[doc(alias = "FOG_VOLUME_SHAPE_CYLINDER")] + #[doc = "Godot enumerator name: `FOG_VOLUME_SHAPE_CYLINDER`"] + pub const CYLINDER: FogVolumeShape = FogVolumeShape { + ord: 2i32 + }; + #[doc(alias = "FOG_VOLUME_SHAPE_BOX")] + #[doc = "Godot enumerator name: `FOG_VOLUME_SHAPE_BOX`"] + pub const BOX: FogVolumeShape = FogVolumeShape { + ord: 3i32 + }; + #[doc(alias = "FOG_VOLUME_SHAPE_WORLD")] + #[doc = "Godot enumerator name: `FOG_VOLUME_SHAPE_WORLD`"] + pub const WORLD: FogVolumeShape = FogVolumeShape { + ord: 4i32 + }; + #[doc(alias = "FOG_VOLUME_SHAPE_MAX")] + #[doc = "Godot enumerator name: `FOG_VOLUME_SHAPE_MAX`"] + pub const MAX: FogVolumeShape = FogVolumeShape { + ord: 5i32 + }; + +} +impl std::fmt::Debug for FogVolumeShape { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FogVolumeShape") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FogVolumeShape { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ELLIPSOID => "ELLIPSOID", Self::CONE => "CONE", Self::CYLINDER => "CYLINDER", Self::BOX => "BOX", Self::WORLD => "WORLD", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ELLIPSOID => "FOG_VOLUME_SHAPE_ELLIPSOID", Self::CONE => "FOG_VOLUME_SHAPE_CONE", Self::CYLINDER => "FOG_VOLUME_SHAPE_CYLINDER", Self::BOX => "FOG_VOLUME_SHAPE_BOX", Self::WORLD => "FOG_VOLUME_SHAPE_WORLD", Self::MAX => "FOG_VOLUME_SHAPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for FogVolumeShape { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for FogVolumeShape { + type Via = i32; + +} +impl crate::meta::ToGodot for FogVolumeShape { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FogVolumeShape { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ViewportScaling3DMode { + ord: i32 +} +impl ViewportScaling3DMode { + #[doc(alias = "VIEWPORT_SCALING_3D_MODE_BILINEAR")] + #[doc = "Godot enumerator name: `VIEWPORT_SCALING_3D_MODE_BILINEAR`"] + pub const BILINEAR: ViewportScaling3DMode = ViewportScaling3DMode { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_SCALING_3D_MODE_FSR")] + #[doc = "Godot enumerator name: `VIEWPORT_SCALING_3D_MODE_FSR`"] + pub const FSR: ViewportScaling3DMode = ViewportScaling3DMode { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_SCALING_3D_MODE_FSR2")] + #[doc = "Godot enumerator name: `VIEWPORT_SCALING_3D_MODE_FSR2`"] + pub const FSR2: ViewportScaling3DMode = ViewportScaling3DMode { + ord: 2i32 + }; + #[doc(alias = "VIEWPORT_SCALING_3D_MODE_MAX")] + #[doc = "Godot enumerator name: `VIEWPORT_SCALING_3D_MODE_MAX`"] + pub const MAX: ViewportScaling3DMode = ViewportScaling3DMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ViewportScaling3DMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportScaling3DMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportScaling3DMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BILINEAR => "BILINEAR", Self::FSR => "FSR", Self::FSR2 => "FSR2", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BILINEAR => "VIEWPORT_SCALING_3D_MODE_BILINEAR", Self::FSR => "VIEWPORT_SCALING_3D_MODE_FSR", Self::FSR2 => "VIEWPORT_SCALING_3D_MODE_FSR2", Self::MAX => "VIEWPORT_SCALING_3D_MODE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ViewportScaling3DMode { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for ViewportScaling3DMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportScaling3DMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportScaling3DMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ViewportUpdateMode { + ord: i32 +} +impl ViewportUpdateMode { + #[doc(alias = "VIEWPORT_UPDATE_DISABLED")] + #[doc = "Godot enumerator name: `VIEWPORT_UPDATE_DISABLED`"] + pub const DISABLED: ViewportUpdateMode = ViewportUpdateMode { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_UPDATE_ONCE")] + #[doc = "Godot enumerator name: `VIEWPORT_UPDATE_ONCE`"] + pub const ONCE: ViewportUpdateMode = ViewportUpdateMode { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_UPDATE_WHEN_VISIBLE")] + #[doc = "Godot enumerator name: `VIEWPORT_UPDATE_WHEN_VISIBLE`"] + pub const WHEN_VISIBLE: ViewportUpdateMode = ViewportUpdateMode { + ord: 2i32 + }; + #[doc(alias = "VIEWPORT_UPDATE_WHEN_PARENT_VISIBLE")] + #[doc = "Godot enumerator name: `VIEWPORT_UPDATE_WHEN_PARENT_VISIBLE`"] + pub const WHEN_PARENT_VISIBLE: ViewportUpdateMode = ViewportUpdateMode { + ord: 3i32 + }; + #[doc(alias = "VIEWPORT_UPDATE_ALWAYS")] + #[doc = "Godot enumerator name: `VIEWPORT_UPDATE_ALWAYS`"] + pub const ALWAYS: ViewportUpdateMode = ViewportUpdateMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for ViewportUpdateMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportUpdateMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportUpdateMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ONCE => "ONCE", Self::WHEN_VISIBLE => "WHEN_VISIBLE", Self::WHEN_PARENT_VISIBLE => "WHEN_PARENT_VISIBLE", Self::ALWAYS => "ALWAYS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "VIEWPORT_UPDATE_DISABLED", Self::ONCE => "VIEWPORT_UPDATE_ONCE", Self::WHEN_VISIBLE => "VIEWPORT_UPDATE_WHEN_VISIBLE", Self::WHEN_PARENT_VISIBLE => "VIEWPORT_UPDATE_WHEN_PARENT_VISIBLE", Self::ALWAYS => "VIEWPORT_UPDATE_ALWAYS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ViewportUpdateMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportUpdateMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportUpdateMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ViewportClearMode { + ord: i32 +} +impl ViewportClearMode { + #[doc(alias = "VIEWPORT_CLEAR_ALWAYS")] + #[doc = "Godot enumerator name: `VIEWPORT_CLEAR_ALWAYS`"] + pub const ALWAYS: ViewportClearMode = ViewportClearMode { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_CLEAR_NEVER")] + #[doc = "Godot enumerator name: `VIEWPORT_CLEAR_NEVER`"] + pub const NEVER: ViewportClearMode = ViewportClearMode { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_CLEAR_ONLY_NEXT_FRAME")] + #[doc = "Godot enumerator name: `VIEWPORT_CLEAR_ONLY_NEXT_FRAME`"] + pub const ONLY_NEXT_FRAME: ViewportClearMode = ViewportClearMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ViewportClearMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportClearMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportClearMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALWAYS => "ALWAYS", Self::NEVER => "NEVER", Self::ONLY_NEXT_FRAME => "ONLY_NEXT_FRAME", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALWAYS => "VIEWPORT_CLEAR_ALWAYS", Self::NEVER => "VIEWPORT_CLEAR_NEVER", Self::ONLY_NEXT_FRAME => "VIEWPORT_CLEAR_ONLY_NEXT_FRAME", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ViewportClearMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportClearMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportClearMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ViewportEnvironmentMode { + ord: i32 +} +impl ViewportEnvironmentMode { + #[doc(alias = "VIEWPORT_ENVIRONMENT_DISABLED")] + #[doc = "Godot enumerator name: `VIEWPORT_ENVIRONMENT_DISABLED`"] + pub const DISABLED: ViewportEnvironmentMode = ViewportEnvironmentMode { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_ENVIRONMENT_ENABLED")] + #[doc = "Godot enumerator name: `VIEWPORT_ENVIRONMENT_ENABLED`"] + pub const ENABLED: ViewportEnvironmentMode = ViewportEnvironmentMode { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_ENVIRONMENT_INHERIT")] + #[doc = "Godot enumerator name: `VIEWPORT_ENVIRONMENT_INHERIT`"] + pub const INHERIT: ViewportEnvironmentMode = ViewportEnvironmentMode { + ord: 2i32 + }; + #[doc(alias = "VIEWPORT_ENVIRONMENT_MAX")] + #[doc = "Godot enumerator name: `VIEWPORT_ENVIRONMENT_MAX`"] + pub const MAX: ViewportEnvironmentMode = ViewportEnvironmentMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ViewportEnvironmentMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportEnvironmentMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportEnvironmentMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ENABLED => "ENABLED", Self::INHERIT => "INHERIT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "VIEWPORT_ENVIRONMENT_DISABLED", Self::ENABLED => "VIEWPORT_ENVIRONMENT_ENABLED", Self::INHERIT => "VIEWPORT_ENVIRONMENT_INHERIT", Self::MAX => "VIEWPORT_ENVIRONMENT_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ViewportEnvironmentMode { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for ViewportEnvironmentMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportEnvironmentMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportEnvironmentMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `ViewportSDFOversize`."] +pub struct ViewportSdfOversize { + ord: i32 +} +impl ViewportSdfOversize { + #[doc(alias = "VIEWPORT_SDF_OVERSIZE_100_PERCENT")] + #[doc = "Godot enumerator name: `VIEWPORT_SDF_OVERSIZE_100_PERCENT`"] + pub const OVERSIZE_100_PERCENT: ViewportSdfOversize = ViewportSdfOversize { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_SDF_OVERSIZE_120_PERCENT")] + #[doc = "Godot enumerator name: `VIEWPORT_SDF_OVERSIZE_120_PERCENT`"] + pub const OVERSIZE_120_PERCENT: ViewportSdfOversize = ViewportSdfOversize { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_SDF_OVERSIZE_150_PERCENT")] + #[doc = "Godot enumerator name: `VIEWPORT_SDF_OVERSIZE_150_PERCENT`"] + pub const OVERSIZE_150_PERCENT: ViewportSdfOversize = ViewportSdfOversize { + ord: 2i32 + }; + #[doc(alias = "VIEWPORT_SDF_OVERSIZE_200_PERCENT")] + #[doc = "Godot enumerator name: `VIEWPORT_SDF_OVERSIZE_200_PERCENT`"] + pub const OVERSIZE_200_PERCENT: ViewportSdfOversize = ViewportSdfOversize { + ord: 3i32 + }; + #[doc(alias = "VIEWPORT_SDF_OVERSIZE_MAX")] + #[doc = "Godot enumerator name: `VIEWPORT_SDF_OVERSIZE_MAX`"] + pub const MAX: ViewportSdfOversize = ViewportSdfOversize { + ord: 4i32 + }; + +} +impl std::fmt::Debug for ViewportSdfOversize { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportSdfOversize") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportSdfOversize { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OVERSIZE_100_PERCENT => "OVERSIZE_100_PERCENT", Self::OVERSIZE_120_PERCENT => "OVERSIZE_120_PERCENT", Self::OVERSIZE_150_PERCENT => "OVERSIZE_150_PERCENT", Self::OVERSIZE_200_PERCENT => "OVERSIZE_200_PERCENT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OVERSIZE_100_PERCENT => "VIEWPORT_SDF_OVERSIZE_100_PERCENT", Self::OVERSIZE_120_PERCENT => "VIEWPORT_SDF_OVERSIZE_120_PERCENT", Self::OVERSIZE_150_PERCENT => "VIEWPORT_SDF_OVERSIZE_150_PERCENT", Self::OVERSIZE_200_PERCENT => "VIEWPORT_SDF_OVERSIZE_200_PERCENT", Self::MAX => "VIEWPORT_SDF_OVERSIZE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ViewportSdfOversize { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for ViewportSdfOversize { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportSdfOversize { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportSdfOversize { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `ViewportSDFScale`."] +pub struct ViewportSdfScale { + ord: i32 +} +impl ViewportSdfScale { + #[doc(alias = "VIEWPORT_SDF_SCALE_100_PERCENT")] + #[doc = "Godot enumerator name: `VIEWPORT_SDF_SCALE_100_PERCENT`"] + pub const SCALE_100_PERCENT: ViewportSdfScale = ViewportSdfScale { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_SDF_SCALE_50_PERCENT")] + #[doc = "Godot enumerator name: `VIEWPORT_SDF_SCALE_50_PERCENT`"] + pub const SCALE_50_PERCENT: ViewportSdfScale = ViewportSdfScale { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_SDF_SCALE_25_PERCENT")] + #[doc = "Godot enumerator name: `VIEWPORT_SDF_SCALE_25_PERCENT`"] + pub const SCALE_25_PERCENT: ViewportSdfScale = ViewportSdfScale { + ord: 2i32 + }; + #[doc(alias = "VIEWPORT_SDF_SCALE_MAX")] + #[doc = "Godot enumerator name: `VIEWPORT_SDF_SCALE_MAX`"] + pub const MAX: ViewportSdfScale = ViewportSdfScale { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ViewportSdfScale { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportSdfScale") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportSdfScale { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCALE_100_PERCENT => "SCALE_100_PERCENT", Self::SCALE_50_PERCENT => "SCALE_50_PERCENT", Self::SCALE_25_PERCENT => "SCALE_25_PERCENT", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCALE_100_PERCENT => "VIEWPORT_SDF_SCALE_100_PERCENT", Self::SCALE_50_PERCENT => "VIEWPORT_SDF_SCALE_50_PERCENT", Self::SCALE_25_PERCENT => "VIEWPORT_SDF_SCALE_25_PERCENT", Self::MAX => "VIEWPORT_SDF_SCALE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ViewportSdfScale { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for ViewportSdfScale { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportSdfScale { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportSdfScale { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `ViewportMSAA`."] +pub struct ViewportMsaa { + ord: i32 +} +impl ViewportMsaa { + #[doc(alias = "VIEWPORT_MSAA_DISABLED")] + #[doc = "Godot enumerator name: `VIEWPORT_MSAA_DISABLED`"] + pub const DISABLED: ViewportMsaa = ViewportMsaa { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_MSAA_2X")] + #[doc = "Godot enumerator name: `VIEWPORT_MSAA_2X`"] + pub const MSAA_2X: ViewportMsaa = ViewportMsaa { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_MSAA_4X")] + #[doc = "Godot enumerator name: `VIEWPORT_MSAA_4X`"] + pub const MSAA_4X: ViewportMsaa = ViewportMsaa { + ord: 2i32 + }; + #[doc(alias = "VIEWPORT_MSAA_8X")] + #[doc = "Godot enumerator name: `VIEWPORT_MSAA_8X`"] + pub const MSAA_8X: ViewportMsaa = ViewportMsaa { + ord: 3i32 + }; + #[doc(alias = "VIEWPORT_MSAA_MAX")] + #[doc = "Godot enumerator name: `VIEWPORT_MSAA_MAX`"] + pub const MAX: ViewportMsaa = ViewportMsaa { + ord: 4i32 + }; + +} +impl std::fmt::Debug for ViewportMsaa { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportMsaa") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportMsaa { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::MSAA_2X => "MSAA_2X", Self::MSAA_4X => "MSAA_4X", Self::MSAA_8X => "MSAA_8X", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "VIEWPORT_MSAA_DISABLED", Self::MSAA_2X => "VIEWPORT_MSAA_2X", Self::MSAA_4X => "VIEWPORT_MSAA_4X", Self::MSAA_8X => "VIEWPORT_MSAA_8X", Self::MAX => "VIEWPORT_MSAA_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ViewportMsaa { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for ViewportMsaa { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportMsaa { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportMsaa { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `ViewportScreenSpaceAA`."] +pub struct ViewportScreenSpaceAa { + ord: i32 +} +impl ViewportScreenSpaceAa { + #[doc(alias = "VIEWPORT_SCREEN_SPACE_AA_DISABLED")] + #[doc = "Godot enumerator name: `VIEWPORT_SCREEN_SPACE_AA_DISABLED`"] + pub const DISABLED: ViewportScreenSpaceAa = ViewportScreenSpaceAa { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_SCREEN_SPACE_AA_FXAA")] + #[doc = "Godot enumerator name: `VIEWPORT_SCREEN_SPACE_AA_FXAA`"] + pub const FXAA: ViewportScreenSpaceAa = ViewportScreenSpaceAa { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_SCREEN_SPACE_AA_MAX")] + #[doc = "Godot enumerator name: `VIEWPORT_SCREEN_SPACE_AA_MAX`"] + pub const MAX: ViewportScreenSpaceAa = ViewportScreenSpaceAa { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ViewportScreenSpaceAa { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportScreenSpaceAa") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportScreenSpaceAa { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::FXAA => "FXAA", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "VIEWPORT_SCREEN_SPACE_AA_DISABLED", Self::FXAA => "VIEWPORT_SCREEN_SPACE_AA_FXAA", Self::MAX => "VIEWPORT_SCREEN_SPACE_AA_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ViewportScreenSpaceAa { + const ENUMERATOR_COUNT: usize = 2usize; + +} +impl crate::meta::GodotConvert for ViewportScreenSpaceAa { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportScreenSpaceAa { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportScreenSpaceAa { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ViewportOcclusionCullingBuildQuality { + ord: i32 +} +impl ViewportOcclusionCullingBuildQuality { + #[doc(alias = "VIEWPORT_OCCLUSION_BUILD_QUALITY_LOW")] + #[doc = "Godot enumerator name: `VIEWPORT_OCCLUSION_BUILD_QUALITY_LOW`"] + pub const LOW: ViewportOcclusionCullingBuildQuality = ViewportOcclusionCullingBuildQuality { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_OCCLUSION_BUILD_QUALITY_MEDIUM")] + #[doc = "Godot enumerator name: `VIEWPORT_OCCLUSION_BUILD_QUALITY_MEDIUM`"] + pub const MEDIUM: ViewportOcclusionCullingBuildQuality = ViewportOcclusionCullingBuildQuality { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_OCCLUSION_BUILD_QUALITY_HIGH")] + #[doc = "Godot enumerator name: `VIEWPORT_OCCLUSION_BUILD_QUALITY_HIGH`"] + pub const HIGH: ViewportOcclusionCullingBuildQuality = ViewportOcclusionCullingBuildQuality { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ViewportOcclusionCullingBuildQuality { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportOcclusionCullingBuildQuality") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportOcclusionCullingBuildQuality { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOW => "LOW", Self::MEDIUM => "MEDIUM", Self::HIGH => "HIGH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LOW => "VIEWPORT_OCCLUSION_BUILD_QUALITY_LOW", Self::MEDIUM => "VIEWPORT_OCCLUSION_BUILD_QUALITY_MEDIUM", Self::HIGH => "VIEWPORT_OCCLUSION_BUILD_QUALITY_HIGH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ViewportOcclusionCullingBuildQuality { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportOcclusionCullingBuildQuality { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportOcclusionCullingBuildQuality { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ViewportRenderInfo { + ord: i32 +} +impl ViewportRenderInfo { + #[doc(alias = "VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME")] + #[doc = "Godot enumerator name: `VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME`"] + pub const OBJECTS_IN_FRAME: ViewportRenderInfo = ViewportRenderInfo { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_RENDER_INFO_PRIMITIVES_IN_FRAME")] + #[doc = "Godot enumerator name: `VIEWPORT_RENDER_INFO_PRIMITIVES_IN_FRAME`"] + pub const PRIMITIVES_IN_FRAME: ViewportRenderInfo = ViewportRenderInfo { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME")] + #[doc = "Godot enumerator name: `VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME`"] + pub const DRAW_CALLS_IN_FRAME: ViewportRenderInfo = ViewportRenderInfo { + ord: 2i32 + }; + #[doc(alias = "VIEWPORT_RENDER_INFO_MAX")] + #[doc = "Godot enumerator name: `VIEWPORT_RENDER_INFO_MAX`"] + pub const MAX: ViewportRenderInfo = ViewportRenderInfo { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ViewportRenderInfo { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportRenderInfo") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportRenderInfo { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OBJECTS_IN_FRAME => "OBJECTS_IN_FRAME", Self::PRIMITIVES_IN_FRAME => "PRIMITIVES_IN_FRAME", Self::DRAW_CALLS_IN_FRAME => "DRAW_CALLS_IN_FRAME", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OBJECTS_IN_FRAME => "VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME", Self::PRIMITIVES_IN_FRAME => "VIEWPORT_RENDER_INFO_PRIMITIVES_IN_FRAME", Self::DRAW_CALLS_IN_FRAME => "VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME", Self::MAX => "VIEWPORT_RENDER_INFO_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ViewportRenderInfo { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for ViewportRenderInfo { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportRenderInfo { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportRenderInfo { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ViewportRenderInfoType { + ord: i32 +} +impl ViewportRenderInfoType { + #[doc(alias = "VIEWPORT_RENDER_INFO_TYPE_VISIBLE")] + #[doc = "Godot enumerator name: `VIEWPORT_RENDER_INFO_TYPE_VISIBLE`"] + pub const VISIBLE: ViewportRenderInfoType = ViewportRenderInfoType { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_RENDER_INFO_TYPE_SHADOW")] + #[doc = "Godot enumerator name: `VIEWPORT_RENDER_INFO_TYPE_SHADOW`"] + pub const SHADOW: ViewportRenderInfoType = ViewportRenderInfoType { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_RENDER_INFO_TYPE_CANVAS")] + #[doc = "Godot enumerator name: `VIEWPORT_RENDER_INFO_TYPE_CANVAS`"] + pub const CANVAS: ViewportRenderInfoType = ViewportRenderInfoType { + ord: 2i32 + }; + #[doc(alias = "VIEWPORT_RENDER_INFO_TYPE_MAX")] + #[doc = "Godot enumerator name: `VIEWPORT_RENDER_INFO_TYPE_MAX`"] + pub const MAX: ViewportRenderInfoType = ViewportRenderInfoType { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ViewportRenderInfoType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportRenderInfoType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportRenderInfoType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VISIBLE => "VISIBLE", Self::SHADOW => "SHADOW", Self::CANVAS => "CANVAS", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VISIBLE => "VIEWPORT_RENDER_INFO_TYPE_VISIBLE", Self::SHADOW => "VIEWPORT_RENDER_INFO_TYPE_SHADOW", Self::CANVAS => "VIEWPORT_RENDER_INFO_TYPE_CANVAS", Self::MAX => "VIEWPORT_RENDER_INFO_TYPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ViewportRenderInfoType { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for ViewportRenderInfoType { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportRenderInfoType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportRenderInfoType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ViewportDebugDraw { + ord: i32 +} +impl ViewportDebugDraw { + #[doc(alias = "VIEWPORT_DEBUG_DRAW_DISABLED")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_DISABLED`"] + pub const DISABLED: ViewportDebugDraw = ViewportDebugDraw { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_UNSHADED")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_UNSHADED`"] + pub const UNSHADED: ViewportDebugDraw = ViewportDebugDraw { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_LIGHTING")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_LIGHTING`"] + pub const LIGHTING: ViewportDebugDraw = ViewportDebugDraw { + ord: 2i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_OVERDRAW")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_OVERDRAW`"] + pub const OVERDRAW: ViewportDebugDraw = ViewportDebugDraw { + ord: 3i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_WIREFRAME")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_WIREFRAME`"] + pub const WIREFRAME: ViewportDebugDraw = ViewportDebugDraw { + ord: 4i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_NORMAL_BUFFER")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_NORMAL_BUFFER`"] + pub const NORMAL_BUFFER: ViewportDebugDraw = ViewportDebugDraw { + ord: 5i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_VOXEL_GI_ALBEDO")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_VOXEL_GI_ALBEDO`"] + pub const VOXEL_GI_ALBEDO: ViewportDebugDraw = ViewportDebugDraw { + ord: 6i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_VOXEL_GI_LIGHTING")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_VOXEL_GI_LIGHTING`"] + pub const VOXEL_GI_LIGHTING: ViewportDebugDraw = ViewportDebugDraw { + ord: 7i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_VOXEL_GI_EMISSION")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_VOXEL_GI_EMISSION`"] + pub const VOXEL_GI_EMISSION: ViewportDebugDraw = ViewportDebugDraw { + ord: 8i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_SHADOW_ATLAS")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_SHADOW_ATLAS`"] + pub const SHADOW_ATLAS: ViewportDebugDraw = ViewportDebugDraw { + ord: 9i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_DIRECTIONAL_SHADOW_ATLAS")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_DIRECTIONAL_SHADOW_ATLAS`"] + pub const DIRECTIONAL_SHADOW_ATLAS: ViewportDebugDraw = ViewportDebugDraw { + ord: 10i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_SCENE_LUMINANCE")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_SCENE_LUMINANCE`"] + pub const SCENE_LUMINANCE: ViewportDebugDraw = ViewportDebugDraw { + ord: 11i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_SSAO")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_SSAO`"] + pub const SSAO: ViewportDebugDraw = ViewportDebugDraw { + ord: 12i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_SSIL")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_SSIL`"] + pub const SSIL: ViewportDebugDraw = ViewportDebugDraw { + ord: 13i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_PSSM_SPLITS")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_PSSM_SPLITS`"] + pub const PSSM_SPLITS: ViewportDebugDraw = ViewportDebugDraw { + ord: 14i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_DECAL_ATLAS")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_DECAL_ATLAS`"] + pub const DECAL_ATLAS: ViewportDebugDraw = ViewportDebugDraw { + ord: 15i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_SDFGI")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_SDFGI`"] + pub const SDFGI: ViewportDebugDraw = ViewportDebugDraw { + ord: 16i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_SDFGI_PROBES")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_SDFGI_PROBES`"] + pub const SDFGI_PROBES: ViewportDebugDraw = ViewportDebugDraw { + ord: 17i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_GI_BUFFER")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_GI_BUFFER`"] + pub const GI_BUFFER: ViewportDebugDraw = ViewportDebugDraw { + ord: 18i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_DISABLE_LOD")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_DISABLE_LOD`"] + pub const DISABLE_LOD: ViewportDebugDraw = ViewportDebugDraw { + ord: 19i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_CLUSTER_OMNI_LIGHTS")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_CLUSTER_OMNI_LIGHTS`"] + pub const CLUSTER_OMNI_LIGHTS: ViewportDebugDraw = ViewportDebugDraw { + ord: 20i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_CLUSTER_SPOT_LIGHTS")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_CLUSTER_SPOT_LIGHTS`"] + pub const CLUSTER_SPOT_LIGHTS: ViewportDebugDraw = ViewportDebugDraw { + ord: 21i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_CLUSTER_DECALS")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_CLUSTER_DECALS`"] + pub const CLUSTER_DECALS: ViewportDebugDraw = ViewportDebugDraw { + ord: 22i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_CLUSTER_REFLECTION_PROBES")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_CLUSTER_REFLECTION_PROBES`"] + pub const CLUSTER_REFLECTION_PROBES: ViewportDebugDraw = ViewportDebugDraw { + ord: 23i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_OCCLUDERS")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_OCCLUDERS`"] + pub const OCCLUDERS: ViewportDebugDraw = ViewportDebugDraw { + ord: 24i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_MOTION_VECTORS")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_MOTION_VECTORS`"] + pub const MOTION_VECTORS: ViewportDebugDraw = ViewportDebugDraw { + ord: 25i32 + }; + #[doc(alias = "VIEWPORT_DEBUG_DRAW_INTERNAL_BUFFER")] + #[doc = "Godot enumerator name: `VIEWPORT_DEBUG_DRAW_INTERNAL_BUFFER`"] + pub const INTERNAL_BUFFER: ViewportDebugDraw = ViewportDebugDraw { + ord: 26i32 + }; + +} +impl std::fmt::Debug for ViewportDebugDraw { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportDebugDraw") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportDebugDraw { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 | ord @ 26i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::UNSHADED => "UNSHADED", Self::LIGHTING => "LIGHTING", Self::OVERDRAW => "OVERDRAW", Self::WIREFRAME => "WIREFRAME", Self::NORMAL_BUFFER => "NORMAL_BUFFER", Self::VOXEL_GI_ALBEDO => "VOXEL_GI_ALBEDO", Self::VOXEL_GI_LIGHTING => "VOXEL_GI_LIGHTING", Self::VOXEL_GI_EMISSION => "VOXEL_GI_EMISSION", Self::SHADOW_ATLAS => "SHADOW_ATLAS", Self::DIRECTIONAL_SHADOW_ATLAS => "DIRECTIONAL_SHADOW_ATLAS", Self::SCENE_LUMINANCE => "SCENE_LUMINANCE", Self::SSAO => "SSAO", Self::SSIL => "SSIL", Self::PSSM_SPLITS => "PSSM_SPLITS", Self::DECAL_ATLAS => "DECAL_ATLAS", Self::SDFGI => "SDFGI", Self::SDFGI_PROBES => "SDFGI_PROBES", Self::GI_BUFFER => "GI_BUFFER", Self::DISABLE_LOD => "DISABLE_LOD", Self::CLUSTER_OMNI_LIGHTS => "CLUSTER_OMNI_LIGHTS", Self::CLUSTER_SPOT_LIGHTS => "CLUSTER_SPOT_LIGHTS", Self::CLUSTER_DECALS => "CLUSTER_DECALS", Self::CLUSTER_REFLECTION_PROBES => "CLUSTER_REFLECTION_PROBES", Self::OCCLUDERS => "OCCLUDERS", Self::MOTION_VECTORS => "MOTION_VECTORS", Self::INTERNAL_BUFFER => "INTERNAL_BUFFER", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "VIEWPORT_DEBUG_DRAW_DISABLED", Self::UNSHADED => "VIEWPORT_DEBUG_DRAW_UNSHADED", Self::LIGHTING => "VIEWPORT_DEBUG_DRAW_LIGHTING", Self::OVERDRAW => "VIEWPORT_DEBUG_DRAW_OVERDRAW", Self::WIREFRAME => "VIEWPORT_DEBUG_DRAW_WIREFRAME", Self::NORMAL_BUFFER => "VIEWPORT_DEBUG_DRAW_NORMAL_BUFFER", Self::VOXEL_GI_ALBEDO => "VIEWPORT_DEBUG_DRAW_VOXEL_GI_ALBEDO", Self::VOXEL_GI_LIGHTING => "VIEWPORT_DEBUG_DRAW_VOXEL_GI_LIGHTING", Self::VOXEL_GI_EMISSION => "VIEWPORT_DEBUG_DRAW_VOXEL_GI_EMISSION", Self::SHADOW_ATLAS => "VIEWPORT_DEBUG_DRAW_SHADOW_ATLAS", Self::DIRECTIONAL_SHADOW_ATLAS => "VIEWPORT_DEBUG_DRAW_DIRECTIONAL_SHADOW_ATLAS", Self::SCENE_LUMINANCE => "VIEWPORT_DEBUG_DRAW_SCENE_LUMINANCE", Self::SSAO => "VIEWPORT_DEBUG_DRAW_SSAO", Self::SSIL => "VIEWPORT_DEBUG_DRAW_SSIL", Self::PSSM_SPLITS => "VIEWPORT_DEBUG_DRAW_PSSM_SPLITS", Self::DECAL_ATLAS => "VIEWPORT_DEBUG_DRAW_DECAL_ATLAS", Self::SDFGI => "VIEWPORT_DEBUG_DRAW_SDFGI", Self::SDFGI_PROBES => "VIEWPORT_DEBUG_DRAW_SDFGI_PROBES", Self::GI_BUFFER => "VIEWPORT_DEBUG_DRAW_GI_BUFFER", Self::DISABLE_LOD => "VIEWPORT_DEBUG_DRAW_DISABLE_LOD", Self::CLUSTER_OMNI_LIGHTS => "VIEWPORT_DEBUG_DRAW_CLUSTER_OMNI_LIGHTS", Self::CLUSTER_SPOT_LIGHTS => "VIEWPORT_DEBUG_DRAW_CLUSTER_SPOT_LIGHTS", Self::CLUSTER_DECALS => "VIEWPORT_DEBUG_DRAW_CLUSTER_DECALS", Self::CLUSTER_REFLECTION_PROBES => "VIEWPORT_DEBUG_DRAW_CLUSTER_REFLECTION_PROBES", Self::OCCLUDERS => "VIEWPORT_DEBUG_DRAW_OCCLUDERS", Self::MOTION_VECTORS => "VIEWPORT_DEBUG_DRAW_MOTION_VECTORS", Self::INTERNAL_BUFFER => "VIEWPORT_DEBUG_DRAW_INTERNAL_BUFFER", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ViewportDebugDraw { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportDebugDraw { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportDebugDraw { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `ViewportVRSMode`."] +pub struct ViewportVrsMode { + ord: i32 +} +impl ViewportVrsMode { + #[doc(alias = "VIEWPORT_VRS_DISABLED")] + #[doc = "Godot enumerator name: `VIEWPORT_VRS_DISABLED`"] + pub const DISABLED: ViewportVrsMode = ViewportVrsMode { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_VRS_TEXTURE")] + #[doc = "Godot enumerator name: `VIEWPORT_VRS_TEXTURE`"] + pub const TEXTURE: ViewportVrsMode = ViewportVrsMode { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_VRS_XR")] + #[doc = "Godot enumerator name: `VIEWPORT_VRS_XR`"] + pub const XR: ViewportVrsMode = ViewportVrsMode { + ord: 2i32 + }; + #[doc(alias = "VIEWPORT_VRS_MAX")] + #[doc = "Godot enumerator name: `VIEWPORT_VRS_MAX`"] + pub const MAX: ViewportVrsMode = ViewportVrsMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ViewportVrsMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportVrsMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportVrsMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::TEXTURE => "TEXTURE", Self::XR => "XR", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "VIEWPORT_VRS_DISABLED", Self::TEXTURE => "VIEWPORT_VRS_TEXTURE", Self::XR => "VIEWPORT_VRS_XR", Self::MAX => "VIEWPORT_VRS_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ViewportVrsMode { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for ViewportVrsMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportVrsMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportVrsMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `ViewportVRSUpdateMode`."] +pub struct ViewportVrsUpdateMode { + ord: i32 +} +impl ViewportVrsUpdateMode { + #[doc(alias = "VIEWPORT_VRS_UPDATE_DISABLED")] + #[doc = "Godot enumerator name: `VIEWPORT_VRS_UPDATE_DISABLED`"] + pub const DISABLED: ViewportVrsUpdateMode = ViewportVrsUpdateMode { + ord: 0i32 + }; + #[doc(alias = "VIEWPORT_VRS_UPDATE_ONCE")] + #[doc = "Godot enumerator name: `VIEWPORT_VRS_UPDATE_ONCE`"] + pub const ONCE: ViewportVrsUpdateMode = ViewportVrsUpdateMode { + ord: 1i32 + }; + #[doc(alias = "VIEWPORT_VRS_UPDATE_ALWAYS")] + #[doc = "Godot enumerator name: `VIEWPORT_VRS_UPDATE_ALWAYS`"] + pub const ALWAYS: ViewportVrsUpdateMode = ViewportVrsUpdateMode { + ord: 2i32 + }; + #[doc(alias = "VIEWPORT_VRS_UPDATE_MAX")] + #[doc = "Godot enumerator name: `VIEWPORT_VRS_UPDATE_MAX`"] + pub const MAX: ViewportVrsUpdateMode = ViewportVrsUpdateMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ViewportVrsUpdateMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ViewportVrsUpdateMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ViewportVrsUpdateMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::ONCE => "ONCE", Self::ALWAYS => "ALWAYS", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "VIEWPORT_VRS_UPDATE_DISABLED", Self::ONCE => "VIEWPORT_VRS_UPDATE_ONCE", Self::ALWAYS => "VIEWPORT_VRS_UPDATE_ALWAYS", Self::MAX => "VIEWPORT_VRS_UPDATE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for ViewportVrsUpdateMode { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for ViewportVrsUpdateMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ViewportVrsUpdateMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ViewportVrsUpdateMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SkyMode { + ord: i32 +} +impl SkyMode { + #[doc(alias = "SKY_MODE_AUTOMATIC")] + #[doc = "Godot enumerator name: `SKY_MODE_AUTOMATIC`"] + pub const AUTOMATIC: SkyMode = SkyMode { + ord: 0i32 + }; + #[doc(alias = "SKY_MODE_QUALITY")] + #[doc = "Godot enumerator name: `SKY_MODE_QUALITY`"] + pub const QUALITY: SkyMode = SkyMode { + ord: 1i32 + }; + #[doc(alias = "SKY_MODE_INCREMENTAL")] + #[doc = "Godot enumerator name: `SKY_MODE_INCREMENTAL`"] + pub const INCREMENTAL: SkyMode = SkyMode { + ord: 2i32 + }; + #[doc(alias = "SKY_MODE_REALTIME")] + #[doc = "Godot enumerator name: `SKY_MODE_REALTIME`"] + pub const REALTIME: SkyMode = SkyMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for SkyMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SkyMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SkyMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::AUTOMATIC => "AUTOMATIC", Self::QUALITY => "QUALITY", Self::INCREMENTAL => "INCREMENTAL", Self::REALTIME => "REALTIME", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::AUTOMATIC => "SKY_MODE_AUTOMATIC", Self::QUALITY => "SKY_MODE_QUALITY", Self::INCREMENTAL => "SKY_MODE_INCREMENTAL", Self::REALTIME => "SKY_MODE_REALTIME", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SkyMode { + type Via = i32; + +} +impl crate::meta::ToGodot for SkyMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SkyMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CompositorEffectFlags { + ord: i32 +} +impl CompositorEffectFlags { + #[doc(alias = "COMPOSITOR_EFFECT_FLAG_ACCESS_RESOLVED_COLOR")] + #[doc = "Godot enumerator name: `COMPOSITOR_EFFECT_FLAG_ACCESS_RESOLVED_COLOR`"] + pub const ACCESS_RESOLVED_COLOR: CompositorEffectFlags = CompositorEffectFlags { + ord: 1i32 + }; + #[doc(alias = "COMPOSITOR_EFFECT_FLAG_ACCESS_RESOLVED_DEPTH")] + #[doc = "Godot enumerator name: `COMPOSITOR_EFFECT_FLAG_ACCESS_RESOLVED_DEPTH`"] + pub const ACCESS_RESOLVED_DEPTH: CompositorEffectFlags = CompositorEffectFlags { + ord: 2i32 + }; + #[doc(alias = "COMPOSITOR_EFFECT_FLAG_NEEDS_MOTION_VECTORS")] + #[doc = "Godot enumerator name: `COMPOSITOR_EFFECT_FLAG_NEEDS_MOTION_VECTORS`"] + pub const NEEDS_MOTION_VECTORS: CompositorEffectFlags = CompositorEffectFlags { + ord: 4i32 + }; + #[doc(alias = "COMPOSITOR_EFFECT_FLAG_NEEDS_ROUGHNESS")] + #[doc = "Godot enumerator name: `COMPOSITOR_EFFECT_FLAG_NEEDS_ROUGHNESS`"] + pub const NEEDS_ROUGHNESS: CompositorEffectFlags = CompositorEffectFlags { + ord: 8i32 + }; + #[doc(alias = "COMPOSITOR_EFFECT_FLAG_NEEDS_SEPARATE_SPECULAR")] + #[doc = "Godot enumerator name: `COMPOSITOR_EFFECT_FLAG_NEEDS_SEPARATE_SPECULAR`"] + pub const NEEDS_SEPARATE_SPECULAR: CompositorEffectFlags = CompositorEffectFlags { + ord: 16i32 + }; + +} +impl std::fmt::Debug for CompositorEffectFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CompositorEffectFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CompositorEffectFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 1i32 | ord @ 2i32 | ord @ 4i32 | ord @ 8i32 | ord @ 16i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ACCESS_RESOLVED_COLOR => "ACCESS_RESOLVED_COLOR", Self::ACCESS_RESOLVED_DEPTH => "ACCESS_RESOLVED_DEPTH", Self::NEEDS_MOTION_VECTORS => "NEEDS_MOTION_VECTORS", Self::NEEDS_ROUGHNESS => "NEEDS_ROUGHNESS", Self::NEEDS_SEPARATE_SPECULAR => "NEEDS_SEPARATE_SPECULAR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ACCESS_RESOLVED_COLOR => "COMPOSITOR_EFFECT_FLAG_ACCESS_RESOLVED_COLOR", Self::ACCESS_RESOLVED_DEPTH => "COMPOSITOR_EFFECT_FLAG_ACCESS_RESOLVED_DEPTH", Self::NEEDS_MOTION_VECTORS => "COMPOSITOR_EFFECT_FLAG_NEEDS_MOTION_VECTORS", Self::NEEDS_ROUGHNESS => "COMPOSITOR_EFFECT_FLAG_NEEDS_ROUGHNESS", Self::NEEDS_SEPARATE_SPECULAR => "COMPOSITOR_EFFECT_FLAG_NEEDS_SEPARATE_SPECULAR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CompositorEffectFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for CompositorEffectFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CompositorEffectFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CompositorEffectCallbackType { + ord: i32 +} +impl CompositorEffectCallbackType { + #[doc(alias = "COMPOSITOR_EFFECT_CALLBACK_TYPE_PRE_OPAQUE")] + #[doc = "Godot enumerator name: `COMPOSITOR_EFFECT_CALLBACK_TYPE_PRE_OPAQUE`"] + pub const PRE_OPAQUE: CompositorEffectCallbackType = CompositorEffectCallbackType { + ord: 0i32 + }; + #[doc(alias = "COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_OPAQUE")] + #[doc = "Godot enumerator name: `COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_OPAQUE`"] + pub const POST_OPAQUE: CompositorEffectCallbackType = CompositorEffectCallbackType { + ord: 1i32 + }; + #[doc(alias = "COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_SKY")] + #[doc = "Godot enumerator name: `COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_SKY`"] + pub const POST_SKY: CompositorEffectCallbackType = CompositorEffectCallbackType { + ord: 2i32 + }; + #[doc(alias = "COMPOSITOR_EFFECT_CALLBACK_TYPE_PRE_TRANSPARENT")] + #[doc = "Godot enumerator name: `COMPOSITOR_EFFECT_CALLBACK_TYPE_PRE_TRANSPARENT`"] + pub const PRE_TRANSPARENT: CompositorEffectCallbackType = CompositorEffectCallbackType { + ord: 3i32 + }; + #[doc(alias = "COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_TRANSPARENT")] + #[doc = "Godot enumerator name: `COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_TRANSPARENT`"] + pub const POST_TRANSPARENT: CompositorEffectCallbackType = CompositorEffectCallbackType { + ord: 4i32 + }; + #[doc(alias = "COMPOSITOR_EFFECT_CALLBACK_TYPE_ANY")] + #[doc = "Godot enumerator name: `COMPOSITOR_EFFECT_CALLBACK_TYPE_ANY`"] + pub const ANY: CompositorEffectCallbackType = CompositorEffectCallbackType { + ord: - 1i32 + }; + +} +impl std::fmt::Debug for CompositorEffectCallbackType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CompositorEffectCallbackType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CompositorEffectCallbackType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ - 1i32 | ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PRE_OPAQUE => "PRE_OPAQUE", Self::POST_OPAQUE => "POST_OPAQUE", Self::POST_SKY => "POST_SKY", Self::PRE_TRANSPARENT => "PRE_TRANSPARENT", Self::POST_TRANSPARENT => "POST_TRANSPARENT", Self::ANY => "ANY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::PRE_OPAQUE => "COMPOSITOR_EFFECT_CALLBACK_TYPE_PRE_OPAQUE", Self::POST_OPAQUE => "COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_OPAQUE", Self::POST_SKY => "COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_SKY", Self::PRE_TRANSPARENT => "COMPOSITOR_EFFECT_CALLBACK_TYPE_PRE_TRANSPARENT", Self::POST_TRANSPARENT => "COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_TRANSPARENT", Self::ANY => "COMPOSITOR_EFFECT_CALLBACK_TYPE_ANY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CompositorEffectCallbackType { + type Via = i32; + +} +impl crate::meta::ToGodot for CompositorEffectCallbackType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CompositorEffectCallbackType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `EnvironmentBG`."] +pub struct EnvironmentBg { + ord: i32 +} +impl EnvironmentBg { + #[doc(alias = "ENV_BG_CLEAR_COLOR")] + #[doc = "Godot enumerator name: `ENV_BG_CLEAR_COLOR`"] + pub const CLEAR_COLOR: EnvironmentBg = EnvironmentBg { + ord: 0i32 + }; + #[doc(alias = "ENV_BG_COLOR")] + #[doc = "Godot enumerator name: `ENV_BG_COLOR`"] + pub const COLOR: EnvironmentBg = EnvironmentBg { + ord: 1i32 + }; + #[doc(alias = "ENV_BG_SKY")] + #[doc = "Godot enumerator name: `ENV_BG_SKY`"] + pub const SKY: EnvironmentBg = EnvironmentBg { + ord: 2i32 + }; + #[doc(alias = "ENV_BG_CANVAS")] + #[doc = "Godot enumerator name: `ENV_BG_CANVAS`"] + pub const CANVAS: EnvironmentBg = EnvironmentBg { + ord: 3i32 + }; + #[doc(alias = "ENV_BG_KEEP")] + #[doc = "Godot enumerator name: `ENV_BG_KEEP`"] + pub const KEEP: EnvironmentBg = EnvironmentBg { + ord: 4i32 + }; + #[doc(alias = "ENV_BG_CAMERA_FEED")] + #[doc = "Godot enumerator name: `ENV_BG_CAMERA_FEED`"] + pub const CAMERA_FEED: EnvironmentBg = EnvironmentBg { + ord: 5i32 + }; + #[doc(alias = "ENV_BG_MAX")] + #[doc = "Godot enumerator name: `ENV_BG_MAX`"] + pub const MAX: EnvironmentBg = EnvironmentBg { + ord: 6i32 + }; + +} +impl std::fmt::Debug for EnvironmentBg { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentBg") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentBg { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLEAR_COLOR => "CLEAR_COLOR", Self::COLOR => "COLOR", Self::SKY => "SKY", Self::CANVAS => "CANVAS", Self::KEEP => "KEEP", Self::CAMERA_FEED => "CAMERA_FEED", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::CLEAR_COLOR => "ENV_BG_CLEAR_COLOR", Self::COLOR => "ENV_BG_COLOR", Self::SKY => "ENV_BG_SKY", Self::CANVAS => "ENV_BG_CANVAS", Self::KEEP => "ENV_BG_KEEP", Self::CAMERA_FEED => "ENV_BG_CAMERA_FEED", Self::MAX => "ENV_BG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for EnvironmentBg { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for EnvironmentBg { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentBg { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentBg { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EnvironmentAmbientSource { + ord: i32 +} +impl EnvironmentAmbientSource { + #[doc(alias = "ENV_AMBIENT_SOURCE_BG")] + #[doc = "Godot enumerator name: `ENV_AMBIENT_SOURCE_BG`"] + pub const BG: EnvironmentAmbientSource = EnvironmentAmbientSource { + ord: 0i32 + }; + #[doc(alias = "ENV_AMBIENT_SOURCE_DISABLED")] + #[doc = "Godot enumerator name: `ENV_AMBIENT_SOURCE_DISABLED`"] + pub const DISABLED: EnvironmentAmbientSource = EnvironmentAmbientSource { + ord: 1i32 + }; + #[doc(alias = "ENV_AMBIENT_SOURCE_COLOR")] + #[doc = "Godot enumerator name: `ENV_AMBIENT_SOURCE_COLOR`"] + pub const COLOR: EnvironmentAmbientSource = EnvironmentAmbientSource { + ord: 2i32 + }; + #[doc(alias = "ENV_AMBIENT_SOURCE_SKY")] + #[doc = "Godot enumerator name: `ENV_AMBIENT_SOURCE_SKY`"] + pub const SKY: EnvironmentAmbientSource = EnvironmentAmbientSource { + ord: 3i32 + }; + +} +impl std::fmt::Debug for EnvironmentAmbientSource { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentAmbientSource") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentAmbientSource { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BG => "BG", Self::DISABLED => "DISABLED", Self::COLOR => "COLOR", Self::SKY => "SKY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BG => "ENV_AMBIENT_SOURCE_BG", Self::DISABLED => "ENV_AMBIENT_SOURCE_DISABLED", Self::COLOR => "ENV_AMBIENT_SOURCE_COLOR", Self::SKY => "ENV_AMBIENT_SOURCE_SKY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EnvironmentAmbientSource { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentAmbientSource { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentAmbientSource { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EnvironmentReflectionSource { + ord: i32 +} +impl EnvironmentReflectionSource { + #[doc(alias = "ENV_REFLECTION_SOURCE_BG")] + #[doc = "Godot enumerator name: `ENV_REFLECTION_SOURCE_BG`"] + pub const BG: EnvironmentReflectionSource = EnvironmentReflectionSource { + ord: 0i32 + }; + #[doc(alias = "ENV_REFLECTION_SOURCE_DISABLED")] + #[doc = "Godot enumerator name: `ENV_REFLECTION_SOURCE_DISABLED`"] + pub const DISABLED: EnvironmentReflectionSource = EnvironmentReflectionSource { + ord: 1i32 + }; + #[doc(alias = "ENV_REFLECTION_SOURCE_SKY")] + #[doc = "Godot enumerator name: `ENV_REFLECTION_SOURCE_SKY`"] + pub const SKY: EnvironmentReflectionSource = EnvironmentReflectionSource { + ord: 2i32 + }; + +} +impl std::fmt::Debug for EnvironmentReflectionSource { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentReflectionSource") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentReflectionSource { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BG => "BG", Self::DISABLED => "DISABLED", Self::SKY => "SKY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BG => "ENV_REFLECTION_SOURCE_BG", Self::DISABLED => "ENV_REFLECTION_SOURCE_DISABLED", Self::SKY => "ENV_REFLECTION_SOURCE_SKY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EnvironmentReflectionSource { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentReflectionSource { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentReflectionSource { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EnvironmentGlowBlendMode { + ord: i32 +} +impl EnvironmentGlowBlendMode { + #[doc(alias = "ENV_GLOW_BLEND_MODE_ADDITIVE")] + #[doc = "Godot enumerator name: `ENV_GLOW_BLEND_MODE_ADDITIVE`"] + pub const ADDITIVE: EnvironmentGlowBlendMode = EnvironmentGlowBlendMode { + ord: 0i32 + }; + #[doc(alias = "ENV_GLOW_BLEND_MODE_SCREEN")] + #[doc = "Godot enumerator name: `ENV_GLOW_BLEND_MODE_SCREEN`"] + pub const SCREEN: EnvironmentGlowBlendMode = EnvironmentGlowBlendMode { + ord: 1i32 + }; + #[doc(alias = "ENV_GLOW_BLEND_MODE_SOFTLIGHT")] + #[doc = "Godot enumerator name: `ENV_GLOW_BLEND_MODE_SOFTLIGHT`"] + pub const SOFTLIGHT: EnvironmentGlowBlendMode = EnvironmentGlowBlendMode { + ord: 2i32 + }; + #[doc(alias = "ENV_GLOW_BLEND_MODE_REPLACE")] + #[doc = "Godot enumerator name: `ENV_GLOW_BLEND_MODE_REPLACE`"] + pub const REPLACE: EnvironmentGlowBlendMode = EnvironmentGlowBlendMode { + ord: 3i32 + }; + #[doc(alias = "ENV_GLOW_BLEND_MODE_MIX")] + #[doc = "Godot enumerator name: `ENV_GLOW_BLEND_MODE_MIX`"] + pub const MIX: EnvironmentGlowBlendMode = EnvironmentGlowBlendMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for EnvironmentGlowBlendMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentGlowBlendMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentGlowBlendMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADDITIVE => "ADDITIVE", Self::SCREEN => "SCREEN", Self::SOFTLIGHT => "SOFTLIGHT", Self::REPLACE => "REPLACE", Self::MIX => "MIX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADDITIVE => "ENV_GLOW_BLEND_MODE_ADDITIVE", Self::SCREEN => "ENV_GLOW_BLEND_MODE_SCREEN", Self::SOFTLIGHT => "ENV_GLOW_BLEND_MODE_SOFTLIGHT", Self::REPLACE => "ENV_GLOW_BLEND_MODE_REPLACE", Self::MIX => "ENV_GLOW_BLEND_MODE_MIX", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EnvironmentGlowBlendMode { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentGlowBlendMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentGlowBlendMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EnvironmentFogMode { + ord: i32 +} +impl EnvironmentFogMode { + #[doc(alias = "ENV_FOG_MODE_EXPONENTIAL")] + #[doc = "Godot enumerator name: `ENV_FOG_MODE_EXPONENTIAL`"] + pub const EXPONENTIAL: EnvironmentFogMode = EnvironmentFogMode { + ord: 0i32 + }; + #[doc(alias = "ENV_FOG_MODE_DEPTH")] + #[doc = "Godot enumerator name: `ENV_FOG_MODE_DEPTH`"] + pub const DEPTH: EnvironmentFogMode = EnvironmentFogMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for EnvironmentFogMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentFogMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentFogMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EXPONENTIAL => "EXPONENTIAL", Self::DEPTH => "DEPTH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::EXPONENTIAL => "ENV_FOG_MODE_EXPONENTIAL", Self::DEPTH => "ENV_FOG_MODE_DEPTH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EnvironmentFogMode { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentFogMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentFogMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct EnvironmentToneMapper { + ord: i32 +} +impl EnvironmentToneMapper { + #[doc(alias = "ENV_TONE_MAPPER_LINEAR")] + #[doc = "Godot enumerator name: `ENV_TONE_MAPPER_LINEAR`"] + pub const LINEAR: EnvironmentToneMapper = EnvironmentToneMapper { + ord: 0i32 + }; + #[doc(alias = "ENV_TONE_MAPPER_REINHARD")] + #[doc = "Godot enumerator name: `ENV_TONE_MAPPER_REINHARD`"] + pub const REINHARD: EnvironmentToneMapper = EnvironmentToneMapper { + ord: 1i32 + }; + #[doc(alias = "ENV_TONE_MAPPER_FILMIC")] + #[doc = "Godot enumerator name: `ENV_TONE_MAPPER_FILMIC`"] + pub const FILMIC: EnvironmentToneMapper = EnvironmentToneMapper { + ord: 2i32 + }; + #[doc(alias = "ENV_TONE_MAPPER_ACES")] + #[doc = "Godot enumerator name: `ENV_TONE_MAPPER_ACES`"] + pub const ACES: EnvironmentToneMapper = EnvironmentToneMapper { + ord: 3i32 + }; + +} +impl std::fmt::Debug for EnvironmentToneMapper { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentToneMapper") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentToneMapper { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR => "LINEAR", Self::REINHARD => "REINHARD", Self::FILMIC => "FILMIC", Self::ACES => "ACES", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::LINEAR => "ENV_TONE_MAPPER_LINEAR", Self::REINHARD => "ENV_TONE_MAPPER_REINHARD", Self::FILMIC => "ENV_TONE_MAPPER_FILMIC", Self::ACES => "ENV_TONE_MAPPER_ACES", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EnvironmentToneMapper { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentToneMapper { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentToneMapper { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `EnvironmentSSRRoughnessQuality`."] +pub struct EnvironmentSsrRoughnessQuality { + ord: i32 +} +impl EnvironmentSsrRoughnessQuality { + #[doc(alias = "ENV_SSR_ROUGHNESS_QUALITY_DISABLED")] + #[doc = "Godot enumerator name: `ENV_SSR_ROUGHNESS_QUALITY_DISABLED`"] + pub const DISABLED: EnvironmentSsrRoughnessQuality = EnvironmentSsrRoughnessQuality { + ord: 0i32 + }; + #[doc(alias = "ENV_SSR_ROUGHNESS_QUALITY_LOW")] + #[doc = "Godot enumerator name: `ENV_SSR_ROUGHNESS_QUALITY_LOW`"] + pub const LOW: EnvironmentSsrRoughnessQuality = EnvironmentSsrRoughnessQuality { + ord: 1i32 + }; + #[doc(alias = "ENV_SSR_ROUGHNESS_QUALITY_MEDIUM")] + #[doc = "Godot enumerator name: `ENV_SSR_ROUGHNESS_QUALITY_MEDIUM`"] + pub const MEDIUM: EnvironmentSsrRoughnessQuality = EnvironmentSsrRoughnessQuality { + ord: 2i32 + }; + #[doc(alias = "ENV_SSR_ROUGHNESS_QUALITY_HIGH")] + #[doc = "Godot enumerator name: `ENV_SSR_ROUGHNESS_QUALITY_HIGH`"] + pub const HIGH: EnvironmentSsrRoughnessQuality = EnvironmentSsrRoughnessQuality { + ord: 3i32 + }; + +} +impl std::fmt::Debug for EnvironmentSsrRoughnessQuality { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentSsrRoughnessQuality") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentSsrRoughnessQuality { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::LOW => "LOW", Self::MEDIUM => "MEDIUM", Self::HIGH => "HIGH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "ENV_SSR_ROUGHNESS_QUALITY_DISABLED", Self::LOW => "ENV_SSR_ROUGHNESS_QUALITY_LOW", Self::MEDIUM => "ENV_SSR_ROUGHNESS_QUALITY_MEDIUM", Self::HIGH => "ENV_SSR_ROUGHNESS_QUALITY_HIGH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EnvironmentSsrRoughnessQuality { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentSsrRoughnessQuality { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentSsrRoughnessQuality { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `EnvironmentSSAOQuality`."] +pub struct EnvironmentSsaoQuality { + ord: i32 +} +impl EnvironmentSsaoQuality { + #[doc(alias = "ENV_SSAO_QUALITY_VERY_LOW")] + #[doc = "Godot enumerator name: `ENV_SSAO_QUALITY_VERY_LOW`"] + pub const VERY_LOW: EnvironmentSsaoQuality = EnvironmentSsaoQuality { + ord: 0i32 + }; + #[doc(alias = "ENV_SSAO_QUALITY_LOW")] + #[doc = "Godot enumerator name: `ENV_SSAO_QUALITY_LOW`"] + pub const LOW: EnvironmentSsaoQuality = EnvironmentSsaoQuality { + ord: 1i32 + }; + #[doc(alias = "ENV_SSAO_QUALITY_MEDIUM")] + #[doc = "Godot enumerator name: `ENV_SSAO_QUALITY_MEDIUM`"] + pub const MEDIUM: EnvironmentSsaoQuality = EnvironmentSsaoQuality { + ord: 2i32 + }; + #[doc(alias = "ENV_SSAO_QUALITY_HIGH")] + #[doc = "Godot enumerator name: `ENV_SSAO_QUALITY_HIGH`"] + pub const HIGH: EnvironmentSsaoQuality = EnvironmentSsaoQuality { + ord: 3i32 + }; + #[doc(alias = "ENV_SSAO_QUALITY_ULTRA")] + #[doc = "Godot enumerator name: `ENV_SSAO_QUALITY_ULTRA`"] + pub const ULTRA: EnvironmentSsaoQuality = EnvironmentSsaoQuality { + ord: 4i32 + }; + +} +impl std::fmt::Debug for EnvironmentSsaoQuality { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentSsaoQuality") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentSsaoQuality { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERY_LOW => "VERY_LOW", Self::LOW => "LOW", Self::MEDIUM => "MEDIUM", Self::HIGH => "HIGH", Self::ULTRA => "ULTRA", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERY_LOW => "ENV_SSAO_QUALITY_VERY_LOW", Self::LOW => "ENV_SSAO_QUALITY_LOW", Self::MEDIUM => "ENV_SSAO_QUALITY_MEDIUM", Self::HIGH => "ENV_SSAO_QUALITY_HIGH", Self::ULTRA => "ENV_SSAO_QUALITY_ULTRA", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EnvironmentSsaoQuality { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentSsaoQuality { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentSsaoQuality { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `EnvironmentSSILQuality`."] +pub struct EnvironmentSsilQuality { + ord: i32 +} +impl EnvironmentSsilQuality { + #[doc(alias = "ENV_SSIL_QUALITY_VERY_LOW")] + #[doc = "Godot enumerator name: `ENV_SSIL_QUALITY_VERY_LOW`"] + pub const VERY_LOW: EnvironmentSsilQuality = EnvironmentSsilQuality { + ord: 0i32 + }; + #[doc(alias = "ENV_SSIL_QUALITY_LOW")] + #[doc = "Godot enumerator name: `ENV_SSIL_QUALITY_LOW`"] + pub const LOW: EnvironmentSsilQuality = EnvironmentSsilQuality { + ord: 1i32 + }; + #[doc(alias = "ENV_SSIL_QUALITY_MEDIUM")] + #[doc = "Godot enumerator name: `ENV_SSIL_QUALITY_MEDIUM`"] + pub const MEDIUM: EnvironmentSsilQuality = EnvironmentSsilQuality { + ord: 2i32 + }; + #[doc(alias = "ENV_SSIL_QUALITY_HIGH")] + #[doc = "Godot enumerator name: `ENV_SSIL_QUALITY_HIGH`"] + pub const HIGH: EnvironmentSsilQuality = EnvironmentSsilQuality { + ord: 3i32 + }; + #[doc(alias = "ENV_SSIL_QUALITY_ULTRA")] + #[doc = "Godot enumerator name: `ENV_SSIL_QUALITY_ULTRA`"] + pub const ULTRA: EnvironmentSsilQuality = EnvironmentSsilQuality { + ord: 4i32 + }; + +} +impl std::fmt::Debug for EnvironmentSsilQuality { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentSsilQuality") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentSsilQuality { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERY_LOW => "VERY_LOW", Self::LOW => "LOW", Self::MEDIUM => "MEDIUM", Self::HIGH => "HIGH", Self::ULTRA => "ULTRA", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERY_LOW => "ENV_SSIL_QUALITY_VERY_LOW", Self::LOW => "ENV_SSIL_QUALITY_LOW", Self::MEDIUM => "ENV_SSIL_QUALITY_MEDIUM", Self::HIGH => "ENV_SSIL_QUALITY_HIGH", Self::ULTRA => "ENV_SSIL_QUALITY_ULTRA", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EnvironmentSsilQuality { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentSsilQuality { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentSsilQuality { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `EnvironmentSDFGIYScale`."] +pub struct EnvironmentSdfgiYScale { + ord: i32 +} +impl EnvironmentSdfgiYScale { + #[doc(alias = "ENV_SDFGI_Y_SCALE_50_PERCENT")] + #[doc = "Godot enumerator name: `ENV_SDFGI_Y_SCALE_50_PERCENT`"] + pub const SCALE_50_PERCENT: EnvironmentSdfgiYScale = EnvironmentSdfgiYScale { + ord: 0i32 + }; + #[doc(alias = "ENV_SDFGI_Y_SCALE_75_PERCENT")] + #[doc = "Godot enumerator name: `ENV_SDFGI_Y_SCALE_75_PERCENT`"] + pub const SCALE_75_PERCENT: EnvironmentSdfgiYScale = EnvironmentSdfgiYScale { + ord: 1i32 + }; + #[doc(alias = "ENV_SDFGI_Y_SCALE_100_PERCENT")] + #[doc = "Godot enumerator name: `ENV_SDFGI_Y_SCALE_100_PERCENT`"] + pub const SCALE_100_PERCENT: EnvironmentSdfgiYScale = EnvironmentSdfgiYScale { + ord: 2i32 + }; + +} +impl std::fmt::Debug for EnvironmentSdfgiYScale { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentSdfgiYScale") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentSdfgiYScale { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCALE_50_PERCENT => "SCALE_50_PERCENT", Self::SCALE_75_PERCENT => "SCALE_75_PERCENT", Self::SCALE_100_PERCENT => "SCALE_100_PERCENT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SCALE_50_PERCENT => "ENV_SDFGI_Y_SCALE_50_PERCENT", Self::SCALE_75_PERCENT => "ENV_SDFGI_Y_SCALE_75_PERCENT", Self::SCALE_100_PERCENT => "ENV_SDFGI_Y_SCALE_100_PERCENT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for EnvironmentSdfgiYScale { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentSdfgiYScale { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentSdfgiYScale { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `EnvironmentSDFGIRayCount`."] +pub struct EnvironmentSdfgiRayCount { + ord: i32 +} +impl EnvironmentSdfgiRayCount { + #[doc(alias = "ENV_SDFGI_RAY_COUNT_4")] + #[doc = "Godot enumerator name: `ENV_SDFGI_RAY_COUNT_4`"] + pub const COUNT_4: EnvironmentSdfgiRayCount = EnvironmentSdfgiRayCount { + ord: 0i32 + }; + #[doc(alias = "ENV_SDFGI_RAY_COUNT_8")] + #[doc = "Godot enumerator name: `ENV_SDFGI_RAY_COUNT_8`"] + pub const COUNT_8: EnvironmentSdfgiRayCount = EnvironmentSdfgiRayCount { + ord: 1i32 + }; + #[doc(alias = "ENV_SDFGI_RAY_COUNT_16")] + #[doc = "Godot enumerator name: `ENV_SDFGI_RAY_COUNT_16`"] + pub const COUNT_16: EnvironmentSdfgiRayCount = EnvironmentSdfgiRayCount { + ord: 2i32 + }; + #[doc(alias = "ENV_SDFGI_RAY_COUNT_32")] + #[doc = "Godot enumerator name: `ENV_SDFGI_RAY_COUNT_32`"] + pub const COUNT_32: EnvironmentSdfgiRayCount = EnvironmentSdfgiRayCount { + ord: 3i32 + }; + #[doc(alias = "ENV_SDFGI_RAY_COUNT_64")] + #[doc = "Godot enumerator name: `ENV_SDFGI_RAY_COUNT_64`"] + pub const COUNT_64: EnvironmentSdfgiRayCount = EnvironmentSdfgiRayCount { + ord: 4i32 + }; + #[doc(alias = "ENV_SDFGI_RAY_COUNT_96")] + #[doc = "Godot enumerator name: `ENV_SDFGI_RAY_COUNT_96`"] + pub const COUNT_96: EnvironmentSdfgiRayCount = EnvironmentSdfgiRayCount { + ord: 5i32 + }; + #[doc(alias = "ENV_SDFGI_RAY_COUNT_128")] + #[doc = "Godot enumerator name: `ENV_SDFGI_RAY_COUNT_128`"] + pub const COUNT_128: EnvironmentSdfgiRayCount = EnvironmentSdfgiRayCount { + ord: 6i32 + }; + #[doc(alias = "ENV_SDFGI_RAY_COUNT_MAX")] + #[doc = "Godot enumerator name: `ENV_SDFGI_RAY_COUNT_MAX`"] + pub const MAX: EnvironmentSdfgiRayCount = EnvironmentSdfgiRayCount { + ord: 7i32 + }; + +} +impl std::fmt::Debug for EnvironmentSdfgiRayCount { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentSdfgiRayCount") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentSdfgiRayCount { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COUNT_4 => "COUNT_4", Self::COUNT_8 => "COUNT_8", Self::COUNT_16 => "COUNT_16", Self::COUNT_32 => "COUNT_32", Self::COUNT_64 => "COUNT_64", Self::COUNT_96 => "COUNT_96", Self::COUNT_128 => "COUNT_128", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COUNT_4 => "ENV_SDFGI_RAY_COUNT_4", Self::COUNT_8 => "ENV_SDFGI_RAY_COUNT_8", Self::COUNT_16 => "ENV_SDFGI_RAY_COUNT_16", Self::COUNT_32 => "ENV_SDFGI_RAY_COUNT_32", Self::COUNT_64 => "ENV_SDFGI_RAY_COUNT_64", Self::COUNT_96 => "ENV_SDFGI_RAY_COUNT_96", Self::COUNT_128 => "ENV_SDFGI_RAY_COUNT_128", Self::MAX => "ENV_SDFGI_RAY_COUNT_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for EnvironmentSdfgiRayCount { + const ENUMERATOR_COUNT: usize = 7usize; + +} +impl crate::meta::GodotConvert for EnvironmentSdfgiRayCount { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentSdfgiRayCount { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentSdfgiRayCount { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `EnvironmentSDFGIFramesToConverge`."] +pub struct EnvironmentSdfgiFramesToConverge { + ord: i32 +} +impl EnvironmentSdfgiFramesToConverge { + #[doc(alias = "ENV_SDFGI_CONVERGE_IN_5_FRAMES")] + #[doc = "Godot enumerator name: `ENV_SDFGI_CONVERGE_IN_5_FRAMES`"] + pub const IN_5_FRAMES: EnvironmentSdfgiFramesToConverge = EnvironmentSdfgiFramesToConverge { + ord: 0i32 + }; + #[doc(alias = "ENV_SDFGI_CONVERGE_IN_10_FRAMES")] + #[doc = "Godot enumerator name: `ENV_SDFGI_CONVERGE_IN_10_FRAMES`"] + pub const IN_10_FRAMES: EnvironmentSdfgiFramesToConverge = EnvironmentSdfgiFramesToConverge { + ord: 1i32 + }; + #[doc(alias = "ENV_SDFGI_CONVERGE_IN_15_FRAMES")] + #[doc = "Godot enumerator name: `ENV_SDFGI_CONVERGE_IN_15_FRAMES`"] + pub const IN_15_FRAMES: EnvironmentSdfgiFramesToConverge = EnvironmentSdfgiFramesToConverge { + ord: 2i32 + }; + #[doc(alias = "ENV_SDFGI_CONVERGE_IN_20_FRAMES")] + #[doc = "Godot enumerator name: `ENV_SDFGI_CONVERGE_IN_20_FRAMES`"] + pub const IN_20_FRAMES: EnvironmentSdfgiFramesToConverge = EnvironmentSdfgiFramesToConverge { + ord: 3i32 + }; + #[doc(alias = "ENV_SDFGI_CONVERGE_IN_25_FRAMES")] + #[doc = "Godot enumerator name: `ENV_SDFGI_CONVERGE_IN_25_FRAMES`"] + pub const IN_25_FRAMES: EnvironmentSdfgiFramesToConverge = EnvironmentSdfgiFramesToConverge { + ord: 4i32 + }; + #[doc(alias = "ENV_SDFGI_CONVERGE_IN_30_FRAMES")] + #[doc = "Godot enumerator name: `ENV_SDFGI_CONVERGE_IN_30_FRAMES`"] + pub const IN_30_FRAMES: EnvironmentSdfgiFramesToConverge = EnvironmentSdfgiFramesToConverge { + ord: 5i32 + }; + #[doc(alias = "ENV_SDFGI_CONVERGE_MAX")] + #[doc = "Godot enumerator name: `ENV_SDFGI_CONVERGE_MAX`"] + pub const MAX: EnvironmentSdfgiFramesToConverge = EnvironmentSdfgiFramesToConverge { + ord: 6i32 + }; + +} +impl std::fmt::Debug for EnvironmentSdfgiFramesToConverge { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentSdfgiFramesToConverge") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentSdfgiFramesToConverge { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IN_5_FRAMES => "IN_5_FRAMES", Self::IN_10_FRAMES => "IN_10_FRAMES", Self::IN_15_FRAMES => "IN_15_FRAMES", Self::IN_20_FRAMES => "IN_20_FRAMES", Self::IN_25_FRAMES => "IN_25_FRAMES", Self::IN_30_FRAMES => "IN_30_FRAMES", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IN_5_FRAMES => "ENV_SDFGI_CONVERGE_IN_5_FRAMES", Self::IN_10_FRAMES => "ENV_SDFGI_CONVERGE_IN_10_FRAMES", Self::IN_15_FRAMES => "ENV_SDFGI_CONVERGE_IN_15_FRAMES", Self::IN_20_FRAMES => "ENV_SDFGI_CONVERGE_IN_20_FRAMES", Self::IN_25_FRAMES => "ENV_SDFGI_CONVERGE_IN_25_FRAMES", Self::IN_30_FRAMES => "ENV_SDFGI_CONVERGE_IN_30_FRAMES", Self::MAX => "ENV_SDFGI_CONVERGE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for EnvironmentSdfgiFramesToConverge { + const ENUMERATOR_COUNT: usize = 6usize; + +} +impl crate::meta::GodotConvert for EnvironmentSdfgiFramesToConverge { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentSdfgiFramesToConverge { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentSdfgiFramesToConverge { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `EnvironmentSDFGIFramesToUpdateLight`."] +pub struct EnvironmentSdfgiFramesToUpdateLight { + ord: i32 +} +impl EnvironmentSdfgiFramesToUpdateLight { + #[doc(alias = "ENV_SDFGI_UPDATE_LIGHT_IN_1_FRAME")] + #[doc = "Godot enumerator name: `ENV_SDFGI_UPDATE_LIGHT_IN_1_FRAME`"] + pub const IN_1_FRAME: EnvironmentSdfgiFramesToUpdateLight = EnvironmentSdfgiFramesToUpdateLight { + ord: 0i32 + }; + #[doc(alias = "ENV_SDFGI_UPDATE_LIGHT_IN_2_FRAMES")] + #[doc = "Godot enumerator name: `ENV_SDFGI_UPDATE_LIGHT_IN_2_FRAMES`"] + pub const IN_2_FRAMES: EnvironmentSdfgiFramesToUpdateLight = EnvironmentSdfgiFramesToUpdateLight { + ord: 1i32 + }; + #[doc(alias = "ENV_SDFGI_UPDATE_LIGHT_IN_4_FRAMES")] + #[doc = "Godot enumerator name: `ENV_SDFGI_UPDATE_LIGHT_IN_4_FRAMES`"] + pub const IN_4_FRAMES: EnvironmentSdfgiFramesToUpdateLight = EnvironmentSdfgiFramesToUpdateLight { + ord: 2i32 + }; + #[doc(alias = "ENV_SDFGI_UPDATE_LIGHT_IN_8_FRAMES")] + #[doc = "Godot enumerator name: `ENV_SDFGI_UPDATE_LIGHT_IN_8_FRAMES`"] + pub const IN_8_FRAMES: EnvironmentSdfgiFramesToUpdateLight = EnvironmentSdfgiFramesToUpdateLight { + ord: 3i32 + }; + #[doc(alias = "ENV_SDFGI_UPDATE_LIGHT_IN_16_FRAMES")] + #[doc = "Godot enumerator name: `ENV_SDFGI_UPDATE_LIGHT_IN_16_FRAMES`"] + pub const IN_16_FRAMES: EnvironmentSdfgiFramesToUpdateLight = EnvironmentSdfgiFramesToUpdateLight { + ord: 4i32 + }; + #[doc(alias = "ENV_SDFGI_UPDATE_LIGHT_MAX")] + #[doc = "Godot enumerator name: `ENV_SDFGI_UPDATE_LIGHT_MAX`"] + pub const MAX: EnvironmentSdfgiFramesToUpdateLight = EnvironmentSdfgiFramesToUpdateLight { + ord: 5i32 + }; + +} +impl std::fmt::Debug for EnvironmentSdfgiFramesToUpdateLight { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("EnvironmentSdfgiFramesToUpdateLight") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for EnvironmentSdfgiFramesToUpdateLight { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IN_1_FRAME => "IN_1_FRAME", Self::IN_2_FRAMES => "IN_2_FRAMES", Self::IN_4_FRAMES => "IN_4_FRAMES", Self::IN_8_FRAMES => "IN_8_FRAMES", Self::IN_16_FRAMES => "IN_16_FRAMES", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IN_1_FRAME => "ENV_SDFGI_UPDATE_LIGHT_IN_1_FRAME", Self::IN_2_FRAMES => "ENV_SDFGI_UPDATE_LIGHT_IN_2_FRAMES", Self::IN_4_FRAMES => "ENV_SDFGI_UPDATE_LIGHT_IN_4_FRAMES", Self::IN_8_FRAMES => "ENV_SDFGI_UPDATE_LIGHT_IN_8_FRAMES", Self::IN_16_FRAMES => "ENV_SDFGI_UPDATE_LIGHT_IN_16_FRAMES", Self::MAX => "ENV_SDFGI_UPDATE_LIGHT_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for EnvironmentSdfgiFramesToUpdateLight { + const ENUMERATOR_COUNT: usize = 5usize; + +} +impl crate::meta::GodotConvert for EnvironmentSdfgiFramesToUpdateLight { + type Via = i32; + +} +impl crate::meta::ToGodot for EnvironmentSdfgiFramesToUpdateLight { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for EnvironmentSdfgiFramesToUpdateLight { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct SubSurfaceScatteringQuality { + ord: i32 +} +impl SubSurfaceScatteringQuality { + #[doc(alias = "SUB_SURFACE_SCATTERING_QUALITY_DISABLED")] + #[doc = "Godot enumerator name: `SUB_SURFACE_SCATTERING_QUALITY_DISABLED`"] + pub const DISABLED: SubSurfaceScatteringQuality = SubSurfaceScatteringQuality { + ord: 0i32 + }; + #[doc(alias = "SUB_SURFACE_SCATTERING_QUALITY_LOW")] + #[doc = "Godot enumerator name: `SUB_SURFACE_SCATTERING_QUALITY_LOW`"] + pub const LOW: SubSurfaceScatteringQuality = SubSurfaceScatteringQuality { + ord: 1i32 + }; + #[doc(alias = "SUB_SURFACE_SCATTERING_QUALITY_MEDIUM")] + #[doc = "Godot enumerator name: `SUB_SURFACE_SCATTERING_QUALITY_MEDIUM`"] + pub const MEDIUM: SubSurfaceScatteringQuality = SubSurfaceScatteringQuality { + ord: 2i32 + }; + #[doc(alias = "SUB_SURFACE_SCATTERING_QUALITY_HIGH")] + #[doc = "Godot enumerator name: `SUB_SURFACE_SCATTERING_QUALITY_HIGH`"] + pub const HIGH: SubSurfaceScatteringQuality = SubSurfaceScatteringQuality { + ord: 3i32 + }; + +} +impl std::fmt::Debug for SubSurfaceScatteringQuality { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("SubSurfaceScatteringQuality") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for SubSurfaceScatteringQuality { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::LOW => "LOW", Self::MEDIUM => "MEDIUM", Self::HIGH => "HIGH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "SUB_SURFACE_SCATTERING_QUALITY_DISABLED", Self::LOW => "SUB_SURFACE_SCATTERING_QUALITY_LOW", Self::MEDIUM => "SUB_SURFACE_SCATTERING_QUALITY_MEDIUM", Self::HIGH => "SUB_SURFACE_SCATTERING_QUALITY_HIGH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for SubSurfaceScatteringQuality { + type Via = i32; + +} +impl crate::meta::ToGodot for SubSurfaceScatteringQuality { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for SubSurfaceScatteringQuality { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `DOFBokehShape`."] +pub struct DofBokehShape { + ord: i32 +} +impl DofBokehShape { + #[doc(alias = "DOF_BOKEH_BOX")] + #[doc = "Godot enumerator name: `DOF_BOKEH_BOX`"] + pub const BOX: DofBokehShape = DofBokehShape { + ord: 0i32 + }; + #[doc(alias = "DOF_BOKEH_HEXAGON")] + #[doc = "Godot enumerator name: `DOF_BOKEH_HEXAGON`"] + pub const HEXAGON: DofBokehShape = DofBokehShape { + ord: 1i32 + }; + #[doc(alias = "DOF_BOKEH_CIRCLE")] + #[doc = "Godot enumerator name: `DOF_BOKEH_CIRCLE`"] + pub const CIRCLE: DofBokehShape = DofBokehShape { + ord: 2i32 + }; + +} +impl std::fmt::Debug for DofBokehShape { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DofBokehShape") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DofBokehShape { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOX => "BOX", Self::HEXAGON => "HEXAGON", Self::CIRCLE => "CIRCLE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOX => "DOF_BOKEH_BOX", Self::HEXAGON => "DOF_BOKEH_HEXAGON", Self::CIRCLE => "DOF_BOKEH_CIRCLE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DofBokehShape { + type Via = i32; + +} +impl crate::meta::ToGodot for DofBokehShape { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DofBokehShape { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `DOFBlurQuality`."] +pub struct DofBlurQuality { + ord: i32 +} +impl DofBlurQuality { + #[doc(alias = "DOF_BLUR_QUALITY_VERY_LOW")] + #[doc = "Godot enumerator name: `DOF_BLUR_QUALITY_VERY_LOW`"] + pub const VERY_LOW: DofBlurQuality = DofBlurQuality { + ord: 0i32 + }; + #[doc(alias = "DOF_BLUR_QUALITY_LOW")] + #[doc = "Godot enumerator name: `DOF_BLUR_QUALITY_LOW`"] + pub const LOW: DofBlurQuality = DofBlurQuality { + ord: 1i32 + }; + #[doc(alias = "DOF_BLUR_QUALITY_MEDIUM")] + #[doc = "Godot enumerator name: `DOF_BLUR_QUALITY_MEDIUM`"] + pub const MEDIUM: DofBlurQuality = DofBlurQuality { + ord: 2i32 + }; + #[doc(alias = "DOF_BLUR_QUALITY_HIGH")] + #[doc = "Godot enumerator name: `DOF_BLUR_QUALITY_HIGH`"] + pub const HIGH: DofBlurQuality = DofBlurQuality { + ord: 3i32 + }; + +} +impl std::fmt::Debug for DofBlurQuality { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DofBlurQuality") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DofBlurQuality { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERY_LOW => "VERY_LOW", Self::LOW => "LOW", Self::MEDIUM => "MEDIUM", Self::HIGH => "HIGH", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::VERY_LOW => "DOF_BLUR_QUALITY_VERY_LOW", Self::LOW => "DOF_BLUR_QUALITY_LOW", Self::MEDIUM => "DOF_BLUR_QUALITY_MEDIUM", Self::HIGH => "DOF_BLUR_QUALITY_HIGH", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DofBlurQuality { + type Via = i32; + +} +impl crate::meta::ToGodot for DofBlurQuality { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DofBlurQuality { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct InstanceType { + ord: i32 +} +impl InstanceType { + #[doc(alias = "INSTANCE_NONE")] + #[doc = "Godot enumerator name: `INSTANCE_NONE`"] + pub const NONE: InstanceType = InstanceType { + ord: 0i32 + }; + #[doc(alias = "INSTANCE_MESH")] + #[doc = "Godot enumerator name: `INSTANCE_MESH`"] + pub const MESH: InstanceType = InstanceType { + ord: 1i32 + }; + #[doc(alias = "INSTANCE_MULTIMESH")] + #[doc = "Godot enumerator name: `INSTANCE_MULTIMESH`"] + pub const MULTIMESH: InstanceType = InstanceType { + ord: 2i32 + }; + #[doc(alias = "INSTANCE_PARTICLES")] + #[doc = "Godot enumerator name: `INSTANCE_PARTICLES`"] + pub const PARTICLES: InstanceType = InstanceType { + ord: 3i32 + }; + #[doc(alias = "INSTANCE_PARTICLES_COLLISION")] + #[doc = "Godot enumerator name: `INSTANCE_PARTICLES_COLLISION`"] + pub const PARTICLES_COLLISION: InstanceType = InstanceType { + ord: 4i32 + }; + #[doc(alias = "INSTANCE_LIGHT")] + #[doc = "Godot enumerator name: `INSTANCE_LIGHT`"] + pub const LIGHT: InstanceType = InstanceType { + ord: 5i32 + }; + #[doc(alias = "INSTANCE_REFLECTION_PROBE")] + #[doc = "Godot enumerator name: `INSTANCE_REFLECTION_PROBE`"] + pub const REFLECTION_PROBE: InstanceType = InstanceType { + ord: 6i32 + }; + #[doc(alias = "INSTANCE_DECAL")] + #[doc = "Godot enumerator name: `INSTANCE_DECAL`"] + pub const DECAL: InstanceType = InstanceType { + ord: 7i32 + }; + #[doc(alias = "INSTANCE_VOXEL_GI")] + #[doc = "Godot enumerator name: `INSTANCE_VOXEL_GI`"] + pub const VOXEL_GI: InstanceType = InstanceType { + ord: 8i32 + }; + #[doc(alias = "INSTANCE_LIGHTMAP")] + #[doc = "Godot enumerator name: `INSTANCE_LIGHTMAP`"] + pub const LIGHTMAP: InstanceType = InstanceType { + ord: 9i32 + }; + #[doc(alias = "INSTANCE_OCCLUDER")] + #[doc = "Godot enumerator name: `INSTANCE_OCCLUDER`"] + pub const OCCLUDER: InstanceType = InstanceType { + ord: 10i32 + }; + #[doc(alias = "INSTANCE_VISIBLITY_NOTIFIER")] + #[doc = "Godot enumerator name: `INSTANCE_VISIBLITY_NOTIFIER`"] + pub const VISIBLITY_NOTIFIER: InstanceType = InstanceType { + ord: 11i32 + }; + #[doc(alias = "INSTANCE_FOG_VOLUME")] + #[doc = "Godot enumerator name: `INSTANCE_FOG_VOLUME`"] + pub const FOG_VOLUME: InstanceType = InstanceType { + ord: 12i32 + }; + #[doc(alias = "INSTANCE_MAX")] + #[doc = "Godot enumerator name: `INSTANCE_MAX`"] + pub const MAX: InstanceType = InstanceType { + ord: 13i32 + }; + #[doc(alias = "INSTANCE_GEOMETRY_MASK")] + #[doc = "Godot enumerator name: `INSTANCE_GEOMETRY_MASK`"] + pub const GEOMETRY_MASK: InstanceType = InstanceType { + ord: 14i32 + }; + +} +impl std::fmt::Debug for InstanceType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("InstanceType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for InstanceType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::MESH => "MESH", Self::MULTIMESH => "MULTIMESH", Self::PARTICLES => "PARTICLES", Self::PARTICLES_COLLISION => "PARTICLES_COLLISION", Self::LIGHT => "LIGHT", Self::REFLECTION_PROBE => "REFLECTION_PROBE", Self::DECAL => "DECAL", Self::VOXEL_GI => "VOXEL_GI", Self::LIGHTMAP => "LIGHTMAP", Self::OCCLUDER => "OCCLUDER", Self::VISIBLITY_NOTIFIER => "VISIBLITY_NOTIFIER", Self::FOG_VOLUME => "FOG_VOLUME", Self::MAX => "MAX", Self::GEOMETRY_MASK => "GEOMETRY_MASK", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "INSTANCE_NONE", Self::MESH => "INSTANCE_MESH", Self::MULTIMESH => "INSTANCE_MULTIMESH", Self::PARTICLES => "INSTANCE_PARTICLES", Self::PARTICLES_COLLISION => "INSTANCE_PARTICLES_COLLISION", Self::LIGHT => "INSTANCE_LIGHT", Self::REFLECTION_PROBE => "INSTANCE_REFLECTION_PROBE", Self::DECAL => "INSTANCE_DECAL", Self::VOXEL_GI => "INSTANCE_VOXEL_GI", Self::LIGHTMAP => "INSTANCE_LIGHTMAP", Self::OCCLUDER => "INSTANCE_OCCLUDER", Self::VISIBLITY_NOTIFIER => "INSTANCE_VISIBLITY_NOTIFIER", Self::FOG_VOLUME => "INSTANCE_FOG_VOLUME", Self::MAX => "INSTANCE_MAX", Self::GEOMETRY_MASK => "INSTANCE_GEOMETRY_MASK", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for InstanceType { + type Via = i32; + +} +impl crate::meta::ToGodot for InstanceType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for InstanceType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct InstanceFlags { + ord: i32 +} +impl InstanceFlags { + #[doc(alias = "INSTANCE_FLAG_USE_BAKED_LIGHT")] + #[doc = "Godot enumerator name: `INSTANCE_FLAG_USE_BAKED_LIGHT`"] + pub const USE_BAKED_LIGHT: InstanceFlags = InstanceFlags { + ord: 0i32 + }; + #[doc(alias = "INSTANCE_FLAG_USE_DYNAMIC_GI")] + #[doc = "Godot enumerator name: `INSTANCE_FLAG_USE_DYNAMIC_GI`"] + pub const USE_DYNAMIC_GI: InstanceFlags = InstanceFlags { + ord: 1i32 + }; + #[doc(alias = "INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE")] + #[doc = "Godot enumerator name: `INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE`"] + pub const DRAW_NEXT_FRAME_IF_VISIBLE: InstanceFlags = InstanceFlags { + ord: 2i32 + }; + #[doc(alias = "INSTANCE_FLAG_IGNORE_OCCLUSION_CULLING")] + #[doc = "Godot enumerator name: `INSTANCE_FLAG_IGNORE_OCCLUSION_CULLING`"] + pub const IGNORE_OCCLUSION_CULLING: InstanceFlags = InstanceFlags { + ord: 3i32 + }; + #[doc(alias = "INSTANCE_FLAG_MAX")] + #[doc = "Godot enumerator name: `INSTANCE_FLAG_MAX`"] + pub const MAX: InstanceFlags = InstanceFlags { + ord: 4i32 + }; + +} +impl std::fmt::Debug for InstanceFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("InstanceFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for InstanceFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::USE_BAKED_LIGHT => "USE_BAKED_LIGHT", Self::USE_DYNAMIC_GI => "USE_DYNAMIC_GI", Self::DRAW_NEXT_FRAME_IF_VISIBLE => "DRAW_NEXT_FRAME_IF_VISIBLE", Self::IGNORE_OCCLUSION_CULLING => "IGNORE_OCCLUSION_CULLING", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::USE_BAKED_LIGHT => "INSTANCE_FLAG_USE_BAKED_LIGHT", Self::USE_DYNAMIC_GI => "INSTANCE_FLAG_USE_DYNAMIC_GI", Self::DRAW_NEXT_FRAME_IF_VISIBLE => "INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE", Self::IGNORE_OCCLUSION_CULLING => "INSTANCE_FLAG_IGNORE_OCCLUSION_CULLING", Self::MAX => "INSTANCE_FLAG_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for InstanceFlags { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for InstanceFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for InstanceFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for InstanceFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ShadowCastingSetting { + ord: i32 +} +impl ShadowCastingSetting { + #[doc(alias = "SHADOW_CASTING_SETTING_OFF")] + #[doc = "Godot enumerator name: `SHADOW_CASTING_SETTING_OFF`"] + pub const OFF: ShadowCastingSetting = ShadowCastingSetting { + ord: 0i32 + }; + #[doc(alias = "SHADOW_CASTING_SETTING_ON")] + #[doc = "Godot enumerator name: `SHADOW_CASTING_SETTING_ON`"] + pub const ON: ShadowCastingSetting = ShadowCastingSetting { + ord: 1i32 + }; + #[doc(alias = "SHADOW_CASTING_SETTING_DOUBLE_SIDED")] + #[doc = "Godot enumerator name: `SHADOW_CASTING_SETTING_DOUBLE_SIDED`"] + pub const DOUBLE_SIDED: ShadowCastingSetting = ShadowCastingSetting { + ord: 2i32 + }; + #[doc(alias = "SHADOW_CASTING_SETTING_SHADOWS_ONLY")] + #[doc = "Godot enumerator name: `SHADOW_CASTING_SETTING_SHADOWS_ONLY`"] + pub const SHADOWS_ONLY: ShadowCastingSetting = ShadowCastingSetting { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ShadowCastingSetting { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ShadowCastingSetting") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ShadowCastingSetting { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OFF => "OFF", Self::ON => "ON", Self::DOUBLE_SIDED => "DOUBLE_SIDED", Self::SHADOWS_ONLY => "SHADOWS_ONLY", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::OFF => "SHADOW_CASTING_SETTING_OFF", Self::ON => "SHADOW_CASTING_SETTING_ON", Self::DOUBLE_SIDED => "SHADOW_CASTING_SETTING_DOUBLE_SIDED", Self::SHADOWS_ONLY => "SHADOW_CASTING_SETTING_SHADOWS_ONLY", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ShadowCastingSetting { + type Via = i32; + +} +impl crate::meta::ToGodot for ShadowCastingSetting { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ShadowCastingSetting { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct VisibilityRangeFadeMode { + ord: i32 +} +impl VisibilityRangeFadeMode { + #[doc(alias = "VISIBILITY_RANGE_FADE_DISABLED")] + #[doc = "Godot enumerator name: `VISIBILITY_RANGE_FADE_DISABLED`"] + pub const DISABLED: VisibilityRangeFadeMode = VisibilityRangeFadeMode { + ord: 0i32 + }; + #[doc(alias = "VISIBILITY_RANGE_FADE_SELF")] + #[doc = "Godot enumerator name: `VISIBILITY_RANGE_FADE_SELF`"] + pub const SELF: VisibilityRangeFadeMode = VisibilityRangeFadeMode { + ord: 1i32 + }; + #[doc(alias = "VISIBILITY_RANGE_FADE_DEPENDENCIES")] + #[doc = "Godot enumerator name: `VISIBILITY_RANGE_FADE_DEPENDENCIES`"] + pub const DEPENDENCIES: VisibilityRangeFadeMode = VisibilityRangeFadeMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for VisibilityRangeFadeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("VisibilityRangeFadeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for VisibilityRangeFadeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::SELF => "SELF", Self::DEPENDENCIES => "DEPENDENCIES", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "VISIBILITY_RANGE_FADE_DISABLED", Self::SELF => "VISIBILITY_RANGE_FADE_SELF", Self::DEPENDENCIES => "VISIBILITY_RANGE_FADE_DEPENDENCIES", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for VisibilityRangeFadeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for VisibilityRangeFadeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for VisibilityRangeFadeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct BakeChannels { + ord: i32 +} +impl BakeChannels { + #[doc(alias = "BAKE_CHANNEL_ALBEDO_ALPHA")] + #[doc = "Godot enumerator name: `BAKE_CHANNEL_ALBEDO_ALPHA`"] + pub const ALBEDO_ALPHA: BakeChannels = BakeChannels { + ord: 0i32 + }; + #[doc(alias = "BAKE_CHANNEL_NORMAL")] + #[doc = "Godot enumerator name: `BAKE_CHANNEL_NORMAL`"] + pub const NORMAL: BakeChannels = BakeChannels { + ord: 1i32 + }; + #[doc(alias = "BAKE_CHANNEL_ORM")] + #[doc = "Godot enumerator name: `BAKE_CHANNEL_ORM`"] + pub const ORM: BakeChannels = BakeChannels { + ord: 2i32 + }; + #[doc(alias = "BAKE_CHANNEL_EMISSION")] + #[doc = "Godot enumerator name: `BAKE_CHANNEL_EMISSION`"] + pub const EMISSION: BakeChannels = BakeChannels { + ord: 3i32 + }; + +} +impl std::fmt::Debug for BakeChannels { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("BakeChannels") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for BakeChannels { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALBEDO_ALPHA => "ALBEDO_ALPHA", Self::NORMAL => "NORMAL", Self::ORM => "ORM", Self::EMISSION => "EMISSION", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ALBEDO_ALPHA => "BAKE_CHANNEL_ALBEDO_ALPHA", Self::NORMAL => "BAKE_CHANNEL_NORMAL", Self::ORM => "BAKE_CHANNEL_ORM", Self::EMISSION => "BAKE_CHANNEL_EMISSION", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for BakeChannels { + type Via = i32; + +} +impl crate::meta::ToGodot for BakeChannels { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for BakeChannels { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CanvasTextureChannel { + ord: i32 +} +impl CanvasTextureChannel { + #[doc(alias = "CANVAS_TEXTURE_CHANNEL_DIFFUSE")] + #[doc = "Godot enumerator name: `CANVAS_TEXTURE_CHANNEL_DIFFUSE`"] + pub const DIFFUSE: CanvasTextureChannel = CanvasTextureChannel { + ord: 0i32 + }; + #[doc(alias = "CANVAS_TEXTURE_CHANNEL_NORMAL")] + #[doc = "Godot enumerator name: `CANVAS_TEXTURE_CHANNEL_NORMAL`"] + pub const NORMAL: CanvasTextureChannel = CanvasTextureChannel { + ord: 1i32 + }; + #[doc(alias = "CANVAS_TEXTURE_CHANNEL_SPECULAR")] + #[doc = "Godot enumerator name: `CANVAS_TEXTURE_CHANNEL_SPECULAR`"] + pub const SPECULAR: CanvasTextureChannel = CanvasTextureChannel { + ord: 2i32 + }; + +} +impl std::fmt::Debug for CanvasTextureChannel { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CanvasTextureChannel") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CanvasTextureChannel { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DIFFUSE => "DIFFUSE", Self::NORMAL => "NORMAL", Self::SPECULAR => "SPECULAR", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DIFFUSE => "CANVAS_TEXTURE_CHANNEL_DIFFUSE", Self::NORMAL => "CANVAS_TEXTURE_CHANNEL_NORMAL", Self::SPECULAR => "CANVAS_TEXTURE_CHANNEL_SPECULAR", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CanvasTextureChannel { + type Via = i32; + +} +impl crate::meta::ToGodot for CanvasTextureChannel { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CanvasTextureChannel { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct NinePatchAxisMode { + ord: i32 +} +impl NinePatchAxisMode { + #[doc(alias = "NINE_PATCH_STRETCH")] + #[doc = "Godot enumerator name: `NINE_PATCH_STRETCH`"] + pub const STRETCH: NinePatchAxisMode = NinePatchAxisMode { + ord: 0i32 + }; + #[doc(alias = "NINE_PATCH_TILE")] + #[doc = "Godot enumerator name: `NINE_PATCH_TILE`"] + pub const TILE: NinePatchAxisMode = NinePatchAxisMode { + ord: 1i32 + }; + #[doc(alias = "NINE_PATCH_TILE_FIT")] + #[doc = "Godot enumerator name: `NINE_PATCH_TILE_FIT`"] + pub const TILE_FIT: NinePatchAxisMode = NinePatchAxisMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for NinePatchAxisMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("NinePatchAxisMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for NinePatchAxisMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STRETCH => "STRETCH", Self::TILE => "TILE", Self::TILE_FIT => "TILE_FIT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STRETCH => "NINE_PATCH_STRETCH", Self::TILE => "NINE_PATCH_TILE", Self::TILE_FIT => "NINE_PATCH_TILE_FIT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for NinePatchAxisMode { + type Via = i32; + +} +impl crate::meta::ToGodot for NinePatchAxisMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for NinePatchAxisMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CanvasItemTextureFilter { + ord: i32 +} +impl CanvasItemTextureFilter { + #[doc(alias = "CANVAS_ITEM_TEXTURE_FILTER_DEFAULT")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_FILTER_DEFAULT`"] + pub const DEFAULT: CanvasItemTextureFilter = CanvasItemTextureFilter { + ord: 0i32 + }; + #[doc(alias = "CANVAS_ITEM_TEXTURE_FILTER_NEAREST")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_FILTER_NEAREST`"] + pub const NEAREST: CanvasItemTextureFilter = CanvasItemTextureFilter { + ord: 1i32 + }; + #[doc(alias = "CANVAS_ITEM_TEXTURE_FILTER_LINEAR")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_FILTER_LINEAR`"] + pub const LINEAR: CanvasItemTextureFilter = CanvasItemTextureFilter { + ord: 2i32 + }; + #[doc(alias = "CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS`"] + pub const NEAREST_WITH_MIPMAPS: CanvasItemTextureFilter = CanvasItemTextureFilter { + ord: 3i32 + }; + #[doc(alias = "CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS`"] + pub const LINEAR_WITH_MIPMAPS: CanvasItemTextureFilter = CanvasItemTextureFilter { + ord: 4i32 + }; + #[doc(alias = "CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC`"] + pub const NEAREST_WITH_MIPMAPS_ANISOTROPIC: CanvasItemTextureFilter = CanvasItemTextureFilter { + ord: 5i32 + }; + #[doc(alias = "CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC`"] + pub const LINEAR_WITH_MIPMAPS_ANISOTROPIC: CanvasItemTextureFilter = CanvasItemTextureFilter { + ord: 6i32 + }; + #[doc(alias = "CANVAS_ITEM_TEXTURE_FILTER_MAX")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_FILTER_MAX`"] + pub const MAX: CanvasItemTextureFilter = CanvasItemTextureFilter { + ord: 7i32 + }; + +} +impl std::fmt::Debug for CanvasItemTextureFilter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CanvasItemTextureFilter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CanvasItemTextureFilter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "DEFAULT", Self::NEAREST => "NEAREST", Self::LINEAR => "LINEAR", Self::NEAREST_WITH_MIPMAPS => "NEAREST_WITH_MIPMAPS", Self::LINEAR_WITH_MIPMAPS => "LINEAR_WITH_MIPMAPS", Self::NEAREST_WITH_MIPMAPS_ANISOTROPIC => "NEAREST_WITH_MIPMAPS_ANISOTROPIC", Self::LINEAR_WITH_MIPMAPS_ANISOTROPIC => "LINEAR_WITH_MIPMAPS_ANISOTROPIC", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "CANVAS_ITEM_TEXTURE_FILTER_DEFAULT", Self::NEAREST => "CANVAS_ITEM_TEXTURE_FILTER_NEAREST", Self::LINEAR => "CANVAS_ITEM_TEXTURE_FILTER_LINEAR", Self::NEAREST_WITH_MIPMAPS => "CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS", Self::LINEAR_WITH_MIPMAPS => "CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS", Self::NEAREST_WITH_MIPMAPS_ANISOTROPIC => "CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC", Self::LINEAR_WITH_MIPMAPS_ANISOTROPIC => "CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC", Self::MAX => "CANVAS_ITEM_TEXTURE_FILTER_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for CanvasItemTextureFilter { + const ENUMERATOR_COUNT: usize = 7usize; + +} +impl crate::meta::GodotConvert for CanvasItemTextureFilter { + type Via = i32; + +} +impl crate::meta::ToGodot for CanvasItemTextureFilter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CanvasItemTextureFilter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CanvasItemTextureRepeat { + ord: i32 +} +impl CanvasItemTextureRepeat { + #[doc(alias = "CANVAS_ITEM_TEXTURE_REPEAT_DEFAULT")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_REPEAT_DEFAULT`"] + pub const DEFAULT: CanvasItemTextureRepeat = CanvasItemTextureRepeat { + ord: 0i32 + }; + #[doc(alias = "CANVAS_ITEM_TEXTURE_REPEAT_DISABLED")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_REPEAT_DISABLED`"] + pub const DISABLED: CanvasItemTextureRepeat = CanvasItemTextureRepeat { + ord: 1i32 + }; + #[doc(alias = "CANVAS_ITEM_TEXTURE_REPEAT_ENABLED")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_REPEAT_ENABLED`"] + pub const ENABLED: CanvasItemTextureRepeat = CanvasItemTextureRepeat { + ord: 2i32 + }; + #[doc(alias = "CANVAS_ITEM_TEXTURE_REPEAT_MIRROR")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_REPEAT_MIRROR`"] + pub const MIRROR: CanvasItemTextureRepeat = CanvasItemTextureRepeat { + ord: 3i32 + }; + #[doc(alias = "CANVAS_ITEM_TEXTURE_REPEAT_MAX")] + #[doc = "Godot enumerator name: `CANVAS_ITEM_TEXTURE_REPEAT_MAX`"] + pub const MAX: CanvasItemTextureRepeat = CanvasItemTextureRepeat { + ord: 4i32 + }; + +} +impl std::fmt::Debug for CanvasItemTextureRepeat { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CanvasItemTextureRepeat") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CanvasItemTextureRepeat { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "DEFAULT", Self::DISABLED => "DISABLED", Self::ENABLED => "ENABLED", Self::MIRROR => "MIRROR", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "CANVAS_ITEM_TEXTURE_REPEAT_DEFAULT", Self::DISABLED => "CANVAS_ITEM_TEXTURE_REPEAT_DISABLED", Self::ENABLED => "CANVAS_ITEM_TEXTURE_REPEAT_ENABLED", Self::MIRROR => "CANVAS_ITEM_TEXTURE_REPEAT_MIRROR", Self::MAX => "CANVAS_ITEM_TEXTURE_REPEAT_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for CanvasItemTextureRepeat { + const ENUMERATOR_COUNT: usize = 4usize; + +} +impl crate::meta::GodotConvert for CanvasItemTextureRepeat { + type Via = i32; + +} +impl crate::meta::ToGodot for CanvasItemTextureRepeat { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CanvasItemTextureRepeat { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CanvasGroupMode { + ord: i32 +} +impl CanvasGroupMode { + #[doc(alias = "CANVAS_GROUP_MODE_DISABLED")] + #[doc = "Godot enumerator name: `CANVAS_GROUP_MODE_DISABLED`"] + pub const DISABLED: CanvasGroupMode = CanvasGroupMode { + ord: 0i32 + }; + #[doc(alias = "CANVAS_GROUP_MODE_CLIP_ONLY")] + #[doc = "Godot enumerator name: `CANVAS_GROUP_MODE_CLIP_ONLY`"] + pub const CLIP_ONLY: CanvasGroupMode = CanvasGroupMode { + ord: 1i32 + }; + #[doc(alias = "CANVAS_GROUP_MODE_CLIP_AND_DRAW")] + #[doc = "Godot enumerator name: `CANVAS_GROUP_MODE_CLIP_AND_DRAW`"] + pub const CLIP_AND_DRAW: CanvasGroupMode = CanvasGroupMode { + ord: 2i32 + }; + #[doc(alias = "CANVAS_GROUP_MODE_TRANSPARENT")] + #[doc = "Godot enumerator name: `CANVAS_GROUP_MODE_TRANSPARENT`"] + pub const TRANSPARENT: CanvasGroupMode = CanvasGroupMode { + ord: 3i32 + }; + +} +impl std::fmt::Debug for CanvasGroupMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CanvasGroupMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CanvasGroupMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::CLIP_ONLY => "CLIP_ONLY", Self::CLIP_AND_DRAW => "CLIP_AND_DRAW", Self::TRANSPARENT => "TRANSPARENT", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "CANVAS_GROUP_MODE_DISABLED", Self::CLIP_ONLY => "CANVAS_GROUP_MODE_CLIP_ONLY", Self::CLIP_AND_DRAW => "CANVAS_GROUP_MODE_CLIP_AND_DRAW", Self::TRANSPARENT => "CANVAS_GROUP_MODE_TRANSPARENT", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CanvasGroupMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CanvasGroupMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CanvasGroupMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CanvasLightMode { + ord: i32 +} +impl CanvasLightMode { + #[doc(alias = "CANVAS_LIGHT_MODE_POINT")] + #[doc = "Godot enumerator name: `CANVAS_LIGHT_MODE_POINT`"] + pub const POINT: CanvasLightMode = CanvasLightMode { + ord: 0i32 + }; + #[doc(alias = "CANVAS_LIGHT_MODE_DIRECTIONAL")] + #[doc = "Godot enumerator name: `CANVAS_LIGHT_MODE_DIRECTIONAL`"] + pub const DIRECTIONAL: CanvasLightMode = CanvasLightMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for CanvasLightMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CanvasLightMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CanvasLightMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINT => "POINT", Self::DIRECTIONAL => "DIRECTIONAL", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::POINT => "CANVAS_LIGHT_MODE_POINT", Self::DIRECTIONAL => "CANVAS_LIGHT_MODE_DIRECTIONAL", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CanvasLightMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CanvasLightMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CanvasLightMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CanvasLightBlendMode { + ord: i32 +} +impl CanvasLightBlendMode { + #[doc(alias = "CANVAS_LIGHT_BLEND_MODE_ADD")] + #[doc = "Godot enumerator name: `CANVAS_LIGHT_BLEND_MODE_ADD`"] + pub const ADD: CanvasLightBlendMode = CanvasLightBlendMode { + ord: 0i32 + }; + #[doc(alias = "CANVAS_LIGHT_BLEND_MODE_SUB")] + #[doc = "Godot enumerator name: `CANVAS_LIGHT_BLEND_MODE_SUB`"] + pub const SUB: CanvasLightBlendMode = CanvasLightBlendMode { + ord: 1i32 + }; + #[doc(alias = "CANVAS_LIGHT_BLEND_MODE_MIX")] + #[doc = "Godot enumerator name: `CANVAS_LIGHT_BLEND_MODE_MIX`"] + pub const MIX: CanvasLightBlendMode = CanvasLightBlendMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for CanvasLightBlendMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CanvasLightBlendMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CanvasLightBlendMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD => "ADD", Self::SUB => "SUB", Self::MIX => "MIX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::ADD => "CANVAS_LIGHT_BLEND_MODE_ADD", Self::SUB => "CANVAS_LIGHT_BLEND_MODE_SUB", Self::MIX => "CANVAS_LIGHT_BLEND_MODE_MIX", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CanvasLightBlendMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CanvasLightBlendMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CanvasLightBlendMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CanvasLightShadowFilter { + ord: i32 +} +impl CanvasLightShadowFilter { + #[doc(alias = "CANVAS_LIGHT_FILTER_NONE")] + #[doc = "Godot enumerator name: `CANVAS_LIGHT_FILTER_NONE`"] + pub const NONE: CanvasLightShadowFilter = CanvasLightShadowFilter { + ord: 0i32 + }; + #[doc(alias = "CANVAS_LIGHT_FILTER_PCF5")] + #[doc = "Godot enumerator name: `CANVAS_LIGHT_FILTER_PCF5`"] + pub const PCF5: CanvasLightShadowFilter = CanvasLightShadowFilter { + ord: 1i32 + }; + #[doc(alias = "CANVAS_LIGHT_FILTER_PCF13")] + #[doc = "Godot enumerator name: `CANVAS_LIGHT_FILTER_PCF13`"] + pub const PCF13: CanvasLightShadowFilter = CanvasLightShadowFilter { + ord: 2i32 + }; + #[doc(alias = "CANVAS_LIGHT_FILTER_MAX")] + #[doc = "Godot enumerator name: `CANVAS_LIGHT_FILTER_MAX`"] + pub const MAX: CanvasLightShadowFilter = CanvasLightShadowFilter { + ord: 3i32 + }; + +} +impl std::fmt::Debug for CanvasLightShadowFilter { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CanvasLightShadowFilter") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CanvasLightShadowFilter { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "NONE", Self::PCF5 => "PCF5", Self::PCF13 => "PCF13", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NONE => "CANVAS_LIGHT_FILTER_NONE", Self::PCF5 => "CANVAS_LIGHT_FILTER_PCF5", Self::PCF13 => "CANVAS_LIGHT_FILTER_PCF13", Self::MAX => "CANVAS_LIGHT_FILTER_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for CanvasLightShadowFilter { + const ENUMERATOR_COUNT: usize = 3usize; + +} +impl crate::meta::GodotConvert for CanvasLightShadowFilter { + type Via = i32; + +} +impl crate::meta::ToGodot for CanvasLightShadowFilter { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CanvasLightShadowFilter { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CanvasOccluderPolygonCullMode { + ord: i32 +} +impl CanvasOccluderPolygonCullMode { + #[doc(alias = "CANVAS_OCCLUDER_POLYGON_CULL_DISABLED")] + #[doc = "Godot enumerator name: `CANVAS_OCCLUDER_POLYGON_CULL_DISABLED`"] + pub const DISABLED: CanvasOccluderPolygonCullMode = CanvasOccluderPolygonCullMode { + ord: 0i32 + }; + #[doc(alias = "CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE")] + #[doc = "Godot enumerator name: `CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE`"] + pub const CLOCKWISE: CanvasOccluderPolygonCullMode = CanvasOccluderPolygonCullMode { + ord: 1i32 + }; + #[doc(alias = "CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE")] + #[doc = "Godot enumerator name: `CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE`"] + pub const COUNTER_CLOCKWISE: CanvasOccluderPolygonCullMode = CanvasOccluderPolygonCullMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for CanvasOccluderPolygonCullMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CanvasOccluderPolygonCullMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CanvasOccluderPolygonCullMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::CLOCKWISE => "CLOCKWISE", Self::COUNTER_CLOCKWISE => "COUNTER_CLOCKWISE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "CANVAS_OCCLUDER_POLYGON_CULL_DISABLED", Self::CLOCKWISE => "CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE", Self::COUNTER_CLOCKWISE => "CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CanvasOccluderPolygonCullMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CanvasOccluderPolygonCullMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CanvasOccluderPolygonCullMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct GlobalShaderParameterType { + ord: i32 +} +impl GlobalShaderParameterType { + #[doc(alias = "GLOBAL_VAR_TYPE_BOOL")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_BOOL`"] + pub const BOOL: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 0i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_BVEC2")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_BVEC2`"] + pub const BVEC2: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 1i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_BVEC3")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_BVEC3`"] + pub const BVEC3: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 2i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_BVEC4")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_BVEC4`"] + pub const BVEC4: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 3i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_INT")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_INT`"] + pub const INT: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 4i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_IVEC2")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_IVEC2`"] + pub const IVEC2: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 5i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_IVEC3")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_IVEC3`"] + pub const IVEC3: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 6i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_IVEC4")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_IVEC4`"] + pub const IVEC4: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 7i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_RECT2I")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_RECT2I`"] + pub const RECT2I: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 8i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_UINT")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_UINT`"] + pub const UINT: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 9i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_UVEC2")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_UVEC2`"] + pub const UVEC2: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 10i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_UVEC3")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_UVEC3`"] + pub const UVEC3: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 11i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_UVEC4")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_UVEC4`"] + pub const UVEC4: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 12i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_FLOAT")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_FLOAT`"] + pub const FLOAT: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 13i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_VEC2")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_VEC2`"] + pub const VEC2: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 14i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_VEC3")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_VEC3`"] + pub const VEC3: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 15i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_VEC4")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_VEC4`"] + pub const VEC4: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 16i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_COLOR")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_COLOR`"] + pub const COLOR: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 17i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_RECT2")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_RECT2`"] + pub const RECT2: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 18i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_MAT2")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_MAT2`"] + pub const MAT2: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 19i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_MAT3")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_MAT3`"] + pub const MAT3: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 20i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_MAT4")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_MAT4`"] + pub const MAT4: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 21i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_TRANSFORM_2D")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_TRANSFORM_2D`"] + pub const TRANSFORM_2D: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 22i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_TRANSFORM")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_TRANSFORM`"] + pub const TRANSFORM: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 23i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_SAMPLER2D")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_SAMPLER2D`"] + pub const SAMPLER2D: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 24i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_SAMPLER2DARRAY")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_SAMPLER2DARRAY`"] + pub const SAMPLER2DARRAY: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 25i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_SAMPLER3D")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_SAMPLER3D`"] + pub const SAMPLER3D: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 26i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_SAMPLERCUBE")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_SAMPLERCUBE`"] + pub const SAMPLERCUBE: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 27i32 + }; + #[doc(alias = "GLOBAL_VAR_TYPE_MAX")] + #[doc = "Godot enumerator name: `GLOBAL_VAR_TYPE_MAX`"] + pub const MAX: GlobalShaderParameterType = GlobalShaderParameterType { + ord: 28i32 + }; + +} +impl std::fmt::Debug for GlobalShaderParameterType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("GlobalShaderParameterType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for GlobalShaderParameterType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 | ord @ 6i32 | ord @ 7i32 | ord @ 8i32 | ord @ 9i32 | ord @ 10i32 | ord @ 11i32 | ord @ 12i32 | ord @ 13i32 | ord @ 14i32 | ord @ 15i32 | ord @ 16i32 | ord @ 17i32 | ord @ 18i32 | ord @ 19i32 | ord @ 20i32 | ord @ 21i32 | ord @ 22i32 | ord @ 23i32 | ord @ 24i32 | ord @ 25i32 | ord @ 26i32 | ord @ 27i32 | ord @ 28i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOOL => "BOOL", Self::BVEC2 => "BVEC2", Self::BVEC3 => "BVEC3", Self::BVEC4 => "BVEC4", Self::INT => "INT", Self::IVEC2 => "IVEC2", Self::IVEC3 => "IVEC3", Self::IVEC4 => "IVEC4", Self::RECT2I => "RECT2I", Self::UINT => "UINT", Self::UVEC2 => "UVEC2", Self::UVEC3 => "UVEC3", Self::UVEC4 => "UVEC4", Self::FLOAT => "FLOAT", Self::VEC2 => "VEC2", Self::VEC3 => "VEC3", Self::VEC4 => "VEC4", Self::COLOR => "COLOR", Self::RECT2 => "RECT2", Self::MAT2 => "MAT2", Self::MAT3 => "MAT3", Self::MAT4 => "MAT4", Self::TRANSFORM_2D => "TRANSFORM_2D", Self::TRANSFORM => "TRANSFORM", Self::SAMPLER2D => "SAMPLER2D", Self::SAMPLER2DARRAY => "SAMPLER2DARRAY", Self::SAMPLER3D => "SAMPLER3D", Self::SAMPLERCUBE => "SAMPLERCUBE", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::BOOL => "GLOBAL_VAR_TYPE_BOOL", Self::BVEC2 => "GLOBAL_VAR_TYPE_BVEC2", Self::BVEC3 => "GLOBAL_VAR_TYPE_BVEC3", Self::BVEC4 => "GLOBAL_VAR_TYPE_BVEC4", Self::INT => "GLOBAL_VAR_TYPE_INT", Self::IVEC2 => "GLOBAL_VAR_TYPE_IVEC2", Self::IVEC3 => "GLOBAL_VAR_TYPE_IVEC3", Self::IVEC4 => "GLOBAL_VAR_TYPE_IVEC4", Self::RECT2I => "GLOBAL_VAR_TYPE_RECT2I", Self::UINT => "GLOBAL_VAR_TYPE_UINT", Self::UVEC2 => "GLOBAL_VAR_TYPE_UVEC2", Self::UVEC3 => "GLOBAL_VAR_TYPE_UVEC3", Self::UVEC4 => "GLOBAL_VAR_TYPE_UVEC4", Self::FLOAT => "GLOBAL_VAR_TYPE_FLOAT", Self::VEC2 => "GLOBAL_VAR_TYPE_VEC2", Self::VEC3 => "GLOBAL_VAR_TYPE_VEC3", Self::VEC4 => "GLOBAL_VAR_TYPE_VEC4", Self::COLOR => "GLOBAL_VAR_TYPE_COLOR", Self::RECT2 => "GLOBAL_VAR_TYPE_RECT2", Self::MAT2 => "GLOBAL_VAR_TYPE_MAT2", Self::MAT3 => "GLOBAL_VAR_TYPE_MAT3", Self::MAT4 => "GLOBAL_VAR_TYPE_MAT4", Self::TRANSFORM_2D => "GLOBAL_VAR_TYPE_TRANSFORM_2D", Self::TRANSFORM => "GLOBAL_VAR_TYPE_TRANSFORM", Self::SAMPLER2D => "GLOBAL_VAR_TYPE_SAMPLER2D", Self::SAMPLER2DARRAY => "GLOBAL_VAR_TYPE_SAMPLER2DARRAY", Self::SAMPLER3D => "GLOBAL_VAR_TYPE_SAMPLER3D", Self::SAMPLERCUBE => "GLOBAL_VAR_TYPE_SAMPLERCUBE", Self::MAX => "GLOBAL_VAR_TYPE_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for GlobalShaderParameterType { + const ENUMERATOR_COUNT: usize = 28usize; + +} +impl crate::meta::GodotConvert for GlobalShaderParameterType { + type Via = i32; + +} +impl crate::meta::ToGodot for GlobalShaderParameterType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for GlobalShaderParameterType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct RenderingInfo { + ord: i32 +} +impl RenderingInfo { + #[doc(alias = "RENDERING_INFO_TOTAL_OBJECTS_IN_FRAME")] + #[doc = "Godot enumerator name: `RENDERING_INFO_TOTAL_OBJECTS_IN_FRAME`"] + pub const TOTAL_OBJECTS_IN_FRAME: RenderingInfo = RenderingInfo { + ord: 0i32 + }; + #[doc(alias = "RENDERING_INFO_TOTAL_PRIMITIVES_IN_FRAME")] + #[doc = "Godot enumerator name: `RENDERING_INFO_TOTAL_PRIMITIVES_IN_FRAME`"] + pub const TOTAL_PRIMITIVES_IN_FRAME: RenderingInfo = RenderingInfo { + ord: 1i32 + }; + #[doc(alias = "RENDERING_INFO_TOTAL_DRAW_CALLS_IN_FRAME")] + #[doc = "Godot enumerator name: `RENDERING_INFO_TOTAL_DRAW_CALLS_IN_FRAME`"] + pub const TOTAL_DRAW_CALLS_IN_FRAME: RenderingInfo = RenderingInfo { + ord: 2i32 + }; + #[doc(alias = "RENDERING_INFO_TEXTURE_MEM_USED")] + #[doc = "Godot enumerator name: `RENDERING_INFO_TEXTURE_MEM_USED`"] + pub const TEXTURE_MEM_USED: RenderingInfo = RenderingInfo { + ord: 3i32 + }; + #[doc(alias = "RENDERING_INFO_BUFFER_MEM_USED")] + #[doc = "Godot enumerator name: `RENDERING_INFO_BUFFER_MEM_USED`"] + pub const BUFFER_MEM_USED: RenderingInfo = RenderingInfo { + ord: 4i32 + }; + #[doc(alias = "RENDERING_INFO_VIDEO_MEM_USED")] + #[doc = "Godot enumerator name: `RENDERING_INFO_VIDEO_MEM_USED`"] + pub const VIDEO_MEM_USED: RenderingInfo = RenderingInfo { + ord: 5i32 + }; + +} +impl std::fmt::Debug for RenderingInfo { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("RenderingInfo") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for RenderingInfo { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 | ord @ 5i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOTAL_OBJECTS_IN_FRAME => "TOTAL_OBJECTS_IN_FRAME", Self::TOTAL_PRIMITIVES_IN_FRAME => "TOTAL_PRIMITIVES_IN_FRAME", Self::TOTAL_DRAW_CALLS_IN_FRAME => "TOTAL_DRAW_CALLS_IN_FRAME", Self::TEXTURE_MEM_USED => "TEXTURE_MEM_USED", Self::BUFFER_MEM_USED => "BUFFER_MEM_USED", Self::VIDEO_MEM_USED => "VIDEO_MEM_USED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::TOTAL_OBJECTS_IN_FRAME => "RENDERING_INFO_TOTAL_OBJECTS_IN_FRAME", Self::TOTAL_PRIMITIVES_IN_FRAME => "RENDERING_INFO_TOTAL_PRIMITIVES_IN_FRAME", Self::TOTAL_DRAW_CALLS_IN_FRAME => "RENDERING_INFO_TOTAL_DRAW_CALLS_IN_FRAME", Self::TEXTURE_MEM_USED => "RENDERING_INFO_TEXTURE_MEM_USED", Self::BUFFER_MEM_USED => "RENDERING_INFO_BUFFER_MEM_USED", Self::VIDEO_MEM_USED => "RENDERING_INFO_VIDEO_MEM_USED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for RenderingInfo { + type Via = i32; + +} +impl crate::meta::ToGodot for RenderingInfo { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for RenderingInfo { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Features { + ord: i32 +} +impl Features { + #[doc(alias = "FEATURE_SHADERS")] + #[doc = "Godot enumerator name: `FEATURE_SHADERS`"] + pub const SHADERS: Features = Features { + ord: 0i32 + }; + #[doc(alias = "FEATURE_MULTITHREADED")] + #[doc = "Godot enumerator name: `FEATURE_MULTITHREADED`"] + pub const MULTITHREADED: Features = Features { + ord: 1i32 + }; + +} +impl std::fmt::Debug for Features { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Features") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Features { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SHADERS => "SHADERS", Self::MULTITHREADED => "MULTITHREADED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::SHADERS => "FEATURE_SHADERS", Self::MULTITHREADED => "FEATURE_MULTITHREADED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Features { + type Via = i32; + +} +impl crate::meta::ToGodot for Features { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Features { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource.rs new file mode 100644 index 0000000..1b78b28 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource.rs @@ -0,0 +1,353 @@ +#![doc = "Sidecar module for class [`Resource`][crate::classes::Resource].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Resource` enums](https://docs.godotengine.org/en/stable/classes/class_resource.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Resource.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`resource`][crate::classes::resource]: sidecar module with related enum/flag types\n* [`IResource`][crate::classes::IResource]: virtual methods\n\n\nSee also [Godot docs for `Resource`](https://docs.godotengine.org/en/stable/classes/class_resource.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`Resource::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct Resource { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`Resource`][crate::classes::Resource].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `Resource` methods](https://docs.godotengine.org/en/stable/classes/class_resource.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResource: crate::obj::GodotClass < Base = Resource > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl Resource { + pub fn set_path(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7120usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "set_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn take_over_path(&mut self, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7121usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "take_over_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_path(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7122usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "get_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_name(&mut self, name: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7123usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "set_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_name(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7124usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "get_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_rid(&self,) -> Rid { + type CallSig = (Rid,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7125usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "get_rid", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_local_to_scene(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7126usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "set_local_to_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_local_to_scene(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7127usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "is_local_to_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_local_scene(&self,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7128usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "get_local_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn setup_local_to_scene(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7129usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "setup_local_to_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn generate_scene_unique_id() -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7130usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "generate_scene_unique_id", std::ptr::null_mut(), None, args,) + } + } + pub fn set_scene_unique_id(&mut self, id: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (id.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7131usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "set_scene_unique_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_scene_unique_id(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7132usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "get_scene_unique_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn emit_changed(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7133usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "emit_changed", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn duplicate_full(&self, subresources: bool,) -> Option < Gd < crate::classes::Resource > > { + type CallSig = (Option < Gd < crate::classes::Resource > >, bool); + let args = (subresources,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7134usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "Resource", "duplicate", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::duplicate_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn duplicate(&self,) -> Option < Gd < crate::classes::Resource > > { + self.duplicate_ex() . done() + } + #[inline] + pub fn duplicate_ex < 'a > (&'a self,) -> ExDuplicate < 'a > { + ExDuplicate::new(self,) + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for Resource { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"Resource")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for Resource { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for Resource { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for Resource { + + } + impl crate::obj::cap::GodotDefault for Resource { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for Resource { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for Resource { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`Resource`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_Resource { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`Resource::duplicate_ex`][super::Resource::duplicate_ex]."] +#[must_use] +pub struct ExDuplicate < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::Resource, subresources: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExDuplicate < 'a > { + fn new(surround_object: &'a re_export::Resource,) -> Self { + let subresources = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, subresources: subresources, + } + } + #[inline] + pub fn subresources(self, subresources: bool) -> Self { + Self { + subresources: subresources, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Resource > > { + let Self { + _phantom, surround_object, subresources, + } + = self; + re_export::Resource::duplicate_full(surround_object, subresources,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_format_loader.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_format_loader.rs new file mode 100644 index 0000000..73cf091 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_format_loader.rs @@ -0,0 +1,311 @@ +#![doc = "Sidecar module for class [`ResourceFormatLoader`][crate::classes::ResourceFormatLoader].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceFormatLoader` enums](https://docs.godotengine.org/en/stable/classes/class_resourceformatloader.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceFormatLoader.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`resource_format_loader`][crate::classes::resource_format_loader]: sidecar module with related enum/flag types\n* [`IResourceFormatLoader`][crate::classes::IResourceFormatLoader]: virtual methods\n\n\nSee also [Godot docs for `ResourceFormatLoader`](https://docs.godotengine.org/en/stable/classes/class_resourceformatloader.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceFormatLoader::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceFormatLoader { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceFormatLoader`][crate::classes::ResourceFormatLoader].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceFormatLoader` methods](https://docs.godotengine.org/en/stable/classes/class_resourceformatloader.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceFormatLoader: crate::obj::GodotClass < Base = ResourceFormatLoader > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_recognized_extensions(&self,) -> PackedStringArray { + unimplemented !() + } + fn recognize_path(&self, path: GString, type_: StringName,) -> bool { + unimplemented !() + } + fn handles_type(&self, type_: StringName,) -> bool { + unimplemented !() + } + fn get_resource_type(&self, path: GString,) -> GString { + unimplemented !() + } + fn get_resource_script_class(&self, path: GString,) -> GString { + unimplemented !() + } + fn get_resource_uid(&self, path: GString,) -> i64 { + unimplemented !() + } + fn get_dependencies(&self, path: GString, add_types: bool,) -> PackedStringArray { + unimplemented !() + } + fn rename_dependencies(&self, path: GString, renames: Dictionary,) -> crate::global::Error { + unimplemented !() + } + fn exists(&self, path: GString,) -> bool { + unimplemented !() + } + fn get_classes_used(&self, path: GString,) -> PackedStringArray { + unimplemented !() + } + fn load(&self, path: GString, original_path: GString, use_sub_threads: bool, cache_mode: i32,) -> Variant { + unimplemented !() + } + } + impl ResourceFormatLoader { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceFormatLoader { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceFormatLoader")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ResourceFormatLoader { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceFormatLoader { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceFormatLoader { + + } + impl crate::obj::cap::GodotDefault for ResourceFormatLoader { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceFormatLoader { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceFormatLoader { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceFormatLoader`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceFormatLoader { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceFormatLoader > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CacheMode { + ord: i32 +} +impl CacheMode { + #[doc(alias = "CACHE_MODE_IGNORE")] + #[doc = "Godot enumerator name: `CACHE_MODE_IGNORE`"] + pub const IGNORE: CacheMode = CacheMode { + ord: 0i32 + }; + #[doc(alias = "CACHE_MODE_REUSE")] + #[doc = "Godot enumerator name: `CACHE_MODE_REUSE`"] + pub const REUSE: CacheMode = CacheMode { + ord: 1i32 + }; + #[doc(alias = "CACHE_MODE_REPLACE")] + #[doc = "Godot enumerator name: `CACHE_MODE_REPLACE`"] + pub const REPLACE: CacheMode = CacheMode { + ord: 2i32 + }; + #[doc(alias = "CACHE_MODE_IGNORE_DEEP")] + #[doc = "Godot enumerator name: `CACHE_MODE_IGNORE_DEEP`"] + pub const IGNORE_DEEP: CacheMode = CacheMode { + ord: 3i32 + }; + #[doc(alias = "CACHE_MODE_REPLACE_DEEP")] + #[doc = "Godot enumerator name: `CACHE_MODE_REPLACE_DEEP`"] + pub const REPLACE_DEEP: CacheMode = CacheMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for CacheMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CacheMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CacheMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IGNORE => "IGNORE", Self::REUSE => "REUSE", Self::REPLACE => "REPLACE", Self::IGNORE_DEEP => "IGNORE_DEEP", Self::REPLACE_DEEP => "REPLACE_DEEP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IGNORE => "CACHE_MODE_IGNORE", Self::REUSE => "CACHE_MODE_REUSE", Self::REPLACE => "CACHE_MODE_REPLACE", Self::IGNORE_DEEP => "CACHE_MODE_IGNORE_DEEP", Self::REPLACE_DEEP => "CACHE_MODE_REPLACE_DEEP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CacheMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CacheMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CacheMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_format_saver.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_format_saver.rs new file mode 100644 index 0000000..ebfb1f1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_format_saver.rs @@ -0,0 +1,208 @@ +#![doc = "Sidecar module for class [`ResourceFormatSaver`][crate::classes::ResourceFormatSaver].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceFormatSaver` enums](https://docs.godotengine.org/en/stable/classes/class_resourceformatsaver.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceFormatSaver.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`IResourceFormatSaver`][crate::classes::IResourceFormatSaver]: virtual methods\n\n\nSee also [Godot docs for `ResourceFormatSaver`](https://docs.godotengine.org/en/stable/classes/class_resourceformatsaver.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceFormatSaver::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceFormatSaver { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceFormatSaver`][crate::classes::ResourceFormatSaver].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceFormatSaver` methods](https://docs.godotengine.org/en/stable/classes/class_resourceformatsaver.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceFormatSaver: crate::obj::GodotClass < Base = ResourceFormatSaver > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn save(&mut self, resource: Option < Gd < crate::classes::Resource > >, path: GString, flags: u32,) -> crate::global::Error { + unimplemented !() + } + fn set_uid(&mut self, path: GString, uid: i64,) -> crate::global::Error { + unimplemented !() + } + fn recognize(&self, resource: Option < Gd < crate::classes::Resource > >,) -> bool { + unimplemented !() + } + fn get_recognized_extensions(&self, resource: Option < Gd < crate::classes::Resource > >,) -> PackedStringArray { + unimplemented !() + } + fn recognize_path(&self, resource: Option < Gd < crate::classes::Resource > >, path: GString,) -> bool { + unimplemented !() + } + } + impl ResourceFormatSaver { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceFormatSaver { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceFormatSaver")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ResourceFormatSaver { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceFormatSaver { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceFormatSaver { + + } + impl crate::obj::cap::GodotDefault for ResourceFormatSaver { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceFormatSaver { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceFormatSaver { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceFormatSaver`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceFormatSaver { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceFormatSaver > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer.rs new file mode 100644 index 0000000..8200b22 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer.rs @@ -0,0 +1,258 @@ +#![doc = "Sidecar module for class [`ResourceImporter`][crate::classes::ResourceImporter].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporter` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimporter.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporter.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`resource_importer`][crate::classes::resource_importer]: sidecar module with related enum/flag types\n* [`IResourceImporter`][crate::classes::IResourceImporter]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporter`](https://docs.godotengine.org/en/stable/classes/class_resourceimporter.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporter { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporter`][crate::classes::ResourceImporter].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporter` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimporter.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporter: crate::obj::GodotClass < Base = ResourceImporter > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporter { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporter { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporter")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ResourceImporter { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporter { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporter { + + } + impl std::ops::Deref for ResourceImporter { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporter { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporter`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporter { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ImportOrder { + ord: i32 +} +impl ImportOrder { + #[doc(alias = "IMPORT_ORDER_DEFAULT")] + #[doc = "Godot enumerator name: `IMPORT_ORDER_DEFAULT`"] + pub const DEFAULT: ImportOrder = ImportOrder { + ord: 0i32 + }; + #[doc(alias = "IMPORT_ORDER_SCENE")] + #[doc = "Godot enumerator name: `IMPORT_ORDER_SCENE`"] + pub const SCENE: ImportOrder = ImportOrder { + ord: 100i32 + }; + +} +impl std::fmt::Debug for ImportOrder { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ImportOrder") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ImportOrder { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 100i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "DEFAULT", Self::SCENE => "SCENE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "IMPORT_ORDER_DEFAULT", Self::SCENE => "IMPORT_ORDER_SCENE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ImportOrder { + type Via = i32; + +} +impl crate::meta::ToGodot for ImportOrder { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ImportOrder { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_bit_map.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_bit_map.rs new file mode 100644 index 0000000..de21c1c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_bit_map.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterBitMap`][crate::classes::ResourceImporterBitMap].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterBitMap` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimporterbitmap.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterBitMap.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterBitMap`][crate::classes::IResourceImporterBitMap]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterBitMap`](https://docs.godotengine.org/en/stable/classes/class_resourceimporterbitmap.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterBitMap::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterBitMap { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterBitMap`][crate::classes::ResourceImporterBitMap].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterBitMap` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimporterbitmap.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterBitMap: crate::obj::GodotClass < Base = ResourceImporterBitMap > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterBitMap { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterBitMap { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterBitMap")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterBitMap { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterBitMap { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterBitMap { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterBitMap { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterBitMap { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterBitMap { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterBitMap { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterBitMap`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterBitMap { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterBitMap > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_bm_font.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_bm_font.rs new file mode 100644 index 0000000..9f4b43d --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_bm_font.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterBmFont`][crate::classes::ResourceImporterBmFont].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterBMFont` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimporterbmfont.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterBMFont.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterBmFont`][crate::classes::IResourceImporterBmFont]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterBMFont`](https://docs.godotengine.org/en/stable/classes/class_resourceimporterbmfont.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterBmFont::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterBmFont { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterBmFont`][crate::classes::ResourceImporterBmFont].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterBMFont` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimporterbmfont.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterBmFont: crate::obj::GodotClass < Base = ResourceImporterBmFont > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterBmFont { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterBmFont { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterBMFont")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterBmFont { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterBmFont { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterBmFont { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterBmFont { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterBmFont { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterBmFont { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterBmFont { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterBmFont`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterBmFont { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterBmFont > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_csv_translation.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_csv_translation.rs new file mode 100644 index 0000000..9fa3f73 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_csv_translation.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterCsvTranslation`][crate::classes::ResourceImporterCsvTranslation].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterCSVTranslation` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimportercsvtranslation.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterCSVTranslation.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterCsvTranslation`][crate::classes::IResourceImporterCsvTranslation]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterCSVTranslation`](https://docs.godotengine.org/en/stable/classes/class_resourceimportercsvtranslation.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterCsvTranslation::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterCsvTranslation { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterCsvTranslation`][crate::classes::ResourceImporterCsvTranslation].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterCSVTranslation` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimportercsvtranslation.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterCsvTranslation: crate::obj::GodotClass < Base = ResourceImporterCsvTranslation > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterCsvTranslation { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterCsvTranslation { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterCSVTranslation")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterCsvTranslation { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterCsvTranslation { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterCsvTranslation { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterCsvTranslation { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterCsvTranslation { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterCsvTranslation { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterCsvTranslation { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterCsvTranslation`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterCsvTranslation { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterCsvTranslation > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_dynamic_font.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_dynamic_font.rs new file mode 100644 index 0000000..6edba30 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_dynamic_font.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterDynamicFont`][crate::classes::ResourceImporterDynamicFont].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterDynamicFont` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimporterdynamicfont.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterDynamicFont.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterDynamicFont`][crate::classes::IResourceImporterDynamicFont]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterDynamicFont`](https://docs.godotengine.org/en/stable/classes/class_resourceimporterdynamicfont.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterDynamicFont::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterDynamicFont { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterDynamicFont`][crate::classes::ResourceImporterDynamicFont].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterDynamicFont` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimporterdynamicfont.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterDynamicFont: crate::obj::GodotClass < Base = ResourceImporterDynamicFont > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterDynamicFont { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterDynamicFont { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterDynamicFont")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterDynamicFont { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterDynamicFont { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterDynamicFont { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterDynamicFont { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterDynamicFont { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterDynamicFont { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterDynamicFont { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterDynamicFont`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterDynamicFont { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterDynamicFont > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_image.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_image.rs new file mode 100644 index 0000000..040a17c --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_image.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterImage`][crate::classes::ResourceImporterImage].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterImage` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimporterimage.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterImage.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterImage`][crate::classes::IResourceImporterImage]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterImage`](https://docs.godotengine.org/en/stable/classes/class_resourceimporterimage.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterImage::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterImage { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterImage`][crate::classes::ResourceImporterImage].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterImage` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimporterimage.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterImage: crate::obj::GodotClass < Base = ResourceImporterImage > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterImage { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterImage { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterImage")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterImage { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterImage { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterImage { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterImage { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterImage { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterImage { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterImage { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterImage`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterImage { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterImage > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_image_font.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_image_font.rs new file mode 100644 index 0000000..086f399 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_image_font.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterImageFont`][crate::classes::ResourceImporterImageFont].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterImageFont` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimporterimagefont.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterImageFont.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterImageFont`][crate::classes::IResourceImporterImageFont]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterImageFont`](https://docs.godotengine.org/en/stable/classes/class_resourceimporterimagefont.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterImageFont::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterImageFont { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterImageFont`][crate::classes::ResourceImporterImageFont].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterImageFont` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimporterimagefont.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterImageFont: crate::obj::GodotClass < Base = ResourceImporterImageFont > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterImageFont { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterImageFont { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterImageFont")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterImageFont { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterImageFont { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterImageFont { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterImageFont { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterImageFont { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterImageFont { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterImageFont { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterImageFont`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterImageFont { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterImageFont > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_layered_texture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_layered_texture.rs new file mode 100644 index 0000000..ffbb65f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_layered_texture.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterLayeredTexture`][crate::classes::ResourceImporterLayeredTexture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterLayeredTexture` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimporterlayeredtexture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterLayeredTexture.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterLayeredTexture`][crate::classes::IResourceImporterLayeredTexture]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterLayeredTexture`](https://docs.godotengine.org/en/stable/classes/class_resourceimporterlayeredtexture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterLayeredTexture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterLayeredTexture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterLayeredTexture`][crate::classes::ResourceImporterLayeredTexture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterLayeredTexture` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimporterlayeredtexture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterLayeredTexture: crate::obj::GodotClass < Base = ResourceImporterLayeredTexture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterLayeredTexture { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterLayeredTexture { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterLayeredTexture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterLayeredTexture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterLayeredTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterLayeredTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterLayeredTexture { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterLayeredTexture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterLayeredTexture { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterLayeredTexture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterLayeredTexture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterLayeredTexture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterLayeredTexture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_mp3.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_mp3.rs new file mode 100644 index 0000000..bf7f3a1 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_mp3.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterMp3`][crate::classes::ResourceImporterMp3].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterMP3` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimportermp3.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterMP3.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterMp3`][crate::classes::IResourceImporterMp3]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterMP3`](https://docs.godotengine.org/en/stable/classes/class_resourceimportermp3.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterMp3::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterMp3 { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterMp3`][crate::classes::ResourceImporterMp3].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterMP3` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimportermp3.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterMp3: crate::obj::GodotClass < Base = ResourceImporterMp3 > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterMp3 { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterMp3 { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterMP3")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterMp3 { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterMp3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterMp3 { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterMp3 { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterMp3 { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterMp3 { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterMp3 { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterMp3`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterMp3 { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterMp3 > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_obj.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_obj.rs new file mode 100644 index 0000000..f3dd860 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_obj.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterObj`][crate::classes::ResourceImporterObj].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterOBJ` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimporterobj.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterOBJ.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterObj`][crate::classes::IResourceImporterObj]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterOBJ`](https://docs.godotengine.org/en/stable/classes/class_resourceimporterobj.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterObj::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterObj { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterObj`][crate::classes::ResourceImporterObj].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterOBJ` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimporterobj.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterObj: crate::obj::GodotClass < Base = ResourceImporterObj > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterObj { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterObj { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterOBJ")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterObj { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterObj { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterObj { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterObj { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterObj { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterObj { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterObj { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterObj`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterObj { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterObj > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_ogg_vorbis.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_ogg_vorbis.rs new file mode 100644 index 0000000..4416bcb --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_ogg_vorbis.rs @@ -0,0 +1,215 @@ +#![doc = "Sidecar module for class [`ResourceImporterOggVorbis`][crate::classes::ResourceImporterOggVorbis].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterOggVorbis` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimporteroggvorbis.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterOggVorbis.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterOggVorbis`][crate::classes::IResourceImporterOggVorbis]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterOggVorbis`](https://docs.godotengine.org/en/stable/classes/class_resourceimporteroggvorbis.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterOggVorbis::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterOggVorbis { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterOggVorbis`][crate::classes::ResourceImporterOggVorbis].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterOggVorbis` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimporteroggvorbis.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterOggVorbis: crate::obj::GodotClass < Base = ResourceImporterOggVorbis > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterOggVorbis { + pub fn load_from_buffer(buffer: &PackedByteArray,) -> Option < Gd < crate::classes::AudioStreamOggVorbis > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::AudioStreamOggVorbis > >, RefArg < 'a0, PackedByteArray >); + let args = (RefArg::new(buffer),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(323usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceImporterOggVorbis", "load_from_buffer", std::ptr::null_mut(), None, args,) + } + } + pub fn load_from_file(path: impl AsArg < GString >,) -> Option < Gd < crate::classes::AudioStreamOggVorbis > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::AudioStreamOggVorbis > >, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_editor_api() . fptr_by_index(324usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceImporterOggVorbis", "load_from_file", std::ptr::null_mut(), None, args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterOggVorbis { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterOggVorbis")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterOggVorbis { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterOggVorbis { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterOggVorbis { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterOggVorbis { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterOggVorbis { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterOggVorbis { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterOggVorbis { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterOggVorbis`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterOggVorbis { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterOggVorbis > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_scene.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_scene.rs new file mode 100644 index 0000000..a3104a4 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_scene.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterScene`][crate::classes::ResourceImporterScene].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterScene` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimporterscene.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterScene.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterScene`][crate::classes::IResourceImporterScene]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterScene`](https://docs.godotengine.org/en/stable/classes/class_resourceimporterscene.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterScene::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterScene { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterScene`][crate::classes::ResourceImporterScene].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterScene` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimporterscene.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterScene: crate::obj::GodotClass < Base = ResourceImporterScene > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterScene { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterScene { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterScene")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterScene { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterScene { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterScene { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterScene { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterScene { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterScene { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterScene { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterScene`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterScene { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterScene > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_shader_file.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_shader_file.rs new file mode 100644 index 0000000..2fe8950 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_shader_file.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterShaderFile`][crate::classes::ResourceImporterShaderFile].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterShaderFile` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimportershaderfile.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterShaderFile.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterShaderFile`][crate::classes::IResourceImporterShaderFile]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterShaderFile`](https://docs.godotengine.org/en/stable/classes/class_resourceimportershaderfile.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterShaderFile::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterShaderFile { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterShaderFile`][crate::classes::ResourceImporterShaderFile].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterShaderFile` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimportershaderfile.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterShaderFile: crate::obj::GodotClass < Base = ResourceImporterShaderFile > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterShaderFile { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterShaderFile { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterShaderFile")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterShaderFile { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterShaderFile { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterShaderFile { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterShaderFile { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterShaderFile { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterShaderFile { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterShaderFile { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterShaderFile`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterShaderFile { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterShaderFile > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_texture.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_texture.rs new file mode 100644 index 0000000..e821e44 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_texture.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterTexture`][crate::classes::ResourceImporterTexture].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterTexture` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimportertexture.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterTexture.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterTexture`][crate::classes::IResourceImporterTexture]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterTexture`](https://docs.godotengine.org/en/stable/classes/class_resourceimportertexture.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterTexture::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterTexture { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterTexture`][crate::classes::ResourceImporterTexture].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterTexture` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimportertexture.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterTexture: crate::obj::GodotClass < Base = ResourceImporterTexture > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterTexture { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterTexture { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterTexture")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterTexture { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterTexture { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterTexture { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterTexture { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterTexture { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterTexture { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterTexture`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterTexture { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterTexture > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_texture_atlas.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_texture_atlas.rs new file mode 100644 index 0000000..abc61b9 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_texture_atlas.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterTextureAtlas`][crate::classes::ResourceImporterTextureAtlas].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterTextureAtlas` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimportertextureatlas.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterTextureAtlas.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterTextureAtlas`][crate::classes::IResourceImporterTextureAtlas]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterTextureAtlas`](https://docs.godotengine.org/en/stable/classes/class_resourceimportertextureatlas.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterTextureAtlas::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterTextureAtlas { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterTextureAtlas`][crate::classes::ResourceImporterTextureAtlas].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterTextureAtlas` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimportertextureatlas.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterTextureAtlas: crate::obj::GodotClass < Base = ResourceImporterTextureAtlas > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterTextureAtlas { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterTextureAtlas { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterTextureAtlas")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterTextureAtlas { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterTextureAtlas { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterTextureAtlas { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterTextureAtlas { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterTextureAtlas { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterTextureAtlas { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterTextureAtlas { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterTextureAtlas`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterTextureAtlas { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterTextureAtlas > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_wav.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_wav.rs new file mode 100644 index 0000000..ea80f9a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_importer_wav.rs @@ -0,0 +1,199 @@ +#![doc = "Sidecar module for class [`ResourceImporterWav`][crate::classes::ResourceImporterWav].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceImporterWAV` enums](https://docs.godotengine.org/en/stable/classes/class_resourceimporterwav.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceImporterWAV.`\n\nInherits [`ResourceImporter`][crate::classes::ResourceImporter].\n\nRelated symbols:\n\n* [`IResourceImporterWav`][crate::classes::IResourceImporterWav]: virtual methods\n\n\nSee also [Godot docs for `ResourceImporterWAV`](https://docs.godotengine.org/en/stable/classes/class_resourceimporterwav.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`ResourceImporterWav::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceImporterWav { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceImporterWav`][crate::classes::ResourceImporterWav].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceImporterWAV` methods](https://docs.godotengine.org/en/stable/classes/class_resourceimporterwav.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceImporterWav: crate::obj::GodotClass < Base = ResourceImporterWav > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceImporterWav { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceImporterWav { + type Base = crate::classes::ResourceImporter; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceImporterWAV")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Editor; + + } + unsafe impl crate::obj::Bounds for ResourceImporterWav { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::ResourceImporter > for ResourceImporterWav { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for ResourceImporterWav { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceImporterWav { + + } + impl crate::obj::cap::GodotDefault for ResourceImporterWav { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourceImporterWav { + type Target = crate::classes::ResourceImporter; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceImporterWav { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceImporterWav`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceImporterWav { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporterWav > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceImporter > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_loader.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_loader.rs new file mode 100644 index 0000000..4538135 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_loader.rs @@ -0,0 +1,544 @@ +#![doc = "Sidecar module for class [`ResourceLoader`][crate::classes::ResourceLoader].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceLoader` enums](https://docs.godotengine.org/en/stable/classes/class_resourceloader.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceLoader.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`resource_loader`][crate::classes::resource_loader]: sidecar module with related enum/flag types\n* [`IResourceLoader`][crate::classes::IResourceLoader]: virtual methods\n\n\nSee also [Godot docs for `ResourceLoader`](https://docs.godotengine.org/en/stable/classes/class_resourceloader.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`ResourceLoader::singleton()`][ResourceLoader::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceLoader { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceLoader`][crate::classes::ResourceLoader].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceLoader` methods](https://docs.godotengine.org/en/stable/classes/class_resourceloader.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceLoader: crate::obj::GodotClass < Base = ResourceLoader > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceLoader { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"ResourceLoader"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub(crate) fn load_full(&mut self, path: CowArg < GString >, type_hint: CowArg < GString >, cache_mode: crate::classes::resource_loader::CacheMode,) -> Option < Gd < crate::classes::Resource > > { + type CallSig < 'a0, 'a1, > = (Option < Gd < crate::classes::Resource > >, CowArg < 'a0, GString >, CowArg < 'a1, GString >, crate::classes::resource_loader::CacheMode); + let args = (path, type_hint, cache_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7135usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceLoader", "load", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::load_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn load(&mut self, path: impl AsArg < GString >,) -> Option < Gd < crate::classes::Resource > > { + self.load_ex(path,) . done() + } + #[inline] + pub fn load_ex < 'a > (&'a mut self, path: impl AsArg < GString > + 'a,) -> ExLoad < 'a > { + ExLoad::new(self, path,) + } + pub fn get_recognized_extensions_for_type(&mut self, type_: impl AsArg < GString >,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >); + let args = (type_.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7136usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceLoader", "get_recognized_extensions_for_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_resource_format_loader_full(&mut self, format_loader: ObjectArg < crate::classes::ResourceFormatLoader >, at_front: bool,) { + type CallSig = ((), ObjectArg < crate::classes::ResourceFormatLoader >, bool); + let args = (format_loader, at_front,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7137usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceLoader", "add_resource_format_loader", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_resource_format_loader_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_resource_format_loader(&mut self, format_loader: impl AsObjectArg < crate::classes::ResourceFormatLoader >,) { + self.add_resource_format_loader_ex(format_loader,) . done() + } + #[inline] + pub fn add_resource_format_loader_ex < 'a > (&'a mut self, format_loader: impl AsObjectArg < crate::classes::ResourceFormatLoader >,) -> ExAddResourceFormatLoader < 'a > { + ExAddResourceFormatLoader::new(self, format_loader,) + } + pub fn remove_resource_format_loader(&mut self, format_loader: impl AsObjectArg < crate::classes::ResourceFormatLoader >,) { + type CallSig = ((), ObjectArg < crate::classes::ResourceFormatLoader >); + let args = (format_loader.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7138usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceLoader", "remove_resource_format_loader", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_abort_on_missing_resources(&mut self, abort: bool,) { + type CallSig = ((), bool); + let args = (abort,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7139usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceLoader", "set_abort_on_missing_resources", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_dependencies(&mut self, path: impl AsArg < GString >,) -> PackedStringArray { + type CallSig < 'a0, > = (PackedStringArray, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7140usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceLoader", "get_dependencies", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_cached(&mut self, path: impl AsArg < GString >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7141usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceLoader", "has_cached", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn exists_full(&mut self, path: CowArg < GString >, type_hint: CowArg < GString >,) -> bool { + type CallSig < 'a0, 'a1, > = (bool, CowArg < 'a0, GString >, CowArg < 'a1, GString >); + let args = (path, type_hint,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7142usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceLoader", "exists", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::exists_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn exists(&mut self, path: impl AsArg < GString >,) -> bool { + self.exists_ex(path,) . done() + } + #[inline] + pub fn exists_ex < 'a > (&'a mut self, path: impl AsArg < GString > + 'a,) -> ExExists < 'a > { + ExExists::new(self, path,) + } + pub fn get_resource_uid(&mut self, path: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7143usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceLoader", "get_resource_uid", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceLoader { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceLoader")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ResourceLoader { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceLoader { + + } + impl std::ops::Deref for ResourceLoader { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceLoader { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceLoader`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceLoader { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceLoader > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ResourceLoader::load_ex`][super::ResourceLoader::load_ex]."] +#[must_use] +pub struct ExLoad < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ResourceLoader, path: CowArg < 'a, GString >, type_hint: CowArg < 'a, GString >, cache_mode: crate::classes::resource_loader::CacheMode, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExLoad < 'a > { + fn new(surround_object: &'a mut re_export::ResourceLoader, path: impl AsArg < GString > + 'a,) -> Self { + let type_hint = GString::from(""); + let cache_mode = crate::obj::EngineEnum::from_ord(1); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), type_hint: CowArg::Owned(type_hint), cache_mode: cache_mode, + } + } + #[inline] + pub fn type_hint(self, type_hint: impl AsArg < GString > + 'a) -> Self { + Self { + type_hint: type_hint.into_arg(), .. self + } + } + #[inline] + pub fn cache_mode(self, cache_mode: crate::classes::resource_loader::CacheMode) -> Self { + Self { + cache_mode: cache_mode, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::Resource > > { + let Self { + _phantom, surround_object, path, type_hint, cache_mode, + } + = self; + re_export::ResourceLoader::load_full(surround_object, path, type_hint, cache_mode,) + } +} +#[doc = "Default-param extender for [`ResourceLoader::add_resource_format_loader_ex`][super::ResourceLoader::add_resource_format_loader_ex]."] +#[must_use] +pub struct ExAddResourceFormatLoader < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ResourceLoader, format_loader: ObjectCow < crate::classes::ResourceFormatLoader >, at_front: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddResourceFormatLoader < 'a > { + fn new(surround_object: &'a mut re_export::ResourceLoader, format_loader: impl AsObjectArg < crate::classes::ResourceFormatLoader >,) -> Self { + let at_front = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, format_loader: format_loader.consume_arg(), at_front: at_front, + } + } + #[inline] + pub fn at_front(self, at_front: bool) -> Self { + Self { + at_front: at_front, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, format_loader, at_front, + } + = self; + re_export::ResourceLoader::add_resource_format_loader_full(surround_object, format_loader.cow_as_object_arg(), at_front,) + } +} +#[doc = "Default-param extender for [`ResourceLoader::exists_ex`][super::ResourceLoader::exists_ex]."] +#[must_use] +pub struct ExExists < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ResourceLoader, path: CowArg < 'a, GString >, type_hint: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExExists < 'a > { + fn new(surround_object: &'a mut re_export::ResourceLoader, path: impl AsArg < GString > + 'a,) -> Self { + let type_hint = GString::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), type_hint: CowArg::Owned(type_hint), + } + } + #[inline] + pub fn type_hint(self, type_hint: impl AsArg < GString > + 'a) -> Self { + Self { + type_hint: type_hint.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, path, type_hint, + } + = self; + re_export::ResourceLoader::exists_full(surround_object, path, type_hint,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ThreadLoadStatus { + ord: i32 +} +impl ThreadLoadStatus { + #[doc(alias = "THREAD_LOAD_INVALID_RESOURCE")] + #[doc = "Godot enumerator name: `THREAD_LOAD_INVALID_RESOURCE`"] + pub const INVALID_RESOURCE: ThreadLoadStatus = ThreadLoadStatus { + ord: 0i32 + }; + #[doc(alias = "THREAD_LOAD_IN_PROGRESS")] + #[doc = "Godot enumerator name: `THREAD_LOAD_IN_PROGRESS`"] + pub const IN_PROGRESS: ThreadLoadStatus = ThreadLoadStatus { + ord: 1i32 + }; + #[doc(alias = "THREAD_LOAD_FAILED")] + #[doc = "Godot enumerator name: `THREAD_LOAD_FAILED`"] + pub const FAILED: ThreadLoadStatus = ThreadLoadStatus { + ord: 2i32 + }; + #[doc(alias = "THREAD_LOAD_LOADED")] + #[doc = "Godot enumerator name: `THREAD_LOAD_LOADED`"] + pub const LOADED: ThreadLoadStatus = ThreadLoadStatus { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ThreadLoadStatus { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ThreadLoadStatus") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ThreadLoadStatus { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INVALID_RESOURCE => "INVALID_RESOURCE", Self::IN_PROGRESS => "IN_PROGRESS", Self::FAILED => "FAILED", Self::LOADED => "LOADED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::INVALID_RESOURCE => "THREAD_LOAD_INVALID_RESOURCE", Self::IN_PROGRESS => "THREAD_LOAD_IN_PROGRESS", Self::FAILED => "THREAD_LOAD_FAILED", Self::LOADED => "THREAD_LOAD_LOADED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ThreadLoadStatus { + type Via = i32; + +} +impl crate::meta::ToGodot for ThreadLoadStatus { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ThreadLoadStatus { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CacheMode { + ord: i32 +} +impl CacheMode { + #[doc(alias = "CACHE_MODE_IGNORE")] + #[doc = "Godot enumerator name: `CACHE_MODE_IGNORE`"] + pub const IGNORE: CacheMode = CacheMode { + ord: 0i32 + }; + #[doc(alias = "CACHE_MODE_REUSE")] + #[doc = "Godot enumerator name: `CACHE_MODE_REUSE`"] + pub const REUSE: CacheMode = CacheMode { + ord: 1i32 + }; + #[doc(alias = "CACHE_MODE_REPLACE")] + #[doc = "Godot enumerator name: `CACHE_MODE_REPLACE`"] + pub const REPLACE: CacheMode = CacheMode { + ord: 2i32 + }; + #[doc(alias = "CACHE_MODE_IGNORE_DEEP")] + #[doc = "Godot enumerator name: `CACHE_MODE_IGNORE_DEEP`"] + pub const IGNORE_DEEP: CacheMode = CacheMode { + ord: 3i32 + }; + #[doc(alias = "CACHE_MODE_REPLACE_DEEP")] + #[doc = "Godot enumerator name: `CACHE_MODE_REPLACE_DEEP`"] + pub const REPLACE_DEEP: CacheMode = CacheMode { + ord: 4i32 + }; + +} +impl std::fmt::Debug for CacheMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CacheMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CacheMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IGNORE => "IGNORE", Self::REUSE => "REUSE", Self::REPLACE => "REPLACE", Self::IGNORE_DEEP => "IGNORE_DEEP", Self::REPLACE_DEEP => "REPLACE_DEEP", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::IGNORE => "CACHE_MODE_IGNORE", Self::REUSE => "CACHE_MODE_REUSE", Self::REPLACE => "CACHE_MODE_REPLACE", Self::IGNORE_DEEP => "CACHE_MODE_IGNORE_DEEP", Self::REPLACE_DEEP => "CACHE_MODE_REPLACE_DEEP", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CacheMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CacheMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CacheMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_preloader.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_preloader.rs new file mode 100644 index 0000000..89a183f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_preloader.rs @@ -0,0 +1,271 @@ +#![doc = "Sidecar module for class [`ResourcePreloader`][crate::classes::ResourcePreloader].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourcePreloader` enums](https://docs.godotengine.org/en/stable/classes/class_resourcepreloader.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourcePreloader.`\n\nInherits [`Node`][crate::classes::Node].\n\nRelated symbols:\n\n* [`IResourcePreloader`][crate::classes::IResourcePreloader]: virtual methods\n\n\nSee also [Godot docs for `ResourcePreloader`](https://docs.godotengine.org/en/stable/classes/class_resourcepreloader.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`ResourcePreloader::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourcePreloader { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourcePreloader`][crate::classes::ResourcePreloader].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourcePreloader` methods](https://docs.godotengine.org/en/stable/classes/class_resourcepreloader.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourcePreloader: crate::obj::GodotClass < Base = ResourcePreloader > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: NodeNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl ResourcePreloader { + pub fn add_resource(&mut self, name: impl AsArg < StringName >, resource: impl AsObjectArg < crate::classes::Resource >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, ObjectArg < crate::classes::Resource >); + let args = (name.into_arg(), resource.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7144usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourcePreloader", "add_resource", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_resource(&mut self, name: impl AsArg < StringName >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7145usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourcePreloader", "remove_resource", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn rename_resource(&mut self, name: impl AsArg < StringName >, newname: impl AsArg < StringName >,) { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (name.into_arg(), newname.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7146usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourcePreloader", "rename_resource", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_resource(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7147usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourcePreloader", "has_resource", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_resource(&self, name: impl AsArg < StringName >,) -> Option < Gd < crate::classes::Resource > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Resource > >, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7148usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourcePreloader", "get_resource", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_resource_list(&self,) -> PackedStringArray { + type CallSig = (PackedStringArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7149usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourcePreloader", "get_resource_list", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourcePreloader { + type Base = crate::classes::Node; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourcePreloader")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ResourcePreloader { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for ResourcePreloader { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourcePreloader { + + } + impl crate::obj::cap::GodotDefault for ResourcePreloader { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for ResourcePreloader { + type Target = crate::classes::Node; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourcePreloader { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourcePreloader`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourcePreloader { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourcePreloader > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_saver.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_saver.rs new file mode 100644 index 0000000..8e4355e --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_saver.rs @@ -0,0 +1,397 @@ +#![doc = "Sidecar module for class [`ResourceSaver`][crate::classes::ResourceSaver].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceSaver` enums](https://docs.godotengine.org/en/stable/classes/class_resourcesaver.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceSaver.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`resource_saver`][crate::classes::resource_saver]: sidecar module with related enum/flag types\n* [`IResourceSaver`][crate::classes::IResourceSaver]: virtual methods\n\n\nSee also [Godot docs for `ResourceSaver`](https://docs.godotengine.org/en/stable/classes/class_resourcesaver.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`ResourceSaver::singleton()`][ResourceSaver::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceSaver { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceSaver`][crate::classes::ResourceSaver].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceSaver` methods](https://docs.godotengine.org/en/stable/classes/class_resourcesaver.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceSaver: crate::obj::GodotClass < Base = ResourceSaver > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceSaver { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"ResourceSaver"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub(crate) fn save_full(&mut self, resource: ObjectArg < crate::classes::Resource >, path: CowArg < GString >, flags: crate::classes::resource_saver::SaverFlags,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, ObjectArg < crate::classes::Resource >, CowArg < 'a0, GString >, crate::classes::resource_saver::SaverFlags); + let args = (resource, path, flags,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7150usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceSaver", "save", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::save_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn save(&mut self, resource: impl AsObjectArg < crate::classes::Resource >,) -> crate::global::Error { + self.save_ex(resource,) . done() + } + #[inline] + pub fn save_ex < 'a > (&'a mut self, resource: impl AsObjectArg < crate::classes::Resource >,) -> ExSave < 'a > { + ExSave::new(self, resource,) + } + pub fn get_recognized_extensions(&mut self, type_: impl AsObjectArg < crate::classes::Resource >,) -> PackedStringArray { + type CallSig = (PackedStringArray, ObjectArg < crate::classes::Resource >); + let args = (type_.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7151usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceSaver", "get_recognized_extensions", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_resource_format_saver_full(&mut self, format_saver: ObjectArg < crate::classes::ResourceFormatSaver >, at_front: bool,) { + type CallSig = ((), ObjectArg < crate::classes::ResourceFormatSaver >, bool); + let args = (format_saver, at_front,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7152usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceSaver", "add_resource_format_saver", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_resource_format_saver_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_resource_format_saver(&mut self, format_saver: impl AsObjectArg < crate::classes::ResourceFormatSaver >,) { + self.add_resource_format_saver_ex(format_saver,) . done() + } + #[inline] + pub fn add_resource_format_saver_ex < 'a > (&'a mut self, format_saver: impl AsObjectArg < crate::classes::ResourceFormatSaver >,) -> ExAddResourceFormatSaver < 'a > { + ExAddResourceFormatSaver::new(self, format_saver,) + } + pub fn remove_resource_format_saver(&mut self, format_saver: impl AsObjectArg < crate::classes::ResourceFormatSaver >,) { + type CallSig = ((), ObjectArg < crate::classes::ResourceFormatSaver >); + let args = (format_saver.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7153usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceSaver", "remove_resource_format_saver", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for ResourceSaver { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceSaver")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ResourceSaver { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceSaver { + + } + impl std::ops::Deref for ResourceSaver { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceSaver { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceSaver`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceSaver { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceSaver > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`ResourceSaver::save_ex`][super::ResourceSaver::save_ex]."] +#[must_use] +pub struct ExSave < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ResourceSaver, resource: ObjectCow < crate::classes::Resource >, path: CowArg < 'a, GString >, flags: crate::classes::resource_saver::SaverFlags, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSave < 'a > { + fn new(surround_object: &'a mut re_export::ResourceSaver, resource: impl AsObjectArg < crate::classes::Resource >,) -> Self { + let path = GString::from(""); + let flags = crate::obj::EngineBitfield::from_ord(0); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, resource: resource.consume_arg(), path: CowArg::Owned(path), flags: flags, + } + } + #[inline] + pub fn path(self, path: impl AsArg < GString > + 'a) -> Self { + Self { + path: path.into_arg(), .. self + } + } + #[inline] + pub fn flags(self, flags: crate::classes::resource_saver::SaverFlags) -> Self { + Self { + flags: flags, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, resource, path, flags, + } + = self; + re_export::ResourceSaver::save_full(surround_object, resource.cow_as_object_arg(), path, flags,) + } +} +#[doc = "Default-param extender for [`ResourceSaver::add_resource_format_saver_ex`][super::ResourceSaver::add_resource_format_saver_ex]."] +#[must_use] +pub struct ExAddResourceFormatSaver < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::ResourceSaver, format_saver: ObjectCow < crate::classes::ResourceFormatSaver >, at_front: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddResourceFormatSaver < 'a > { + fn new(surround_object: &'a mut re_export::ResourceSaver, format_saver: impl AsObjectArg < crate::classes::ResourceFormatSaver >,) -> Self { + let at_front = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, format_saver: format_saver.consume_arg(), at_front: at_front, + } + } + #[inline] + pub fn at_front(self, at_front: bool) -> Self { + Self { + at_front: at_front, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, format_saver, at_front, + } + = self; + re_export::ResourceSaver::add_resource_format_saver_full(surround_object, format_saver.cow_as_object_arg(), at_front,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct SaverFlags { + ord: u64 +} +impl SaverFlags { + #[doc(alias = "FLAG_NONE")] + #[doc = "Godot enumerator name: `FLAG_NONE`"] + pub const NONE: SaverFlags = SaverFlags { + ord: 0u64 + }; + #[doc(alias = "FLAG_RELATIVE_PATHS")] + #[doc = "Godot enumerator name: `FLAG_RELATIVE_PATHS`"] + pub const RELATIVE_PATHS: SaverFlags = SaverFlags { + ord: 1u64 + }; + #[doc(alias = "FLAG_BUNDLE_RESOURCES")] + #[doc = "Godot enumerator name: `FLAG_BUNDLE_RESOURCES`"] + pub const BUNDLE_RESOURCES: SaverFlags = SaverFlags { + ord: 2u64 + }; + #[doc(alias = "FLAG_CHANGE_PATH")] + #[doc = "Godot enumerator name: `FLAG_CHANGE_PATH`"] + pub const CHANGE_PATH: SaverFlags = SaverFlags { + ord: 4u64 + }; + #[doc(alias = "FLAG_OMIT_EDITOR_PROPERTIES")] + #[doc = "Godot enumerator name: `FLAG_OMIT_EDITOR_PROPERTIES`"] + pub const OMIT_EDITOR_PROPERTIES: SaverFlags = SaverFlags { + ord: 8u64 + }; + #[doc(alias = "FLAG_SAVE_BIG_ENDIAN")] + #[doc = "Godot enumerator name: `FLAG_SAVE_BIG_ENDIAN`"] + pub const SAVE_BIG_ENDIAN: SaverFlags = SaverFlags { + ord: 16u64 + }; + #[doc(alias = "FLAG_COMPRESS")] + #[doc = "Godot enumerator name: `FLAG_COMPRESS`"] + pub const COMPRESS: SaverFlags = SaverFlags { + ord: 32u64 + }; + #[doc(alias = "FLAG_REPLACE_SUBRESOURCE_PATHS")] + #[doc = "Godot enumerator name: `FLAG_REPLACE_SUBRESOURCE_PATHS`"] + pub const REPLACE_SUBRESOURCE_PATHS: SaverFlags = SaverFlags { + ord: 64u64 + }; + +} +impl std::fmt::Debug for SaverFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::NONE => "NONE", Self::RELATIVE_PATHS => "RELATIVE_PATHS", Self::BUNDLE_RESOURCES => "BUNDLE_RESOURCES", Self::CHANGE_PATH => "CHANGE_PATH", Self::OMIT_EDITOR_PROPERTIES => "OMIT_EDITOR_PROPERTIES", Self::SAVE_BIG_ENDIAN => "SAVE_BIG_ENDIAN", Self::COMPRESS => "COMPRESS", Self::REPLACE_SUBRESOURCE_PATHS => "REPLACE_SUBRESOURCE_PATHS", _ => { + f.debug_struct("SaverFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for SaverFlags { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for SaverFlags { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for SaverFlags { + type Via = u64; + +} +impl crate::meta::ToGodot for SaverFlags { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for SaverFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_uid.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_uid.rs new file mode 100644 index 0000000..1dffa0a --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/resource_uid.rs @@ -0,0 +1,255 @@ +#![doc = "Sidecar module for class [`ResourceUid`][crate::classes::ResourceUid].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `ResourceUID` enums](https://docs.godotengine.org/en/stable/classes/class_resourceuid.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `ResourceUID.`\n\nInherits [`Object`][crate::classes::Object].\n\nRelated symbols:\n\n* [`IResourceUid`][crate::classes::IResourceUid]: virtual methods\n\n\nSee also [Godot docs for `ResourceUID`](https://docs.godotengine.org/en/stable/classes/class_resourceuid.html).\n\n"] + #[doc = "# Singleton\n\nThis class is a singleton. You can get the one instance using [`ResourceUid::singleton()`][ResourceUid::singleton]."] + #[derive(Debug)] + #[repr(C)] + pub struct ResourceUid { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`ResourceUid`][crate::classes::ResourceUid].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `ResourceUID` methods](https://docs.godotengine.org/en/stable/classes/class_resourceuid.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IResourceUid: crate::obj::GodotClass < Base = ResourceUid > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl ResourceUid { + pub fn singleton() -> Gd < Self > { + unsafe { + let __class_name = StringName::from(c"ResourceUID"); + let __object_ptr = sys::interface_fn !(global_get_singleton) (__class_name.string_sys()); + Gd::from_obj_sys(__object_ptr) + } + } + pub fn id_to_text(&self, id: i64,) -> GString { + type CallSig = (GString, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7154usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceUid", "id_to_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn text_to_id(&self, text_id: impl AsArg < GString >,) -> i64 { + type CallSig < 'a0, > = (i64, CowArg < 'a0, GString >); + let args = (text_id.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7155usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceUid", "text_to_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn create_id(&mut self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7156usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceUid", "create_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_id(&self, id: i64,) -> bool { + type CallSig = (bool, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7157usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceUid", "has_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_id(&mut self, id: i64, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i64, CowArg < 'a0, GString >); + let args = (id, path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7158usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceUid", "add_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_id(&mut self, id: i64, path: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), i64, CowArg < 'a0, GString >); + let args = (id, path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7159usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceUid", "set_id", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_id_path(&self, id: i64,) -> GString { + type CallSig = (GString, i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7160usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceUid", "get_id_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_id(&mut self, id: i64,) { + type CallSig = ((), i64); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7161usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "ResourceUid", "remove_id", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + pub const INVALID_ID: i32 = - 1i32; + + } + impl crate::obj::GodotClass for ResourceUid { + type Base = crate::classes::Object; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"ResourceUID")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for ResourceUid { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for ResourceUid { + + } + impl std::ops::Deref for ResourceUid { + type Target = crate::classes::Object; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for ResourceUid { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`ResourceUid`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_ResourceUid { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::ResourceUid > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ribbon_trail_mesh.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ribbon_trail_mesh.rs new file mode 100644 index 0000000..397e797 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/ribbon_trail_mesh.rs @@ -0,0 +1,397 @@ +#![doc = "Sidecar module for class [`RibbonTrailMesh`][crate::classes::RibbonTrailMesh].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RibbonTrailMesh` enums](https://docs.godotengine.org/en/stable/classes/class_ribbontrailmesh.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RibbonTrailMesh.`\n\nInherits [`PrimitiveMesh`][crate::classes::PrimitiveMesh].\n\nRelated symbols:\n\n* [`ribbon_trail_mesh`][crate::classes::ribbon_trail_mesh]: sidecar module with related enum/flag types\n* [`IRibbonTrailMesh`][crate::classes::IRibbonTrailMesh]: virtual methods\n\n\nSee also [Godot docs for `RibbonTrailMesh`](https://docs.godotengine.org/en/stable/classes/class_ribbontrailmesh.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RibbonTrailMesh::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RibbonTrailMesh { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RibbonTrailMesh`][crate::classes::RibbonTrailMesh].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RibbonTrailMesh` methods](https://docs.godotengine.org/en/stable/classes/class_ribbontrailmesh.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRibbonTrailMesh: crate::obj::GodotClass < Base = RibbonTrailMesh > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn create_mesh_array(&self,) -> VariantArray { + unimplemented !() + } + fn get_surface_count(&self,) -> i32; + fn surface_get_array_len(&self, index: i32,) -> i32; + fn surface_get_array_index_len(&self, index: i32,) -> i32; + fn surface_get_arrays(&self, index: i32,) -> VariantArray; + fn surface_get_blend_shape_arrays(&self, index: i32,) -> Array < VariantArray >; + fn surface_get_lods(&self, index: i32,) -> Dictionary; + fn surface_get_format(&self, index: i32,) -> u32; + fn surface_get_primitive_type(&self, index: i32,) -> u32; + fn surface_set_material(&mut self, index: i32, material: Option < Gd < crate::classes::Material > >,); + fn surface_get_material(&self, index: i32,) -> Option < Gd < crate::classes::Material > >; + fn get_blend_shape_count(&self,) -> i32; + fn get_blend_shape_name(&self, index: i32,) -> StringName; + fn set_blend_shape_name(&mut self, index: i32, name: StringName,); + fn get_aabb(&self,) -> Aabb; + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl RibbonTrailMesh { + pub fn set_size(&mut self, size: f32,) { + type CallSig = ((), f32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7162usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "set_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_size(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7163usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "get_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sections(&mut self, sections: i32,) { + type CallSig = ((), i32); + let args = (sections,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7164usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "set_sections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_sections(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7165usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "get_sections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_section_length(&mut self, section_length: f32,) { + type CallSig = ((), f32); + let args = (section_length,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7166usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "set_section_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_section_length(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7167usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "get_section_length", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_section_segments(&mut self, section_segments: i32,) { + type CallSig = ((), i32); + let args = (section_segments,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7168usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "set_section_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_section_segments(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7169usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "get_section_segments", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_curve(&mut self, curve: impl AsObjectArg < crate::classes::Curve >,) { + type CallSig = ((), ObjectArg < crate::classes::Curve >); + let args = (curve.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7170usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "set_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_curve(&self,) -> Option < Gd < crate::classes::Curve > > { + type CallSig = (Option < Gd < crate::classes::Curve > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7171usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "get_curve", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shape(&mut self, shape: crate::classes::ribbon_trail_mesh::Shape,) { + type CallSig = ((), crate::classes::ribbon_trail_mesh::Shape); + let args = (shape,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7172usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "set_shape", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_shape(&self,) -> crate::classes::ribbon_trail_mesh::Shape { + type CallSig = (crate::classes::ribbon_trail_mesh::Shape,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7173usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RibbonTrailMesh", "get_shape", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RibbonTrailMesh { + type Base = crate::classes::PrimitiveMesh; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RibbonTrailMesh")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RibbonTrailMesh { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PrimitiveMesh > for RibbonTrailMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Mesh > for RibbonTrailMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for RibbonTrailMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RibbonTrailMesh { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RibbonTrailMesh { + + } + impl crate::obj::cap::GodotDefault for RibbonTrailMesh { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RibbonTrailMesh { + type Target = crate::classes::PrimitiveMesh; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RibbonTrailMesh { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RibbonTrailMesh`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RibbonTrailMesh { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RibbonTrailMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PrimitiveMesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Mesh > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Shape { + ord: i32 +} +impl Shape { + #[doc(alias = "SHAPE_FLAT")] + #[doc = "Godot enumerator name: `SHAPE_FLAT`"] + pub const FLAT: Shape = Shape { + ord: 0i32 + }; + #[doc(alias = "SHAPE_CROSS")] + #[doc = "Godot enumerator name: `SHAPE_CROSS`"] + pub const CROSS: Shape = Shape { + ord: 1i32 + }; + +} +impl std::fmt::Debug for Shape { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("Shape") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for Shape { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FLAT => "FLAT", Self::CROSS => "CROSS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::FLAT => "SHAPE_FLAT", Self::CROSS => "SHAPE_CROSS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for Shape { + type Via = i32; + +} +impl crate::meta::ToGodot for Shape { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for Shape { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rich_text_effect.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rich_text_effect.rs new file mode 100644 index 0000000..64e89fe --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rich_text_effect.rs @@ -0,0 +1,205 @@ +#![doc = "Sidecar module for class [`RichTextEffect`][crate::classes::RichTextEffect].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RichTextEffect` enums](https://docs.godotengine.org/en/stable/classes/class_richtexteffect.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RichTextEffect.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`IRichTextEffect`][crate::classes::IRichTextEffect]: virtual methods\n\n\nSee also [Godot docs for `RichTextEffect`](https://docs.godotengine.org/en/stable/classes/class_richtexteffect.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`RichTextEffect::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct RichTextEffect { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RichTextEffect`][crate::classes::RichTextEffect].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RichTextEffect` methods](https://docs.godotengine.org/en/stable/classes/class_richtexteffect.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRichTextEffect: crate::obj::GodotClass < Base = RichTextEffect > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn process_custom_fx(&self, char_fx: Option < Gd < crate::classes::CharFxTransform > >,) -> bool { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl RichTextEffect { + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RichTextEffect { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RichTextEffect")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RichTextEffect { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for RichTextEffect { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for RichTextEffect { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RichTextEffect { + + } + impl crate::obj::cap::GodotDefault for RichTextEffect { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RichTextEffect { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RichTextEffect { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RichTextEffect`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RichTextEffect { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RichTextEffect > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rich_text_label.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rich_text_label.rs new file mode 100644 index 0000000..09695ce --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rich_text_label.rs @@ -0,0 +1,2061 @@ +#![doc = "Sidecar module for class [`RichTextLabel`][crate::classes::RichTextLabel].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RichTextLabel` enums](https://docs.godotengine.org/en/stable/classes/class_richtextlabel.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RichTextLabel.`\n\nInherits [`Control`][crate::classes::Control].\n\nRelated symbols:\n\n* [`rich_text_label`][crate::classes::rich_text_label]: sidecar module with related enum/flag types\n* [`IRichTextLabel`][crate::classes::IRichTextLabel]: virtual methods\n\n\nSee also [Godot docs for `RichTextLabel`](https://docs.godotengine.org/en/stable/classes/class_richtextlabel.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RichTextLabel::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RichTextLabel { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RichTextLabel`][crate::classes::RichTextLabel].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RichTextLabel` methods](https://docs.godotengine.org/en/stable/classes/class_richtextlabel.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRichTextLabel: crate::obj::GodotClass < Base = RichTextLabel > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ControlNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn has_point(&self, point: Vector2,) -> bool { + unimplemented !() + } + fn structured_text_parser(&self, args: VariantArray, text: GString,) -> Array < Vector3i > { + unimplemented !() + } + fn get_minimum_size(&self,) -> Vector2 { + unimplemented !() + } + fn get_tooltip(&self, at_position: Vector2,) -> GString { + unimplemented !() + } + fn get_drag_data(&mut self, at_position: Vector2,) -> Variant { + unimplemented !() + } + fn can_drop_data(&self, at_position: Vector2, data: Variant,) -> bool { + unimplemented !() + } + fn drop_data(&mut self, at_position: Vector2, data: Variant,) { + unimplemented !() + } + fn make_custom_tooltip(&self, for_text: GString,) -> Option < Gd < crate::classes::Object > > { + unimplemented !() + } + fn gui_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl RichTextLabel { + pub fn get_parsed_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7174usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_parsed_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_text(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7175usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "add_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text(&mut self, text: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (text.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7176usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_image_full(&mut self, image: ObjectArg < crate::classes::Texture2D >, width: i32, height: i32, color: Color, inline_align: crate::global::InlineAlignment, region: Rect2, key: RefArg < Variant >, pad: bool, tooltip: CowArg < GString >, size_in_percent: bool,) { + type CallSig < 'a0, 'a1, > = ((), ObjectArg < crate::classes::Texture2D >, i32, i32, Color, crate::global::InlineAlignment, Rect2, RefArg < 'a0, Variant >, bool, CowArg < 'a1, GString >, bool); + let args = (image, width, height, color, inline_align, region, key, pad, tooltip, size_in_percent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7177usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "add_image", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_image_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_image(&mut self, image: impl AsObjectArg < crate::classes::Texture2D >,) { + self.add_image_ex(image,) . done() + } + #[inline] + pub fn add_image_ex < 'a > (&'a mut self, image: impl AsObjectArg < crate::classes::Texture2D >,) -> ExAddImage < 'a > { + ExAddImage::new(self, image,) + } + pub(crate) fn update_image_full(&mut self, key: RefArg < Variant >, mask: crate::classes::rich_text_label::ImageUpdateMask, image: ObjectArg < crate::classes::Texture2D >, width: i32, height: i32, color: Color, inline_align: crate::global::InlineAlignment, region: Rect2, pad: bool, tooltip: CowArg < GString >, size_in_percent: bool,) { + type CallSig < 'a0, 'a1, > = ((), RefArg < 'a0, Variant >, crate::classes::rich_text_label::ImageUpdateMask, ObjectArg < crate::classes::Texture2D >, i32, i32, Color, crate::global::InlineAlignment, Rect2, bool, CowArg < 'a1, GString >, bool); + let args = (key, mask, image, width, height, color, inline_align, region, pad, tooltip, size_in_percent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7178usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "update_image", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::update_image_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn update_image(&mut self, key: &Variant, mask: crate::classes::rich_text_label::ImageUpdateMask, image: impl AsObjectArg < crate::classes::Texture2D >,) { + self.update_image_ex(key, mask, image,) . done() + } + #[inline] + pub fn update_image_ex < 'a > (&'a mut self, key: &'a Variant, mask: crate::classes::rich_text_label::ImageUpdateMask, image: impl AsObjectArg < crate::classes::Texture2D >,) -> ExUpdateImage < 'a > { + ExUpdateImage::new(self, key, mask, image,) + } + pub fn newline(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7179usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "newline", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn remove_paragraph_full(&mut self, paragraph: i32, no_invalidate: bool,) -> bool { + type CallSig = (bool, i32, bool); + let args = (paragraph, no_invalidate,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7180usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "remove_paragraph", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::remove_paragraph_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn remove_paragraph(&mut self, paragraph: i32,) -> bool { + self.remove_paragraph_ex(paragraph,) . done() + } + #[inline] + pub fn remove_paragraph_ex < 'a > (&'a mut self, paragraph: i32,) -> ExRemoveParagraph < 'a > { + ExRemoveParagraph::new(self, paragraph,) + } + pub fn invalidate_paragraph(&mut self, paragraph: i32,) -> bool { + type CallSig = (bool, i32); + let args = (paragraph,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7181usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "invalidate_paragraph", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn push_font_full(&mut self, font: ObjectArg < crate::classes::Font >, font_size: i32,) { + type CallSig = ((), ObjectArg < crate::classes::Font >, i32); + let args = (font, font_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7182usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_font", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::push_font_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn push_font(&mut self, font: impl AsObjectArg < crate::classes::Font >,) { + self.push_font_ex(font,) . done() + } + #[inline] + pub fn push_font_ex < 'a > (&'a mut self, font: impl AsObjectArg < crate::classes::Font >,) -> ExPushFont < 'a > { + ExPushFont::new(self, font,) + } + pub fn push_font_size(&mut self, font_size: i32,) { + type CallSig = ((), i32); + let args = (font_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7183usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_font_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_normal(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7184usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_normal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_bold(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7185usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_bold", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_bold_italics(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7186usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_bold_italics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_italics(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7187usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_italics", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_mono(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7188usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_mono", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7189usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_outline_size(&mut self, outline_size: i32,) { + type CallSig = ((), i32); + let args = (outline_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7190usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_outline_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_outline_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7191usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_outline_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn push_paragraph_full(&mut self, alignment: crate::global::HorizontalAlignment, base_direction: crate::classes::control::TextDirection, language: CowArg < GString >, st_parser: crate::classes::text_server::StructuredTextParser, justification_flags: crate::classes::text_server::JustificationFlag, tab_stops: RefArg < PackedFloat32Array >,) { + type CallSig < 'a0, 'a1, > = ((), crate::global::HorizontalAlignment, crate::classes::control::TextDirection, CowArg < 'a0, GString >, crate::classes::text_server::StructuredTextParser, crate::classes::text_server::JustificationFlag, RefArg < 'a1, PackedFloat32Array >); + let args = (alignment, base_direction, language, st_parser, justification_flags, tab_stops,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7192usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_paragraph", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::push_paragraph_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn push_paragraph(&mut self, alignment: crate::global::HorizontalAlignment,) { + self.push_paragraph_ex(alignment,) . done() + } + #[inline] + pub fn push_paragraph_ex < 'a > (&'a mut self, alignment: crate::global::HorizontalAlignment,) -> ExPushParagraph < 'a > { + ExPushParagraph::new(self, alignment,) + } + pub fn push_indent(&mut self, level: i32,) { + type CallSig = ((), i32); + let args = (level,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7193usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_indent", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn push_list_full(&mut self, level: i32, type_: crate::classes::rich_text_label::ListType, capitalize: bool, bullet: CowArg < GString >,) { + type CallSig < 'a0, > = ((), i32, crate::classes::rich_text_label::ListType, bool, CowArg < 'a0, GString >); + let args = (level, type_, capitalize, bullet,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7194usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_list", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::push_list_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn push_list(&mut self, level: i32, type_: crate::classes::rich_text_label::ListType, capitalize: bool,) { + self.push_list_ex(level, type_, capitalize,) . done() + } + #[inline] + pub fn push_list_ex < 'a > (&'a mut self, level: i32, type_: crate::classes::rich_text_label::ListType, capitalize: bool,) -> ExPushList < 'a > { + ExPushList::new(self, level, type_, capitalize,) + } + pub(crate) fn push_meta_full(&mut self, data: RefArg < Variant >, underline_mode: crate::classes::rich_text_label::MetaUnderline,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >, crate::classes::rich_text_label::MetaUnderline); + let args = (data, underline_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7195usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_meta", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::push_meta_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn push_meta(&mut self, data: &Variant,) { + self.push_meta_ex(data,) . done() + } + #[inline] + pub fn push_meta_ex < 'a > (&'a mut self, data: &'a Variant,) -> ExPushMeta < 'a > { + ExPushMeta::new(self, data,) + } + pub fn push_hint(&mut self, description: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (description.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7196usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_language(&mut self, language: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7197usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_underline(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7198usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_underline", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_strikethrough(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7199usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_strikethrough", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn push_table_full(&mut self, columns: i32, inline_align: crate::global::InlineAlignment, align_to_row: i32,) { + type CallSig = ((), i32, crate::global::InlineAlignment, i32); + let args = (columns, inline_align, align_to_row,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7200usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_table", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::push_table_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn push_table(&mut self, columns: i32,) { + self.push_table_ex(columns,) . done() + } + #[inline] + pub fn push_table_ex < 'a > (&'a mut self, columns: i32,) -> ExPushTable < 'a > { + ExPushTable::new(self, columns,) + } + pub(crate) fn push_dropcap_full(&mut self, string: CowArg < GString >, font: ObjectArg < crate::classes::Font >, size: i32, dropcap_margins: Rect2, color: Color, outline_size: i32, outline_color: Color,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >, ObjectArg < crate::classes::Font >, i32, Rect2, Color, i32, Color); + let args = (string, font, size, dropcap_margins, color, outline_size, outline_color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7201usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_dropcap", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::push_dropcap_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn push_dropcap(&mut self, string: impl AsArg < GString >, font: impl AsObjectArg < crate::classes::Font >, size: i32,) { + self.push_dropcap_ex(string, font, size,) . done() + } + #[inline] + pub fn push_dropcap_ex < 'a > (&'a mut self, string: impl AsArg < GString > + 'a, font: impl AsObjectArg < crate::classes::Font >, size: i32,) -> ExPushDropcap < 'a > { + ExPushDropcap::new(self, string, font, size,) + } + pub(crate) fn set_table_column_expand_full(&mut self, column: i32, expand: bool, ratio: i32,) { + type CallSig = ((), i32, bool, i32); + let args = (column, expand, ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7202usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_table_column_expand", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_table_column_expand_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_table_column_expand(&mut self, column: i32, expand: bool,) { + self.set_table_column_expand_ex(column, expand,) . done() + } + #[inline] + pub fn set_table_column_expand_ex < 'a > (&'a mut self, column: i32, expand: bool,) -> ExSetTableColumnExpand < 'a > { + ExSetTableColumnExpand::new(self, column, expand,) + } + pub fn set_cell_row_background_color(&mut self, odd_row_bg: Color, even_row_bg: Color,) { + type CallSig = ((), Color, Color); + let args = (odd_row_bg, even_row_bg,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7203usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_cell_row_background_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cell_border_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7204usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_cell_border_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cell_size_override(&mut self, min_size: Vector2, max_size: Vector2,) { + type CallSig = ((), Vector2, Vector2); + let args = (min_size, max_size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7205usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_cell_size_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cell_padding(&mut self, padding: Rect2,) { + type CallSig = ((), Rect2); + let args = (padding,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7206usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_cell_padding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_cell(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7207usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_cell", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_fgcolor(&mut self, fgcolor: Color,) { + type CallSig = ((), Color); + let args = (fgcolor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7208usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_fgcolor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_bgcolor(&mut self, bgcolor: Color,) { + type CallSig = ((), Color); + let args = (bgcolor,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7209usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_bgcolor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_customfx(&mut self, effect: impl AsObjectArg < crate::classes::RichTextEffect >, env: &Dictionary,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::RichTextEffect >, RefArg < 'a0, Dictionary >); + let args = (effect.as_object_arg(), RefArg::new(env),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7210usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_customfx", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn push_context(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7211usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "push_context", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pop_context(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7212usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "pop_context", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pop(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7213usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "pop", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn pop_all(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7214usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "pop_all", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7215usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_structured_text_bidi_override(&mut self, parser: crate::classes::text_server::StructuredTextParser,) { + type CallSig = ((), crate::classes::text_server::StructuredTextParser); + let args = (parser,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7216usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_structured_text_bidi_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_structured_text_bidi_override(&self,) -> crate::classes::text_server::StructuredTextParser { + type CallSig = (crate::classes::text_server::StructuredTextParser,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7217usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_structured_text_bidi_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_structured_text_bidi_override_options(&mut self, args: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(args),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7218usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_structured_text_bidi_override_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_structured_text_bidi_override_options(&self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7219usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_structured_text_bidi_override_options", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_text_direction(&mut self, direction: crate::classes::control::TextDirection,) { + type CallSig = ((), crate::classes::control::TextDirection); + let args = (direction,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7220usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text_direction(&self,) -> crate::classes::control::TextDirection { + type CallSig = (crate::classes::control::TextDirection,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7221usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_text_direction", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_language(&mut self, language: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (language.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7222usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_language(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7223usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_language", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_autowrap_mode(&mut self, autowrap_mode: crate::classes::text_server::AutowrapMode,) { + type CallSig = ((), crate::classes::text_server::AutowrapMode); + let args = (autowrap_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7224usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_autowrap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_autowrap_mode(&self,) -> crate::classes::text_server::AutowrapMode { + type CallSig = (crate::classes::text_server::AutowrapMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7225usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_autowrap_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_meta_underline(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7226usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_meta_underline", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_meta_underlined(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7227usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_meta_underlined", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_hint_underline(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7228usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_hint_underline", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_hint_underlined(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7229usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_hint_underlined", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scroll_active(&mut self, active: bool,) { + type CallSig = ((), bool); + let args = (active,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7230usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_scroll_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_scroll_active(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7231usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_scroll_active", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_scroll_follow(&mut self, follow: bool,) { + type CallSig = ((), bool); + let args = (follow,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7232usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_scroll_follow", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_scroll_following(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7233usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_scroll_following", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_v_scroll_bar(&mut self,) -> Option < Gd < crate::classes::VScrollBar > > { + type CallSig = (Option < Gd < crate::classes::VScrollBar > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7234usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_v_scroll_bar", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scroll_to_line(&mut self, line: i32,) { + type CallSig = ((), i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7235usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "scroll_to_line", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scroll_to_paragraph(&mut self, paragraph: i32,) { + type CallSig = ((), i32); + let args = (paragraph,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7236usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "scroll_to_paragraph", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn scroll_to_selection(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7237usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "scroll_to_selection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_tab_size(&mut self, spaces: i32,) { + type CallSig = ((), i32); + let args = (spaces,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7238usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_tab_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_tab_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7239usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_tab_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_fit_content(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7240usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_fit_content", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_fit_content_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7241usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_fit_content_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_selection_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7242usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_selection_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_selection_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7243usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_selection_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_context_menu_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7244usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_context_menu_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_context_menu_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7245usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_context_menu_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_shortcut_keys_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7246usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_shortcut_keys_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_shortcut_keys_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7247usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_shortcut_keys_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_deselect_on_focus_loss_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7248usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_deselect_on_focus_loss_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_deselect_on_focus_loss_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7249usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_deselect_on_focus_loss_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_drag_and_drop_selection_enabled(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7250usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_drag_and_drop_selection_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_drag_and_drop_selection_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7251usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_drag_and_drop_selection_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selection_from(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7252usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_selection_from", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selection_to(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7253usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_selection_to", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn select_all(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7254usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "select_all", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_selected_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7255usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_selected_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn deselect(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7256usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "deselect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn parse_bbcode(&mut self, bbcode: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (bbcode.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7257usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "parse_bbcode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn append_text(&mut self, bbcode: impl AsArg < GString >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, GString >); + let args = (bbcode.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7258usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "append_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_text(&self,) -> GString { + type CallSig = (GString,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7259usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_text", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_ready(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7260usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_ready", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_threaded(&mut self, threaded: bool,) { + type CallSig = ((), bool); + let args = (threaded,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7261usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_threaded", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_threaded(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7262usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_threaded", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_progress_bar_delay(&mut self, delay_ms: i32,) { + type CallSig = ((), i32); + let args = (delay_ms,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7263usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_progress_bar_delay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_progress_bar_delay(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7264usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_progress_bar_delay", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visible_characters(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7265usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_visible_characters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visible_characters(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7266usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_visible_characters", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visible_characters_behavior(&self,) -> crate::classes::text_server::VisibleCharactersBehavior { + type CallSig = (crate::classes::text_server::VisibleCharactersBehavior,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7267usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_visible_characters_behavior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visible_characters_behavior(&mut self, behavior: crate::classes::text_server::VisibleCharactersBehavior,) { + type CallSig = ((), crate::classes::text_server::VisibleCharactersBehavior); + let args = (behavior,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7268usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_visible_characters_behavior", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_visible_ratio(&mut self, ratio: f32,) { + type CallSig = ((), f32); + let args = (ratio,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7269usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_visible_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visible_ratio(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7270usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_visible_ratio", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_character_line(&mut self, character: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (character,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7271usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_character_line", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_character_paragraph(&mut self, character: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (character,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7272usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_character_paragraph", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_total_character_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7273usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_total_character_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_bbcode(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7274usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_use_bbcode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_bbcode(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7275usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_using_bbcode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_line_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7276usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_line_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visible_line_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7277usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_visible_line_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_paragraph_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7278usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_paragraph_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_visible_paragraph_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7279usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_visible_paragraph_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_content_height(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7280usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_content_height", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_content_width(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7281usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_content_width", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_line_offset(&mut self, line: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (line,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7282usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_line_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_paragraph_offset(&mut self, paragraph: i32,) -> f32 { + type CallSig = (f32, i32); + let args = (paragraph,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7283usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_paragraph_offset", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn parse_expressions_for_values(&mut self, expressions: &PackedStringArray,) -> Dictionary { + type CallSig < 'a0, > = (Dictionary, RefArg < 'a0, PackedStringArray >); + let args = (RefArg::new(expressions),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7284usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "parse_expressions_for_values", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_effects(&mut self, effects: &VariantArray,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, VariantArray >); + let args = (RefArg::new(effects),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7285usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "set_effects", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_effects(&mut self,) -> VariantArray { + type CallSig = (VariantArray,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7286usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_effects", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn install_effect(&mut self, effect: &Variant,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Variant >); + let args = (RefArg::new(effect),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7287usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "install_effect", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_menu(&self,) -> Option < Gd < crate::classes::PopupMenu > > { + type CallSig = (Option < Gd < crate::classes::PopupMenu > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7288usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "get_menu", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_menu_visible(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7289usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "is_menu_visible", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn menu_option(&mut self, option: i32,) { + type CallSig = ((), i32); + let args = (option,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7290usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RichTextLabel", "menu_option", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RichTextLabel { + type Base = crate::classes::Control; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RichTextLabel")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RichTextLabel { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Control > for RichTextLabel { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for RichTextLabel { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for RichTextLabel { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RichTextLabel { + + } + impl crate::obj::cap::GodotDefault for RichTextLabel { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RichTextLabel { + type Target = crate::classes::Control; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RichTextLabel { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RichTextLabel`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RichTextLabel { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RichTextLabel > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Control > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`RichTextLabel::add_image_ex`][super::RichTextLabel::add_image_ex]."] +#[must_use] +pub struct ExAddImage < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RichTextLabel, image: ObjectCow < crate::classes::Texture2D >, width: i32, height: i32, color: Color, inline_align: crate::global::InlineAlignment, region: Rect2, key: CowArg < 'a, Variant >, pad: bool, tooltip: CowArg < 'a, GString >, size_in_percent: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddImage < 'a > { + fn new(surround_object: &'a mut re_export::RichTextLabel, image: impl AsObjectArg < crate::classes::Texture2D >,) -> Self { + let width = 0i32; + let height = 0i32; + let color = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let inline_align = crate::obj::EngineEnum::from_ord(5); + let region = Rect2::from_components(0 as _, 0 as _, 0 as _, 0 as _); + let key = Variant::nil(); + let pad = false; + let tooltip = GString::from(""); + let size_in_percent = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, image: image.consume_arg(), width: width, height: height, color: color, inline_align: inline_align, region: region, key: CowArg::Owned(key), pad: pad, tooltip: CowArg::Owned(tooltip), size_in_percent: size_in_percent, + } + } + #[inline] + pub fn width(self, width: i32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn height(self, height: i32) -> Self { + Self { + height: height, .. self + } + } + #[inline] + pub fn color(self, color: Color) -> Self { + Self { + color: color, .. self + } + } + #[inline] + pub fn inline_align(self, inline_align: crate::global::InlineAlignment) -> Self { + Self { + inline_align: inline_align, .. self + } + } + #[inline] + pub fn region(self, region: Rect2) -> Self { + Self { + region: region, .. self + } + } + #[inline] + pub fn key(self, key: &'a Variant) -> Self { + Self { + key: CowArg::Borrowed(key), .. self + } + } + #[inline] + pub fn pad(self, pad: bool) -> Self { + Self { + pad: pad, .. self + } + } + #[inline] + pub fn tooltip(self, tooltip: impl AsArg < GString > + 'a) -> Self { + Self { + tooltip: tooltip.into_arg(), .. self + } + } + #[inline] + pub fn size_in_percent(self, size_in_percent: bool) -> Self { + Self { + size_in_percent: size_in_percent, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, image, width, height, color, inline_align, region, key, pad, tooltip, size_in_percent, + } + = self; + re_export::RichTextLabel::add_image_full(surround_object, image.cow_as_object_arg(), width, height, color, inline_align, region, key.cow_as_arg(), pad, tooltip, size_in_percent,) + } +} +#[doc = "Default-param extender for [`RichTextLabel::update_image_ex`][super::RichTextLabel::update_image_ex]."] +#[must_use] +pub struct ExUpdateImage < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RichTextLabel, key: CowArg < 'a, Variant >, mask: crate::classes::rich_text_label::ImageUpdateMask, image: ObjectCow < crate::classes::Texture2D >, width: i32, height: i32, color: Color, inline_align: crate::global::InlineAlignment, region: Rect2, pad: bool, tooltip: CowArg < 'a, GString >, size_in_percent: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExUpdateImage < 'a > { + fn new(surround_object: &'a mut re_export::RichTextLabel, key: &'a Variant, mask: crate::classes::rich_text_label::ImageUpdateMask, image: impl AsObjectArg < crate::classes::Texture2D >,) -> Self { + let width = 0i32; + let height = 0i32; + let color = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let inline_align = crate::obj::EngineEnum::from_ord(5); + let region = Rect2::from_components(0 as _, 0 as _, 0 as _, 0 as _); + let pad = false; + let tooltip = GString::from(""); + let size_in_percent = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, key: CowArg::Borrowed(key), mask: mask, image: image.consume_arg(), width: width, height: height, color: color, inline_align: inline_align, region: region, pad: pad, tooltip: CowArg::Owned(tooltip), size_in_percent: size_in_percent, + } + } + #[inline] + pub fn width(self, width: i32) -> Self { + Self { + width: width, .. self + } + } + #[inline] + pub fn height(self, height: i32) -> Self { + Self { + height: height, .. self + } + } + #[inline] + pub fn color(self, color: Color) -> Self { + Self { + color: color, .. self + } + } + #[inline] + pub fn inline_align(self, inline_align: crate::global::InlineAlignment) -> Self { + Self { + inline_align: inline_align, .. self + } + } + #[inline] + pub fn region(self, region: Rect2) -> Self { + Self { + region: region, .. self + } + } + #[inline] + pub fn pad(self, pad: bool) -> Self { + Self { + pad: pad, .. self + } + } + #[inline] + pub fn tooltip(self, tooltip: impl AsArg < GString > + 'a) -> Self { + Self { + tooltip: tooltip.into_arg(), .. self + } + } + #[inline] + pub fn size_in_percent(self, size_in_percent: bool) -> Self { + Self { + size_in_percent: size_in_percent, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, key, mask, image, width, height, color, inline_align, region, pad, tooltip, size_in_percent, + } + = self; + re_export::RichTextLabel::update_image_full(surround_object, key.cow_as_arg(), mask, image.cow_as_object_arg(), width, height, color, inline_align, region, pad, tooltip, size_in_percent,) + } +} +#[doc = "Default-param extender for [`RichTextLabel::remove_paragraph_ex`][super::RichTextLabel::remove_paragraph_ex]."] +#[must_use] +pub struct ExRemoveParagraph < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RichTextLabel, paragraph: i32, no_invalidate: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExRemoveParagraph < 'a > { + fn new(surround_object: &'a mut re_export::RichTextLabel, paragraph: i32,) -> Self { + let no_invalidate = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, paragraph: paragraph, no_invalidate: no_invalidate, + } + } + #[inline] + pub fn no_invalidate(self, no_invalidate: bool) -> Self { + Self { + no_invalidate: no_invalidate, .. self + } + } + #[inline] + pub fn done(self) -> bool { + let Self { + _phantom, surround_object, paragraph, no_invalidate, + } + = self; + re_export::RichTextLabel::remove_paragraph_full(surround_object, paragraph, no_invalidate,) + } +} +#[doc = "Default-param extender for [`RichTextLabel::push_font_ex`][super::RichTextLabel::push_font_ex]."] +#[must_use] +pub struct ExPushFont < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RichTextLabel, font: ObjectCow < crate::classes::Font >, font_size: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPushFont < 'a > { + fn new(surround_object: &'a mut re_export::RichTextLabel, font: impl AsObjectArg < crate::classes::Font >,) -> Self { + let font_size = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, font: font.consume_arg(), font_size: font_size, + } + } + #[inline] + pub fn font_size(self, font_size: i32) -> Self { + Self { + font_size: font_size, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, font, font_size, + } + = self; + re_export::RichTextLabel::push_font_full(surround_object, font.cow_as_object_arg(), font_size,) + } +} +#[doc = "Default-param extender for [`RichTextLabel::push_paragraph_ex`][super::RichTextLabel::push_paragraph_ex]."] +#[must_use] +pub struct ExPushParagraph < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RichTextLabel, alignment: crate::global::HorizontalAlignment, base_direction: crate::classes::control::TextDirection, language: CowArg < 'a, GString >, st_parser: crate::classes::text_server::StructuredTextParser, justification_flags: crate::classes::text_server::JustificationFlag, tab_stops: CowArg < 'a, PackedFloat32Array >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPushParagraph < 'a > { + fn new(surround_object: &'a mut re_export::RichTextLabel, alignment: crate::global::HorizontalAlignment,) -> Self { + let base_direction = crate::obj::EngineEnum::from_ord(0); + let language = GString::from(""); + let st_parser = crate::obj::EngineEnum::from_ord(0); + let justification_flags = crate::obj::EngineBitfield::from_ord(163); + let tab_stops = PackedFloat32Array::new(); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, alignment: alignment, base_direction: base_direction, language: CowArg::Owned(language), st_parser: st_parser, justification_flags: justification_flags, tab_stops: CowArg::Owned(tab_stops), + } + } + #[inline] + pub fn base_direction(self, base_direction: crate::classes::control::TextDirection) -> Self { + Self { + base_direction: base_direction, .. self + } + } + #[inline] + pub fn language(self, language: impl AsArg < GString > + 'a) -> Self { + Self { + language: language.into_arg(), .. self + } + } + #[inline] + pub fn st_parser(self, st_parser: crate::classes::text_server::StructuredTextParser) -> Self { + Self { + st_parser: st_parser, .. self + } + } + #[inline] + pub fn justification_flags(self, justification_flags: crate::classes::text_server::JustificationFlag) -> Self { + Self { + justification_flags: justification_flags, .. self + } + } + #[inline] + pub fn tab_stops(self, tab_stops: &'a PackedFloat32Array) -> Self { + Self { + tab_stops: CowArg::Borrowed(tab_stops), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, alignment, base_direction, language, st_parser, justification_flags, tab_stops, + } + = self; + re_export::RichTextLabel::push_paragraph_full(surround_object, alignment, base_direction, language, st_parser, justification_flags, tab_stops.cow_as_arg(),) + } +} +#[doc = "Default-param extender for [`RichTextLabel::push_list_ex`][super::RichTextLabel::push_list_ex]."] +#[must_use] +pub struct ExPushList < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RichTextLabel, level: i32, type_: crate::classes::rich_text_label::ListType, capitalize: bool, bullet: CowArg < 'a, GString >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPushList < 'a > { + fn new(surround_object: &'a mut re_export::RichTextLabel, level: i32, type_: crate::classes::rich_text_label::ListType, capitalize: bool,) -> Self { + let bullet = GString::from("•"); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, level: level, type_: type_, capitalize: capitalize, bullet: CowArg::Owned(bullet), + } + } + #[inline] + pub fn bullet(self, bullet: impl AsArg < GString > + 'a) -> Self { + Self { + bullet: bullet.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, level, type_, capitalize, bullet, + } + = self; + re_export::RichTextLabel::push_list_full(surround_object, level, type_, capitalize, bullet,) + } +} +#[doc = "Default-param extender for [`RichTextLabel::push_meta_ex`][super::RichTextLabel::push_meta_ex]."] +#[must_use] +pub struct ExPushMeta < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RichTextLabel, data: CowArg < 'a, Variant >, underline_mode: crate::classes::rich_text_label::MetaUnderline, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPushMeta < 'a > { + fn new(surround_object: &'a mut re_export::RichTextLabel, data: &'a Variant,) -> Self { + let underline_mode = crate::obj::EngineEnum::from_ord(1); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, data: CowArg::Borrowed(data), underline_mode: underline_mode, + } + } + #[inline] + pub fn underline_mode(self, underline_mode: crate::classes::rich_text_label::MetaUnderline) -> Self { + Self { + underline_mode: underline_mode, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, data, underline_mode, + } + = self; + re_export::RichTextLabel::push_meta_full(surround_object, data.cow_as_arg(), underline_mode,) + } +} +#[doc = "Default-param extender for [`RichTextLabel::push_table_ex`][super::RichTextLabel::push_table_ex]."] +#[must_use] +pub struct ExPushTable < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RichTextLabel, columns: i32, inline_align: crate::global::InlineAlignment, align_to_row: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPushTable < 'a > { + fn new(surround_object: &'a mut re_export::RichTextLabel, columns: i32,) -> Self { + let inline_align = crate::obj::EngineEnum::from_ord(0); + let align_to_row = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, columns: columns, inline_align: inline_align, align_to_row: align_to_row, + } + } + #[inline] + pub fn inline_align(self, inline_align: crate::global::InlineAlignment) -> Self { + Self { + inline_align: inline_align, .. self + } + } + #[inline] + pub fn align_to_row(self, align_to_row: i32) -> Self { + Self { + align_to_row: align_to_row, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, columns, inline_align, align_to_row, + } + = self; + re_export::RichTextLabel::push_table_full(surround_object, columns, inline_align, align_to_row,) + } +} +#[doc = "Default-param extender for [`RichTextLabel::push_dropcap_ex`][super::RichTextLabel::push_dropcap_ex]."] +#[must_use] +pub struct ExPushDropcap < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RichTextLabel, string: CowArg < 'a, GString >, font: ObjectCow < crate::classes::Font >, size: i32, dropcap_margins: Rect2, color: Color, outline_size: i32, outline_color: Color, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExPushDropcap < 'a > { + fn new(surround_object: &'a mut re_export::RichTextLabel, string: impl AsArg < GString > + 'a, font: impl AsObjectArg < crate::classes::Font >, size: i32,) -> Self { + let dropcap_margins = Rect2::from_components(0 as _, 0 as _, 0 as _, 0 as _); + let color = Color::from_rgba(1 as _, 1 as _, 1 as _, 1 as _); + let outline_size = 0i32; + let outline_color = Color::from_rgba(0 as _, 0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, string: string.into_arg(), font: font.consume_arg(), size: size, dropcap_margins: dropcap_margins, color: color, outline_size: outline_size, outline_color: outline_color, + } + } + #[inline] + pub fn dropcap_margins(self, dropcap_margins: Rect2) -> Self { + Self { + dropcap_margins: dropcap_margins, .. self + } + } + #[inline] + pub fn color(self, color: Color) -> Self { + Self { + color: color, .. self + } + } + #[inline] + pub fn outline_size(self, outline_size: i32) -> Self { + Self { + outline_size: outline_size, .. self + } + } + #[inline] + pub fn outline_color(self, outline_color: Color) -> Self { + Self { + outline_color: outline_color, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, string, font, size, dropcap_margins, color, outline_size, outline_color, + } + = self; + re_export::RichTextLabel::push_dropcap_full(surround_object, string, font.cow_as_object_arg(), size, dropcap_margins, color, outline_size, outline_color,) + } +} +#[doc = "Default-param extender for [`RichTextLabel::set_table_column_expand_ex`][super::RichTextLabel::set_table_column_expand_ex]."] +#[must_use] +pub struct ExSetTableColumnExpand < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RichTextLabel, column: i32, expand: bool, ratio: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetTableColumnExpand < 'a > { + fn new(surround_object: &'a mut re_export::RichTextLabel, column: i32, expand: bool,) -> Self { + let ratio = 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, column: column, expand: expand, ratio: ratio, + } + } + #[inline] + pub fn ratio(self, ratio: i32) -> Self { + Self { + ratio: ratio, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, column, expand, ratio, + } + = self; + re_export::RichTextLabel::set_table_column_expand_full(surround_object, column, expand, ratio,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ListType { + ord: i32 +} +impl ListType { + #[doc(alias = "LIST_NUMBERS")] + #[doc = "Godot enumerator name: `LIST_NUMBERS`"] + pub const NUMBERS: ListType = ListType { + ord: 0i32 + }; + #[doc(alias = "LIST_LETTERS")] + #[doc = "Godot enumerator name: `LIST_LETTERS`"] + pub const LETTERS: ListType = ListType { + ord: 1i32 + }; + #[doc(alias = "LIST_ROMAN")] + #[doc = "Godot enumerator name: `LIST_ROMAN`"] + pub const ROMAN: ListType = ListType { + ord: 2i32 + }; + #[doc(alias = "LIST_DOTS")] + #[doc = "Godot enumerator name: `LIST_DOTS`"] + pub const DOTS: ListType = ListType { + ord: 3i32 + }; + +} +impl std::fmt::Debug for ListType { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ListType") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ListType { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NUMBERS => "NUMBERS", Self::LETTERS => "LETTERS", Self::ROMAN => "ROMAN", Self::DOTS => "DOTS", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NUMBERS => "LIST_NUMBERS", Self::LETTERS => "LIST_LETTERS", Self::ROMAN => "LIST_ROMAN", Self::DOTS => "LIST_DOTS", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ListType { + type Via = i32; + +} +impl crate::meta::ToGodot for ListType { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ListType { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MenuItems { + ord: i32 +} +impl MenuItems { + #[doc(alias = "MENU_COPY")] + #[doc = "Godot enumerator name: `MENU_COPY`"] + pub const COPY: MenuItems = MenuItems { + ord: 0i32 + }; + #[doc(alias = "MENU_SELECT_ALL")] + #[doc = "Godot enumerator name: `MENU_SELECT_ALL`"] + pub const SELECT_ALL: MenuItems = MenuItems { + ord: 1i32 + }; + #[doc(alias = "MENU_MAX")] + #[doc = "Godot enumerator name: `MENU_MAX`"] + pub const MAX: MenuItems = MenuItems { + ord: 2i32 + }; + +} +impl std::fmt::Debug for MenuItems { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MenuItems") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MenuItems { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COPY => "COPY", Self::SELECT_ALL => "SELECT_ALL", Self::MAX => "MAX", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COPY => "MENU_COPY", Self::SELECT_ALL => "MENU_SELECT_ALL", Self::MAX => "MENU_MAX", _ => self.as_str(), + } + } +} +impl crate::obj::IndexEnum for MenuItems { + const ENUMERATOR_COUNT: usize = 2usize; + +} +impl crate::meta::GodotConvert for MenuItems { + type Via = i32; + +} +impl crate::meta::ToGodot for MenuItems { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MenuItems { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct MetaUnderline { + ord: i32 +} +impl MetaUnderline { + #[doc(alias = "META_UNDERLINE_NEVER")] + #[doc = "Godot enumerator name: `META_UNDERLINE_NEVER`"] + pub const NEVER: MetaUnderline = MetaUnderline { + ord: 0i32 + }; + #[doc(alias = "META_UNDERLINE_ALWAYS")] + #[doc = "Godot enumerator name: `META_UNDERLINE_ALWAYS`"] + pub const ALWAYS: MetaUnderline = MetaUnderline { + ord: 1i32 + }; + #[doc(alias = "META_UNDERLINE_ON_HOVER")] + #[doc = "Godot enumerator name: `META_UNDERLINE_ON_HOVER`"] + pub const ON_HOVER: MetaUnderline = MetaUnderline { + ord: 2i32 + }; + +} +impl std::fmt::Debug for MetaUnderline { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("MetaUnderline") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for MetaUnderline { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEVER => "NEVER", Self::ALWAYS => "ALWAYS", Self::ON_HOVER => "ON_HOVER", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEVER => "META_UNDERLINE_NEVER", Self::ALWAYS => "META_UNDERLINE_ALWAYS", Self::ON_HOVER => "META_UNDERLINE_ON_HOVER", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for MetaUnderline { + type Via = i32; + +} +impl crate::meta::ToGodot for MetaUnderline { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for MetaUnderline { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash, Default)] +pub struct ImageUpdateMask { + ord: u64 +} +impl ImageUpdateMask { + #[doc(alias = "UPDATE_TEXTURE")] + #[doc = "Godot enumerator name: `UPDATE_TEXTURE`"] + pub const TEXTURE: ImageUpdateMask = ImageUpdateMask { + ord: 1u64 + }; + #[doc(alias = "UPDATE_SIZE")] + #[doc = "Godot enumerator name: `UPDATE_SIZE`"] + pub const SIZE: ImageUpdateMask = ImageUpdateMask { + ord: 2u64 + }; + #[doc(alias = "UPDATE_COLOR")] + #[doc = "Godot enumerator name: `UPDATE_COLOR`"] + pub const COLOR: ImageUpdateMask = ImageUpdateMask { + ord: 4u64 + }; + #[doc(alias = "UPDATE_ALIGNMENT")] + #[doc = "Godot enumerator name: `UPDATE_ALIGNMENT`"] + pub const ALIGNMENT: ImageUpdateMask = ImageUpdateMask { + ord: 8u64 + }; + #[doc(alias = "UPDATE_REGION")] + #[doc = "Godot enumerator name: `UPDATE_REGION`"] + pub const REGION: ImageUpdateMask = ImageUpdateMask { + ord: 16u64 + }; + #[doc(alias = "UPDATE_PAD")] + #[doc = "Godot enumerator name: `UPDATE_PAD`"] + pub const PAD: ImageUpdateMask = ImageUpdateMask { + ord: 32u64 + }; + #[doc(alias = "UPDATE_TOOLTIP")] + #[doc = "Godot enumerator name: `UPDATE_TOOLTIP`"] + pub const TOOLTIP: ImageUpdateMask = ImageUpdateMask { + ord: 64u64 + }; + #[doc(alias = "UPDATE_WIDTH_IN_PERCENT")] + #[doc = "Godot enumerator name: `UPDATE_WIDTH_IN_PERCENT`"] + pub const WIDTH_IN_PERCENT: ImageUpdateMask = ImageUpdateMask { + ord: 128u64 + }; + +} +impl std::fmt::Debug for ImageUpdateMask { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + #[allow(unreachable_patterns)] + let enumerator = match * self { + Self::TEXTURE => "TEXTURE", Self::SIZE => "SIZE", Self::COLOR => "COLOR", Self::ALIGNMENT => "ALIGNMENT", Self::REGION => "REGION", Self::PAD => "PAD", Self::TOOLTIP => "TOOLTIP", Self::WIDTH_IN_PERCENT => "WIDTH_IN_PERCENT", _ => { + f.debug_struct("ImageUpdateMask") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + }; + f.write_str(enumerator) + } +} +impl crate::obj::EngineBitfield for ImageUpdateMask { + fn try_from_ord(ord: u64) -> Option < Self > { + Some(Self { + ord + }) + } + fn ord(self) -> u64 { + self.ord + } +} +impl std::ops::BitOr for ImageUpdateMask { + type Output = Self; + #[inline] + fn bitor(self, rhs: Self) -> Self::Output { + Self { + ord: self.ord | rhs.ord + } + } +} +impl crate::meta::GodotConvert for ImageUpdateMask { + type Via = u64; + +} +impl crate::meta::ToGodot for ImageUpdateMask { + type ToVia < 'v > = u64; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineBitfield > ::ord(* self) + } +} +impl crate::meta::FromGodot for ImageUpdateMask { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineBitfield > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rigid_body_2d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rigid_body_2d.rs new file mode 100644 index 0000000..94cf4de --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rigid_body_2d.rs @@ -0,0 +1,1166 @@ +#![doc = "Sidecar module for class [`RigidBody2D`][crate::classes::RigidBody2D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RigidBody2D` enums](https://docs.godotengine.org/en/stable/classes/class_rigidbody2d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RigidBody2D.`\n\nInherits [`PhysicsBody2D`][crate::classes::PhysicsBody2D].\n\nRelated symbols:\n\n* [`rigid_body_2d`][crate::classes::rigid_body_2d]: sidecar module with related enum/flag types\n* [`IRigidBody2D`][crate::classes::IRigidBody2D]: virtual methods\n\n\nSee also [Godot docs for `RigidBody2D`](https://docs.godotengine.org/en/stable/classes/class_rigidbody2d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RigidBody2D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RigidBody2D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RigidBody2D`][crate::classes::RigidBody2D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RigidBody2D` methods](https://docs.godotengine.org/en/stable/classes/class_rigidbody2d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRigidBody2D: crate::obj::GodotClass < Base = RigidBody2D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: CanvasItemNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn integrate_forces(&mut self, state: Option < Gd < crate::classes::PhysicsDirectBodyState2D > >,) { + unimplemented !() + } + fn input_event(&mut self, viewport: Gd < crate::classes::Viewport >, event: Gd < crate::classes::InputEvent >, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn mouse_shape_enter(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn mouse_shape_exit(&mut self, shape_idx: i32,) { + unimplemented !() + } + fn draw(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl RigidBody2D { + pub fn set_mass(&mut self, mass: f32,) { + type CallSig = ((), f32); + let args = (mass,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7291usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mass(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7292usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inertia(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7293usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_inertia", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_inertia(&mut self, inertia: f32,) { + type CallSig = ((), f32); + let args = (inertia,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7294usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_inertia", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_center_of_mass_mode(&mut self, mode: crate::classes::rigid_body_2d::CenterOfMassMode,) { + type CallSig = ((), crate::classes::rigid_body_2d::CenterOfMassMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7295usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_center_of_mass_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_of_mass_mode(&self,) -> crate::classes::rigid_body_2d::CenterOfMassMode { + type CallSig = (crate::classes::rigid_body_2d::CenterOfMassMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7296usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_center_of_mass_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_center_of_mass(&mut self, center_of_mass: Vector2,) { + type CallSig = ((), Vector2); + let args = (center_of_mass,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7297usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_center_of_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_of_mass(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7298usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_center_of_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_physics_material_override(&mut self, physics_material_override: impl AsObjectArg < crate::classes::PhysicsMaterial >,) { + type CallSig = ((), ObjectArg < crate::classes::PhysicsMaterial >); + let args = (physics_material_override.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7299usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_physics_material_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physics_material_override(&self,) -> Option < Gd < crate::classes::PhysicsMaterial > > { + type CallSig = (Option < Gd < crate::classes::PhysicsMaterial > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7300usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_physics_material_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity_scale(&mut self, gravity_scale: f32,) { + type CallSig = ((), f32); + let args = (gravity_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7301usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_gravity_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7302usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_gravity_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_damp_mode(&mut self, linear_damp_mode: crate::classes::rigid_body_2d::DampMode,) { + type CallSig = ((), crate::classes::rigid_body_2d::DampMode); + let args = (linear_damp_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7303usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_linear_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_damp_mode(&self,) -> crate::classes::rigid_body_2d::DampMode { + type CallSig = (crate::classes::rigid_body_2d::DampMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7304usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_linear_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_damp_mode(&mut self, angular_damp_mode: crate::classes::rigid_body_2d::DampMode,) { + type CallSig = ((), crate::classes::rigid_body_2d::DampMode); + let args = (angular_damp_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7305usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_angular_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_damp_mode(&self,) -> crate::classes::rigid_body_2d::DampMode { + type CallSig = (crate::classes::rigid_body_2d::DampMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7306usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_angular_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_damp(&mut self, linear_damp: f32,) { + type CallSig = ((), f32); + let args = (linear_damp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7307usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7308usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_damp(&mut self, angular_damp: f32,) { + type CallSig = ((), f32); + let args = (angular_damp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7309usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7310usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_velocity(&mut self, linear_velocity: Vector2,) { + type CallSig = ((), Vector2); + let args = (linear_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7311usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_velocity(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7312usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_velocity(&mut self, angular_velocity: f32,) { + type CallSig = ((), f32); + let args = (angular_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7313usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_velocity(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7314usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_contacts_reported(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7315usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_max_contacts_reported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_contacts_reported(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7316usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_max_contacts_reported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7317usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_contact_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_custom_integrator(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7318usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_use_custom_integrator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_custom_integrator(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7319usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "is_using_custom_integrator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_contact_monitor(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7320usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_contact_monitor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_contact_monitor_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7321usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "is_contact_monitor_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_continuous_collision_detection_mode(&mut self, mode: crate::classes::rigid_body_2d::CcdMode,) { + type CallSig = ((), crate::classes::rigid_body_2d::CcdMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7322usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_continuous_collision_detection_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_continuous_collision_detection_mode(&self,) -> crate::classes::rigid_body_2d::CcdMode { + type CallSig = (crate::classes::rigid_body_2d::CcdMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7323usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_continuous_collision_detection_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_axis_velocity(&mut self, axis_velocity: Vector2,) { + type CallSig = ((), Vector2); + let args = (axis_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7324usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_axis_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn apply_central_impulse_full(&mut self, impulse: Vector2,) { + type CallSig = ((), Vector2); + let args = (impulse,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7325usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "apply_central_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_central_impulse_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_central_impulse(&mut self,) { + self.apply_central_impulse_ex() . done() + } + #[inline] + pub fn apply_central_impulse_ex < 'a > (&'a mut self,) -> ExApplyCentralImpulse < 'a > { + ExApplyCentralImpulse::new(self,) + } + pub(crate) fn apply_impulse_full(&mut self, impulse: Vector2, position: Vector2,) { + type CallSig = ((), Vector2, Vector2); + let args = (impulse, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7326usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "apply_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_impulse_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_impulse(&mut self, impulse: Vector2,) { + self.apply_impulse_ex(impulse,) . done() + } + #[inline] + pub fn apply_impulse_ex < 'a > (&'a mut self, impulse: Vector2,) -> ExApplyImpulse < 'a > { + ExApplyImpulse::new(self, impulse,) + } + pub fn apply_torque_impulse(&mut self, torque: f32,) { + type CallSig = ((), f32); + let args = (torque,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7327usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "apply_torque_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn apply_central_force(&mut self, force: Vector2,) { + type CallSig = ((), Vector2); + let args = (force,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7328usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "apply_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn apply_force_full(&mut self, force: Vector2, position: Vector2,) { + type CallSig = ((), Vector2, Vector2); + let args = (force, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7329usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "apply_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_force(&mut self, force: Vector2,) { + self.apply_force_ex(force,) . done() + } + #[inline] + pub fn apply_force_ex < 'a > (&'a mut self, force: Vector2,) -> ExApplyForce < 'a > { + ExApplyForce::new(self, force,) + } + pub fn apply_torque(&mut self, torque: f32,) { + type CallSig = ((), f32); + let args = (torque,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7330usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "apply_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_constant_central_force(&mut self, force: Vector2,) { + type CallSig = ((), Vector2); + let args = (force,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7331usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "add_constant_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_constant_force_full(&mut self, force: Vector2, position: Vector2,) { + type CallSig = ((), Vector2, Vector2); + let args = (force, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7332usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "add_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_constant_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_constant_force(&mut self, force: Vector2,) { + self.add_constant_force_ex(force,) . done() + } + #[inline] + pub fn add_constant_force_ex < 'a > (&'a mut self, force: Vector2,) -> ExAddConstantForce < 'a > { + ExAddConstantForce::new(self, force,) + } + pub fn add_constant_torque(&mut self, torque: f32,) { + type CallSig = ((), f32); + let args = (torque,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7333usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "add_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_constant_force(&mut self, force: Vector2,) { + type CallSig = ((), Vector2); + let args = (force,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7334usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_constant_force(&self,) -> Vector2 { + type CallSig = (Vector2,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7335usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_constant_torque(&mut self, torque: f32,) { + type CallSig = ((), f32); + let args = (torque,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7336usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_constant_torque(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7337usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sleeping(&mut self, sleeping: bool,) { + type CallSig = ((), bool); + let args = (sleeping,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7338usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_sleeping", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_sleeping(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7339usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "is_sleeping", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_can_sleep(&mut self, able_to_sleep: bool,) { + type CallSig = ((), bool); + let args = (able_to_sleep,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7340usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_can_sleep", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_able_to_sleep(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7341usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "is_able_to_sleep", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lock_rotation_enabled(&mut self, lock_rotation: bool,) { + type CallSig = ((), bool); + let args = (lock_rotation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7342usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_lock_rotation_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_lock_rotation_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7343usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "is_lock_rotation_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_freeze_enabled(&mut self, freeze_mode: bool,) { + type CallSig = ((), bool); + let args = (freeze_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7344usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_freeze_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_freeze_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7345usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "is_freeze_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_freeze_mode(&mut self, freeze_mode: crate::classes::rigid_body_2d::FreezeMode,) { + type CallSig = ((), crate::classes::rigid_body_2d::FreezeMode); + let args = (freeze_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7346usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "set_freeze_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_freeze_mode(&self,) -> crate::classes::rigid_body_2d::FreezeMode { + type CallSig = (crate::classes::rigid_body_2d::FreezeMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7347usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_freeze_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_colliding_bodies(&self,) -> Array < Gd < crate::classes::Node2D > > { + type CallSig = (Array < Gd < crate::classes::Node2D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7348usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody2D", "get_colliding_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RigidBody2D { + type Base = crate::classes::PhysicsBody2D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RigidBody2D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RigidBody2D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsBody2D > for RigidBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject2D > for RigidBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node2D > for RigidBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CanvasItem > for RigidBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for RigidBody2D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RigidBody2D { + + } + impl crate::obj::cap::GodotDefault for RigidBody2D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RigidBody2D { + type Target = crate::classes::PhysicsBody2D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RigidBody2D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RigidBody2D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RigidBody2D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RigidBody2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsBody2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node2D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CanvasItem > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`RigidBody2D::apply_central_impulse_ex`][super::RigidBody2D::apply_central_impulse_ex]."] +#[must_use] +pub struct ExApplyCentralImpulse < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RigidBody2D, impulse: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyCentralImpulse < 'a > { + fn new(surround_object: &'a mut re_export::RigidBody2D,) -> Self { + let impulse = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, impulse: impulse, + } + } + #[inline] + pub fn impulse(self, impulse: Vector2) -> Self { + Self { + impulse: impulse, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, impulse, + } + = self; + re_export::RigidBody2D::apply_central_impulse_full(surround_object, impulse,) + } +} +#[doc = "Default-param extender for [`RigidBody2D::apply_impulse_ex`][super::RigidBody2D::apply_impulse_ex]."] +#[must_use] +pub struct ExApplyImpulse < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RigidBody2D, impulse: Vector2, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyImpulse < 'a > { + fn new(surround_object: &'a mut re_export::RigidBody2D, impulse: Vector2,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, impulse: impulse, position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, impulse, position, + } + = self; + re_export::RigidBody2D::apply_impulse_full(surround_object, impulse, position,) + } +} +#[doc = "Default-param extender for [`RigidBody2D::apply_force_ex`][super::RigidBody2D::apply_force_ex]."] +#[must_use] +pub struct ExApplyForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RigidBody2D, force: Vector2, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyForce < 'a > { + fn new(surround_object: &'a mut re_export::RigidBody2D, force: Vector2,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, position, + } + = self; + re_export::RigidBody2D::apply_force_full(surround_object, force, position,) + } +} +#[doc = "Default-param extender for [`RigidBody2D::add_constant_force_ex`][super::RigidBody2D::add_constant_force_ex]."] +#[must_use] +pub struct ExAddConstantForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RigidBody2D, force: Vector2, position: Vector2, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddConstantForce < 'a > { + fn new(surround_object: &'a mut re_export::RigidBody2D, force: Vector2,) -> Self { + let position = Vector2::new(0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector2) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, position, + } + = self; + re_export::RigidBody2D::add_constant_force_full(surround_object, force, position,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FreezeMode { + ord: i32 +} +impl FreezeMode { + #[doc(alias = "FREEZE_MODE_STATIC")] + #[doc = "Godot enumerator name: `FREEZE_MODE_STATIC`"] + pub const STATIC: FreezeMode = FreezeMode { + ord: 0i32 + }; + #[doc(alias = "FREEZE_MODE_KINEMATIC")] + #[doc = "Godot enumerator name: `FREEZE_MODE_KINEMATIC`"] + pub const KINEMATIC: FreezeMode = FreezeMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for FreezeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FreezeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FreezeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STATIC => "STATIC", Self::KINEMATIC => "KINEMATIC", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STATIC => "FREEZE_MODE_STATIC", Self::KINEMATIC => "FREEZE_MODE_KINEMATIC", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FreezeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for FreezeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FreezeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CenterOfMassMode { + ord: i32 +} +impl CenterOfMassMode { + #[doc(alias = "CENTER_OF_MASS_MODE_AUTO")] + #[doc = "Godot enumerator name: `CENTER_OF_MASS_MODE_AUTO`"] + pub const AUTO: CenterOfMassMode = CenterOfMassMode { + ord: 0i32 + }; + #[doc(alias = "CENTER_OF_MASS_MODE_CUSTOM")] + #[doc = "Godot enumerator name: `CENTER_OF_MASS_MODE_CUSTOM`"] + pub const CUSTOM: CenterOfMassMode = CenterOfMassMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for CenterOfMassMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CenterOfMassMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CenterOfMassMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::AUTO => "AUTO", Self::CUSTOM => "CUSTOM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::AUTO => "CENTER_OF_MASS_MODE_AUTO", Self::CUSTOM => "CENTER_OF_MASS_MODE_CUSTOM", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CenterOfMassMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CenterOfMassMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CenterOfMassMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DampMode { + ord: i32 +} +impl DampMode { + #[doc(alias = "DAMP_MODE_COMBINE")] + #[doc = "Godot enumerator name: `DAMP_MODE_COMBINE`"] + pub const COMBINE: DampMode = DampMode { + ord: 0i32 + }; + #[doc(alias = "DAMP_MODE_REPLACE")] + #[doc = "Godot enumerator name: `DAMP_MODE_REPLACE`"] + pub const REPLACE: DampMode = DampMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for DampMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DampMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DampMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMBINE => "COMBINE", Self::REPLACE => "REPLACE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMBINE => "DAMP_MODE_COMBINE", Self::REPLACE => "DAMP_MODE_REPLACE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DampMode { + type Via = i32; + +} +impl crate::meta::ToGodot for DampMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DampMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +#[doc = "Godot enum name: `CCDMode`."] +pub struct CcdMode { + ord: i32 +} +impl CcdMode { + #[doc(alias = "CCD_MODE_DISABLED")] + #[doc = "Godot enumerator name: `CCD_MODE_DISABLED`"] + pub const DISABLED: CcdMode = CcdMode { + ord: 0i32 + }; + #[doc(alias = "CCD_MODE_CAST_RAY")] + #[doc = "Godot enumerator name: `CCD_MODE_CAST_RAY`"] + pub const CAST_RAY: CcdMode = CcdMode { + ord: 1i32 + }; + #[doc(alias = "CCD_MODE_CAST_SHAPE")] + #[doc = "Godot enumerator name: `CCD_MODE_CAST_SHAPE`"] + pub const CAST_SHAPE: CcdMode = CcdMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for CcdMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CcdMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CcdMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::CAST_RAY => "CAST_RAY", Self::CAST_SHAPE => "CAST_SHAPE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "CCD_MODE_DISABLED", Self::CAST_RAY => "CCD_MODE_CAST_RAY", Self::CAST_SHAPE => "CCD_MODE_CAST_SHAPE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CcdMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CcdMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CcdMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rigid_body_3d.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rigid_body_3d.rs new file mode 100644 index 0000000..ee2f648 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/rigid_body_3d.rs @@ -0,0 +1,1046 @@ +#![doc = "Sidecar module for class [`RigidBody3D`][crate::classes::RigidBody3D].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RigidBody3D` enums](https://docs.godotengine.org/en/stable/classes/class_rigidbody3d.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RigidBody3D.`\n\nInherits [`PhysicsBody3D`][crate::classes::PhysicsBody3D].\n\nRelated symbols:\n\n* [`rigid_body_3d`][crate::classes::rigid_body_3d]: sidecar module with related enum/flag types\n* [`IRigidBody3D`][crate::classes::IRigidBody3D]: virtual methods\n\n\nSee also [Godot docs for `RigidBody3D`](https://docs.godotengine.org/en/stable/classes/class_rigidbody3d.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RigidBody3D::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RigidBody3D { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RigidBody3D`][crate::classes::RigidBody3D].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RigidBody3D` methods](https://docs.godotengine.org/en/stable/classes/class_rigidbody3d.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRigidBody3D: crate::obj::GodotClass < Base = RigidBody3D > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn integrate_forces(&mut self, state: Option < Gd < crate::classes::PhysicsDirectBodyState3D > >,) { + unimplemented !() + } + fn input_event(&mut self, camera: Option < Gd < crate::classes::Camera3D > >, event: Option < Gd < crate::classes::InputEvent > >, event_position: Vector3, normal: Vector3, shape_idx: i32,) { + unimplemented !() + } + fn mouse_enter(&mut self,) { + unimplemented !() + } + fn mouse_exit(&mut self,) { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl RigidBody3D { + pub fn set_mass(&mut self, mass: f32,) { + type CallSig = ((), f32); + let args = (mass,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7349usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_mass(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7350usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_inertia(&mut self, inertia: Vector3,) { + type CallSig = ((), Vector3); + let args = (inertia,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7351usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_inertia", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inertia(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7352usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_inertia", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_center_of_mass_mode(&mut self, mode: crate::classes::rigid_body_3d::CenterOfMassMode,) { + type CallSig = ((), crate::classes::rigid_body_3d::CenterOfMassMode); + let args = (mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7353usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_center_of_mass_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_of_mass_mode(&self,) -> crate::classes::rigid_body_3d::CenterOfMassMode { + type CallSig = (crate::classes::rigid_body_3d::CenterOfMassMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7354usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_center_of_mass_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_center_of_mass(&mut self, center_of_mass: Vector3,) { + type CallSig = ((), Vector3); + let args = (center_of_mass,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7355usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_center_of_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_center_of_mass(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7356usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_center_of_mass", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_physics_material_override(&mut self, physics_material_override: impl AsObjectArg < crate::classes::PhysicsMaterial >,) { + type CallSig = ((), ObjectArg < crate::classes::PhysicsMaterial >); + let args = (physics_material_override.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7357usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_physics_material_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_physics_material_override(&self,) -> Option < Gd < crate::classes::PhysicsMaterial > > { + type CallSig = (Option < Gd < crate::classes::PhysicsMaterial > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7358usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_physics_material_override", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_velocity(&mut self, linear_velocity: Vector3,) { + type CallSig = ((), Vector3); + let args = (linear_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7359usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7360usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_linear_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_velocity(&mut self, angular_velocity: Vector3,) { + type CallSig = ((), Vector3); + let args = (angular_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7361usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_velocity(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7362usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_angular_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_inverse_inertia_tensor(&self,) -> Basis { + type CallSig = (Basis,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7363usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_inverse_inertia_tensor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_gravity_scale(&mut self, gravity_scale: f32,) { + type CallSig = ((), f32); + let args = (gravity_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7364usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_gravity_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_gravity_scale(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7365usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_gravity_scale", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_damp_mode(&mut self, linear_damp_mode: crate::classes::rigid_body_3d::DampMode,) { + type CallSig = ((), crate::classes::rigid_body_3d::DampMode); + let args = (linear_damp_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7366usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_linear_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_damp_mode(&self,) -> crate::classes::rigid_body_3d::DampMode { + type CallSig = (crate::classes::rigid_body_3d::DampMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7367usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_linear_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_damp_mode(&mut self, angular_damp_mode: crate::classes::rigid_body_3d::DampMode,) { + type CallSig = ((), crate::classes::rigid_body_3d::DampMode); + let args = (angular_damp_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7368usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_angular_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_damp_mode(&self,) -> crate::classes::rigid_body_3d::DampMode { + type CallSig = (crate::classes::rigid_body_3d::DampMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7369usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_angular_damp_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_linear_damp(&mut self, linear_damp: f32,) { + type CallSig = ((), f32); + let args = (linear_damp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7370usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_linear_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7371usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_linear_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_angular_damp(&mut self, angular_damp: f32,) { + type CallSig = ((), f32); + let args = (angular_damp,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7372usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_angular_damp(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7373usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_angular_damp", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_contacts_reported(&mut self, amount: i32,) { + type CallSig = ((), i32); + let args = (amount,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7374usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_max_contacts_reported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_contacts_reported(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7375usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_max_contacts_reported", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_contact_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7376usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_contact_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_custom_integrator(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7377usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_use_custom_integrator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_custom_integrator(&mut self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7378usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "is_using_custom_integrator", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_contact_monitor(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7379usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_contact_monitor", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_contact_monitor_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7380usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "is_contact_monitor_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_use_continuous_collision_detection(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7381usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_use_continuous_collision_detection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_using_continuous_collision_detection(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7382usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "is_using_continuous_collision_detection", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_axis_velocity(&mut self, axis_velocity: Vector3,) { + type CallSig = ((), Vector3); + let args = (axis_velocity,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7383usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_axis_velocity", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn apply_central_impulse(&mut self, impulse: Vector3,) { + type CallSig = ((), Vector3); + let args = (impulse,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7384usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "apply_central_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn apply_impulse_full(&mut self, impulse: Vector3, position: Vector3,) { + type CallSig = ((), Vector3, Vector3); + let args = (impulse, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7385usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "apply_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_impulse_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_impulse(&mut self, impulse: Vector3,) { + self.apply_impulse_ex(impulse,) . done() + } + #[inline] + pub fn apply_impulse_ex < 'a > (&'a mut self, impulse: Vector3,) -> ExApplyImpulse < 'a > { + ExApplyImpulse::new(self, impulse,) + } + pub fn apply_torque_impulse(&mut self, impulse: Vector3,) { + type CallSig = ((), Vector3); + let args = (impulse,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7386usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "apply_torque_impulse", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn apply_central_force(&mut self, force: Vector3,) { + type CallSig = ((), Vector3); + let args = (force,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7387usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "apply_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn apply_force_full(&mut self, force: Vector3, position: Vector3,) { + type CallSig = ((), Vector3, Vector3); + let args = (force, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7388usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "apply_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::apply_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn apply_force(&mut self, force: Vector3,) { + self.apply_force_ex(force,) . done() + } + #[inline] + pub fn apply_force_ex < 'a > (&'a mut self, force: Vector3,) -> ExApplyForce < 'a > { + ExApplyForce::new(self, force,) + } + pub fn apply_torque(&mut self, torque: Vector3,) { + type CallSig = ((), Vector3); + let args = (torque,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7389usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "apply_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn add_constant_central_force(&mut self, force: Vector3,) { + type CallSig = ((), Vector3); + let args = (force,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7390usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "add_constant_central_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_constant_force_full(&mut self, force: Vector3, position: Vector3,) { + type CallSig = ((), Vector3, Vector3); + let args = (force, position,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7391usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "add_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_constant_force_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_constant_force(&mut self, force: Vector3,) { + self.add_constant_force_ex(force,) . done() + } + #[inline] + pub fn add_constant_force_ex < 'a > (&'a mut self, force: Vector3,) -> ExAddConstantForce < 'a > { + ExAddConstantForce::new(self, force,) + } + pub fn add_constant_torque(&mut self, torque: Vector3,) { + type CallSig = ((), Vector3); + let args = (torque,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7392usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "add_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_constant_force(&mut self, force: Vector3,) { + type CallSig = ((), Vector3); + let args = (force,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7393usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_constant_force(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7394usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_constant_force", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_constant_torque(&mut self, torque: Vector3,) { + type CallSig = ((), Vector3); + let args = (torque,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7395usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_constant_torque(&self,) -> Vector3 { + type CallSig = (Vector3,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7396usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_constant_torque", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_sleeping(&mut self, sleeping: bool,) { + type CallSig = ((), bool); + let args = (sleeping,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7397usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_sleeping", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_sleeping(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7398usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "is_sleeping", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_can_sleep(&mut self, able_to_sleep: bool,) { + type CallSig = ((), bool); + let args = (able_to_sleep,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7399usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_can_sleep", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_able_to_sleep(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7400usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "is_able_to_sleep", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_lock_rotation_enabled(&mut self, lock_rotation: bool,) { + type CallSig = ((), bool); + let args = (lock_rotation,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7401usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_lock_rotation_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_lock_rotation_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7402usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "is_lock_rotation_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_freeze_enabled(&mut self, freeze_mode: bool,) { + type CallSig = ((), bool); + let args = (freeze_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7403usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_freeze_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_freeze_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7404usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "is_freeze_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_freeze_mode(&mut self, freeze_mode: crate::classes::rigid_body_3d::FreezeMode,) { + type CallSig = ((), crate::classes::rigid_body_3d::FreezeMode); + let args = (freeze_mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7405usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "set_freeze_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_freeze_mode(&self,) -> crate::classes::rigid_body_3d::FreezeMode { + type CallSig = (crate::classes::rigid_body_3d::FreezeMode,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7406usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_freeze_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_colliding_bodies(&self,) -> Array < Gd < crate::classes::Node3D > > { + type CallSig = (Array < Gd < crate::classes::Node3D > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7407usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RigidBody3D", "get_colliding_bodies", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RigidBody3D { + type Base = crate::classes::PhysicsBody3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RigidBody3D")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RigidBody3D { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::PhysicsBody3D > for RigidBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::CollisionObject3D > for RigidBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for RigidBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for RigidBody3D { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RigidBody3D { + + } + impl crate::obj::cap::GodotDefault for RigidBody3D { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RigidBody3D { + type Target = crate::classes::PhysicsBody3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RigidBody3D { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RigidBody3D`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RigidBody3D { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RigidBody3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::PhysicsBody3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::CollisionObject3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`RigidBody3D::apply_impulse_ex`][super::RigidBody3D::apply_impulse_ex]."] +#[must_use] +pub struct ExApplyImpulse < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RigidBody3D, impulse: Vector3, position: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyImpulse < 'a > { + fn new(surround_object: &'a mut re_export::RigidBody3D, impulse: Vector3,) -> Self { + let position = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, impulse: impulse, position: position, + } + } + #[inline] + pub fn position(self, position: Vector3) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, impulse, position, + } + = self; + re_export::RigidBody3D::apply_impulse_full(surround_object, impulse, position,) + } +} +#[doc = "Default-param extender for [`RigidBody3D::apply_force_ex`][super::RigidBody3D::apply_force_ex]."] +#[must_use] +pub struct ExApplyForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RigidBody3D, force: Vector3, position: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExApplyForce < 'a > { + fn new(surround_object: &'a mut re_export::RigidBody3D, force: Vector3,) -> Self { + let position = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector3) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, position, + } + = self; + re_export::RigidBody3D::apply_force_full(surround_object, force, position,) + } +} +#[doc = "Default-param extender for [`RigidBody3D::add_constant_force_ex`][super::RigidBody3D::add_constant_force_ex]."] +#[must_use] +pub struct ExAddConstantForce < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::RigidBody3D, force: Vector3, position: Vector3, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddConstantForce < 'a > { + fn new(surround_object: &'a mut re_export::RigidBody3D, force: Vector3,) -> Self { + let position = Vector3::new(0 as _, 0 as _, 0 as _); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, force: force, position: position, + } + } + #[inline] + pub fn position(self, position: Vector3) -> Self { + Self { + position: position, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, force, position, + } + = self; + re_export::RigidBody3D::add_constant_force_full(surround_object, force, position,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct FreezeMode { + ord: i32 +} +impl FreezeMode { + #[doc(alias = "FREEZE_MODE_STATIC")] + #[doc = "Godot enumerator name: `FREEZE_MODE_STATIC`"] + pub const STATIC: FreezeMode = FreezeMode { + ord: 0i32 + }; + #[doc(alias = "FREEZE_MODE_KINEMATIC")] + #[doc = "Godot enumerator name: `FREEZE_MODE_KINEMATIC`"] + pub const KINEMATIC: FreezeMode = FreezeMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for FreezeMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("FreezeMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for FreezeMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STATIC => "STATIC", Self::KINEMATIC => "KINEMATIC", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::STATIC => "FREEZE_MODE_STATIC", Self::KINEMATIC => "FREEZE_MODE_KINEMATIC", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for FreezeMode { + type Via = i32; + +} +impl crate::meta::ToGodot for FreezeMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for FreezeMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct CenterOfMassMode { + ord: i32 +} +impl CenterOfMassMode { + #[doc(alias = "CENTER_OF_MASS_MODE_AUTO")] + #[doc = "Godot enumerator name: `CENTER_OF_MASS_MODE_AUTO`"] + pub const AUTO: CenterOfMassMode = CenterOfMassMode { + ord: 0i32 + }; + #[doc(alias = "CENTER_OF_MASS_MODE_CUSTOM")] + #[doc = "Godot enumerator name: `CENTER_OF_MASS_MODE_CUSTOM`"] + pub const CUSTOM: CenterOfMassMode = CenterOfMassMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for CenterOfMassMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("CenterOfMassMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for CenterOfMassMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::AUTO => "AUTO", Self::CUSTOM => "CUSTOM", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::AUTO => "CENTER_OF_MASS_MODE_AUTO", Self::CUSTOM => "CENTER_OF_MASS_MODE_CUSTOM", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for CenterOfMassMode { + type Via = i32; + +} +impl crate::meta::ToGodot for CenterOfMassMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for CenterOfMassMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct DampMode { + ord: i32 +} +impl DampMode { + #[doc(alias = "DAMP_MODE_COMBINE")] + #[doc = "Godot enumerator name: `DAMP_MODE_COMBINE`"] + pub const COMBINE: DampMode = DampMode { + ord: 0i32 + }; + #[doc(alias = "DAMP_MODE_REPLACE")] + #[doc = "Godot enumerator name: `DAMP_MODE_REPLACE`"] + pub const REPLACE: DampMode = DampMode { + ord: 1i32 + }; + +} +impl std::fmt::Debug for DampMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("DampMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for DampMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMBINE => "COMBINE", Self::REPLACE => "REPLACE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::COMBINE => "DAMP_MODE_COMBINE", Self::REPLACE => "DAMP_MODE_REPLACE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for DampMode { + type Via = i32; + +} +impl crate::meta::ToGodot for DampMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for DampMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/root_motion_view.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/root_motion_view.rs new file mode 100644 index 0000000..4d50e3f --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/root_motion_view.rs @@ -0,0 +1,318 @@ +#![doc = "Sidecar module for class [`RootMotionView`][crate::classes::RootMotionView].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `RootMotionView` enums](https://docs.godotengine.org/en/stable/classes/class_rootmotionview.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `RootMotionView.`\n\nInherits [`VisualInstance3D`][crate::classes::VisualInstance3D].\n\nRelated symbols:\n\n* [`IRootMotionView`][crate::classes::IRootMotionView]: virtual methods\n\n\nSee also [Godot docs for `RootMotionView`](https://docs.godotengine.org/en/stable/classes/class_rootmotionview.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`RootMotionView::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct RootMotionView { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`RootMotionView`][crate::classes::RootMotionView].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `RootMotionView` methods](https://docs.godotengine.org/en/stable/classes/class_rootmotionview.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait IRootMotionView: crate::obj::GodotClass < Base = RootMotionView > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: Node3DNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn get_aabb(&self,) -> Aabb { + unimplemented !() + } + fn process(&mut self, delta: f64,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) { + unimplemented !() + } + fn enter_tree(&mut self,) { + unimplemented !() + } + fn exit_tree(&mut self,) { + unimplemented !() + } + fn ready(&mut self,) { + unimplemented !() + } + fn get_configuration_warnings(&self,) -> PackedStringArray { + unimplemented !() + } + fn input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn shortcut_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + fn unhandled_key_input(&mut self, event: Gd < crate::classes::InputEvent >,) { + unimplemented !() + } + } + impl RootMotionView { + pub fn set_animation_path(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7408usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RootMotionView", "set_animation_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_animation_path(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7409usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RootMotionView", "get_animation_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_color(&mut self, color: Color,) { + type CallSig = ((), Color); + let args = (color,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7410usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RootMotionView", "set_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_color(&self,) -> Color { + type CallSig = (Color,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7411usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RootMotionView", "get_color", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_cell_size(&mut self, size: f32,) { + type CallSig = ((), f32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7412usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RootMotionView", "set_cell_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_cell_size(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7413usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RootMotionView", "get_cell_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_radius(&mut self, size: f32,) { + type CallSig = ((), f32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7414usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RootMotionView", "set_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_radius(&self,) -> f32 { + type CallSig = (f32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7415usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RootMotionView", "get_radius", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_zero_y(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7416usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RootMotionView", "set_zero_y", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_zero_y(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7417usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "RootMotionView", "get_zero_y", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for RootMotionView { + type Base = crate::classes::VisualInstance3D; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"RootMotionView")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for RootMotionView { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::VisualInstance3D > for RootMotionView { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node3D > for RootMotionView { + + } + unsafe impl crate::obj::Inherits < crate::classes::Node > for RootMotionView { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for RootMotionView { + + } + impl crate::obj::cap::GodotDefault for RootMotionView { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for RootMotionView { + type Target = crate::classes::VisualInstance3D; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for RootMotionView { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`RootMotionView`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_RootMotionView { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::RootMotionView > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::VisualInstance3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node3D > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Node > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_multiplayer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_multiplayer.rs new file mode 100644 index 0000000..34e5a23 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_multiplayer.rs @@ -0,0 +1,426 @@ +#![doc = "Sidecar module for class [`SceneMultiplayer`][crate::classes::SceneMultiplayer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `SceneMultiplayer` enums](https://docs.godotengine.org/en/stable/classes/class_scenemultiplayer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `SceneMultiplayer.`\n\nInherits [`MultiplayerApi`][crate::classes::MultiplayerApi].\n\nRelated symbols:\n\n* [`scene_multiplayer`][crate::classes::scene_multiplayer]: sidecar module with related enum/flag types\n* [`ISceneMultiplayer`][crate::classes::ISceneMultiplayer]: virtual methods\n\n\nSee also [Godot docs for `SceneMultiplayer`](https://docs.godotengine.org/en/stable/classes/class_scenemultiplayer.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`SceneMultiplayer::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct SceneMultiplayer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`SceneMultiplayer`][crate::classes::SceneMultiplayer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `SceneMultiplayer` methods](https://docs.godotengine.org/en/stable/classes/class_scenemultiplayer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ISceneMultiplayer: crate::obj::GodotClass < Base = SceneMultiplayer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl SceneMultiplayer { + pub fn set_root_path(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7418usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "set_root_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_root_path(&self,) -> NodePath { + type CallSig = (NodePath,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7419usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "get_root_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn clear(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7420usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "clear", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn disconnect_peer(&mut self, id: i32,) { + type CallSig = ((), i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7421usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "disconnect_peer", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_authenticating_peers(&mut self,) -> PackedInt32Array { + type CallSig = (PackedInt32Array,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7422usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "get_authenticating_peers", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn send_auth(&mut self, id: i32, data: &PackedByteArray,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, i32, RefArg < 'a0, PackedByteArray >); + let args = (id, RefArg::new(data),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7423usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "send_auth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn complete_auth(&mut self, id: i32,) -> crate::global::Error { + type CallSig = (crate::global::Error, i32); + let args = (id,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7424usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "complete_auth", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auth_callback(&mut self, callback: &Callable,) { + type CallSig < 'a0, > = ((), RefArg < 'a0, Callable >); + let args = (RefArg::new(callback),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7425usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "set_auth_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auth_callback(&self,) -> Callable { + type CallSig = (Callable,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7426usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "get_auth_callback", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auth_timeout(&mut self, timeout: f64,) { + type CallSig = ((), f64); + let args = (timeout,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7427usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "set_auth_timeout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_auth_timeout(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7428usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "get_auth_timeout", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_refuse_new_connections(&mut self, refuse: bool,) { + type CallSig = ((), bool); + let args = (refuse,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7429usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "set_refuse_new_connections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_refusing_new_connections(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7430usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "is_refusing_new_connections", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_allow_object_decoding(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7431usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "set_allow_object_decoding", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_object_decoding_allowed(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7432usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "is_object_decoding_allowed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_server_relay_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7433usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "set_server_relay_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_server_relay_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7434usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "is_server_relay_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn send_bytes_full(&mut self, bytes: RefArg < PackedByteArray >, id: i32, mode: crate::classes::multiplayer_peer::TransferMode, channel: i32,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, RefArg < 'a0, PackedByteArray >, i32, crate::classes::multiplayer_peer::TransferMode, i32); + let args = (bytes, id, mode, channel,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7435usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "send_bytes", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::send_bytes_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn send_bytes(&mut self, bytes: &PackedByteArray,) -> crate::global::Error { + self.send_bytes_ex(bytes,) . done() + } + #[inline] + pub fn send_bytes_ex < 'a > (&'a mut self, bytes: &'a PackedByteArray,) -> ExSendBytes < 'a > { + ExSendBytes::new(self, bytes,) + } + pub fn get_max_sync_packet_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7436usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "get_max_sync_packet_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_sync_packet_size(&mut self, size: i32,) { + type CallSig = ((), i32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7437usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "set_max_sync_packet_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_max_delta_packet_size(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7438usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "get_max_delta_packet_size", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_max_delta_packet_size(&mut self, size: i32,) { + type CallSig = ((), i32); + let args = (size,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7439usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneMultiplayer", "set_max_delta_packet_size", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for SceneMultiplayer { + type Base = crate::classes::MultiplayerApi; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"SceneMultiplayer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for SceneMultiplayer { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::MultiplayerApi > for SceneMultiplayer { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for SceneMultiplayer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for SceneMultiplayer { + + } + impl crate::obj::cap::GodotDefault for SceneMultiplayer { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for SceneMultiplayer { + type Target = crate::classes::MultiplayerApi; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for SceneMultiplayer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`SceneMultiplayer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_SceneMultiplayer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::SceneMultiplayer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::MultiplayerApi > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`SceneMultiplayer::send_bytes_ex`][super::SceneMultiplayer::send_bytes_ex]."] +#[must_use] +pub struct ExSendBytes < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::SceneMultiplayer, bytes: CowArg < 'a, PackedByteArray >, id: i32, mode: crate::classes::multiplayer_peer::TransferMode, channel: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSendBytes < 'a > { + fn new(surround_object: &'a mut re_export::SceneMultiplayer, bytes: &'a PackedByteArray,) -> Self { + let id = 0i32; + let mode = crate::obj::EngineEnum::from_ord(2); + let channel = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, bytes: CowArg::Borrowed(bytes), id: id, mode: mode, channel: channel, + } + } + #[inline] + pub fn id(self, id: i32) -> Self { + Self { + id: id, .. self + } + } + #[inline] + pub fn mode(self, mode: crate::classes::multiplayer_peer::TransferMode) -> Self { + Self { + mode: mode, .. self + } + } + #[inline] + pub fn channel(self, channel: i32) -> Self { + Self { + channel: channel, .. self + } + } + #[inline] + pub fn done(self) -> crate::global::Error { + let Self { + _phantom, surround_object, bytes, id, mode, channel, + } + = self; + re_export::SceneMultiplayer::send_bytes_full(surround_object, bytes.cow_as_arg(), id, mode, channel,) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_replication_config.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_replication_config.rs new file mode 100644 index 0000000..383fa32 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_replication_config.rs @@ -0,0 +1,418 @@ +#![doc = "Sidecar module for class [`SceneReplicationConfig`][crate::classes::SceneReplicationConfig].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `SceneReplicationConfig` enums](https://docs.godotengine.org/en/stable/classes/class_scenereplicationconfig.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `SceneReplicationConfig.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`scene_replication_config`][crate::classes::scene_replication_config]: sidecar module with related enum/flag types\n* [`ISceneReplicationConfig`][crate::classes::ISceneReplicationConfig]: virtual methods\n\n\nSee also [Godot docs for `SceneReplicationConfig`](https://docs.godotengine.org/en/stable/classes/class_scenereplicationconfig.html).\n\n"] + #[doc = "# Construction\n\nThis class is reference-counted. You can create a new instance using [`SceneReplicationConfig::new_gd()`][crate::obj::NewGd::new_gd]."] + #[derive(Debug)] + #[repr(C)] + pub struct SceneReplicationConfig { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`SceneReplicationConfig`][crate::classes::SceneReplicationConfig].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `SceneReplicationConfig` methods](https://docs.godotengine.org/en/stable/classes/class_scenereplicationconfig.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ISceneReplicationConfig: crate::obj::GodotClass < Base = SceneReplicationConfig > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn setup_local_to_scene(&mut self,) { + unimplemented !() + } + } + impl SceneReplicationConfig { + pub fn get_properties(&self,) -> Array < NodePath > { + type CallSig = (Array < NodePath >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7440usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "get_properties", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn add_property_full(&mut self, path: CowArg < NodePath >, index: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >, i32); + let args = (path, index,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7441usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "add_property", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::add_property_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn add_property(&mut self, path: impl AsArg < NodePath >,) { + self.add_property_ex(path,) . done() + } + #[inline] + pub fn add_property_ex < 'a > (&'a mut self, path: impl AsArg < NodePath > + 'a,) -> ExAddProperty < 'a > { + ExAddProperty::new(self, path,) + } + pub fn has_property(&self, path: impl AsArg < NodePath >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7442usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "has_property", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn remove_property(&mut self, path: impl AsArg < NodePath >,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7443usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "remove_property", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn property_get_index(&self, path: impl AsArg < NodePath >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7444usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "property_get_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn property_get_spawn(&mut self, path: impl AsArg < NodePath >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7445usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "property_get_spawn", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn property_set_spawn(&mut self, path: impl AsArg < NodePath >, enabled: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >, bool); + let args = (path.into_arg(), enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7446usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "property_set_spawn", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn property_get_replication_mode(&mut self, path: impl AsArg < NodePath >,) -> crate::classes::scene_replication_config::ReplicationMode { + type CallSig < 'a0, > = (crate::classes::scene_replication_config::ReplicationMode, CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7447usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "property_get_replication_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn property_set_replication_mode(&mut self, path: impl AsArg < NodePath >, mode: crate::classes::scene_replication_config::ReplicationMode,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >, crate::classes::scene_replication_config::ReplicationMode); + let args = (path.into_arg(), mode,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7448usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "property_set_replication_mode", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn property_get_sync(&mut self, path: impl AsArg < NodePath >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7449usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "property_get_sync", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn property_set_sync(&mut self, path: impl AsArg < NodePath >, enabled: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >, bool); + let args = (path.into_arg(), enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7450usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "property_set_sync", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn property_get_watch(&mut self, path: impl AsArg < NodePath >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, NodePath >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7451usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "property_get_watch", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn property_set_watch(&mut self, path: impl AsArg < NodePath >, enabled: bool,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, NodePath >, bool); + let args = (path.into_arg(), enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7452usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneReplicationConfig", "property_set_watch", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for SceneReplicationConfig { + type Base = crate::classes::Resource; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"SceneReplicationConfig")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for SceneReplicationConfig { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::Yes; + + } + unsafe impl crate::obj::Inherits < crate::classes::Resource > for SceneReplicationConfig { + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for SceneReplicationConfig { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for SceneReplicationConfig { + + } + impl crate::obj::cap::GodotDefault for SceneReplicationConfig { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for SceneReplicationConfig { + type Target = crate::classes::Resource; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for SceneReplicationConfig { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`SceneReplicationConfig`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_SceneReplicationConfig { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::SceneReplicationConfig > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Resource > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`SceneReplicationConfig::add_property_ex`][super::SceneReplicationConfig::add_property_ex]."] +#[must_use] +pub struct ExAddProperty < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::SceneReplicationConfig, path: CowArg < 'a, NodePath >, index: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExAddProperty < 'a > { + fn new(surround_object: &'a mut re_export::SceneReplicationConfig, path: impl AsArg < NodePath > + 'a,) -> Self { + let index = - 1i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, path: path.into_arg(), index: index, + } + } + #[inline] + pub fn index(self, index: i32) -> Self { + Self { + index: index, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, path, index, + } + = self; + re_export::SceneReplicationConfig::add_property_full(surround_object, path, index,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct ReplicationMode { + ord: i32 +} +impl ReplicationMode { + #[doc(alias = "REPLICATION_MODE_NEVER")] + #[doc = "Godot enumerator name: `REPLICATION_MODE_NEVER`"] + pub const NEVER: ReplicationMode = ReplicationMode { + ord: 0i32 + }; + #[doc(alias = "REPLICATION_MODE_ALWAYS")] + #[doc = "Godot enumerator name: `REPLICATION_MODE_ALWAYS`"] + pub const ALWAYS: ReplicationMode = ReplicationMode { + ord: 1i32 + }; + #[doc(alias = "REPLICATION_MODE_ON_CHANGE")] + #[doc = "Godot enumerator name: `REPLICATION_MODE_ON_CHANGE`"] + pub const ON_CHANGE: ReplicationMode = ReplicationMode { + ord: 2i32 + }; + +} +impl std::fmt::Debug for ReplicationMode { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("ReplicationMode") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for ReplicationMode { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEVER => "NEVER", Self::ALWAYS => "ALWAYS", Self::ON_CHANGE => "ON_CHANGE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::NEVER => "REPLICATION_MODE_NEVER", Self::ALWAYS => "REPLICATION_MODE_ALWAYS", Self::ON_CHANGE => "REPLICATION_MODE_ON_CHANGE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for ReplicationMode { + type Via = i32; + +} +impl crate::meta::ToGodot for ReplicationMode { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for ReplicationMode { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_state.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_state.rs new file mode 100644 index 0000000..43dc332 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_state.rs @@ -0,0 +1,473 @@ +#![doc = "Sidecar module for class [`SceneState`][crate::classes::SceneState].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `SceneState` enums](https://docs.godotengine.org/en/stable/classes/class_scenestate.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `SceneState.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`scene_state`][crate::classes::scene_state]: sidecar module with related enum/flag types\n* [`ISceneState`][crate::classes::ISceneState]: virtual methods\n\n\nSee also [Godot docs for `SceneState`](https://docs.godotengine.org/en/stable/classes/class_scenestate.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct SceneState { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`SceneState`][crate::classes::SceneState].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `SceneState` methods](https://docs.godotengine.org/en/stable/classes/class_scenestate.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ISceneState: crate::obj::GodotClass < Base = SceneState > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl SceneState { + pub fn get_node_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7453usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_type(&self, idx: i32,) -> StringName { + type CallSig = (StringName, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7454usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_type", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_name(&self, idx: i32,) -> StringName { + type CallSig = (StringName, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7455usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn get_node_path_full(&self, idx: i32, for_parent: bool,) -> NodePath { + type CallSig = (NodePath, i32, bool); + let args = (idx, for_parent,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7456usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_path", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_node_path_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_node_path(&self, idx: i32,) -> NodePath { + self.get_node_path_ex(idx,) . done() + } + #[inline] + pub fn get_node_path_ex < 'a > (&'a self, idx: i32,) -> ExGetNodePath < 'a > { + ExGetNodePath::new(self, idx,) + } + pub fn get_node_owner_path(&self, idx: i32,) -> NodePath { + type CallSig = (NodePath, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7457usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_owner_path", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_node_instance_placeholder(&self, idx: i32,) -> bool { + type CallSig = (bool, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7458usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "is_node_instance_placeholder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_instance_placeholder(&self, idx: i32,) -> GString { + type CallSig = (GString, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7459usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_instance_placeholder", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_instance(&self, idx: i32,) -> Option < Gd < crate::classes::PackedScene > > { + type CallSig = (Option < Gd < crate::classes::PackedScene > >, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7460usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_instance", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_groups(&self, idx: i32,) -> PackedStringArray { + type CallSig = (PackedStringArray, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7461usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_groups", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_index(&self, idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7462usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_index", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_property_count(&self, idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7463usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_property_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_property_name(&self, idx: i32, prop_idx: i32,) -> StringName { + type CallSig = (StringName, i32, i32); + let args = (idx, prop_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7464usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_property_name", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_property_value(&self, idx: i32, prop_idx: i32,) -> Variant { + type CallSig = (Variant, i32, i32); + let args = (idx, prop_idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7465usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_node_property_value", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_connection_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7466usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_connection_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_connection_source(&self, idx: i32,) -> NodePath { + type CallSig = (NodePath, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7467usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_connection_source", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_connection_signal(&self, idx: i32,) -> StringName { + type CallSig = (StringName, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7468usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_connection_signal", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_connection_target(&self, idx: i32,) -> NodePath { + type CallSig = (NodePath, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7469usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_connection_target", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_connection_method(&self, idx: i32,) -> StringName { + type CallSig = (StringName, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7470usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_connection_method", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_connection_flags(&self, idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7471usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_connection_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_connection_binds(&self, idx: i32,) -> VariantArray { + type CallSig = (VariantArray, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7472usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_connection_binds", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_connection_unbinds(&self, idx: i32,) -> i32 { + type CallSig = (i32, i32); + let args = (idx,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7473usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneState", "get_connection_unbinds", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for SceneState { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"SceneState")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for SceneState { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for SceneState { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for SceneState { + + } + impl std::ops::Deref for SceneState { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for SceneState { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`SceneState`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_SceneState { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::SceneState > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`SceneState::get_node_path_ex`][super::SceneState::get_node_path_ex]."] +#[must_use] +pub struct ExGetNodePath < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::SceneState, idx: i32, for_parent: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetNodePath < 'a > { + fn new(surround_object: &'a re_export::SceneState, idx: i32,) -> Self { + let for_parent = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, idx: idx, for_parent: for_parent, + } + } + #[inline] + pub fn for_parent(self, for_parent: bool) -> Self { + Self { + for_parent: for_parent, .. self + } + } + #[inline] + pub fn done(self) -> NodePath { + let Self { + _phantom, surround_object, idx, for_parent, + } + = self; + re_export::SceneState::get_node_path_full(surround_object, idx, for_parent,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct GenEditState { + ord: i32 +} +impl GenEditState { + #[doc(alias = "GEN_EDIT_STATE_DISABLED")] + #[doc = "Godot enumerator name: `GEN_EDIT_STATE_DISABLED`"] + pub const DISABLED: GenEditState = GenEditState { + ord: 0i32 + }; + #[doc(alias = "GEN_EDIT_STATE_INSTANCE")] + #[doc = "Godot enumerator name: `GEN_EDIT_STATE_INSTANCE`"] + pub const INSTANCE: GenEditState = GenEditState { + ord: 1i32 + }; + #[doc(alias = "GEN_EDIT_STATE_MAIN")] + #[doc = "Godot enumerator name: `GEN_EDIT_STATE_MAIN`"] + pub const MAIN: GenEditState = GenEditState { + ord: 2i32 + }; + #[doc(alias = "GEN_EDIT_STATE_MAIN_INHERITED")] + #[doc = "Godot enumerator name: `GEN_EDIT_STATE_MAIN_INHERITED`"] + pub const MAIN_INHERITED: GenEditState = GenEditState { + ord: 3i32 + }; + +} +impl std::fmt::Debug for GenEditState { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("GenEditState") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for GenEditState { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 3i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "DISABLED", Self::INSTANCE => "INSTANCE", Self::MAIN => "MAIN", Self::MAIN_INHERITED => "MAIN_INHERITED", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DISABLED => "GEN_EDIT_STATE_DISABLED", Self::INSTANCE => "GEN_EDIT_STATE_INSTANCE", Self::MAIN => "GEN_EDIT_STATE_MAIN", Self::MAIN_INHERITED => "GEN_EDIT_STATE_MAIN_INHERITED", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for GenEditState { + type Via = i32; + +} +impl crate::meta::ToGodot for GenEditState { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for GenEditState { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_tree.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_tree.rs new file mode 100644 index 0000000..e167e49 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_tree.rs @@ -0,0 +1,817 @@ +#![doc = "Sidecar module for class [`SceneTree`][crate::classes::SceneTree].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `SceneTree` enums](https://docs.godotengine.org/en/stable/classes/class_scenetree.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `SceneTree.`\n\nInherits [`MainLoop`][crate::classes::MainLoop].\n\nRelated symbols:\n\n* [`scene_tree`][crate::classes::scene_tree]: sidecar module with related enum/flag types\n* [`ISceneTree`][crate::classes::ISceneTree]: virtual methods\n\n\nSee also [Godot docs for `SceneTree`](https://docs.godotengine.org/en/stable/classes/class_scenetree.html).\n\n"] + #[doc = "# Construction\n\nThis class is manually managed. You can create a new instance using [`SceneTree::new_alloc()`][crate::obj::NewAlloc::new_alloc].\n\nDo not forget to call [`free()`][crate::obj::Gd::free] or hand over ownership to Godot."] + #[derive(Debug)] + #[repr(C)] + pub struct SceneTree { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`SceneTree`][crate::classes::SceneTree].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `SceneTree` methods](https://docs.godotengine.org/en/stable/classes/class_scenetree.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ISceneTree: crate::obj::GodotClass < Base = SceneTree > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: MainLoopNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + fn initialize(&mut self,) { + unimplemented !() + } + fn physics_process(&mut self, delta: f64,) -> bool { + unimplemented !() + } + fn process(&mut self, delta: f64,) -> bool { + unimplemented !() + } + fn finalize(&mut self,) { + unimplemented !() + } + } + impl SceneTree { + pub fn get_root(&self,) -> Option < Gd < crate::classes::Window > > { + type CallSig = (Option < Gd < crate::classes::Window > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7474usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "get_root", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn has_group(&self, name: impl AsArg < StringName >,) -> bool { + type CallSig < 'a0, > = (bool, CowArg < 'a0, StringName >); + let args = (name.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7475usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "has_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_auto_accept_quit(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7476usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "is_auto_accept_quit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_auto_accept_quit(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7477usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_auto_accept_quit", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_quit_on_go_back(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7478usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "is_quit_on_go_back", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_quit_on_go_back(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7479usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_quit_on_go_back", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_debug_collisions_hint(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7480usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_debug_collisions_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_debugging_collisions_hint(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7481usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "is_debugging_collisions_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_debug_paths_hint(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7482usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_debug_paths_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_debugging_paths_hint(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7483usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "is_debugging_paths_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_debug_navigation_hint(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7484usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_debug_navigation_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_debugging_navigation_hint(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7485usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "is_debugging_navigation_hint", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_edited_scene_root(&mut self, scene: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (scene.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7486usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_edited_scene_root", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_edited_scene_root(&self,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7487usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "get_edited_scene_root", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_pause(&mut self, enable: bool,) { + type CallSig = ((), bool); + let args = (enable,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7488usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_pause", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_paused(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7489usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "is_paused", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn create_timer_full(&mut self, time_sec: f64, process_always: bool, process_in_physics: bool, ignore_time_scale: bool,) -> Option < Gd < crate::classes::SceneTreeTimer > > { + type CallSig = (Option < Gd < crate::classes::SceneTreeTimer > >, f64, bool, bool, bool); + let args = (time_sec, process_always, process_in_physics, ignore_time_scale,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7490usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "create_timer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::create_timer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn create_timer(&mut self, time_sec: f64,) -> Option < Gd < crate::classes::SceneTreeTimer > > { + self.create_timer_ex(time_sec,) . done() + } + #[inline] + pub fn create_timer_ex < 'a > (&'a mut self, time_sec: f64,) -> ExCreateTimer < 'a > { + ExCreateTimer::new(self, time_sec,) + } + pub fn create_tween(&mut self,) -> Option < Gd < crate::classes::Tween > > { + type CallSig = (Option < Gd < crate::classes::Tween > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7491usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "create_tween", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_processed_tweens(&mut self,) -> Array < Gd < crate::classes::Tween > > { + type CallSig = (Array < Gd < crate::classes::Tween > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7492usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "get_processed_tweens", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_count(&self,) -> i32 { + type CallSig = (i32,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7493usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "get_node_count", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_frame(&self,) -> i64 { + type CallSig = (i64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7494usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "get_frame", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn quit_full(&mut self, exit_code: i32,) { + type CallSig = ((), i32); + let args = (exit_code,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7495usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "quit", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::quit_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn quit(&mut self,) { + self.quit_ex() . done() + } + #[inline] + pub fn quit_ex < 'a > (&'a mut self,) -> ExQuit < 'a > { + ExQuit::new(self,) + } + pub fn set_physics_interpolation_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7496usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_physics_interpolation_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_physics_interpolation_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7497usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "is_physics_interpolation_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn queue_delete(&mut self, obj: impl AsObjectArg < crate::classes::Object >,) { + type CallSig = ((), ObjectArg < crate::classes::Object >); + let args = (obj.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7498usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "queue_delete", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn call_group_flags(&mut self, flags: i64, group: impl AsArg < StringName >, method: impl AsArg < StringName >, varargs: &[Variant]) { + Self::try_call_group_flags(self, flags, group, method, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_call_group_flags(&mut self, flags: i64, group: impl AsArg < StringName >, method: impl AsArg < StringName >, varargs: &[Variant]) -> Result < (), crate::meta::error::CallError > { + type CallSig < 'a0, 'a1, > = ((), i64, CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (flags, group.into_arg(), method.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7499usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "SceneTree", "call_group_flags", self.object_ptr, self.__checked_id(), args, varargs) + } + } + pub fn notify_group_flags(&mut self, call_flags: u32, group: impl AsArg < StringName >, notification: i32,) { + type CallSig < 'a0, > = ((), u32, CowArg < 'a0, StringName >, i32); + let args = (call_flags, group.into_arg(), notification,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7500usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "notify_group_flags", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_group_flags(&mut self, call_flags: u32, group: impl AsArg < StringName >, property: impl AsArg < GString >, value: &Variant,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), u32, CowArg < 'a0, StringName >, CowArg < 'a1, GString >, RefArg < 'a2, Variant >); + let args = (call_flags, group.into_arg(), property.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7501usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_group_flags", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = r" # Panics"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will panic in such a case."] + pub fn call_group(&mut self, group: impl AsArg < StringName >, method: impl AsArg < StringName >, varargs: &[Variant]) { + Self::try_call_group(self, group, method, varargs) . unwrap_or_else(| e | panic !("{e}")) + } + #[doc = r" # Return type"] + #[doc = r" This is a _varcall_ method, meaning parameters and return values are passed as `Variant`."] + #[doc = r" It can detect call failures and will return `Err` in such a case."] + pub fn try_call_group(&mut self, group: impl AsArg < StringName >, method: impl AsArg < StringName >, varargs: &[Variant]) -> Result < (), crate::meta::error::CallError > { + type CallSig < 'a0, 'a1, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, StringName >); + let args = (group.into_arg(), method.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7502usize); + < CallSig as VarcallSignatureTuple > ::out_class_varcall(method_bind, "SceneTree", "call_group", self.object_ptr, self.__checked_id(), args, varargs) + } + } + pub fn notify_group(&mut self, group: impl AsArg < StringName >, notification: i32,) { + type CallSig < 'a0, > = ((), CowArg < 'a0, StringName >, i32); + let args = (group.into_arg(), notification,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7503usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "notify_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_group(&mut self, group: impl AsArg < StringName >, property: impl AsArg < GString >, value: &Variant,) { + type CallSig < 'a0, 'a1, 'a2, > = ((), CowArg < 'a0, StringName >, CowArg < 'a1, GString >, RefArg < 'a2, Variant >); + let args = (group.into_arg(), property.into_arg(), RefArg::new(value),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7504usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_nodes_in_group(&mut self, group: impl AsArg < StringName >,) -> Array < Gd < crate::classes::Node > > { + type CallSig < 'a0, > = (Array < Gd < crate::classes::Node > >, CowArg < 'a0, StringName >); + let args = (group.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7505usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "get_nodes_in_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_first_node_in_group(&mut self, group: impl AsArg < StringName >,) -> Option < Gd < crate::classes::Node > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::Node > >, CowArg < 'a0, StringName >); + let args = (group.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7506usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "get_first_node_in_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_node_count_in_group(&self, group: impl AsArg < StringName >,) -> i32 { + type CallSig < 'a0, > = (i32, CowArg < 'a0, StringName >); + let args = (group.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7507usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "get_node_count_in_group", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn set_current_scene(&mut self, child_node: impl AsObjectArg < crate::classes::Node >,) { + type CallSig = ((), ObjectArg < crate::classes::Node >); + let args = (child_node.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7508usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_current_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_current_scene(&self,) -> Option < Gd < crate::classes::Node > > { + type CallSig = (Option < Gd < crate::classes::Node > >,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7509usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "get_current_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn change_scene_to_file(&mut self, path: impl AsArg < GString >,) -> crate::global::Error { + type CallSig < 'a0, > = (crate::global::Error, CowArg < 'a0, GString >); + let args = (path.into_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7510usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "change_scene_to_file", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn change_scene_to_packed(&mut self, packed_scene: impl AsObjectArg < crate::classes::PackedScene >,) -> crate::global::Error { + type CallSig = (crate::global::Error, ObjectArg < crate::classes::PackedScene >); + let args = (packed_scene.as_object_arg(),); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7511usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "change_scene_to_packed", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn reload_current_scene(&mut self,) -> crate::global::Error { + type CallSig = (crate::global::Error,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7512usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "reload_current_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn unload_current_scene(&mut self,) { + type CallSig = ((),); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7513usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "unload_current_scene", self.object_ptr, self.__checked_id(), args,) + } + } + pub(crate) fn set_multiplayer_full(&mut self, multiplayer: ObjectArg < crate::classes::MultiplayerApi >, root_path: CowArg < NodePath >,) { + type CallSig < 'a0, > = ((), ObjectArg < crate::classes::MultiplayerApi >, CowArg < 'a0, NodePath >); + let args = (multiplayer, root_path,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7514usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_multiplayer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::set_multiplayer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn set_multiplayer(&mut self, multiplayer: impl AsObjectArg < crate::classes::MultiplayerApi >,) { + self.set_multiplayer_ex(multiplayer,) . done() + } + #[inline] + pub fn set_multiplayer_ex < 'a > (&'a mut self, multiplayer: impl AsObjectArg < crate::classes::MultiplayerApi >,) -> ExSetMultiplayer < 'a > { + ExSetMultiplayer::new(self, multiplayer,) + } + pub(crate) fn get_multiplayer_full(&self, for_path: CowArg < NodePath >,) -> Option < Gd < crate::classes::MultiplayerApi > > { + type CallSig < 'a0, > = (Option < Gd < crate::classes::MultiplayerApi > >, CowArg < 'a0, NodePath >); + let args = (for_path,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7515usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "get_multiplayer", self.object_ptr, self.__checked_id(), args,) + } + } + #[doc = "To set the default parameters, use [`Self::get_multiplayer_ex`] and its builder methods. See [the book](https://godot-rust.github.io/book/godot-api/functions.html#default-parameters) for detailed usage instructions."] + #[inline] + pub fn get_multiplayer(&self,) -> Option < Gd < crate::classes::MultiplayerApi > > { + self.get_multiplayer_ex() . done() + } + #[inline] + pub fn get_multiplayer_ex < 'a > (&'a self,) -> ExGetMultiplayer < 'a > { + ExGetMultiplayer::new(self,) + } + pub fn set_multiplayer_poll_enabled(&mut self, enabled: bool,) { + type CallSig = ((), bool); + let args = (enabled,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7516usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "set_multiplayer_poll_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn is_multiplayer_poll_enabled(&self,) -> bool { + type CallSig = (bool,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7517usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTree", "is_multiplayer_poll_enabled", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for SceneTree { + type Base = crate::classes::MainLoop; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"SceneTree")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for SceneTree { + type Memory = crate::obj::bounds::MemManual; + type DynMemory = crate::obj::bounds::MemManual; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::MainLoop > for SceneTree { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for SceneTree { + + } + impl crate::obj::cap::GodotDefault for SceneTree { + fn __godot_default() -> crate::obj::Gd < Self > { + crate::classes::construct_engine_object::< Self > () + } + } + impl std::ops::Deref for SceneTree { + type Target = crate::classes::MainLoop; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for SceneTree { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`SceneTree`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_SceneTree { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::SceneTree > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::MainLoop > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} +#[doc = "Default-param extender for [`SceneTree::create_timer_ex`][super::SceneTree::create_timer_ex]."] +#[must_use] +pub struct ExCreateTimer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::SceneTree, time_sec: f64, process_always: bool, process_in_physics: bool, ignore_time_scale: bool, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExCreateTimer < 'a > { + fn new(surround_object: &'a mut re_export::SceneTree, time_sec: f64,) -> Self { + let process_always = true; + let process_in_physics = false; + let ignore_time_scale = false; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, time_sec: time_sec, process_always: process_always, process_in_physics: process_in_physics, ignore_time_scale: ignore_time_scale, + } + } + #[inline] + pub fn process_always(self, process_always: bool) -> Self { + Self { + process_always: process_always, .. self + } + } + #[inline] + pub fn process_in_physics(self, process_in_physics: bool) -> Self { + Self { + process_in_physics: process_in_physics, .. self + } + } + #[inline] + pub fn ignore_time_scale(self, ignore_time_scale: bool) -> Self { + Self { + ignore_time_scale: ignore_time_scale, .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::SceneTreeTimer > > { + let Self { + _phantom, surround_object, time_sec, process_always, process_in_physics, ignore_time_scale, + } + = self; + re_export::SceneTree::create_timer_full(surround_object, time_sec, process_always, process_in_physics, ignore_time_scale,) + } +} +#[doc = "Default-param extender for [`SceneTree::quit_ex`][super::SceneTree::quit_ex]."] +#[must_use] +pub struct ExQuit < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::SceneTree, exit_code: i32, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExQuit < 'a > { + fn new(surround_object: &'a mut re_export::SceneTree,) -> Self { + let exit_code = 0i32; + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, exit_code: exit_code, + } + } + #[inline] + pub fn exit_code(self, exit_code: i32) -> Self { + Self { + exit_code: exit_code, .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, exit_code, + } + = self; + re_export::SceneTree::quit_full(surround_object, exit_code,) + } +} +#[doc = "Default-param extender for [`SceneTree::set_multiplayer_ex`][super::SceneTree::set_multiplayer_ex]."] +#[must_use] +pub struct ExSetMultiplayer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a mut re_export::SceneTree, multiplayer: ObjectCow < crate::classes::MultiplayerApi >, root_path: CowArg < 'a, NodePath >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExSetMultiplayer < 'a > { + fn new(surround_object: &'a mut re_export::SceneTree, multiplayer: impl AsObjectArg < crate::classes::MultiplayerApi >,) -> Self { + let root_path = NodePath::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, multiplayer: multiplayer.consume_arg(), root_path: CowArg::Owned(root_path), + } + } + #[inline] + pub fn root_path(self, root_path: impl AsArg < NodePath > + 'a) -> Self { + Self { + root_path: root_path.into_arg(), .. self + } + } + #[inline] + pub fn done(self) { + let Self { + _phantom, surround_object, multiplayer, root_path, + } + = self; + re_export::SceneTree::set_multiplayer_full(surround_object, multiplayer.cow_as_object_arg(), root_path,) + } +} +#[doc = "Default-param extender for [`SceneTree::get_multiplayer_ex`][super::SceneTree::get_multiplayer_ex]."] +#[must_use] +pub struct ExGetMultiplayer < 'a > { + _phantom: std::marker::PhantomData < &'a() >, surround_object: &'a re_export::SceneTree, for_path: CowArg < 'a, NodePath >, +} +#[allow(clippy::wrong_self_convention, clippy::redundant_field_names, clippy::needless_update)] +impl < 'a > ExGetMultiplayer < 'a > { + fn new(surround_object: &'a re_export::SceneTree,) -> Self { + let for_path = NodePath::from(""); + Self { + _phantom: std::marker::PhantomData, surround_object: surround_object, for_path: CowArg::Owned(for_path), + } + } + #[inline] + pub fn for_path(self, for_path: impl AsArg < NodePath > + 'a) -> Self { + Self { + for_path: for_path.into_arg(), .. self + } + } + #[inline] + pub fn done(self) -> Option < Gd < crate::classes::MultiplayerApi > > { + let Self { + _phantom, surround_object, for_path, + } + = self; + re_export::SceneTree::get_multiplayer_full(surround_object, for_path,) + } +} +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct GroupCallFlags { + ord: i32 +} +impl GroupCallFlags { + #[doc(alias = "GROUP_CALL_DEFAULT")] + #[doc = "Godot enumerator name: `GROUP_CALL_DEFAULT`"] + pub const DEFAULT: GroupCallFlags = GroupCallFlags { + ord: 0i32 + }; + #[doc(alias = "GROUP_CALL_REVERSE")] + #[doc = "Godot enumerator name: `GROUP_CALL_REVERSE`"] + pub const REVERSE: GroupCallFlags = GroupCallFlags { + ord: 1i32 + }; + #[doc(alias = "GROUP_CALL_DEFERRED")] + #[doc = "Godot enumerator name: `GROUP_CALL_DEFERRED`"] + pub const DEFERRED: GroupCallFlags = GroupCallFlags { + ord: 2i32 + }; + #[doc(alias = "GROUP_CALL_UNIQUE")] + #[doc = "Godot enumerator name: `GROUP_CALL_UNIQUE`"] + pub const UNIQUE: GroupCallFlags = GroupCallFlags { + ord: 4i32 + }; + +} +impl std::fmt::Debug for GroupCallFlags { + fn fmt(&self, f: &mut std::fmt::Formatter < '_ >) -> std::fmt::Result { + use crate::obj::EngineEnum; + let enumerator = self.as_str(); + if enumerator.is_empty() { + f.debug_struct("GroupCallFlags") . field("ord", &self.ord) . finish() ?; + return Ok(()); + + } + f.write_str(enumerator) + } +} +impl crate::obj::EngineEnum for GroupCallFlags { + fn try_from_ord(ord: i32) -> Option < Self > { + match ord { + ord @ 0i32 | ord @ 1i32 | ord @ 2i32 | ord @ 4i32 => Some(Self { + ord + }), _ => None, + } + } + fn ord(self) -> i32 { + self.ord + } + #[inline] + fn as_str(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "DEFAULT", Self::REVERSE => "REVERSE", Self::DEFERRED => "DEFERRED", Self::UNIQUE => "UNIQUE", _ => "", + } + } + fn godot_name(&self) -> &'static str { + #[allow(unreachable_patterns)] + match * self { + Self::DEFAULT => "GROUP_CALL_DEFAULT", Self::REVERSE => "GROUP_CALL_REVERSE", Self::DEFERRED => "GROUP_CALL_DEFERRED", Self::UNIQUE => "GROUP_CALL_UNIQUE", _ => self.as_str(), + } + } +} +impl crate::meta::GodotConvert for GroupCallFlags { + type Via = i32; + +} +impl crate::meta::ToGodot for GroupCallFlags { + type ToVia < 'v > = i32; + fn to_godot(&self) -> Self::ToVia < '_ > { + < Self as crate::obj::EngineEnum > ::ord(* self) + } +} +impl crate::meta::FromGodot for GroupCallFlags { + fn try_from_godot(via: Self::Via) -> std::result::Result < Self, crate::meta::error::ConvertError > { + < Self as crate::obj::EngineEnum > ::try_from_ord(via) . ok_or_else(|| crate::meta::error::FromGodotError::InvalidEnum.into_error(via)) + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_tree_timer.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_tree_timer.rs new file mode 100644 index 0000000..b351244 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/scene_tree_timer.rs @@ -0,0 +1,204 @@ +#![doc = "Sidecar module for class [`SceneTreeTimer`][crate::classes::SceneTreeTimer].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `SceneTreeTimer` enums](https://docs.godotengine.org/en/stable/classes/class_scenetreetimer.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `SceneTreeTimer.`\n\nInherits [`RefCounted`][crate::classes::RefCounted].\n\nRelated symbols:\n\n* [`ISceneTreeTimer`][crate::classes::ISceneTreeTimer]: virtual methods\n\n\nSee also [Godot docs for `SceneTreeTimer`](https://docs.godotengine.org/en/stable/classes/class_scenetreetimer.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd` instances via Godot APIs."] + #[derive(Debug)] + #[repr(C)] + pub struct SceneTreeTimer { + object_ptr: sys::GDExtensionObjectPtr, rtti: Option < crate::private::ObjectRtti >, + } + #[doc = "Virtual methods for class [`SceneTreeTimer`][crate::classes::SceneTreeTimer].\n\nThese methods represent constructors (`init`) or callbacks invoked by the engine.\n\nSee also [Godot docs for `SceneTreeTimer` methods](https://docs.godotengine.org/en/stable/classes/class_scenetreetimer.html#methods).\n\n"] + #[allow(unused_variables)] + #[allow(clippy::unimplemented)] + pub trait ISceneTreeTimer: crate::obj::GodotClass < Base = SceneTreeTimer > + crate::private::You_forgot_the_attribute__godot_api { + #[doc(hidden)] + fn register_class(builder: &mut crate::builder::ClassBuilder < Self >) { + unimplemented !() + } + #[doc = r" Godot constructor, accepting an injected `base` object."] + #[doc = r""] + #[doc = r" `base` refers to the base instance of the class, which can either be stored in a `Base` field or discarded."] + #[doc = r" This method returns a fully-constructed instance, which will then be moved into a [`Gd`][crate::obj::Gd] pointer."] + #[doc = r""] + #[doc = r" If the class has a `#[class(init)]` attribute, this method will be auto-generated and must not be overridden."] + fn init(base: crate::obj::Base < Self::Base >) -> Self { + unimplemented !() + } + #[doc = r" String representation of the Godot instance."] + #[doc = r""] + #[doc = r" Override this method to define how the instance is represented as a string."] + #[doc = r" Used by `impl Display for Gd`, as well as `str()` and `print()` in GDScript."] + fn to_string(&self) -> crate::builtin::GString { + unimplemented !() + } + #[doc = r" Called when the object receives a Godot notification."] + #[doc = r""] + #[doc = r" The type of notification can be identified through `what`. The enum is designed to hold all possible `NOTIFICATION_*`"] + #[doc = r" constants that the current class can handle. However, this is not validated in Godot, so an enum variant `Unknown` exists"] + #[doc = r" to represent integers out of known constants (mistakes or future additions)."] + #[doc = r""] + #[doc = r" This method is named `_notification` in Godot, but `on_notification` in Rust. To _send_ notifications, use the"] + #[doc = r" [`Object::notify`][crate::classes::Object::notify] method."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_notification`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-notification)."] + #[doc = r" * [Notifications tutorial](https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html)."] + fn on_notification(&mut self, what: ObjectNotification) { + unimplemented !() + } + #[doc = r" Called whenever [`get()`](crate::classes::Object::get) is called or Godot gets the value of a property."] + #[doc = r""] + #[doc = r" Should return the given `property`'s value as `Some(value)`, or `None` if the property should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-get)."] + fn get_property(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + #[doc = r" Called whenever Godot [`set()`](crate::classes::Object::set) is called or Godot sets the value of a property."] + #[doc = r""] + #[doc = r" Should set `property` to the given `value` and return `true`, or return `false` to indicate the `property`"] + #[doc = r" should be handled normally."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_set`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-set)."] + fn set_property(&mut self, property: StringName, value: Variant) -> bool { + unimplemented !() + } + #[doc = r" Called whenever Godot [`get_property_list()`](crate::classes::Object::get_property_list) is called, the returned vector here is"] + #[doc = r" appended to the existing list of properties."] + #[doc = r""] + #[doc = r" This should mainly be used for advanced purposes, such as dynamically updating the property list in the editor."] + #[doc = r""] + #[doc = r" See also in Godot docs:"] + #[doc = r" * [`Object::_get_property_list`](https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-get-property-list)"] + #[cfg(since_api = "4.3")] + fn get_property_list(&mut self) -> Vec < crate::meta::PropertyInfo > { + unimplemented !() + } + #[doc = r" Called whenever Godot retrieves value of property. Allows to customize existing properties."] + #[doc = r" Every property info goes through this method, except properties **added** with `get_property_list()`."] + #[doc = r""] + #[doc = r" Exposed `property` here is a shared mutable reference obtained (and returned to) from Godot."] + #[doc = r""] + #[doc = r" See also in the Godot docs:"] + #[doc = r" * [`Object::_validate_property`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-private-method-validate-property)"] + #[cfg(since_api = "4.2")] + fn validate_property(&self, property: &mut crate::meta::PropertyInfo) { + unimplemented !() + } + #[doc = r" Called by Godot to tell if a property has a custom revert or not."] + #[doc = r""] + #[doc = r" Return `None` for no custom revert, and return `Some(value)` to specify the custom revert."] + #[doc = r""] + #[doc = r" This is a combination of Godot's [`Object::_property_get_revert`] and [`Object::_property_can_revert`]. This means that this"] + #[doc = r" function will usually be called twice by Godot to find the revert."] + #[doc = r""] + #[doc = r" Note that this should be a _pure_ function. That is, it should always return the same value for a property as long as `self`"] + #[doc = r" remains unchanged. Otherwise, this may lead to unexpected (safe) behavior."] + #[doc = r""] + #[doc = r" [`Object::_property_get_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-get-revert"] + #[doc = r" [`Object::_property_can_revert`]: https://docs.godotengine.org/en/latest/classes/class_object.html#class-object-private-method-property-can-revert"] + #[doc(alias = "property_can_revert")] + fn property_get_revert(&self, property: StringName) -> Option < Variant > { + unimplemented !() + } + } + impl SceneTreeTimer { + pub fn set_time_left(&mut self, time: f64,) { + type CallSig = ((), f64); + let args = (time,); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7518usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTreeTimer", "set_time_left", self.object_ptr, self.__checked_id(), args,) + } + } + pub fn get_time_left(&self,) -> f64 { + type CallSig = (f64,); + let args = (); + unsafe { + let method_bind = sys::class_scene_api() . fptr_by_index(7519usize); + < CallSig as PtrcallSignatureTuple > ::out_class_ptrcall(method_bind, "SceneTreeTimer", "get_time_left", self.object_ptr, self.__checked_id(), args,) + } + } + fn __checked_id(&self) -> Option < crate::obj::InstanceId > { + let rtti = unsafe { + self.rtti.as_ref() . unwrap_unchecked() + }; + let instance_id = rtti.check_type::< Self > (); + Some(instance_id) + } + #[doc(hidden)] + pub fn __object_ptr(&self) -> sys::GDExtensionObjectPtr { + self.object_ptr + } + } + impl crate::obj::GodotClass for SceneTreeTimer { + type Base = crate::classes::RefCounted; + fn class_name() -> ClassName { + static CLASS_NAME: std::sync::OnceLock < ClassName > = std::sync::OnceLock::new(); + let name: &'static ClassName = CLASS_NAME.get_or_init(|| ClassName::alloc_next_ascii(c"SceneTreeTimer")); + * name + } + const INIT_LEVEL: crate::init::InitLevel = crate::init::InitLevel::Scene; + + } + unsafe impl crate::obj::Bounds for SceneTreeTimer { + type Memory = crate::obj::bounds::MemRefCounted; + type DynMemory = crate::obj::bounds::MemRefCounted; + type Declarer = crate::obj::bounds::DeclEngine; + type Exportable = crate::obj::bounds::No; + + } + unsafe impl crate::obj::Inherits < crate::classes::RefCounted > for SceneTreeTimer { + + } + unsafe impl crate::obj::Inherits < crate::classes::Object > for SceneTreeTimer { + + } + impl std::ops::Deref for SceneTreeTimer { + type Target = crate::classes::RefCounted; + fn deref(&self) -> &Self::Target { + unsafe { + std::mem::transmute::< &Self, &Self::Target > (self) + } + } + } + impl std::ops::DerefMut for SceneTreeTimer { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { + std::mem::transmute::< &mut Self, &mut Self::Target > (self) + } + } + } + #[doc = r" # Safety"] + #[doc = r""] + #[doc = "The provided class must be a subclass of all the superclasses of [`SceneTreeTimer`]"] + #[macro_export] + #[allow(non_snake_case)] + macro_rules !unsafe_inherits_transitive_SceneTreeTimer { + ($Class: ident) => { + unsafe impl::godot::obj::Inherits < ::godot::classes::SceneTreeTimer > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::RefCounted > for $Class { + + } + unsafe impl::godot::obj::Inherits < ::godot::classes::Object > for $Class { + + } + } + } +} \ No newline at end of file diff --git a/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/script.rs b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/script.rs new file mode 100644 index 0000000..ec4f006 --- /dev/null +++ b/rust/target/debug/build/godot-core-3092dfa1ccdfdc52/out/classes/script.rs @@ -0,0 +1,370 @@ +#![doc = "Sidecar module for class [`Script`][crate::classes::Script].\n\nDefines related flag and enum types. In GDScript, those are nested under the class scope.\n\nSee also [Godot docs for `Script` enums](https://docs.godotengine.org/en/stable/classes/class_script.html#enumerations).\n\n"] +use godot_ffi as sys; +use crate::builtin::*; +use crate::meta::{ + AsArg, AsObjectArg, ClassName, CowArg, ObjectArg, ObjectCow, PtrcallSignatureTuple, RefArg, VarcallSignatureTuple +}; +use crate::classes::native::*; +use crate::classes::Object; +use crate::obj::Gd; +use crate::sys::GodotFfi as _; +use crate::classes::notify::*; +use std::ffi::c_void; +pub(super) mod re_export { + use super::*; + #[doc = "Godot class `Script.`\n\nInherits [`Resource`][crate::classes::Resource].\n\nRelated symbols:\n\n* [`script`][crate::classes::script]: sidecar module with related enum/flag types\n* [`IScript`][crate::classes::IScript]: virtual methods\n\n\nSee also [Godot docs for `Script`](https://docs.godotengine.org/en/stable/classes/class_script.html).\n\n"] + #[doc = "# Not instantiable\n\nThis class cannot be constructed. Obtain `Gd